|
|
@ -75,7 +75,7 @@ |
|
|
|
:show-overflow-tooltip="true"> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="name" align="center" width="100" label="任务状态" :show-overflow-tooltip="true"> |
|
|
|
<el-table-column prop="taskState" align="center" width="100" label="任务状态" :show-overflow-tooltip="true"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.taskState === 'resolved' ? '已完成' : scope.row.taskState === 'cancel' ? '已取消' : '进行中' }}</span> |
|
|
|
</template> |
|
|
@ -91,7 +91,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button @click=" handleInfo(scope.row)" type="text" size="small">查看</el-button> |
|
|
|
<!-- 取消操作需要做密码校验 --> |
|
|
|
<el-button @click="handleCancel(scope.row)" type="text" size="small" class="">取消</el-button> |
|
|
|
<el-button v-if="scope.row.taskState=='deal'" @click="handleCancel(scope.row)" type="text" size="small" class="">取消</el-button> |
|
|
|
<!-- 取消后可进行删除 --> |
|
|
|
<el-button @click="handleDel(scope.row)" type="text" size="small" class="">删除</el-button> |
|
|
|
</template> |
|
|
@ -210,9 +210,21 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
this.getTableData() |
|
|
|
// this.getOrgTreeList() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async handleCancel(item){ |
|
|
|
let parms = { |
|
|
|
id:item.id, |
|
|
|
|
|
|
|
}; |
|
|
|
let {data,code} = await requestPost('/actual/base/communityOneTablePublish/cancelTask',parms) |
|
|
|
console.log(data,"lkjdsflk"); |
|
|
|
if (code==0) { |
|
|
|
this.pageNo=1 |
|
|
|
this.getTableData() |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
async getStafflist() { |
|
|
|
let parms = { |
|
|
|
orgId:this.$store.state.user.agencyId, |
|
|
@ -235,15 +247,6 @@ export default { |
|
|
|
handleInfo() { |
|
|
|
this.pageType = 'info' |
|
|
|
}, |
|
|
|
// handleChangeAgency(val) { |
|
|
|
// this.sarr = [] |
|
|
|
// this.getLastItem( |
|
|
|
// this.orgOptions, |
|
|
|
// val, |
|
|
|
// "agencyId" |
|
|
|
// ); |
|
|
|
// this.level = this.sarr[this.sarr.length - 1].level |
|
|
|
// }, |
|
|
|
getLastItem(list, vals, key) { |
|
|
|
let LIST = list || []; |
|
|
|
for (let item of LIST) { |
|
|
@ -257,21 +260,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// getOrgTreeList() { |
|
|
|
// this.$http |
|
|
|
// .post('/gov/org/customeragency/agencygridtree', {}) |
|
|
|
// .then(({ data: res }) => { |
|
|
|
// if (res.code !== 0) { |
|
|
|
// return this.$message.error(res.msg) |
|
|
|
// } else { |
|
|
|
// this.orgOptions = [] |
|
|
|
// this.orgOptions.push(res.data) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// .catch(() => { |
|
|
|
// return this.$message.error('网络错误') |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
handleSizeChange(val) { |
|
|
|
this.pageSize = val; |
|
|
|
window.localStorage.setItem("pageSize", val); |
|
|
|