|
|
@ -220,9 +220,7 @@ |
|
|
|
" @click="handleWatch(scope.row)" type="text" size="small" class="">去评价</el-button> |
|
|
|
<el-button v-else @click="handleWatch(scope.row)" type="text" size="small">查看</el-button> |
|
|
|
<el-button @click="handleDel(scope.row)" type="text" size="small" class="">删除</el-button> |
|
|
|
<el-button @click="handleVote(scope.row)" type="text" size="small" class="">{{scope.row.openFlag === 0 ? '开启表决' : '关闭表决'}}</el-button> |
|
|
|
|
|
|
|
|
|
|
|
<el-button @click="handleVote(scope.row)" type="text" size="small" class="">开启表决</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -643,23 +641,16 @@ export default { |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
async handleVote(row){ |
|
|
|
const url = "/governance/icEventOld/updateSpecialColumn"; |
|
|
|
const url = "/governance/icEventOld/reply"; |
|
|
|
let params = { |
|
|
|
|
|
|
|
conten:row.eventContent, |
|
|
|
icEventId:row.icEventId, |
|
|
|
openFlag:row.openFlag==1?0:1, |
|
|
|
|
|
|
|
operationType:"operationType" |
|
|
|
} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
this.$message.success("操作成功!"); |
|
|
|
this.getTableData(); |
|
|
|
} else { |
|
|
|
this.$message.error("操作失败!"); |
|
|
|
} |
|
|
|
|
|
|
|
console.log(data); |
|
|
|
}, |
|
|
|
async handleDel(rowData) { |
|
|
|
let message = "确认删除?"; |
|
|
|