|
@@ -10,10 +10,12 @@
|
|
|
<div class="taskTitle color1">咨询单任务</div>
|
|
|
<div class="taskList clear">
|
|
|
<div
|
|
|
- class="aaa"
|
|
|
+ class="task-item"
|
|
|
v-for="item in list"
|
|
|
:key="item"
|
|
|
- @click="routeGoto('workbenchDetail', { id: 'INF2203151428199103' })"
|
|
|
+ @click="
|
|
|
+ routeGoto('workbenchDetail', { id: 'INF2203151428199103' })
|
|
|
+ "
|
|
|
>
|
|
|
{{ item }}
|
|
|
</div>
|
|
@@ -25,10 +27,12 @@
|
|
|
<div class="taskTitle color2">客户指定商品任务</div>
|
|
|
<div class="taskList">
|
|
|
<div
|
|
|
- class="aaa"
|
|
|
+ class="task-item"
|
|
|
v-for="item in list1"
|
|
|
:key="item"
|
|
|
- @click="routeGoto('workbenchDetail', { id: 'INF2203151428199103' })"
|
|
|
+ @click="
|
|
|
+ routeGoto('workbenchDetail', { id: 'INF2203151428199103' })
|
|
|
+ "
|
|
|
>
|
|
|
{{ item }}
|
|
|
</div>
|
|
@@ -81,19 +85,12 @@ export default {
|
|
|
showModel: false,
|
|
|
modelId: "000",
|
|
|
sitem: {},
|
|
|
- list1:[],
|
|
|
- list: [
|
|
|
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
|
|
- 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
|
|
|
- 39, 40,
|
|
|
- ],
|
|
|
+ list1: [],
|
|
|
+ list: [],
|
|
|
parmValue: {
|
|
|
page: 1, // 页码
|
|
|
- size: 15, // 每页显示条数
|
|
|
- starttime: "",
|
|
|
- endtime: "",
|
|
|
- status: "",
|
|
|
- creater: "",
|
|
|
+ size: 1000, // 每页显示条数
|
|
|
+ status: "1",
|
|
|
},
|
|
|
// 状态
|
|
|
statusOptions: [
|
|
@@ -150,23 +147,20 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- // this.searchList();
|
|
|
+ this.searchList();
|
|
|
},
|
|
|
methods: {
|
|
|
restSearch() {
|
|
|
// 表格 - 分页
|
|
|
this.pageInfo = {
|
|
|
- size: 15,
|
|
|
+ size: 1000,
|
|
|
curr: 1,
|
|
|
total: 0,
|
|
|
};
|
|
|
this.parmValue = {
|
|
|
page: 1, // 页码
|
|
|
size: 15, // 每页显示条数
|
|
|
- starttime: "",
|
|
|
- endtime: "",
|
|
|
- status: "",
|
|
|
- creater: "",
|
|
|
+ status: "1",
|
|
|
};
|
|
|
this.searchList();
|
|
|
},
|
|
@@ -255,14 +249,15 @@ export default {
|
|
|
// 刷新表格
|
|
|
async searchList() {
|
|
|
this.loading = true;
|
|
|
- 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);
|
|
|
- } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
+ const {code,data} = await asyncRequest.list(this.parmValue);
|
|
|
+ if (code === 0 ) {
|
|
|
+ const {list,count}=data
|
|
|
+ this.list = list;
|
|
|
+ this.pageInfo.total = Number(count);
|
|
|
+ } else if (code >= 100 && code <= 104) {
|
|
|
await this.logout();
|
|
|
} else {
|
|
|
- this.tableData = [];
|
|
|
+ this.list = [];
|
|
|
this.pageInfo.total = 0;
|
|
|
}
|
|
|
this.loading = false;
|
|
@@ -298,7 +293,7 @@ export default {
|
|
|
overflow: hidden;
|
|
|
box-sizing: border-box;
|
|
|
// border: 1px solid rgba(121, 121, 121, 1);
|
|
|
- .aaa {
|
|
|
+ .task-item {
|
|
|
border-bottom: 1px dashed #e6ebf5;
|
|
|
height: 140px;
|
|
|
line-height: 140px;
|
|
@@ -313,7 +308,7 @@ export default {
|
|
|
float: left;
|
|
|
width: 66%;
|
|
|
margin: 0 2% 0 0;
|
|
|
- .aaa {
|
|
|
+ .task-item {
|
|
|
width: 50%;
|
|
|
&:nth-child(2n + 1) {
|
|
|
border-right: 1px dashed #e6ebf5;
|