Browse Source

Merge branch 'dev_ljj_samll_adjust'

V1.0
jianjun 3 years ago
parent
commit
22fb5bc53e
  1. 27
      src/views/modules/shequzhili/event/eventList.vue

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

@ -317,6 +317,10 @@
@click="handleWatch(scope.row)" @click="handleWatch(scope.row)"
type="text" type="text"
size="small">查看</el-button> size="small">查看</el-button>
<el-button @click="handleDel(scope.row)"
type="text"
size="small"
class="div-table-button--delete">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -694,15 +698,22 @@ export default {
this.getTableData(); this.getTableData();
}, },
async handleDel (rowData, rowIndex) { async handleDel (rowData) {
console.log(rowData, rowIndex); let message = "确认删除?";
const url =
"/heart/iccommunityselforganization/delcommunityselforganization";
const { tableData } = this;
const { data, code, msg } = await requestPost(url, { this.$confirm(message, "提示", {
orgId: tableData[rowIndex].orgId, confirmButtonText: "确定",
}); cancelButtonText: "取消",
type: "warning",
}).then(() => {
this.delEvent(rowData.icEventId);
}).catch((err) => { });
},
async delEvent (eventId){
const url = "/gov/project/icEvent/delete";
let idsArr = [eventId];
const { data, code, msg } =await requestPost(url, idsArr);
if (code === 0) { if (code === 0) {
this.$message.success("删除成功!"); this.$message.success("删除成功!");

Loading…
Cancel
Save