同步赵磊代码

This commit is contained in:
shangguochao 2022-07-05 20:08:04 +08:00
parent ebe29253d7
commit 234b075910

View File

@ -129,7 +129,7 @@
:close-on-press-escape=true
:before-close="handleCloseSystem"
width="600px">
<div style="border: 1px solid #F2F2F2;padding: 0px 10px 10px 10px;">
<div style="border: 1px solid #F2F2F2;padding: 0px 10px 10px 10px;" >
<awsui-form :model="ModelsetUpDialog.systemForm" :rules="ModelsetUpDialog.rules" ref="systemForm"
label-position="top">
@ -225,6 +225,7 @@
//
ModelsetUpDialog: {
loading: false,
dialogVisible: false,
systemMethod: 'default',// defaultcustom
systemTitle: '名称录入',//
@ -235,6 +236,7 @@
repositoryPathData:"",
method:"",
systemType: '1',
category:"",
SystemTypeOptions: [
{
"label" : '制度',
@ -289,12 +291,13 @@
mounted() {
bus.$on("getisDisabled",data =>{
this.dis=data;
});
},
methods: {
initData() {
const that = this;
that.loadingText = '加载中';
that.loading = true;
if (that.$store.getters.getTeamIdFn && that.$store.getters.getTeamIdFn != '') {
const data = {
url: 'jd',
@ -549,13 +552,13 @@
//ModelsetUpDialog
createModelsetUp(method) {//
this.ModelsetUpDialog.systemMethod = method;
this.ModelsetUpDialog.systemForm.method = method;
this.ModelsetUpDialog.systemTitle = '名称录入';
this.ModelsetUpDialog.dialogVisible = true;
this.closeCreatePopover();
},
createFolderSave(formName) {//
debugger;
const that = this;
that.$refs[formName].validate((valid) => {
if (valid) {
@ -604,30 +607,47 @@
//
createSystemSave(formName) {//
const that = this;
that.$refs[formName].validate((valid) => {
if (valid) {
debugger;
const checkdata = {
url:'jd',
data:{
cmd: 'com.actionsoft.apps.coe.pal_pl_repository_designer_checkname',
title: that.ModelsetUpDialog.systemForm.name
title: that.ModelsetUpDialog.systemForm.name,
method:that.ModelsetUpDialog.systemForm.method,
}
};
//
awsuiAxios.post(checkdata).then(function (ro) {
if (ro.data.result == 'ok') {
const nodeData = that.$refs.tree.getCurrentNode();
const parentId = nodeData.id;
const wsId = that.$store.getters.getWsIdFn;
const teamId = that.$store.getters.getTeamIdFn;
const data = {
url:'jd',
data:{
cmd: 'com.actionsoft.apps.coe.pal_pl_repository_designer_updatetitle',
uuid: that.ModelsetUpDialog.systemForm.uuid,
title: that.ModelsetUpDialog.systemForm.name,
url: 'jd',
data: {
cmd: 'com.actionsoft.apps.coe.pal_processlevel_repository_create_save_Designer',
wsId: wsId,
teamId: teamId,
category: that.ModelsetUpDialog.systemForm.category,
method: that.ModelsetUpDialog.systemForm.method,
parentId: parentId,
container: '_blank',//
name:that.ModelsetUpDialog.systemForm.name
}
};
//
awsuiAxios.post(data).then(function (ro) {
if (ro.result == 'ok') {
that.ModelsetUpDialog.systemForm.uuid=ro.data.id;
that.ModelsetUpDialog.systemForm.parentId=parentId;
const data = {
url:'jd',
data:{
@ -641,6 +661,7 @@
};
//
awsuiAxios.post(data).then(function (ro) {
if (ro.result == 'ok') {
that.ModelsetUpDialog.dialogVisible = false;
that.openRepositoryList(that.ModelsetUpDialog.systemForm.parentId);
@ -656,10 +677,8 @@
console.log(error);
})
} else {
that.$message.error(ro.msg);
}
}).catch(error=>{
}).catch(error => {
console.log(error);
})
} else {
@ -695,43 +714,29 @@
this.securityFileList.push(file);
this.securityType = "create";
this.securityVisible = true;
}else{
const form = this.ModelsetUpDialog.systemForm;
form.method = method;
}else {
const nodeData = that.$refs.tree.getCurrentNode();
const parentId = nodeData.id;
const wsId = that.$store.getters.getWsIdFn;
const teamId = that.$store.getters.getTeamIdFn;
const data = {
url: 'jd',
data: {
cmd: 'com.actionsoft.apps.coe.pal_processlevel_repository_create_save',
wsId: wsId,
teamId: teamId,
category: category,
method: method,
cmd: 'com.actionsoft.apps.coe.getArchitecturePath',
parentId: parentId,
container: '_blank'//
}
};
//
awsuiAxios.post(data).then(function (ro) {
if (ro.result == 'ok') {
// id
that.ModelsetUpDialog.systemForm.repositoryPathData=ro.data.repositoryPathData;
that.ModelsetUpDialog.systemForm.uuid=ro.data.id;
that.ModelsetUpDialog.systemForm.parentId=parentId;
that.createModelsetUp(method);
// id
that.ModelsetUpDialog.systemForm.repositoryPathData = ro.data.repositoryPathData;
that.ModelsetUpDialog.systemForm.parentId = parentId;
that.createModelsetUp(method);
}
}).catch(error => {
console.log(error);
})
}
},
uploadServer(){