|
@@ -164,22 +164,46 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div slot="footer">
|
|
<div slot="footer">
|
|
|
- <el-form :model="form" label-width="100px">
|
|
|
|
|
- <el-form-item label="通知人">
|
|
|
|
|
- <ele-tree-select
|
|
|
|
|
- @change="handleTreeChange"
|
|
|
|
|
- filterable
|
|
|
|
|
- style="width: 100%"
|
|
|
|
|
- ref="treeSelect"
|
|
|
|
|
- multiple
|
|
|
|
|
- clearable
|
|
|
|
|
- :data="treeData"
|
|
|
|
|
- v-model="treeList"
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- valueKey="id"
|
|
|
|
|
- labelKey="name"
|
|
|
|
|
- :checkStrictly="true"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-form :model="form">
|
|
|
|
|
+ <el-form-item label="通知人:">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ style="float: left; margin-top: 5px"
|
|
|
|
|
+ icon="el-icon-circle-plus-outline"
|
|
|
|
|
+ round
|
|
|
|
|
+ @click="handleEditDataScope"
|
|
|
|
|
+ ></el-button>
|
|
|
|
|
+ <div style="display: flex; flex-direction: row; flex-wrap: wrap">
|
|
|
|
|
+ <el-tag
|
|
|
|
|
+ style="float: left; margin: 5px 5px 0 5px"
|
|
|
|
|
+ v-for="(item, index) in form.noticeScope"
|
|
|
|
|
+ :key="item.name"
|
|
|
|
|
+ effect="plain"
|
|
|
|
|
+ closable
|
|
|
|
|
+ :title="item.name"
|
|
|
|
|
+ @close="handleCloseTag(index)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{
|
|
|
|
|
+ item.name.length > 3
|
|
|
|
|
+ ? item.name[0] + item.name[1] + item.name[2] + '...'
|
|
|
|
|
+ : item.name
|
|
|
|
|
+ }}
|
|
|
|
|
+ </el-tag>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <ele-tree-select-->
|
|
|
|
|
+ <!-- @change="handleTreeChange"-->
|
|
|
|
|
+ <!-- filterable-->
|
|
|
|
|
+ <!-- style="width: 100%"-->
|
|
|
|
|
+ <!-- ref="treeSelect"-->
|
|
|
|
|
+ <!-- multiple-->
|
|
|
|
|
+ <!-- clearable-->
|
|
|
|
|
+ <!-- :data="treeData"-->
|
|
|
|
|
+ <!-- v-model="treeList"-->
|
|
|
|
|
+ <!-- placeholder="请选择"-->
|
|
|
|
|
+ <!-- valueKey="id"-->
|
|
|
|
|
+ <!-- labelKey="name"-->
|
|
|
|
|
+ <!-- :checkStrictly="true"-->
|
|
|
|
|
+ <!-- />-->
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<!-- <el-button-->
|
|
<!-- <el-button-->
|
|
@@ -198,6 +222,12 @@
|
|
|
<!-- </el-button>-->
|
|
<!-- </el-button>-->
|
|
|
<el-button type="primary" size="small" @click="submit">提交</el-button>
|
|
<el-button type="primary" size="small" @click="submit">提交</el-button>
|
|
|
<el-button size="small" @click="cancel">关闭</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>
|
|
|
</div>
|
|
</div>
|
|
|
</ele-modal>
|
|
</ele-modal>
|
|
|
</template>
|
|
</template>
|
|
@@ -217,15 +247,15 @@
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import { getByCode } from '@/api/system/dictionary-data';
|
|
import { getByCode } from '@/api/system/dictionary-data';
|
|
|
import { getGroupUserTree, getProduceTreeByCode } from '@/api/main';
|
|
import { getGroupUserTree, getProduceTreeByCode } from '@/api/main';
|
|
|
-
|
|
|
|
|
|
|
+ import visibilityRangeDialog from './visibilityRangeDialog.vue';
|
|
|
import { getModel } from '@/api/bpm/model';
|
|
import { getModel } from '@/api/bpm/model';
|
|
|
import { getProcessDefinitionList } from '@/api/bpm/definition';
|
|
import { getProcessDefinitionList } from '@/api/bpm/definition';
|
|
|
import { getToken } from '@/utils/token-util';
|
|
import { getToken } from '@/utils/token-util';
|
|
|
- import {mapGetters} from "vuex";
|
|
|
|
|
|
|
+ import { mapGetters } from 'vuex';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'processSubmitDialog',
|
|
name: 'processSubmitDialog',
|
|
|
- components: {},
|
|
|
|
|
|
|
+ components: { visibilityRangeDialog },
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
|
props: {
|
|
props: {
|
|
|
processSubmitDialogFlag: {
|
|
processSubmitDialogFlag: {
|
|
@@ -240,6 +270,7 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ visibilityRangeDialogFlag: false,
|
|
|
isRight: false,
|
|
isRight: false,
|
|
|
jsonData: {},
|
|
jsonData: {},
|
|
|
form: {
|
|
form: {
|
|
@@ -276,14 +307,14 @@
|
|
|
rules: {}
|
|
rules: {}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
- computed:{
|
|
|
|
|
- ...mapGetters(['user']),
|
|
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ ...mapGetters(['user'])
|
|
|
},
|
|
},
|
|
|
async created() {
|
|
async created() {
|
|
|
let typeObj = await getProduceTreeByCode(
|
|
let typeObj = await getProduceTreeByCode(
|
|
|
treeClassifyCodeEnum['PROCESSTYPE']
|
|
treeClassifyCodeEnum['PROCESSTYPE']
|
|
|
);
|
|
);
|
|
|
- await this.getTreeData();
|
|
|
|
|
|
|
+ // await this.getTreeData();
|
|
|
this.LCFLList = typeObj[0].children;
|
|
this.LCFLList = typeObj[0].children;
|
|
|
|
|
|
|
|
// 获得角色列表
|
|
// 获得角色列表
|
|
@@ -346,13 +377,12 @@ this.postOptions.push(...response.data);
|
|
|
this.jsonData.list.forEach((item) => {
|
|
this.jsonData.list.forEach((item) => {
|
|
|
console.log(item.type);
|
|
console.log(item.type);
|
|
|
if (item.type == 'deptAndUserCascader') {
|
|
if (item.type == 'deptAndUserCascader') {
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
if (item.type == 'deptCascader') {
|
|
if (item.type == 'deptCascader') {
|
|
|
- this.form.valueJson[item.model] = this.user.info.groupId
|
|
|
|
|
|
|
+ this.form.valueJson[item.model] = this.user.info.groupId;
|
|
|
}
|
|
}
|
|
|
if (item.type == 'userSelect') {
|
|
if (item.type == 'userSelect') {
|
|
|
- this.form.valueJson[item.model] = this.user.info.userId
|
|
|
|
|
|
|
+ this.form.valueJson[item.model] = this.user.info.userId;
|
|
|
}
|
|
}
|
|
|
if (item.type == 'imgupload') {
|
|
if (item.type == 'imgupload') {
|
|
|
// this.form.valueJson[item.model].length &&
|
|
// this.form.valueJson[item.model].length &&
|
|
@@ -402,6 +432,18 @@ this.postOptions.push(...response.data);
|
|
|
processDefinitionId: find.processDefinitionId
|
|
processDefinitionId: find.processDefinitionId
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ handleEditDataScope() {
|
|
|
|
|
+ this.visibilityRangeDialogFlag = true;
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs.visibilityRangeDialogRef.init(this.form);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ getTreeList(list) {
|
|
|
|
|
+ this.form.noticeScope = list;
|
|
|
|
|
+ },
|
|
|
|
|
+ handleCloseTag(index) {
|
|
|
|
|
+ this.form.noticeScope.splice(index, 1);
|
|
|
|
|
+ },
|
|
|
getAssignRuleOptionName(row, option) {
|
|
getAssignRuleOptionName(row, option) {
|
|
|
if (row.type == 10) {
|
|
if (row.type == 10) {
|
|
|
for (const roleOption of this.roleOptions) {
|
|
for (const roleOption of this.roleOptions) {
|