|
|
@ -125,6 +125,14 @@ |
|
|
|
<el-button @click="handleExport" |
|
|
|
class="diy-button--reset" |
|
|
|
size="small">导出</el-button> |
|
|
|
|
|
|
|
<el-button @click="handleMarkDiffcult" |
|
|
|
class="diy-button--export" |
|
|
|
size="small">标记痛点难点</el-button> |
|
|
|
|
|
|
|
<el-button @click="handleCancalDiffcult" |
|
|
|
class="diy-button--delete" |
|
|
|
size="small">取消标记痛点难点</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-table :data="tableData" |
|
|
@ -132,7 +140,13 @@ |
|
|
|
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" |
|
|
|
class="table" |
|
|
|
style="width: 100%" |
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
:height="maxTableHeight"> |
|
|
|
<el-table-column label="" |
|
|
|
fixed="left" |
|
|
|
type="selection" |
|
|
|
align="center" |
|
|
|
width="50" /> |
|
|
|
<el-table-column label="序号" |
|
|
|
fixed="left" |
|
|
|
type="index" |
|
|
@ -241,6 +255,17 @@ |
|
|
|
<span v-else>--</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="status" |
|
|
|
align="center" |
|
|
|
label="痛点难点" |
|
|
|
width="80" |
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<span v-if="scope.row.difficultPoint==='1'">是</span> |
|
|
|
|
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column fixed="right" |
|
|
|
label="操作" |
|
|
@ -412,6 +437,8 @@ export default { |
|
|
|
|
|
|
|
showVoice: false, |
|
|
|
selVoiceUrl: '', |
|
|
|
|
|
|
|
multipleSelection: [] |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -440,6 +467,50 @@ export default { |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleSelectionChange (val) { |
|
|
|
this.multipleSelection = []; |
|
|
|
val.forEach(element => { |
|
|
|
this.multipleSelection.push(element.icEventId) |
|
|
|
}); |
|
|
|
console.log(this.multipleSelection) |
|
|
|
}, |
|
|
|
async handleMarkDiffcult () { |
|
|
|
const url = "/gov/project/icEvent/difficultpointevent" |
|
|
|
|
|
|
|
let params = { |
|
|
|
icEventIdList: this.multipleSelection, |
|
|
|
type: "1" |
|
|
|
} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
|
|
|
|
this.$message.success('标记成功') |
|
|
|
this.getTableData(); |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
async handleCancalDiffcult () { |
|
|
|
const url = "/gov/project/icEvent/difficultpointevent" |
|
|
|
|
|
|
|
let params = { |
|
|
|
icEventIdList: this.multipleSelection, |
|
|
|
type: "0" |
|
|
|
} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
|
|
|
|
this.$message.success('取消标记成功') |
|
|
|
this.getTableData(); |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
handleSearch (val) { |
|
|
|
console.log(this.formData); |
|
|
|