更新
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<div class="titleBox">
|
||||
<PageTitle title="我的布控">
|
||||
<el-button type="primary" @click="sendControl('add',null)">发起布控</el-button>
|
||||
<el-button type="primary" @click="handleAdd('add',null)">发起布控</el-button>
|
||||
<el-button type="primary">导出</el-button>
|
||||
</PageTitle>
|
||||
</div>
|
||||
@ -47,8 +47,8 @@
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-link type="primary" size="small" @click="sendControl('detail',row)">详情</el-link>
|
||||
<el-link type="primary" size="small">送审</el-link>
|
||||
<el-link type="primary" size="small" @click="handleAdd('detail',row)">详情</el-link>
|
||||
<el-link type="primary" v-if="row.bkZt == '01'" size="small" @click="handleSend(row.id)">送审</el-link>
|
||||
<el-link type="danger" size="small" @click="handleRow(row.id)">删除</el-link>
|
||||
</template>
|
||||
</MyTable>
|
||||
@ -183,13 +183,23 @@ const openWarning = (val) =>{
|
||||
warningkdxForm.value.init(val)
|
||||
}
|
||||
|
||||
const sendControl = (type,row) => {
|
||||
const handleAdd = (type,row) => {
|
||||
addBkdxForm.value.init(type,row);
|
||||
};
|
||||
|
||||
// 送审
|
||||
const handleSend = (id) =>{
|
||||
proxy.$confirm("确定要送审?", "警告", { type: "warning" }).then(() => {
|
||||
qcckPost({}, "/mosty-gsxt/tbGsxtBk/subExamine/"+id).then(() => {
|
||||
proxy.$message({ type: "success", message: "送审成功" });
|
||||
getList();
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
const handleRow = (id) => {
|
||||
proxy.$confirm("确定要删除", "警告", { type: "warning" }).then(() => {
|
||||
proxy.$confirm("确定要删除?", "警告", { type: "warning" }).then(() => {
|
||||
qcckDelete({}, "/mosty-gsxt/tbGsxtBk/"+id).then(() => {
|
||||
proxy.$message({ type: "success", message: "删除成功" });
|
||||
getList();
|
||||
|
Reference in New Issue
Block a user