This commit is contained in:
zhal 2022-07-06 21:24:06 +08:00
commit 264c46f41c
9 changed files with 135 additions and 45 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -3,3 +3,6 @@ node_modules
dist
dist-ssr
*.local
AWSDevParams.js
AWSDevParams.js.bak
babel.config.js

View File

@ -1,9 +1,9 @@
module.exports = {
AWSPortalUrl: "http://localhost:8088/portal/",//aws平台启动地址用于开发时获取平台静态资源请求数据等注意最后的/,不要删)
AWSReleasePath: "/Users/actionsoft/Documents/workspace/IDEA/yili/release/", /*C:/work/workspace/release/*/ //aws的平台路径暂时写绝对路径用于build生成的主文件位置注意最后的/,不要删)
AWSReleasePath: "/Users/shangguochao/Desktop/Actionsoft/aws6/yiliProject/release/", /*C:/work/workspace/release/*/ //aws的平台路径暂时写绝对路径用于build生成的主文件位置注意最后的/,不要删)
devUserInfo: {//开发时通过用户名及密码获取sessionId前提必须需要安装并启动appcom.actionsoft.apps.getsession.app
userid: "admin", //具有后台管理的用户名
pwd: "admin", //密码
pwd: "2", //密码
deviceType: "pc",
}
}

View File

@ -19,7 +19,8 @@
:on-remove="handleRemove"
:before-remove="beforeRemove"
:on-success="handleSuccess"
:limit="1"
:limit="100"
multiple
:on-exceed="handleExceed"
:show-file-list="false"
>

View File

@ -0,0 +1,8 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
AWSDevParams.js
AWSDevParams.js.bak
babel.config.js

View File

