|
@@ -1,213 +1,33 @@
|
|
|
<template>
|
|
|
<div class="workbench pagePadding">
|
|
|
- <ex-table
|
|
|
+ <div
|
|
|
+ class="workbench-main"
|
|
|
v-loading="loading"
|
|
|
v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
|
|
|
- :table="table"
|
|
|
- :data="tableData"
|
|
|
- :columns="columns"
|
|
|
- :page="pageInfo"
|
|
|
- :size="size"
|
|
|
- @page-curr-change="handlePageChange"
|
|
|
- @page-size-change="handleSizeChange"
|
|
|
- @screen-reset="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
- @screen-submit="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
>
|
|
|
- <template #table-header="{}">
|
|
|
- <div style="width: 100%">
|
|
|
- <el-row style="padding: 0 0 10px 80px">
|
|
|
- <el-col :span="6" style="width: 303px">
|
|
|
- <period-date-picker
|
|
|
- :type="1"
|
|
|
- :width="'135px'"
|
|
|
- :size="searchSize"
|
|
|
- :start="parmValue.starttime"
|
|
|
- :end="parmValue.endtime"
|
|
|
- @timeReturned="handleTime"
|
|
|
- />
|
|
|
- </el-col>
|
|
|
- <el-col :span="6" style="width: 250px; padding: 0 0 0 10px"> 所属平台 platform_code</el-col>
|
|
|
- <el-col :span="4" style="width: 160px">
|
|
|
- <el-select
|
|
|
- v-model="parmValue.status"
|
|
|
- filterable
|
|
|
- clearable
|
|
|
- :size="searchSize"
|
|
|
- placeholder="活动状态"
|
|
|
- style="width: 100%"
|
|
|
- @change="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in statusList"
|
|
|
- :key="'status' + item.code"
|
|
|
- :label="item.name"
|
|
|
- :value="item.code"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col
|
|
|
- :span="3"
|
|
|
- class="fr"
|
|
|
- style="width: 66px; padding: 0 0 0 10px"
|
|
|
- >
|
|
|
- <el-button type="primary" :size="searchSize" @click="searchList">
|
|
|
- 刷新
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
- <el-col
|
|
|
- :span="3"
|
|
|
- class="fr"
|
|
|
- style="width: 66px; padding: 0 0 0 10px"
|
|
|
- >
|
|
|
- <el-button type="warning" :size="searchSize" @click="restSearch">
|
|
|
- 重置
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="4" style="width: 373px">
|
|
|
- <el-input
|
|
|
- :size="searchSize"
|
|
|
- v-model="parmValue.BiddingWorkbench_name"
|
|
|
- :maxlength="40"
|
|
|
- @blur="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
- placeholder="活动名称"
|
|
|
- ></el-input>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6" style="width: 250px; padding: 0 0 0 10px">
|
|
|
- <el-input
|
|
|
- :size="searchSize"
|
|
|
- v-model="parmValue.BiddingWorkbench_code"
|
|
|
- :maxlength="40"
|
|
|
- @blur="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
- placeholder="活动编号"
|
|
|
- ></el-input>
|
|
|
- </el-col>
|
|
|
- <el-col :span="4" style="width: 170px; padding: 0 0 0 10px">
|
|
|
- <el-input
|
|
|
- :size="searchSize"
|
|
|
- v-model="parmValue.creater"
|
|
|
- :maxlength="40"
|
|
|
- @change="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
- placeholder="创建人"
|
|
|
- ></el-input>
|
|
|
- </el-col>
|
|
|
- <el-col
|
|
|
- :span="3"
|
|
|
- class="fr"
|
|
|
- style="width: 66px; padding: 0 0 0 10px"
|
|
|
- v-if="powers.some((item) => item == '003')"
|
|
|
- >
|
|
|
- <el-button
|
|
|
- :size="searchSize"
|
|
|
- type="success"
|
|
|
- style="float: right"
|
|
|
- @click="routeGoto('workbenchAdd', {})"
|
|
|
- >
|
|
|
- 添加
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </div></template
|
|
|
- >
|
|
|
- <template #status="{ scope }">
|
|
|
- <el-tag
|
|
|
- :size="tablebtnSize"
|
|
|
- :type="scope.row.status == '1' ? 'warning' : ''"
|
|
|
- v-text="
|
|
|
- (statusOptions.find((item) => item.id == scope.row.status) || {})
|
|
|
- .label || '--'
|
|
|
- "
|
|
|
- ></el-tag>
|
|
|
- </template>
|
|
|
-
|
|
|
- <template #operation="{ scope }">
|
|
|
- <el-tooltip
|
|
|
- v-if="powers.some((item) => item == '007')"
|
|
|
- effect="dark"
|
|
|
- content="详情"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-view tb-icon"
|
|
|
- @click="openModal(scope.row, '007')"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- <el-tooltip
|
|
|
- v-if="powers.some((item) => item == '005')"
|
|
|
- effect="dark"
|
|
|
- content="修改"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-edit tb-icon"
|
|
|
- @click="openModal(scope.row, '005')"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- <el-tooltip
|
|
|
- v-if="
|
|
|
- powers.some((item) => item == '004') && scope.row.status === '0'
|
|
|
- "
|
|
|
- effect="dark"
|
|
|
- content="禁用"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-video-pause tb-icon"
|
|
|
- @click="changeStatus(scope.row.id, scope.row.status)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- <el-tooltip
|
|
|
- v-if="
|
|
|
- powers.some((item) => item == '004') && scope.row.status === '1'
|
|
|
- "
|
|
|
- effect="dark"
|
|
|
- content="启用"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-video-play tb-icon"
|
|
|
- @click="changeStatus(scope.row.id, scope.row.status)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- <el-tooltip
|
|
|
- v-if="powers.some((item) => item == '006')"
|
|
|
- effect="dark"
|
|
|
- content="删除"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-delete tb-icon"
|
|
|
- @click="deleteItem(scope.row.id)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
- </ex-table>
|
|
|
+ <ul class="clear">
|
|
|
+ <li>
|
|
|
+ <div class="taskTitle color1">项目单任务</div>
|
|
|
+ <div class="taskList">111</div>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <div class="taskTitle color2">咨询单任务</div>
|
|
|
+ <div class="taskList">111</div>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <div class="taskTitle color3">客户指定商品任务</div>
|
|
|
+ <div class="taskList">
|
|
|
+ <div class="no-data">暂无数据!</div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <div class="taskTitle color4">服务</div>
|
|
|
+ <div class="taskList">
|
|
|
+ <div class="no-data">暂无数据!</div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
<no-auth v-else></no-auth>
|
|
|
<!-- 弹窗 新增/修改 -->
|
|
|
<add-edit
|
|
@@ -220,7 +40,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import asyncRequest from "@/apis/service/BiddingWorkbench/workbench";
|
|
|
+import asyncRequest from "@/apis/service/biddingWorkbench/workbench";
|
|
|
import statusList from "@/assets/js/statusList";
|
|
|
import roleLevel from "@/assets/js/roleLevel";
|
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
@@ -420,7 +240,7 @@ export default {
|
|
|
// 刷新表格
|
|
|
async searchList() {
|
|
|
this.loading = true;
|
|
|
- const res = await asyncRequest.list(this.parmValue);
|
|
|
+ const res = await asyncRequest.list1(this.parmValue);
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
this.tableData = res.data.list;
|
|
|
this.pageInfo.total = Number(res.data.count);
|
|
@@ -437,4 +257,43 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.workbench {
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ .workbench-main {
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ ul {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ li {
|
|
|
+ float: left;
|
|
|
+ width: 24%;
|
|
|
+ margin: 0 1% 0 0;
|
|
|
+ border: 1px solid rgba(121, 121, 121, 1);
|
|
|
+ .taskTitle {
|
|
|
+ width: 100%;
|
|
|
+ height: 55px;
|
|
|
+ line-height: 55px;
|
|
|
+ text-align: center;
|
|
|
+ border-bottom: 1px solid rgba(121, 121, 121, 1);
|
|
|
+ &.color1 {
|
|
|
+ background: rgba(250, 205, 145, 1);
|
|
|
+ }
|
|
|
+ &.color2 {
|
|
|
+ background: rgba(202, 249, 130, 1);
|
|
|
+ }
|
|
|
+ &.color3 {
|
|
|
+ background: rgba(129, 211, 248, 1);
|
|
|
+ }
|
|
|
+ &.color4 {
|
|
|
+ background: rgba(255, 255, 128, 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|