|
@@ -28,6 +28,8 @@
|
|
|
</el-button>
|
|
|
<el-button v-if="level == 1" size="medium" type="primary" @click="xiazai" style="margin-left: 20px;">下载模板
|
|
|
</el-button>
|
|
|
+ <el-button v-if="level == 1" size="medium" type="danger" @click="delinfos" style="margin-left: 20px;">批量删除
|
|
|
+ </el-button>
|
|
|
</span>
|
|
|
|
|
|
|
|
@@ -42,10 +44,10 @@
|
|
|
</div>
|
|
|
|
|
|
|
|
|
- <div class="tabbox zdy">
|
|
|
- <el-table height="calc(100% - 40px)" class="com-table" ref="multipleTable" tooltip-effect="dark"
|
|
|
+ <div class="tabbox zdy" v-loading='loading'>
|
|
|
+ <el-table v-if="!loading" height="calc(100% - 40px)" class="com-table" ref="multipleTable" tooltip-effect="dark"
|
|
|
:data="tableData" size="mini" border style="width: 100%" @selection-change="handleSelectionChange">
|
|
|
- <el-table-column type="selection" width="55" align="center" v-if="level == 3">
|
|
|
+ <el-table-column type="selection" width="55" align="center" v-if="level == 3||level == 1">
|
|
|
</el-table-column>
|
|
|
<el-table-column :prop="item.name" :label="item.name" v-for="item in tableDatacs">
|
|
|
<template slot-scope="scope">
|
|
@@ -260,7 +262,7 @@
|
|
|
leaderList:[],
|
|
|
treeListonlyl:{},
|
|
|
numl:0,
|
|
|
- companyFlag:''
|
|
|
+ companyFlag:'',
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -573,6 +575,35 @@
|
|
|
this.getList({}, this.pageSize);
|
|
|
});
|
|
|
},
|
|
|
+ delinfos(){
|
|
|
+ let params = [];
|
|
|
+ let _this = this;
|
|
|
+ for (let i = 0; i < this.rowIdList.length; i++) {
|
|
|
+ params.push({rowId:this.rowIdList[i]})
|
|
|
+ }
|
|
|
+ this.$http({
|
|
|
+ url: "/market/cIllegalCallTaskRow/delBatch",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ },
|
|
|
+ data: params,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.data.result === 1) {
|
|
|
+ this.$message({
|
|
|
+ message: res.data.desc,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: '成功',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ _this.rowIdList = [];
|
|
|
+ _this.getList({}, 1);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
handleSelectionChange(v) {
|
|
|
this.rowIdList = [];
|
|
|
for (let i = 0; i < v.length; i++) {
|
|
@@ -745,8 +776,7 @@
|
|
|
getList(v, n) {
|
|
|
this.pageSize = n;
|
|
|
let _this = this;
|
|
|
- this.loading = true;
|
|
|
- this.tableData = [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}];
|
|
|
+ this.tableData = [];
|
|
|
// v.sts = 0;
|
|
|
v.missionId = this.$route.query.id.split(",")[2];
|
|
|
let url = '';
|
|
@@ -765,7 +795,6 @@
|
|
|
},
|
|
|
data: v,
|
|
|
}).then((res) => {
|
|
|
- this.tableData = [];
|
|
|
res.data.data.forEach(item => {
|
|
|
let x = JSON.parse(item.fillContent);
|
|
|
x.rowId = item.rowId;
|
|
@@ -793,6 +822,7 @@
|
|
|
}
|
|
|
},
|
|
|
getUser() {
|
|
|
+ this.loading = true;
|
|
|
this.userInfo = JSON.parse(window.sessionStorage.userInfo);
|
|
|
this.fileInfot.taskId = this.$route.query.id.split(",")[1];
|
|
|
this.fileInfot.tempId = this.$route.query.id.split(",")[0];
|
|
@@ -825,10 +855,10 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getUser();
|
|
|
+
|
|
|
},
|
|
|
created() {
|
|
|
-
|
|
|
+ this.getUser();
|
|
|
}
|
|
|
}
|
|
|
</script>
|