|
|
@@ -258,9 +258,9 @@
|
|
|
</el-form>
|
|
|
<el-button @click="openSelect">选择检查内容</el-button>
|
|
|
<el-button @click="deleteSelected">批量删除</el-button>
|
|
|
- <el-table
|
|
|
+ <el-table
|
|
|
:data="tableData"
|
|
|
- style="width: 100%"
|
|
|
+ style="width: 100%;margin-top: 15px;"
|
|
|
height="400px"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
|
@@ -572,7 +572,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onSelect(selectList) {
|
|
|
- // console.log(selectList,"selectList");
|
|
|
+ console.log(selectList,"selectList");
|
|
|
for (let i = 0; i < selectList.length; i++) {
|
|
|
let tem = {
|
|
|
ofOrgId: this.orgId,
|
|
|
@@ -589,8 +589,10 @@ export default {
|
|
|
if (this.tableData == null) {
|
|
|
this.tableData = [];
|
|
|
}
|
|
|
+ if(tem.itemName!=null&&tem.itemName!=undefined){
|
|
|
this.tableData.push(tem);
|
|
|
}
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
async show(id, other = {}) {
|
|
|
@@ -604,7 +606,14 @@ export default {
|
|
|
this.isShow = true;
|
|
|
},
|
|
|
removeRow(row) {
|
|
|
- this.tableData = this.tableData.filter((item) => item !== row);
|
|
|
+ this.$modal
|
|
|
+ .confirm("是否确认删除?")
|
|
|
+ .then(function () {})
|
|
|
+ .then(() => {
|
|
|
+ this.tableData = this.tableData.filter((item) => item !== row);
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ });
|
|
|
+ // this.tableData = this.tableData.filter((item) => item !== row);
|
|
|
},
|
|
|
// 事件
|
|
|
onHide() {
|