Commit f26a533c by 史敦盼

中台修改

1 parent 0536833b
...@@ -762,7 +762,7 @@ export default { ...@@ -762,7 +762,7 @@ export default {
}, },
getQryStatDetPage(inventoryEnum, archiTypeId, archiType) { getQryStatDetPage(inventoryEnum, archiTypeId, archiType) {
const params = { const params = {
inventoryId: this.row.row.inventoryEnum, inventoryId: this.row.row.inventoryId,
inventoryEnum, inventoryEnum,
archiTypeId, archiTypeId,
archiType archiType
......
...@@ -59,8 +59,10 @@ ...@@ -59,8 +59,10 @@
<el-table-column slot="end" fixed="right" label="操作" align="center" :width="200"> <el-table-column slot="end" fixed="right" label="操作" align="center" :width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="btns"> <div class="btns">
<img v-for="(item, idx) in btns" :key="idx" :src="item.url" style="cursor: pointer" width="26" height="26" <el-tooltip class="item" effect="dark" :content="item.text" v-for="(item, idx) in btns" :key="idx" placement="top">
@click="concatService(scope.row, item.archiType)" alt=""> <img :src="item.url" style="cursor: pointer" width="26" height="26"
@click="concatService(scope.row, item.archiType, item.text)" alt="">
</el-tooltip>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -72,7 +74,7 @@ ...@@ -72,7 +74,7 @@
<el-row class="comDialogContent"> <el-row class="comDialogContent">
<el-col :span="12"> <el-col :span="12">
<div style="height: 400px;overflow-y:auto"> <div style="height: 400px;overflow-y:auto">
<el-tree ref="tree" :data="treeData" show-checkbox check-on-click-node :node-key="handleNodeKey" default-expand-all :props="treeProps" <el-tree ref="tree" v-if="show" :data="treeData" show-checkbox check-on-click-node :node-key="handleNodeKey" default-expand-all :props="handleTreeProps"
@check-change="checkChange"> @check-change="checkChange">
</el-tree> </el-tree>
</div> </div>
...@@ -219,12 +221,12 @@ export default { ...@@ -219,12 +221,12 @@ export default {
}, },
{ {
label: "中台类型", label: "中台类型",
prop: "midGroundType", prop: "midGroundId",
minWidth: 120, minWidth: 120,
showOverflowTooltip: true, showOverflowTooltip: true,
align: "center", align: "center",
render: (h, params) => { render: (h, params) => {
return h("span", {}, params.midGroundType ? midGroundNameOptions[params.midGroundType - 1].label : '--'); return h("span", {}, params.midGroundId ? midGroundTypeOptions[params.midGroundId - 1].label : '--');
}, },
}, },
{ {
...@@ -281,18 +283,15 @@ export default { ...@@ -281,18 +283,15 @@ export default {
this.$emit('dialog', '支撑技术组件数量', row) this.$emit('dialog', '支撑技术组件数量', row)
}, },
}, },
{
label: "服务发布时间",
prop: "publishTime",
minWidth: 120,
showOverflowTooltip: true,
align: "center",
},
{ {
label: "支撑的业务活动", label: "支撑的业务活动",
prop: "suppportBusActNum", prop: "suppportBusActNum",
minWidth: 120, minWidth: 120,
align: "center", align: "center",
click: (row) => {
this.$emit('dialog', '支撑的业务活动', row)
},
}, },
{ {
label: "关联的中台服务", label: "关联的中台服务",
...@@ -315,6 +314,13 @@ export default { ...@@ -315,6 +314,13 @@ export default {
return h("span", {}, params.state === 0 ? stateOptions[0].label : params.state > 0 ? stateOptions[params.state].label : '--'); return h("span", {}, params.state === 0 ? stateOptions[0].label : params.state > 0 ? stateOptions[params.state].label : '--');
}, },
}, },
{
label: "服务发布时间",
prop: "publishTime",
minWidth: 120,
showOverflowTooltip: true,
align: "center",
},
// { // {
// label: "操作", // label: "操作",
// prop: "action", // prop: "action",
...@@ -369,7 +375,63 @@ export default { ...@@ -369,7 +375,63 @@ export default {
label: 'assetName' label: 'assetName'
}, },
treeData: [], treeData: [],
dialogColumns: [
// dialogData: []
btns: [{
url: require('@/assets/comCenterServe/btn1.png'),
archiType: 1,
text: '关联业务'
},{
url: require('@/assets/comCenterServe/btn2.png'),
archiType: 2,
text: '关联应用'
},{
url: require('@/assets/comCenterServe/btn3.png'),
archiType: 3,
text: '关联数据'
},{
url: require('@/assets/comCenterServe/btn4.png'),
archiType: 4,
text: '关联技术'
},{
url: require('@/assets/comCenterServe/btn5.png'),
archiType: 6,
text: '关联清单'
}],
operationArchiType: null
};
},
computed: {
dialogColumns() {
if(this.operationArchiType === 6) {
return [
{
label: "中台id",
prop: "inventoryId",
showOverflowTooltip: true,
align: "center",
fixed: "left",
minWidth: 140
},
{
label: "中台名称",
prop: "abilityName",
showOverflowTooltip: true,
align: "center",
fixed: "left",
minWidth: 140
},
{
label: "中台编码",
prop: "abilityCode",
showOverflowTooltip: true,
align: "center",
fixed: "left",
minWidth: 140
},
]
} else {
return [
{ {
label: "资产名称", label: "资产名称",
prop: "assetName", prop: "assetName",
...@@ -394,28 +456,10 @@ export default { ...@@ -394,28 +456,10 @@ export default {
fixed: "left", fixed: "left",
minWidth: 140 minWidth: 140
}, },
], ]
// dialogData: [] }
btns: [{
url: require('@/assets/comCenterServe/btn1.png'),
archiType: 1
},{
url: require('@/assets/comCenterServe/btn2.png'),
archiType: 2
},{
url: require('@/assets/comCenterServe/btn3.png'),
archiType: 3
},{
url: require('@/assets/comCenterServe/btn4.png'),
archiType: 4
},{
url: require('@/assets/comCenterServe/btn5.png'),
archiType: 6
}],
operationArchiType: null
};
}, },
computed: {
handleNodeKey() { handleNodeKey() {
if(this.operationArchiType === 6) { if(this.operationArchiType === 6) {
return 'inventoryId' return 'inventoryId'
...@@ -501,14 +545,15 @@ export default { ...@@ -501,14 +545,15 @@ export default {
if(res.code === 200) { if(res.code === 200) {
const keys = res.data.records.map(v => v.relaAssetId) const keys = res.data.records.map(v => v.relaAssetId)
this.$refs.tree.setCheckedKeys(keys) this.$refs.tree.setCheckedKeys(keys)
this.$forceUpdate()
} }
}) })
}, },
concatService(row, type) { concatService(row, type, title) {
this.operationArchiType = type this.operationArchiType = type
this.dialogRow = { ...row } this.dialogRow = { ...row }
console.log("编辑", row); console.log("编辑", row);
this.title = '关联业务' this.title = title
this.show = true; this.show = true;
}, },
disabledTreeNode(data) { disabledTreeNode(data) {
...@@ -543,16 +588,16 @@ export default { ...@@ -543,16 +588,16 @@ export default {
const assetsDTOS = this.dialogData.map(v => { const assetsDTOS = this.dialogData.map(v => {
return { return {
inventoryId, inventoryId: v.inventoryId || inventoryId,
abilityCode, abilityCode: v.abilityCode || abilityCode,
abilityName, abilityName: v.abilityName || abilityName,
assetId: v.assetId, assetId: v.assetId || '',
assetName: v.assetName, assetName: v.assetName,
archiType: this.getArchiType(this.operationArchiType), archiType: this.getArchiType(this.operationArchiType),
archiTypeId: this.operationArchiType, archiTypeId: this.operationArchiType,
eleName: v.eleName, eleName: v.eleName || '',
parentAssetIds: v.parentAssetId, parentAssetIds: v.parentAssetId || '',
parentAssetNames: v.parentAssetName, parentAssetNames: v.parentAssetName || '',
} }
}) })
...@@ -564,6 +609,7 @@ export default { ...@@ -564,6 +609,7 @@ export default {
if(res.code === 200) { if(res.code === 200) {
this.$message.success('保存成功') this.$message.success('保存成功')
this.show = false this.show = false
this.getList()
} else { } else {
this.$message.warning(res.msg) this.$message.warning(res.msg)
} }
...@@ -589,6 +635,9 @@ export default { ...@@ -589,6 +635,9 @@ export default {
case 5: case 5:
str = '安全架构' str = '安全架构'
break; break;
case 6:
str = '中台清单'
break
default: default:
break; break;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!