update 权限申请流程

This commit is contained in:
danshihao
2023-12-01 15:28:36 +08:00
parent 94c3a20ac5
commit 281938eb7b
18 changed files with 537 additions and 192 deletions
@@ -370,25 +370,15 @@ export default {
*/
handleSubmit () {
if (this.loading) return
this.loading = true
let fn
let pass
switch (this.currentNode) {
case EsInspectionProcess.initiate.value:
fn = startInspectProcess
break
default:
fn = approvalInspectProcess
pass = true
break
// 发起流程并且没有被驳回,调发起接口,否则调审批接口
if (this.currentNode === EsInspectionProcess.initiate.value && this.$route.query.taskId) {
this.handleAgree()
return
}
this.loading = true
this.getPageParams().then(res => {
console.log(res)
// 如果是审批,就默认pass为true
if (pass && res.map) {
res.map.pass = pass
}
return fn && fn(res)
return startInspectProcess(res)
}).then(res => {
if (res.success) {
this.$message.success(res.message)
@@ -11,7 +11,7 @@
<a-spin :spinning="confirmLoading">
<div class="table-operator" v-if="!disabled">
<!-- 新增 -->
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'enterpriseStandard:add'">{{ $t('newlyAdded') }}</a-button>
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
</div>
<j-table
v-if="columns && columns.length > 0"
@@ -16,7 +16,7 @@
</p>
<div class="table-operator" v-if="!disabled">
<!-- 新增 -->
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'enterpriseStandard:add'">{{ $t('newlyAdded') }}</a-button>
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
</div>
<j-table
v-if="columns && columns.length > 0"
@@ -16,7 +16,7 @@
</p>
<div class="table-operator" v-if="!disabled">
<!-- 新增 -->
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'enterpriseStandard:add'">{{ $t('newlyAdded') }}</a-button>
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
</div>
<j-table
v-if="columns && columns.length > 0"
@@ -2,7 +2,7 @@
<div>
<div class="table-operator" v-if="isInitiate">
<!-- 新增 -->
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'enterpriseStandard:add'">{{ $t('newlyAdded') }}</a-button>
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
</div>
<div>
<j-table