pal关联模型dialog使用pal流程树dialog替代
This commit is contained in:
parent
9e417c85a7
commit
ec844873e8
@ -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();
|
||||||
|
|||||||
@ -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="" readonly placeholder="请选择流程架构" @click.native="choiceRelationComponent('')"></awsui-input>
|
<awsui-input v-model="frameworkSearchInput" size="large" suffixIcon="" 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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user