@ -1,6 +1,6 @@
module.exports = {
AWSPortalUrl: "http://localhost:8088/portal/",//aws平台启动地址用于开发时获取平台静态资源请求数据等注意最后的/,不要删)
AWSReleasePath: "D:/worktools/6.4.2/release/", /*C:/work/workspace/release/*/ //aws的平台路径暂时写绝对路径用于build生成的主文件位置注意最后的/,不要删)
AWSReleasePath: "/Users/shangguochao/Desktop/Actionsoft/aws6/yiliProject/release/", /*C:/work/workspace/release/*/ //aws的平台路径暂时写绝对路径用于build生成的主文件位置注意最后的/,不要删)
moduleTemplateInAWS: "apps/install/com.actionsoft.apps.coe.pal/template/page/main.htm", /*apps/install/_bpm.platform/template/page/console.m.dw.design.vue.htm*/ //build后生成到平台的模板位置及名称
outputDir: "/apps/install/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/main", /*webserver/webapps/portal/apps/_bpm.platform/dw/designer/main*/ //build后js或css生成到平台的位置
publicPath: "../apps/com.actionsoft.apps.coe.pal/main", /*../apps/_bpm.platform/dw/designer/main*/ //build到平台后生成到模板中引入js文件的相对平台的位置
@ -24,7 +24,7 @@ module.exports = {
],
devUserInfo: {//开发时通过用户名及密码获取sessionId前提必须需要安装并启动appcom.actionsoft.apps.getsession.app
userid: "admin", //具有后台管理的用户名
pwd: "123456", //密码
pwd: "2", //密码
deviceType: "pc",
systemType: "C"
}

View File

@ -109,6 +109,7 @@
<div class="div-repository-title rowDropFilter">
<p class="text-general-color" style="cursor: pointer;" @click="positionTableRoleRepository(scope.row.id, scope.row.versionId, scope.row.childSize, scope.row.folder)">
{{scope.row.name}}
<span style="color: #909399;margin-left: 12px;">( {{ scope.row.versionStatus.versionNo }} )</span>
</p>
</div>
</template>
@ -121,6 +122,7 @@
<div class="div-update-date">
<p>
{{scope.row.updateUser}} {{scope.row.updateDate}}修改
<span :style="{'color': scope.row.versionStatus.stateColor}" style="margin-left: 12px;font-size: 13px;">( {{ scope.row.versionStatus.state }} )</span>
</p>
</div>
</template>
@ -552,15 +554,23 @@
};
//
awsuiAxios.post(data).then(function (ro) {
debugger;
if(ro.result == 'ok') {
//isClickTreeRoot
if(ro.data.mainRepository=="undefined"){
// if(ro.data.mainRepository=="undefined"){
// if(ro.data.mainRepository.folder==false){
// bus.$emit("getisDisabled",true);
// }else{
// bus.$emit("getisDisabled",false);
// }
// }
if(ro.data.mainRepository!=undefined){
if(ro.data.mainRepository.folder==false){
bus.$emit("getisDisabled",true);
}else{
bus.$emit("getisDisabled",false);
}
}else{
bus.$emit("getisDisabled",false);
}
@ -569,6 +579,29 @@
that.isClickTreeRoot = ro.data.isClickTreeRoot;
that.category = ro.data.category;
that.moveRepository.categorys = ro.data.category;
for (let i = 0; i < ro.data.tableData.length; i++) {
if (ro.data.tableData[i].versionStatus.isApproval) {
ro.data.tableData[i].versionStatus.stateColor = '#1AA477';
ro.data.tableData[i].versionStatus.state = '审批中';
ro.data.tableData[i].versionStatus.stateCode = 'approval';
} else if (ro.data.tableData[i].versionStatus.isStop) {
ro.data.tableData[i].versionStatus.stateColor = '#D9001B';
ro.data.tableData[i].versionStatus.state = '已停用';
ro.data.tableData[i].versionStatus.stateCode = 'stop';
} else if (ro.data.tableData[i].versionStatus.isPublish) {
ro.data.tableData[i].versionStatus.stateColor = '#1AA477';
ro.data.tableData[i].versionStatus.state = '已发布';
ro.data.tableData[i].versionStatus.stateCode = 'publish';
} else if (ro.data.tableData[i].versionStatus.isUse) {
ro.data.tableData[i].versionStatus.stateColor = '#4E7FF9';
ro.data.tableData[i].versionStatus.state = '设计中';
ro.data.tableData[i].versionStatus.stateCode = 'use';
} else {
ro.data.tableData[i].versionStatus.stateColor = '#4E7FF9';
ro.data.tableData[i].versionStatus.state = '设计中';
ro.data.tableData[i].versionStatus.stateCode = 'designer';
}
}
that.tableData = ro.data.tableData;
that.mainRepository = ro.data.mainRepository;

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.ModelsetUpDialog.systemForm.repositoryPathData = ro.data.repositoryPathData;
that.ModelsetUpDialog.systemForm.parentId = parentId;
that.createModelsetUp(method);
}
}).catch(error => {
console.log(error);
})
}
},
uploadServer(){

View File

@ -46,6 +46,7 @@
<div class="div-repository-title">
<p class="text-general-color" style="cursor: pointer;" @click="positionRepositoy(scope.row.id, scope.row.versionId, scope.row.pathData)">
{{scope.row.name}}
<span style="color: #909399;margin-left: 12px;">( {{ scope.row.versionStatus.versionNo }} )</span>
</p>
</div>
</template>
@ -58,6 +59,7 @@
<div class="div-update-date">
<p>
{{scope.row.updateUser}} {{scope.row.updateDate}}修改
<span :style="{'color': scope.row.versionStatus.stateColor}" style="margin-left: 12px;font-size: 13px;">( {{ scope.row.versionStatus.state }} )</span>
</p>
</div>
</template>
@ -131,6 +133,7 @@
<div class="div-repository-title">
<p class="text-general-color" style="cursor: pointer;" @click="positionRepositoy(scope.row.id, scope.row.versionId, scope.row.pathData)">
{{scope.row.name}}
<span style="color: #909399;margin-left: 12px;">( {{ scope.row.versionStatus.versionNo }} )</span>
</p>
</div>
</template>
@ -143,6 +146,7 @@
<div class="div-update-date">
<p>
{{scope.row.updateUser}} {{scope.row.updateDate}}修改
<span :style="{'color': scope.row.versionStatus.stateColor}" style="margin-left: 12px;font-size: 13px;">( {{ scope.row.versionStatus.state }} )</span>
</p>
</div>
</template>
@ -364,7 +368,43 @@
awsuiAxios.post(data).then(function (ro) {
if(ro.result == 'ok') {
that.defaultCategoryName = ro.data.defaultCategoryName;
for (let i = 0; i < ro.data.recentData.length; i++) {
if (ro.data.recentData[i].versionStatus.isApproval) {
ro.data.recentData[i].versionStatus.stateColor = '#1AA477';
ro.data.recentData[i].versionStatus.state = '审批中';
} else if (ro.data.recentData[i].versionStatus.isStop) {
ro.data.recentData[i].versionStatus.stateColor = '#D9001B';
ro.data.recentData[i].versionStatus.state = '已停用';
} else if (ro.data.recentData[i].versionStatus.isPublish) {
ro.data.recentData[i].versionStatus.stateColor = '#1AA477';
ro.data.recentData[i].versionStatus.state = '已发布';
} else if (ro.data.recentData[i].versionStatus.isUse) {
ro.data.recentData[i].versionStatus.stateColor = '#4E7FF9';
ro.data.recentData[i].versionStatus.state = '设计中';
} else {
ro.data.recentData[i].versionStatus.stateColor = '#4E7FF9';
ro.data.recentData[i].versionStatus.state = '设计中';
}
}
that.recentData = ro.data.recentData;
for (let i = 0; i < ro.data.commonData.length; i++) {
if (ro.data.commonData[i].versionStatus.isApproval) {
ro.data.commonData[i].versionStatus.stateColor = '#1AA477';
ro.data.commonData[i].versionStatus.state = '审批中';
} else if (ro.data.commonData[i].versionStatus.isStop) {
ro.data.commonData[i].versionStatus.stateColor = '#D9001B';
ro.data.commonData[i].versionStatus.state = '已停用';
} else if (ro.data.commonData[i].versionStatus.isPublish) {
ro.data.commonData[i].versionStatus.stateColor = '#1AA477';
ro.data.commonData[i].versionStatus.state = '已发布';
} else if (ro.data.commonData[i].versionStatus.isUse) {
ro.data.commonData[i].versionStatus.stateColor = '#4E7FF9';
ro.data.commonData[i].versionStatus.state = '设计中';
} else {
ro.data.commonData[i].versionStatus.stateColor = '#4E7FF9';
ro.data.commonData[i].versionStatus.state = '设计中';
}
}
that.commonData = ro.data.commonData;
that.havingWritePerm = ro.data.havingWritePerm;
that.dataLoading = false;