|
|
|
@ -199,7 +199,7 @@ |
|
|
|
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">{{ $t('update') }}</el-button> |
|
|
|
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button> |
|
|
|
<el-button type="text" size="small" @click="handleDelete(scope.row.id)">{{ $t('delete') }}</el-button> |
|
|
|
<el-button v-if="scope.row.checkState === '0'" type="text" class="div-table-button--detail" size="small" |
|
|
|
@click="handleWatch(scope.row)">审核</el-button> |
|
|
|
</template> |
|
|
|
@ -281,6 +281,34 @@ export default { |
|
|
|
this.getValiheList() |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
async handleDelete(id) { |
|
|
|
this.$confirm("确认删除?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.deleteNat(id); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
if (err == "cancel") { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
async deleteNat(id) { |
|
|
|
const url = "/epmetuser/icVaccinePrarmeter/delete"; |
|
|
|
let params = [id]; |
|
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
|
if (code === 0) { |
|
|
|
this.$message({ |
|
|
|
type: "success", |
|
|
|
message: "删除成功", |
|
|
|
}); |
|
|
|
this.loadTable(); |
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 审核 |
|
|
|
async handleWatch(row) { |
|
|
|
await nextTick(); |
|
|
|
|