Ver a proveniência

Merge branch '长阳分支中职' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl into 长阳分支中职

怀来职教中心中职
ndbs há 1 ano
ascendente
cometimento
f01b295fdc
2 ficheiros alterados com 25 adições e 8 eliminações
  1. +25
    -8
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue
  2. BIN
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/static/logo.dc7ee5a9.png

+ 25
- 8
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue Ver ficheiro

@@ -60,12 +60,12 @@
<l-modal v-model="modal" @close="reviewer = ''" title="指派审核人"> <l-modal v-model="modal" @close="reviewer = ''" title="指派审核人">
<l-checkbox-picker @input="(e)=>{reviewer = e}" :value="reviewer" :readonly="false" :range="reviewerList" <l-checkbox-picker @input="(e)=>{reviewer = e}" :value="reviewer" :readonly="false" :range="reviewerList"
required title="审核人" /> required title="审核人" />
<l-button @click="userAssign" color="blue" class="block" block>确定指派</l-button>
<l-button @click="userAssign" :disabled="userAssignDisable" color="blue" class="block" block>确定指派</l-button>
<l-button @click="()=>{modal = false;reviewer = ''}" line="blue" class="block margin-top-sm" block>取消</l-button> <l-button @click="()=>{modal = false;reviewer = ''}" line="blue" class="block margin-top-sm" block>取消</l-button>
</l-modal> </l-modal>


<view class="padding margin-top bg-white"> <view class="padding margin-top bg-white">
<l-button @click="submit" class="block" size="lg" color="green" block>提交流程{{ typeText }}</l-button>
<l-button @click="submit" :disabled="submitDisable" class="block" size="lg" color="green" block>提交流程{{ typeText }}</l-button>
</view> </view>
<view class="pswd-uni-mask" v-if="passshow"> <view class="pswd-uni-mask" v-if="passshow">
@@ -136,7 +136,10 @@ export default {
canvasW:'', canvasW:'',
canvasH:'', canvasH:'',
signshow:false, signshow:false,
ConfirmSign:''
ConfirmSign:'',
submitDisable:false,
userAssignDisable:false,
} }
}, },


@@ -266,8 +269,14 @@ export default {
} }
// let formdata = new FormData() // let formdata = new FormData()
// formdata.append("data",this.taskParam.formreq) // formdata.append("data",this.taskParam.formreq)
this.userAssignDisable = true
uni.showLoading({
title: '提交中...'
});
const res = await this.HTTP_POST('learun/adms/newwf/instance', this.taskParam.formreq, `指派审核人时发生错误`) const res = await this.HTTP_POST('learun/adms/newwf/instance', this.taskParam.formreq, `指派审核人时发生错误`)
if(!res){ if(!res){
this.userAssignDisable = false
uni.hideLoading();
return return
} }
@@ -281,9 +290,11 @@ export default {
) )
if (!success) { if (!success) {
this.userAssignDisable = false
uni.hideLoading();
return return
} }
uni.hideLoading();
this.EMIT('task-list-change') this.EMIT('task-list-change')
this.NAV_BACK(2) this.NAV_BACK(2)
this.TOAST(`已成功提交${this.typeText}`, 'success') this.TOAST(`已成功提交${this.typeText}`, 'success')
@@ -302,6 +313,11 @@ export default {
return false; return false;
} }
this.submitDisable = true
uni.showLoading({
title: '提交中...'
});
const postData = { const postData = {
operationCode: this.taskParam.code, operationCode: this.taskParam.code,
operationName: this.taskParam.name, operationName: this.taskParam.name,
@@ -392,6 +408,8 @@ export default {
) )
if (!success) { if (!success) {
this.submitDisable = false
uni.hideLoading();
return return
} }
@@ -409,15 +427,13 @@ export default {
}) })
this.submitPostData = postData this.submitPostData = postData
if(this.reviewerList.length>1){ if(this.reviewerList.length>1){
this.submitDisable = false
uni.hideLoading();
this.modal = true this.modal = true
return return
} }
} }
uni.showLoading({
title: '提交中...'
});
@@ -428,6 +444,7 @@ export default {
) )
if (!success) { if (!success) {
this.submitDisable = false
uni.hideLoading(); uni.hideLoading();
return return
} }


BIN
Learun.Framework.Ultimate V7/LearunApp-2.2.0/static/logo.dc7ee5a9.png Ver ficheiro

Antes Depois
Largura: 108  |  Altura: 108  |  Tamanho: 20 KiB Largura: 1771  |  Altura: 1771  |  Tamanho: 1.2 MiB

Carregando…
Cancelar
Guardar