|
@@ -1,94 +1,129 @@
|
|
<template>
|
|
<template>
|
|
<div id="technical">
|
|
<div id="technical">
|
|
- <el-col :span="24" class="main">
|
|
|
|
- <el-col :span="24" class="left">
|
|
|
|
- <el-col :span="24" class="leftTop"> <span>|</span> <span>展会管理</span> <span @click="add()">创建对接会</span></el-col>
|
|
|
|
- <!-- <el-col :span="24" class="downLeftTop">
|
|
|
|
- <el-image :src="downLeftTopImage"></el-image>
|
|
|
|
- <span class="topText">
|
|
|
|
- <span>展会管理</span>
|
|
|
|
- <span
|
|
|
|
- ><p>A</p>
|
|
|
|
- <p>ppointment</p></span
|
|
|
|
- >
|
|
|
|
- <span @click="add()">创建对接会</span>
|
|
|
|
- </span>
|
|
|
|
- </el-col> -->
|
|
|
|
- <el-col :span="24" class="infoLeft">
|
|
|
|
- <el-table :data="resultTable" stripe style="width: 96%" border>
|
|
|
|
- <el-table-column prop="title" label="对接会标题"> </el-table-column>
|
|
|
|
- <el-table-column prop="start_time" label="开始时间" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
- <el-table-column prop="join_end" label="报名截止时间" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
- <el-table-column prop="sheng" label="省" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
- <el-table-column prop="shi" label="市" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
- <el-table-column label="审核状态" align="center">
|
|
|
|
- <template slot-scope="scoped">
|
|
|
|
- {{ scoped.row.is_allowed === '0' ? '未审核' : scoped.row.is_allowed === '1' ? '审核通过' : '审核拒绝' }}
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="对接会状态" align="center">
|
|
|
|
- <template slot-scope="scoped">
|
|
|
|
- {{ scoped.row.status === '1' ? '开始' : scoped.row.status === '2' ? '结束' : '准备中' }}
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="desc" label="简介" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
-
|
|
|
|
- <el-table-column label="操作" style="width:200px">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-button size="mini" type="text" @click.prevent="handleEdit(scope.row.id)"
|
|
|
|
- ><el-tooltip class="item" effect="dark" content="编辑" placement="top-start"> <i class="el-icon-edit"></i> </el-tooltip
|
|
|
|
- ></el-button>
|
|
|
|
-
|
|
|
|
- <el-button size="mini" type="text" @click.prevent="handleshenhe(scope.row.id)" v-if="scope.row.is_allowed == '0'">
|
|
|
|
- <el-tooltip class="item" effect="dark" content="审核" placement="top-start"><i class="el-icon-refresh"></i></el-tooltip>
|
|
|
|
- </el-button>
|
|
|
|
-
|
|
|
|
- <el-button size="mini" type="text" @click.prevent="deleteRow(scope.row.id)">
|
|
|
|
- <el-tooltip class="item" effect="dark" content="删除" placement="top-start"><i class="el-icon-delete"></i></el-tooltip>
|
|
|
|
- </el-button>
|
|
|
|
-
|
|
|
|
- <el-button size="mini" type="text" v-if="scope.row.is_allowed == '1'" @click.prevent="status(scope.row.id)">
|
|
|
|
- <el-tooltip class="item" effect="dark" content="审核对接会状态" placement="top-start"><i class="el-icon-bangzhu"></i></el-tooltip>
|
|
|
|
- </el-button>
|
|
|
|
-
|
|
|
|
- <el-button size="mini" type="text" v-if="scope.row.is_allowed == '1'" @click.prevent="look(scope.row)">
|
|
|
|
- <el-tooltip class="item" effect="dark" content="查看申请状况" placement="top-start"><i class="el-icon-pie-chart"></i></el-tooltip>
|
|
|
|
- </el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- <el-col :span="24">
|
|
|
|
- <page :total="total" position="center" :limit="limit" v-on="$listeners"></page>
|
|
|
|
- </el-col>
|
|
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="24" class="main">
|
|
|
|
+ <el-col :span="24" class="mainTop"> <span>展会管理</span> <span>|</span></el-col>
|
|
|
|
+ <el-col :span="24" class="mainInfo">
|
|
|
|
+ <el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
|
+ <el-tab-pane label="下期直播" name="first">
|
|
|
|
+ <el-table :data="nextData" stripe style="width: 96%" border>
|
|
|
|
+ <el-table-column prop="title" label="对接会标题" align="center"> </el-table-column>
|
|
|
|
+ <el-table-column prop="start_time" label="开始时间" align="center" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
+ <el-table-column prop="join_end" label="报名截止时间" align="center" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
+ <el-table-column prop="sheng" label="省" align="center" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
+ <el-table-column prop="shi" label="市" align="center" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
+ <el-table-column prop="desc" label="简介" align="center" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
+ <el-table-column label="操作" style="width:200px" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-button size="mini" type="text" @click.prevent="handleEdit(scope.row.id)"
|
|
|
|
+ ><el-tooltip class="item" effect="dark" content="申请" placement="top-start"> <i class="el-icon-view"></i> </el-tooltip
|
|
|
|
+ ></el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <el-col class="page" :span="24">
|
|
|
|
+ <page :total="nextTotal" position="right"></page>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-tab-pane>
|
|
|
|
+ <el-tab-pane label="已往直播" name="second">
|
|
|
|
+ <el-table :data="pastData" stripe style="width: 96%" border>
|
|
|
|
+ <el-table-column prop="title" label="对接会标题" align="center"> </el-table-column>
|
|
|
|
+ <el-table-column prop="start_time" label="开始时间" align="center" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
+ <el-table-column prop="join_end" label="报名截止时间" align="center" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
+ <el-table-column prop="sheng" label="省" align="center" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
+ <el-table-column prop="shi" label="市" align="center" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
+ <el-table-column prop="desc" label="简介" align="center" :show-overflow-tooltip="true"> </el-table-column>
|
|
|
|
+ <!-- <el-table-column label="操作" style="width:200px" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-button size="mini" type="text" @click.prevent="handleEdit(scope.row.id)"
|
|
|
|
+ ><el-tooltip class="item" effect="dark" content="申请" placement="top-start"> <i class="el-icon-edit"></i> </el-tooltip
|
|
|
|
+ ></el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column> -->
|
|
|
|
+ </el-table>
|
|
|
|
+ <el-col class="page" :span="24">
|
|
|
|
+ <page :total="pastTotal" position="right"></page>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-tab-pane>
|
|
|
|
+ </el-tabs>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
- </el-col>
|
|
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-dialog title="申请" :visible.sync="dialogFormVisible">
|
|
|
|
+ <el-form :model="form">
|
|
|
|
+ <el-form-item label="联系人" :label-width="formLabelWidth">
|
|
|
|
+ <el-input v-model="form.contact" autocomplete="off"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="联系电话" :label-width="formLabelWidth">
|
|
|
|
+ <el-input v-model="form.contact_tel" autocomplete="off"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="电子邮箱" :label-width="formLabelWidth">
|
|
|
|
+ <el-input v-model="form.email" autocomplete="off"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="单位名称" :label-width="formLabelWidth">
|
|
|
|
+ <el-input v-model="form.company" autocomplete="off"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="submitBtn">确 定</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import _ from 'lodash';
|
|
import _ from 'lodash';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
-const { mapActions: news } = createNamespacedHelpers('news');
|
|
|
|
import page from '@/components/pagination.vue';
|
|
import page from '@/components/pagination.vue';
|
|
|
|
+const { mapActions: apply } = createNamespacedHelpers('apply');
|
|
export default {
|
|
export default {
|
|
name: 'technical',
|
|
name: 'technical',
|
|
props: {
|
|
props: {
|
|
- resultTable: null,
|
|
|
|
- total: null,
|
|
|
|
- limit: null,
|
|
|
|
|
|
+ nextData: null,
|
|
|
|
+ nextTotal: null,
|
|
|
|
+ pastData: null,
|
|
|
|
+ pastTotal: null,
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
page,
|
|
page,
|
|
},
|
|
},
|
|
data: () => ({
|
|
data: () => ({
|
|
- downLeftTopImage: require('@/assets/live/square_big.png'),
|
|
|
|
- jishuImage: require('@/assets/live/main3.png'),
|
|
|
|
|
|
+ activeName: 'first',
|
|
|
|
+ dialogFormVisible: false,
|
|
|
|
+ form: {},
|
|
|
|
+ formLabelWidth: '120px',
|
|
|
|
+ dock_id: '',
|
|
}),
|
|
}),
|
|
- created() {
|
|
|
|
- this.searchInfo();
|
|
|
|
|
|
+ created() {},
|
|
|
|
+
|
|
|
|
+ methods: {
|
|
|
|
+ ...apply({ applyCreate: 'create' }),
|
|
|
|
+ // tab
|
|
|
|
+ handleClick() {
|
|
|
|
+ console.log('tab');
|
|
|
|
+ },
|
|
|
|
+ // 申请对接会打开
|
|
|
|
+ handleEdit(id) {
|
|
|
|
+ this.dialogFormVisible = true;
|
|
|
|
+ this.$set(this, `dock_id`, id);
|
|
|
|
+ },
|
|
|
|
+ // 提交
|
|
|
|
+ async submitBtn() {
|
|
|
|
+ this.form.user_id = this.user.uid;
|
|
|
|
+ this.form.user_name = this.user.name;
|
|
|
|
+ this.form.buyer = '0';
|
|
|
|
+ const res = await this.applyCreate({ id: this.dock_id, ...this.form });
|
|
|
|
+ if (res.errcode === 0) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '申请参加对接会成功',
|
|
|
|
+ type: 'success',
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
|
|
+ ...mapState(['user']),
|
|
pageTitle() {
|
|
pageTitle() {
|
|
return `${this.$route.meta.title}`;
|
|
return `${this.$route.meta.title}`;
|
|
},
|
|
},
|
|
@@ -96,39 +131,11 @@ export default {
|
|
metaInfo() {
|
|
metaInfo() {
|
|
return { title: this.$route.meta.title };
|
|
return { title: this.$route.meta.title };
|
|
},
|
|
},
|
|
-
|
|
|
|
- methods: {
|
|
|
|
- ...news(['query']),
|
|
|
|
- async searchInfo() {},
|
|
|
|
- add() {
|
|
|
|
- this.$router.push({ path: '/enterprise/duijiedetail' });
|
|
|
|
- },
|
|
|
|
- handleEdit(id) {
|
|
|
|
- console.log(id);
|
|
|
|
- this.$router.push({ path: '/enterprise/duijiedetail', query: { id: id } });
|
|
|
|
- },
|
|
|
|
- handleshenhe(id) {
|
|
|
|
- this.$router.push({ path: '/enterprise/shenhe', query: { id: id } });
|
|
|
|
- },
|
|
|
|
- deleteRow(id) {
|
|
|
|
- this.$emit('deleteRow', id);
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- status(id) {
|
|
|
|
- console.log(id);
|
|
|
|
- this.$router.push({ path: '/enterprise/duijiestatus', query: { id: id } });
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- look(row) {
|
|
|
|
- console.log(row);
|
|
|
|
- this.$emit('searchinfo', row);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
-.leftTop {
|
|
|
|
|
|
+.mainTop {
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
width: 96%;
|
|
width: 96%;
|
|
height: 41px;
|
|
height: 41px;
|
|
@@ -136,97 +143,18 @@ export default {
|
|
border-bottom: 1px solid #e5e5e5;
|
|
border-bottom: 1px solid #e5e5e5;
|
|
position: relative;
|
|
position: relative;
|
|
bottom: 1px;
|
|
bottom: 1px;
|
|
- margin: 10px;
|
|
|
|
|
|
+ margin: 10px 20px;
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
color: #22529a;
|
|
color: #22529a;
|
|
}
|
|
}
|
|
-.leftTop span:last-child {
|
|
|
|
- float: right;
|
|
|
|
- cursor: pointer;
|
|
|
|
-}
|
|
|
|
-.jishuImage {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 100%;
|
|
|
|
-}
|
|
|
|
-.main {
|
|
|
|
- width: 100%;
|
|
|
|
- margin: 0 auto;
|
|
|
|
- float: none;
|
|
|
|
-}
|
|
|
|
-.left {
|
|
|
|
|
|
+.mainTop span:last-child {
|
|
float: left;
|
|
float: left;
|
|
- min-height: 630px;
|
|
|
|
- overflow: hidden;
|
|
|
|
- margin: 0 auto;
|
|
|
|
- padding: 20px 10px 20px 10px;
|
|
|
|
-}
|
|
|
|
-.leftTitle {
|
|
|
|
- text-align: center;
|
|
|
|
- position: relative;
|
|
|
|
-}
|
|
|
|
-.topText {
|
|
|
|
- width: 94%;
|
|
|
|
- border-bottom: 2.5px solid #044b79;
|
|
|
|
- display: inline-block;
|
|
|
|
- position: relative;
|
|
|
|
- top: -10px;
|
|
|
|
- margin: 0 0 0 5px;
|
|
|
|
-}
|
|
|
|
-.topText span:first-child {
|
|
|
|
- font-size: 24px;
|
|
|
|
- font-weight: 700;
|
|
|
|
- color: #000000;
|
|
|
|
- padding: 0 10px;
|
|
|
|
- top: 4px;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.topText span p:first-child {
|
|
|
|
- font-weight: 800;
|
|
|
|
- font-size: 34px;
|
|
|
|
- color: #92959a;
|
|
|
|
- top: 11px;
|
|
|
|
- display: inline-block;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.topText span p:last-child {
|
|
|
|
- display: inline-block;
|
|
|
|
- font-weight: 700;
|
|
|
|
- font-size: 18px;
|
|
|
|
- color: #92959a;
|
|
|
|
-}
|
|
|
|
-.topText span:last-child {
|
|
|
|
- float: right;
|
|
|
|
- font-size: 16px;
|
|
|
|
- font-weight: 700;
|
|
|
|
- color: #044b79;
|
|
|
|
- position: relative;
|
|
|
|
- top: 20px;
|
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
-.infoLeft {
|
|
|
|
- height: 480px;
|
|
|
|
- padding: 20px 20px;
|
|
|
|
- margin: 1px 0 0 0;
|
|
|
|
|
|
+.mainInfo {
|
|
|
|
+ margin: 0 20px;
|
|
}
|
|
}
|
|
-.leftListDown {
|
|
|
|
- position: relative;
|
|
|
|
-}
|
|
|
|
-.leftListDown span:first-child {
|
|
|
|
- display: inline-block;
|
|
|
|
- width: 80%;
|
|
|
|
- height: 3px;
|
|
|
|
- background: rgba(4, 75, 121, 0.37);
|
|
|
|
- margin: 0 10px 0 0;
|
|
|
|
- position: absolute;
|
|
|
|
- left: -10px;
|
|
|
|
- top: 10px;
|
|
|
|
-}
|
|
|
|
-.leftListDown span:last-child {
|
|
|
|
- font-size: 16px;
|
|
|
|
- float: right;
|
|
|
|
- padding: 0 15px 0 0;
|
|
|
|
- color: #044b79;
|
|
|
|
- font-weight: 700;
|
|
|
|
- cursor: pointer;
|
|
|
|
|
|
+/deep/.el-dialog__footer {
|
|
|
|
+ text-align: center;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|