pal关联模型dialog使用pal流程树dialog替代

This commit is contained in:
446052889@qq.com 2022-11-14 16:09:36 +08:00
parent 9e417c85a7
commit ec844873e8
2 changed files with 27 additions and 34 deletions

View File

@ -140,7 +140,7 @@
closeDlalog(type) {// / closeDlalog(type) {// /
if (type == 'save') { if (type == 'save') {
let result = []; let result = [];
if (this.checkbox) {// if (this.multiple) {//
result = this.$refs.tree.getCheckedNodes(); result = this.$refs.tree.getCheckedNodes();
} else {// } else {//
const node = this.$refs.tree.getCurrentNode(); const node = this.$refs.tree.getCurrentNode();

View File

@ -44,7 +44,7 @@
<!-- </div>--> <!-- </div>-->
<!-- 流程架构 --> <!-- 流程架构 -->
<div class="head-title" style="float: right;width: 200px;padding-right: 20px;"> <div class="head-title" style="float: right;width: 200px;padding-right: 20px;">
<awsui-input v-model="frameworkSearchInput" size="large" suffixIcon="&#xe6e9;" readonly placeholder="请选择流程架构" @click.native="choiceRelationComponent('')"></awsui-input> <awsui-input v-model="frameworkSearchInput" size="large" suffixIcon="&#xe6e9;" readonly placeholder="请选择流程架构" @click.native="choicePalProcessTree()"></awsui-input>
</div> </div>
<div class="head-title" style="float: right;"> <div class="head-title" style="float: right;">
<el-checkbox-group v-model="frameworkSelect" size="small"> <el-checkbox-group v-model="frameworkSelect" size="small">
@ -192,21 +192,17 @@
</awsui-sidebar> </awsui-sidebar>
<iframe style="display: none" id='downloadIframe' ></iframe> <iframe style="display: none" id='downloadIframe' ></iframe>
<!-- 选择流程架构 --> <!-- 选择流程架构 -->
<pal-relation-address <PALRepositoryTree
ref="palRelationAddress" ref="palRepositoryAddress"
:visible.sync="palRelationAddressVisible" :visible.sync="palRepositoryAddress.visible"
v-on:cancel="palRelationAddressVisible = false" :wsId="palRepositoryAddress.wsId"
v-on:getResult="saveRelationResult" :teamId="palRepositoryAddress.teamId"
:title="relation.title" :categorys="palRepositoryAddress.categorys"
:selectFileId="relation.selectFileId" :multiple=true
:selectShapeId="relation.selectShapeId" v-on:cancel="palRepositoryAddress.visible = false"
:relationType="relation.relationType" v-on:getResult="savePalRepositoryAddressResult"
:categorys="relation.category" :title="palRepositoryAddress.title"
:methods="relation.method" ></PALRepositoryTree>
:wsId="relation.wsId"
:teamId="relation.teamId"
:multiple = relation.multiple
/>
<BPMOrgAddress <BPMOrgAddress
ref="palAwsOrgAddress" ref="palAwsOrgAddress"
:visible.sync="bpmOrgAddress.visible" :visible.sync="bpmOrgAddress.visible"
@ -225,6 +221,7 @@
import awsuiAxios from "../awsuiAxios"; import awsuiAxios from "../awsuiAxios";
import {openDesigner} from "../api/commonFun"; import {openDesigner} from "../api/commonFun";
import PalRelationAddress from "@/components/common/PalRelationAddress/index.js"; import PalRelationAddress from "@/components/common/PalRelationAddress/index.js";
import PALRepositoryTree from "@/components/common/PALRepositoryTree/index.js";
import BPMOrgAddress from "@/components/common/BPMOrgAddress/index.js";// pal簿 import BPMOrgAddress from "@/components/common/BPMOrgAddress/index.js";// pal簿
let levelOptions = levelSelect; let levelOptions = levelSelect;
let levelValue = defaultSelectVal; let levelValue = defaultSelectVal;
@ -237,7 +234,8 @@
components: { components: {
draggable, draggable,
PalRelationAddress, PalRelationAddress,
BPMOrgAddress BPMOrgAddress,
PALRepositoryTree
}, },
data() { data() {
return { return {
@ -263,18 +261,13 @@
frameworkSelect: ['L1'], frameworkSelect: ['L1'],
frameworkSearchInput: 'aaa', frameworkSearchInput: 'aaa',
issuingDeptment: 'xxxx', issuingDeptment: 'xxxx',
palRelationAddressVisible: false, palRepositoryAddress: {// pal
relation: { visible: false,
title: '选择流程', title: '选择流程',
selectFileId: '',
selectShapeId: '',
relationType: 'file',
category: 'process',
method: '',
wsId: wsId, wsId: wsId,
teamId: teamId, teamId: teamId,
multiple: true, categorys: 'process',
isRequired: false type: 'batch'
}, },
bpmOrgAddress: { bpmOrgAddress: {
title: '选择发布部门', title: '选择发布部门',
@ -532,14 +525,14 @@
that.customTableUncheckedData = []; that.customTableUncheckedData = [];
that.saveTableColumnConfig(); that.saveTableColumnConfig();
}, },
choiceRelationComponent(fileIds) {// PAL/ choicePalProcessTree() {//
this.relation.selectFileId = fileIds;// id this.palRepositoryAddress.visible = true;
this.palRelationAddressVisible = true;
}, },
// savePalRepositoryAddressResult(data) {//
saveRelationResult(data) { this.palRepositoryAddress.visible = false;
console.log(data) //
this.palRelationAddressVisible = false; const that = this;
console.log(data);
}, },
choiceAwsOrgComponent() {// AWS// choiceAwsOrgComponent() {// AWS//
this.bpmOrgAddress.visible = true; this.bpmOrgAddress.visible = true;