From 43ed2d886f1cc3b2cf27258efcdb39f47cc3ec94 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 20 六月 2024 11:44:44 +0800 Subject: [PATCH] 完善启动流程以及预制对象-接口获取用户信息存储本地修改获取用户信息方法 --- Source/plt-web/plt-web-ui/src/components/actions/base/startWorkFlow.vue | 39 ++++++++++++++++++++++++++++++--------- 1 files changed, 30 insertions(+), 9 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/components/actions/base/startWorkFlow.vue b/Source/plt-web/plt-web-ui/src/components/actions/base/startWorkFlow.vue index 5c8cdb1..ea93acf 100644 --- a/Source/plt-web/plt-web-ui/src/components/actions/base/startWorkFlow.vue +++ b/Source/plt-web/plt-web-ui/src/components/actions/base/startWorkFlow.vue @@ -26,9 +26,9 @@ </el-form> <el-divider></el-divider> - <div class="btns-icon"> - <el-button circle icon="el-icon-star-off" @click="handleCollect"></el-button> - </div> +<!-- <div class="btns-icon">--> +<!-- <el-button circle icon="el-icon-star-off" @click="handleCollect"></el-button>--> +<!-- </div>--> <el-form :model="collectParam" class="demo-form-inline" label-position="left" label-width="auto"> <el-form-item v-for="(item, index) in initFrom" :key="index" :label="item.taskName"> <el-select v-model="collectParam.flowTaskUsers[index]['userId']" :placeholder="item.taskName" filterable @@ -70,11 +70,16 @@ data() { return { visible: false, - saveParam: {}, - users: [], - collectParam: {}, - initFrom: [], - typeName: [], + saveParam: {}, // 瀵硅薄鍖呭惈 {modelName娴佺▼妯℃澘(鐢辨帴鍙h繑鍥炲綋鍓嶆祦绋嬫ā鏉�) , processName娴佺▼鍚嶇О锛堜负褰撳墠鐢ㄦ埛+'鍚姩娴佺▼'+褰撳墠鍒嗙被锛� , processDesc娴佺▼鎻忚堪 } + initFrom: [], // 褰撳墠娴佺▼鑺傜偣寰幆鏁扮粍 + collectParam: {}, // 娴佺▼鑺傜偣涓嬫媺妗嗗弻鍚戠粦瀹氬睘鎬� + typeName: [], // 娴佺▼鑺傜偣option寰幆閫夐」 + rules: { + processName: [ + { required: true, message: '娴佺▼鍚嶇О涓嶈兘涓虹┖', trigger: 'blur' }, + { min: 3, max: 50, message: '闀垮害鍦� 3 鍒� 50 涓瓧绗�', trigger: 'blur' } + ] + } } }, watch: { @@ -87,7 +92,7 @@ }, parameter: { handler(newval, oldval) { - this.saveParam = Object.assign({processName: '', processDesc: ''}, newval); + this.saveParam = Object.assign({processName: '', processDesc: '' , }, newval); }, deep: true, immediate: true @@ -114,6 +119,9 @@ } }, }, + mounted() { + this.modelNameChange(); + }, methods: { // 鍏抽棴寮圭獥 dialogClose() { @@ -133,7 +141,20 @@ }, handleConfirm() { + console.log(this.paramVOS) + }, + // 娴佺▼鍚嶇О鍒濆鍖栫粦瀹� + modelNameChange(){ + var userInfo = JSON.parse(localStorage.getItem('saber-userInfo')); + + if (this.paramVOS && this.paramVOS.modelName) { + this.saveParam.modelName = this.paramVOS.modelName; + } else if (userInfo.content && userInfo.content.userName) { + this.saveParam.modelName = userInfo.content.userName + '[鍚姩娴佺▼]'; + } else { + this.saveParam.modelName = ''; + } } } } -- Gitblit v1.9.3