update 权限申请流程
This commit is contained in:
+6
-16
@@ -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)
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user