|
@@ -1,14 +1,14 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <div v-if="flag === 0">
|
|
|
+ <div v-if="flag === 0 && tool.checkAuth($route.name,'putSubmit')" class="inline-16">
|
|
|
<el-popconfirm
|
|
|
title="确定进行提交报备操作吗?"
|
|
|
@confirm="onSubmit"
|
|
|
>
|
|
|
- <el-button size="mini" slot="reference">提交报备</el-button>
|
|
|
+ <el-button size="mini" slot="reference">提交报备</el-button>
|
|
|
</el-popconfirm>
|
|
|
</div>
|
|
|
- <div v-else-if="flag === 1">
|
|
|
+ <div v-else-if="flag === 1 && tool.checkAuth($route.name,'putCheck')" class="inline-16">
|
|
|
<el-popconfirm
|
|
|
title="确定进行报备审核操作吗?"
|
|
|
@confirm="onCheck"
|
|
@@ -16,12 +16,12 @@
|
|
|
<el-button size="mini" slot="reference">报备审核</el-button>
|
|
|
</el-popconfirm>
|
|
|
</div>
|
|
|
- <div v-else-if="flag === 2" >
|
|
|
+ <div v-if="flag !== 0 && tool.checkAuth($route.name,'putBack') " class="inline-16">
|
|
|
<el-popconfirm
|
|
|
title="确定进行取消审核操作吗?"
|
|
|
@confirm="onUnCheck"
|
|
|
>
|
|
|
- <el-button size="mini" slot="reference">取消审核</el-button>
|
|
|
+ <el-button size="mini" slot="reference">报备驳回(退回)</el-button>
|
|
|
</el-popconfirm>
|
|
|
</div>
|
|
|
|
|
@@ -56,22 +56,9 @@ export default {
|
|
|
},
|
|
|
})
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
- this.$emit('putSuccess')
|
|
|
+ this.flag = 1
|
|
|
+ this.$emit('putSuccess',this.flag)
|
|
|
})
|
|
|
- /*this.$refs['form'].validate(async (valid) => {
|
|
|
- if (!valid) return false
|
|
|
- this.form.sa_projectid = this.rowData.sa_projectid
|
|
|
- const res = await this.$api.requested({
|
|
|
- "id": "20221021092302",
|
|
|
- "version":1,
|
|
|
- "content": this.form
|
|
|
- })
|
|
|
- this.tool.showMessage(res,()=>{
|
|
|
- this.$emit('onSuccess')
|
|
|
- this.$refs['form'].resetFields();
|
|
|
- this.dialogFormVisible = false
|
|
|
- })
|
|
|
- })*/
|
|
|
},
|
|
|
async onCheck(){
|
|
|
const res = await this.$api.requested({
|
|
@@ -82,7 +69,8 @@ export default {
|
|
|
},
|
|
|
})
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
- this.$emit('putSuccess')
|
|
|
+ this.flag = 2
|
|
|
+ this.$emit('putSuccess',this.flag)
|
|
|
})
|
|
|
},
|
|
|
async onUnCheck(){
|
|
@@ -94,7 +82,8 @@ export default {
|
|
|
},
|
|
|
})
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
- this.$emit('putSuccess')
|
|
|
+ this.flag = 0
|
|
|
+ this.$emit('putSuccess',this.flag)
|
|
|
})
|
|
|
},
|
|
|
async tagData(){
|