Browse Source

标记难点痛点

shibei_master
jiangyy 3 years ago
parent
commit
c8edf40a4e
  1. 4
      src/views/modules/shequzhili/event/cpts/event-detail.vue
  2. 71
      src/views/modules/shequzhili/event/eventList.vue

4
src/views/modules/shequzhili/event/cpts/event-detail.vue

@ -58,6 +58,10 @@
<span class="info-title-2">身份证号</span>
<span>{{ info.idCard?info.idCard:'--' }}</span>
</div>
<div class="info-prop">
<span class="info-title-2">痛点难点</span>
<span>{{ info.difficultPointName }}</span>
</div>
<div v-if="info.operationType==='1'"
class="info-prop">
<span class="info-title-2">已立项</span>

71
src/views/modules/shequzhili/event/eventList.vue

@ -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);

Loading…
Cancel
Save