This commit is contained in:
caoqianming 2021-04-30 11:27:21 +08:00
commit c79e09d7cf
2 changed files with 12 additions and 15 deletions

View File

@ -101,7 +101,7 @@
size="small"
icon="el-icon-edit"
@click="handleEdit(scope)"
/> -->
/>
<el-button
type="danger"
size="small"

View File

@ -9,14 +9,12 @@
stripe
highlight-current-row
style="width: 100%"
@row-click="recorclickRow"
>
<el-table-column
label="组织名称"
>
<template slot-scope="scope">
{{ scope.row.dept__name }}
<el-link @click="recorclickRow(scope)" type="primary"> {{ scope.row.dept__name }}</el-link>
</template>
</el-table-column>
@ -283,31 +281,30 @@ export default {
},
//点击组织弹出清单
recorclickRow(scope) {
this.listLoading2 = true;
this.listQuery = {pageoff:true, subtask: this.id, dept:scope.row.dept}
this.getinspectrecordlist();
},
//点击组织弹出清单
getinspectrecordlist() {
getinspectrecordlist(this.listQuery)
.then((res) => {
this.inspectitemList = res.data;
console.log(this.inspectitemList)
})
},
recorclickRow(row) {
this.listLoading2 = true;
this.listQuery = {pageoff:true, subtask: this.id, dept:row.dept}
this.getinspectrecordlist();
},
handleCheck(scope)
{
this.dialog=true;
this.recordid=scope.row.id
this.fileList=[];
console.log(this.recordid)
getinspectrecord(this.recordid).then((res) => {
this.inspectrecord = res.data;