|
|
@@ -223,12 +223,12 @@
|
|
|
<!-- </el-button>-->
|
|
|
<el-button type="primary" size="small" @click="submit">提交</el-button>
|
|
|
<el-button size="small" @click="cancel">关闭</el-button>
|
|
|
-<!-- <visibility-range-dialog-->
|
|
|
-<!-- :visibilityRangeDialogFlag.sync="visibilityRangeDialogFlag"-->
|
|
|
-<!-- v-if="visibilityRangeDialogFlag"-->
|
|
|
-<!-- @getTreeList="getTreeList"-->
|
|
|
-<!-- ref="visibilityRangeDialogRef"-->
|
|
|
-<!-- ></visibility-range-dialog>-->
|
|
|
+ <!-- <visibility-range-dialog-->
|
|
|
+ <!-- :visibilityRangeDialogFlag.sync="visibilityRangeDialogFlag"-->
|
|
|
+ <!-- v-if="visibilityRangeDialogFlag"-->
|
|
|
+ <!-- @getTreeList="getTreeList"-->
|
|
|
+ <!-- ref="visibilityRangeDialogRef"-->
|
|
|
+ <!-- ></visibility-range-dialog>-->
|
|
|
<staffSelection
|
|
|
ref="staffSelection"
|
|
|
@confirm="getTreeList"
|
|
|
@@ -257,10 +257,10 @@
|
|
|
import { getProcessDefinitionList } from '@/api/bpm/definition';
|
|
|
import { getToken } from '@/utils/token-util';
|
|
|
import { mapGetters } from 'vuex';
|
|
|
-import staffSelection from '@/components/staffSelection/staffSelection.vue';
|
|
|
+ import staffSelection from '@/components/staffSelection/staffSelection.vue';
|
|
|
export default {
|
|
|
name: 'processSubmitDialog',
|
|
|
- components: { visibilityRangeDialog,staffSelection },
|
|
|
+ components: { visibilityRangeDialog, staffSelection },
|
|
|
mixins: [dictMixins],
|
|
|
props: {
|
|
|
processSubmitDialogFlag: {
|
|
|
@@ -383,10 +383,14 @@ this.postOptions.push(...response.data);
|
|
|
if (item.type == 'deptAndUserCascader') {
|
|
|
}
|
|
|
if (item.type == 'deptCascader') {
|
|
|
- this.form.valueJson[item.model] = this.user.info.groupId;
|
|
|
+ if (item.options.isDefaultLoginUser) {
|
|
|
+ this.form.valueJson[item.model] = this.user.info.groupId;
|
|
|
+ }
|
|
|
}
|
|
|
if (item.type == 'userSelect') {
|
|
|
- this.form.valueJson[item.model] = this.user.info.userId;
|
|
|
+ if (item.options.isDefaultLoginUser) {
|
|
|
+ this.form.valueJson[item.model] = this.user.info.userId;
|
|
|
+ }
|
|
|
}
|
|
|
if (item.type == 'imgupload') {
|
|
|
// this.form.valueJson[item.model].length &&
|
|
|
@@ -445,8 +449,8 @@ this.postOptions.push(...response.data);
|
|
|
},
|
|
|
getTreeList(list) {
|
|
|
list.forEach((item) => {
|
|
|
- item.type = 1
|
|
|
- })
|
|
|
+ item.type = 1;
|
|
|
+ });
|
|
|
this.form.noticeScope = list;
|
|
|
},
|
|
|
handleCloseTag(index) {
|