Merge branch 'master' of https://e.coding.net/yilidev/yilipalkaifa/vue-apps
This commit is contained in:
commit
264c46f41c
@ -3,3 +3,6 @@ node_modules
|
|||||||
dist
|
dist
|
||||||
dist-ssr
|
dist-ssr
|
||||||
*.local
|
*.local
|
||||||
|
AWSDevParams.js
|
||||||
|
AWSDevParams.js.bak
|
||||||
|
babel.config.js
|
||||||
@ -1,9 +1,9 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
AWSPortalUrl: "http://localhost:8088/portal/",//aws平台启动地址,用于开发时获取平台静态资源,请求数据等(注意最后的/,不要删)
|
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,!!前提必须需要安装并启动app:com.actionsoft.apps.getsession.app
|
devUserInfo: {//开发时通过用户名及密码获取sessionId,!!前提必须需要安装并启动app:com.actionsoft.apps.getsession.app
|
||||||
userid: "admin", //具有后台管理的用户名
|
userid: "admin", //具有后台管理的用户名
|
||||||
pwd: "admin", //密码
|
pwd: "2", //密码
|
||||||
deviceType: "pc",
|
deviceType: "pc",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -19,7 +19,8 @@
|
|||||||
:on-remove="handleRemove"
|
:on-remove="handleRemove"
|
||||||
:before-remove="beforeRemove"
|
:before-remove="beforeRemove"
|
||||||
:on-success="handleSuccess"
|
:on-success="handleSuccess"
|
||||||
:limit="1"
|
:limit="100"
|
||||||
|
multiple
|
||||||
:on-exceed="handleExceed"
|
:on-exceed="handleExceed"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
>
|
>
|
||||||
|
|||||||
8
com.actionsoft.apps.coe.pal/.gitignore
vendored
Normal file
8
com.actionsoft.apps.coe.pal/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
node_modules
|
||||||
|
.DS_Store
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
*.local
|
||||||
|
AWSDevParams.js
|
||||||
|
AWSDevParams.js.bak
|
||||||
|
babel.config.js
|
||||||
@ -1,6 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
AWSPortalUrl: "http://localhost:8088/portal/",//aws平台启动地址,用于开发时获取平台静态资源,请求数据等(注意最后的/,不要删)
|
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后生成到平台的模板位置及名称
|
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生成到平台的位置
|
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文件的相对平台的位置
|
publicPath: "../apps/com.actionsoft.apps.coe.pal/main", /*../apps/_bpm.platform/dw/designer/main*/ //build到平台后生成到模板中,引入js文件的相对平台的位置
|
||||||
@ -24,7 +24,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
devUserInfo: {//开发时通过用户名及密码获取sessionId,!!前提必须需要安装并启动app:com.actionsoft.apps.getsession.app
|
devUserInfo: {//开发时通过用户名及密码获取sessionId,!!前提必须需要安装并启动app:com.actionsoft.apps.getsession.app
|
||||||
userid: "admin", //具有后台管理的用户名
|
userid: "admin", //具有后台管理的用户名
|
||||||
pwd: "123456", //密码
|
pwd: "2", //密码
|
||||||
deviceType: "pc",
|
deviceType: "pc",
|
||||||
systemType: "C"
|
systemType: "C"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -109,6 +109,7 @@
|
|||||||
<div class="div-repository-title rowDropFilter">
|
<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)">
|
<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}}
|
{{scope.row.name}}
|
||||||
|
<span style="color: #909399;margin-left: 12px;">( {{ scope.row.versionStatus.versionNo }} )</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -121,6 +122,7 @@
|
|||||||
<div class="div-update-date">
|
<div class="div-update-date">
|
||||||
<p>
|
<p>
|
||||||
{{scope.row.updateUser}} 于 {{scope.row.updateDate}}修改
|
{{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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -552,16 +554,24 @@
|
|||||||
};
|
};
|
||||||
// 查询数据
|
// 查询数据
|
||||||
awsuiAxios.post(data).then(function (ro) {
|
awsuiAxios.post(data).then(function (ro) {
|
||||||
debugger;
|
|
||||||
if(ro.result == 'ok') {
|
if(ro.result == 'ok') {
|
||||||
//isClickTreeRoot
|
//isClickTreeRoot
|
||||||
if(ro.data.mainRepository=="undefined"){
|
// if(ro.data.mainRepository=="undefined"){
|
||||||
if(ro.data.mainRepository.folder==false){
|
// if(ro.data.mainRepository.folder==false){
|
||||||
bus.$emit("getisDisabled",true);
|
// 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{
|
}else{
|
||||||
bus.$emit("getisDisabled",false);
|
bus.$emit("getisDisabled",false);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
const repositoryPathData = ro.data.repositoryPathData;
|
const repositoryPathData = ro.data.repositoryPathData;
|
||||||
@ -569,6 +579,29 @@
|
|||||||
that.isClickTreeRoot = ro.data.isClickTreeRoot;
|
that.isClickTreeRoot = ro.data.isClickTreeRoot;
|
||||||
that.category = ro.data.category;
|
that.category = ro.data.category;
|
||||||
that.moveRepository.categorys = 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.tableData = ro.data.tableData;
|
||||||
that.mainRepository = ro.data.mainRepository;
|
that.mainRepository = ro.data.mainRepository;
|
||||||
|
|
||||||
|
|||||||
@ -129,7 +129,7 @@
|
|||||||
:close-on-press-escape=true
|
:close-on-press-escape=true
|
||||||
:before-close="handleCloseSystem"
|
:before-close="handleCloseSystem"
|
||||||
width="600px">
|
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"
|
<awsui-form :model="ModelsetUpDialog.systemForm" :rules="ModelsetUpDialog.rules" ref="systemForm"
|
||||||
label-position="top">
|
label-position="top">
|
||||||
|
|
||||||
@ -225,6 +225,7 @@
|
|||||||
|
|
||||||
//制度弹框
|
//制度弹框
|
||||||
ModelsetUpDialog: {
|
ModelsetUpDialog: {
|
||||||
|
loading: false,
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
systemMethod: 'default',// 文件夹类型,default默认文件夹,custom自定义文件夹(扩展的文件夹类型的建模方法)
|
systemMethod: 'default',// 文件夹类型,default默认文件夹,custom自定义文件夹(扩展的文件夹类型的建模方法)
|
||||||
systemTitle: '名称录入',// 新建文件夹时自定义标题
|
systemTitle: '名称录入',// 新建文件夹时自定义标题
|
||||||
@ -235,6 +236,7 @@
|
|||||||
repositoryPathData:"",
|
repositoryPathData:"",
|
||||||
method:"",
|
method:"",
|
||||||
systemType: '1',
|
systemType: '1',
|
||||||
|
category:"",
|
||||||
SystemTypeOptions: [
|
SystemTypeOptions: [
|
||||||
{
|
{
|
||||||
"label" : '制度',
|
"label" : '制度',
|
||||||
@ -289,12 +291,13 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
bus.$on("getisDisabled",data =>{
|
bus.$on("getisDisabled",data =>{
|
||||||
this.dis=data;
|
this.dis=data;
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
const that = this;
|
const that = this;
|
||||||
|
that.loadingText = '加载中';
|
||||||
|
that.loading = true;
|
||||||
if (that.$store.getters.getTeamIdFn && that.$store.getters.getTeamIdFn != '') {
|
if (that.$store.getters.getTeamIdFn && that.$store.getters.getTeamIdFn != '') {
|
||||||
const data = {
|
const data = {
|
||||||
url: 'jd',
|
url: 'jd',
|
||||||
@ -549,13 +552,13 @@
|
|||||||
//ModelsetUpDialog
|
//ModelsetUpDialog
|
||||||
createModelsetUp(method) {// 创建文件夹
|
createModelsetUp(method) {// 创建文件夹
|
||||||
this.ModelsetUpDialog.systemMethod = method;
|
this.ModelsetUpDialog.systemMethod = method;
|
||||||
|
this.ModelsetUpDialog.systemForm.method = method;
|
||||||
this.ModelsetUpDialog.systemTitle = '名称录入';
|
this.ModelsetUpDialog.systemTitle = '名称录入';
|
||||||
this.ModelsetUpDialog.dialogVisible = true;
|
this.ModelsetUpDialog.dialogVisible = true;
|
||||||
this.closeCreatePopover();
|
this.closeCreatePopover();
|
||||||
},
|
},
|
||||||
|
|
||||||
createFolderSave(formName) {// 保存新建的文件夹
|
createFolderSave(formName) {// 保存新建的文件夹
|
||||||
debugger;
|
|
||||||
const that = this;
|
const that = this;
|
||||||
that.$refs[formName].validate((valid) => {
|
that.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@ -604,30 +607,47 @@
|
|||||||
//
|
//
|
||||||
createSystemSave(formName) {// 保存新建的文件夹
|
createSystemSave(formName) {// 保存新建的文件夹
|
||||||
const that = this;
|
const that = this;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
that.$refs[formName].validate((valid) => {
|
that.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
debugger;
|
|
||||||
const checkdata = {
|
const checkdata = {
|
||||||
url:'jd',
|
url:'jd',
|
||||||
data:{
|
data:{
|
||||||
cmd: 'com.actionsoft.apps.coe.pal_pl_repository_designer_checkname',
|
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) {
|
awsuiAxios.post(checkdata).then(function (ro) {
|
||||||
if (ro.data.result == 'ok') {
|
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 = {
|
const data = {
|
||||||
url:'jd',
|
url: 'jd',
|
||||||
data:{
|
data: {
|
||||||
cmd: 'com.actionsoft.apps.coe.pal_pl_repository_designer_updatetitle',
|
cmd: 'com.actionsoft.apps.coe.pal_processlevel_repository_create_save_Designer',
|
||||||
uuid: that.ModelsetUpDialog.systemForm.uuid,
|
wsId: wsId,
|
||||||
title: that.ModelsetUpDialog.systemForm.name,
|
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) {
|
awsuiAxios.post(data).then(function (ro) {
|
||||||
|
|
||||||
if (ro.result == 'ok') {
|
if (ro.result == 'ok') {
|
||||||
|
that.ModelsetUpDialog.systemForm.uuid=ro.data.id;
|
||||||
|
that.ModelsetUpDialog.systemForm.parentId=parentId;
|
||||||
const data = {
|
const data = {
|
||||||
url:'jd',
|
url:'jd',
|
||||||
data:{
|
data:{
|
||||||
@ -641,6 +661,7 @@
|
|||||||
};
|
};
|
||||||
// 查询数据
|
// 查询数据
|
||||||
awsuiAxios.post(data).then(function (ro) {
|
awsuiAxios.post(data).then(function (ro) {
|
||||||
|
|
||||||
if (ro.result == 'ok') {
|
if (ro.result == 'ok') {
|
||||||
that.ModelsetUpDialog.dialogVisible = false;
|
that.ModelsetUpDialog.dialogVisible = false;
|
||||||
that.openRepositoryList(that.ModelsetUpDialog.systemForm.parentId);
|
that.openRepositoryList(that.ModelsetUpDialog.systemForm.parentId);
|
||||||
@ -656,10 +677,8 @@
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
})
|
})
|
||||||
|
|
||||||
} else {
|
|
||||||
that.$message.error(ro.msg);
|
|
||||||
}
|
}
|
||||||
}).catch(error=>{
|
}).catch(error => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@ -695,43 +714,29 @@
|
|||||||
this.securityFileList.push(file);
|
this.securityFileList.push(file);
|
||||||
this.securityType = "create";
|
this.securityType = "create";
|
||||||
this.securityVisible = true;
|
this.securityVisible = true;
|
||||||
}else{
|
}else {
|
||||||
|
|
||||||
const form = this.ModelsetUpDialog.systemForm;
|
|
||||||
form.method = method;
|
|
||||||
|
|
||||||
const nodeData = that.$refs.tree.getCurrentNode();
|
const nodeData = that.$refs.tree.getCurrentNode();
|
||||||
|
|
||||||
const parentId = nodeData.id;
|
const parentId = nodeData.id;
|
||||||
const wsId = that.$store.getters.getWsIdFn;
|
|
||||||
const teamId = that.$store.getters.getTeamIdFn;
|
|
||||||
const data = {
|
const data = {
|
||||||
url: 'jd',
|
url: 'jd',
|
||||||
data: {
|
data: {
|
||||||
cmd: 'com.actionsoft.apps.coe.pal_processlevel_repository_create_save',
|
cmd: 'com.actionsoft.apps.coe.getArchitecturePath',
|
||||||
wsId: wsId,
|
|
||||||
teamId: teamId,
|
|
||||||
category: category,
|
|
||||||
method: method,
|
|
||||||
parentId: parentId,
|
parentId: parentId,
|
||||||
container: '_blank'// 模板,暂时不做模板
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 查询数据
|
// 查询数据
|
||||||
awsuiAxios.post(data).then(function (ro) {
|
awsuiAxios.post(data).then(function (ro) {
|
||||||
|
|
||||||
if (ro.result == 'ok') {
|
// 返回id
|
||||||
// 返回id
|
that.ModelsetUpDialog.systemForm.repositoryPathData = ro.data.repositoryPathData;
|
||||||
that.ModelsetUpDialog.systemForm.repositoryPathData=ro.data.repositoryPathData;
|
that.ModelsetUpDialog.systemForm.parentId = parentId;
|
||||||
that.ModelsetUpDialog.systemForm.uuid=ro.data.id;
|
that.createModelsetUp(method);
|
||||||
that.ModelsetUpDialog.systemForm.parentId=parentId;
|
|
||||||
that.createModelsetUp(method);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
uploadServer(){
|
uploadServer(){
|
||||||
|
|||||||
@ -46,6 +46,7 @@
|
|||||||
<div class="div-repository-title">
|
<div class="div-repository-title">
|
||||||
<p class="text-general-color" style="cursor: pointer;" @click="positionRepositoy(scope.row.id, scope.row.versionId, scope.row.pathData)">
|
<p class="text-general-color" style="cursor: pointer;" @click="positionRepositoy(scope.row.id, scope.row.versionId, scope.row.pathData)">
|
||||||
{{scope.row.name}}
|
{{scope.row.name}}
|
||||||
|
<span style="color: #909399;margin-left: 12px;">( {{ scope.row.versionStatus.versionNo }} )</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -58,6 +59,7 @@
|
|||||||
<div class="div-update-date">
|
<div class="div-update-date">
|
||||||
<p>
|
<p>
|
||||||
{{scope.row.updateUser}} 于 {{scope.row.updateDate}}修改
|
{{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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -131,6 +133,7 @@
|
|||||||
<div class="div-repository-title">
|
<div class="div-repository-title">
|
||||||
<p class="text-general-color" style="cursor: pointer;" @click="positionRepositoy(scope.row.id, scope.row.versionId, scope.row.pathData)">
|
<p class="text-general-color" style="cursor: pointer;" @click="positionRepositoy(scope.row.id, scope.row.versionId, scope.row.pathData)">
|
||||||
{{scope.row.name}}
|
{{scope.row.name}}
|
||||||
|
<span style="color: #909399;margin-left: 12px;">( {{ scope.row.versionStatus.versionNo }} )</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -143,6 +146,7 @@
|
|||||||
<div class="div-update-date">
|
<div class="div-update-date">
|
||||||
<p>
|
<p>
|
||||||
{{scope.row.updateUser}} 于 {{scope.row.updateDate}}修改
|
{{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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -364,7 +368,43 @@
|
|||||||
awsuiAxios.post(data).then(function (ro) {
|
awsuiAxios.post(data).then(function (ro) {
|
||||||
if(ro.result == 'ok') {
|
if(ro.result == 'ok') {
|
||||||
that.defaultCategoryName = ro.data.defaultCategoryName;
|
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;
|
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.commonData = ro.data.commonData;
|
||||||
that.havingWritePerm = ro.data.havingWritePerm;
|
that.havingWritePerm = ro.data.havingWritePerm;
|
||||||
that.dataLoading = false;
|
that.dataLoading = false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user