|
|
|
@ -18,7 +18,7 @@ |
|
|
|
<el-option v-for="subItem in followUpWayList" :key="subItem.value" :label="subItem.label" |
|
|
|
:value="subItem.value"></el-option> |
|
|
|
</el-select> |
|
|
|
<div v-else class="div-content">{{ scope.row.followUpWay == 1 ? '正常' : '异常' }}</div> |
|
|
|
<div v-else class="div-content">{{ scope.row.followUpWay == 1 ? '电话回访' : '上门回访' }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="riskFlag" label="是否风险" align="center"> |
|
|
|
@ -80,10 +80,7 @@ |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
followUpWayList:[{ |
|
|
|
label: '无需回访', |
|
|
|
value: '0' |
|
|
|
}, { |
|
|
|
followUpWayList:[ { |
|
|
|
label: '上门回访', |
|
|
|
value: '1' |
|
|
|
},{ |
|
|
|
@ -193,9 +190,9 @@ |
|
|
|
console.log(row, this.id); |
|
|
|
const params = { |
|
|
|
...row, |
|
|
|
equipmentId: this.id |
|
|
|
inspResultId: this.id |
|
|
|
}; |
|
|
|
const url = ``; |
|
|
|
const url = `/governance/satisfaction/communitySelfInsp/followUp/save`; |
|
|
|
const { |
|
|
|
data, |
|
|
|
code, |
|
|
|
@ -212,11 +209,10 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
async edit(row) { |
|
|
|
console.log(row, this.id); |
|
|
|
const params = { |
|
|
|
...row |
|
|
|
}; |
|
|
|
const url = ``; |
|
|
|
const url = `/governance/satisfaction/communitySelfInsp/followUp/save`; |
|
|
|
const { |
|
|
|
data, |
|
|
|
code, |
|
|
|
@ -233,7 +229,7 @@ |
|
|
|
}, |
|
|
|
async del(row) { |
|
|
|
let arr = [row.id]; |
|
|
|
const url = ``; |
|
|
|
const url = `/governance/satisfaction/communitySelfInsp/followUp/delete/${row.id}`; |
|
|
|
const { |
|
|
|
data, |
|
|
|
code, |
|
|
|
@ -248,16 +244,16 @@ |
|
|
|
}, |
|
|
|
async getList() { |
|
|
|
const params = { |
|
|
|
equipmentId: this.id, |
|
|
|
inspResultId: this.id, |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 10000 |
|
|
|
pageSize: 20 |
|
|
|
}; |
|
|
|
const url = ``; |
|
|
|
const url = `/governance/satisfaction/communitySelfInsp/followUp/list`; |
|
|
|
const { |
|
|
|
data, |
|
|
|
code, |
|
|
|
msg |
|
|
|
} = await requestPost(url, params); |
|
|
|
} = await requestGet(url, params); |
|
|
|
if (code === 0) { |
|
|
|
this.tableData = data.list.map(item => { |
|
|
|
return { |
|
|
|
|