Commit d9cbf78a by liuyong

修改bug

1 parent 77f9ec60
......@@ -429,7 +429,7 @@ export function getCurrentZiChanJiaGouTable(params) {
}
// 系统资产架构,表格
export function getTotalZiChanJiaGouTable(params) {
return post('/network/arc-ast-tot/', params);
return post('/network/arc-ast-sys/', params);
}
// 思维导图
export function queryMindData(params) {
......@@ -491,9 +491,13 @@ export function dicyUpdateTableDelete(params) {
export function queryViewManageQingDan(params) {
return post('/network/ma-ml/asset-ele-list', params);
}
// 总体架构资产可视化展示,左侧树
export function archiAssetShowTree(params) {
return post('/network/archi-asset-view/assetLevel', params);
}
// 总体架构资产智能搜索,左侧树
export function archiIntelligenceSearchTree(params) {
return post('/network/archi-asset-view/assetLevel', params);
return post('/network/archi-asset-view/assetTree', params);
}
// 系统信息管理,表格
export function querysystemInfoManageTable(params) {
......@@ -519,8 +523,32 @@ export function addProjectManageTable(params) {
export function editDeleteProjectInfoManageTable(params) {
return post('/network/prj-info/upd', params);
}
// 文档在线编辑,编辑和删除
// 文档在线编辑,查询目录树
export function queryDocumentCatalog(params) {
return post('/kl-doc-parser/qryTitleTree', params);
}
// 文档在线编辑,查询文档详情
export function queryDocumentDetails(params) {
return post('/kl-doc-parser/qryById', params);
}
// 文档在线编辑,删除
export function deleteDocument(params) {
return post('/kl-doc-parser/delTtile', params);
}
// 文档在线编辑,新增或修改章节
export function addEditDocument(params) {
return post('/kl-doc-parser/savOrUptTitle', params);
}
// 系统资产架构,批量删除,删除
export function deleteSystemTable(params) {
return post('/network/arc-ast-sys/delBatch', params);
}
// 系统资产架构,新增
export function addSystemTable(params) {
return post('/network/arc-ast-sys/ad', params);
}
// 系统资产架构,编辑
export function editSystemTable(params) {
return post('/network/arc-ast-sys/upd', params);
}
<template>
<template>
......@@ -49,7 +49,7 @@
<img class="btn_icon" src="@/assets/archi-ele-list/create.png" alt="" />
<p>新建</p>
</div> -->
<el-button @click="add" type="primary" size="medium" icon="el-icon-document-add">新建</el-button>
<el-button @click="addItem" type="primary" size="medium" icon="el-icon-document-add">新建</el-button>
<el-button type="primary" size="medium" icon="el-icon-delete" @click="moreDelete">删除</el-button>
<!-- <el-button type="primary" size="medium" icon="el-icon-plus">导入</el-button> -->
<div class="import_btn" @click="importFile">
......@@ -395,7 +395,6 @@
}else {
targetAsset = [{}];
}
console.log(targetAsset)
const params = {
archiAssetState: this.searchParams.archiAssetState,
archiStage: this.searchParams.archiStage,
......@@ -519,7 +518,7 @@
this.selectLabel2 = '';
});
},
add() {//新建
addItem() {//新建
this.addDialog = true;
this.is_add_edit = 'add';
this.getShangJiJieDianSelect();
......
......@@ -36,7 +36,6 @@ export default {
},
mounted(){
this.getTreeData();
// this.echarts1();
},
methods: {
echarts1(seriesData, linkData) {
......@@ -71,7 +70,7 @@ export default {
}
},
force: {
repulsion: 6000
repulsion: 3000
},
// edgeSymbol: ['circle', 'arrow'],
data: seriesData,
......@@ -82,12 +81,8 @@ export default {
this.myChart.setOption(option);
},
getTreeData() {//查询左侧树
const params = {
"assetName": null,
"versionId": null
}
archiIntelligenceSearchTree(params).then(res => {
getTreeData(type) {//查询左侧树
archiIntelligenceSearchTree({}).then(res => {
if(res.code == 200) {
this.treeData = res.data;
}
......
......@@ -4,7 +4,7 @@
class="filter-tree"
:data="treeData"
:highlight-current="true"
:props="{ children: 'subList', label: 'assetName', id: 'assetId' }"
:props="{ children: 'children', label: 'name', id: 'id' }"
default-expand-all
node-key="assetId"
@node-click="treeClick"
......@@ -18,7 +18,7 @@
<script>
import {
archiIntelligenceSearchTree,
archiAssetShowTree,
} from '@/api/index.js';
import { MessageBox, Message } from 'element-ui';
import $ from 'jquery';
......@@ -31,11 +31,11 @@ export default {
data() {
return {
treeData: [
{ assetId: 'BUSI', assetName: '业务架构', subList: [] },
{ assetId: 'APP', assetName: '应用架构', subList: [] },
{ assetId: 'DATA', assetName: '数据架构', subList: [] },
{ assetId: 'TECH', assetName: '技术架构', subList: [] },
{ assetId: 'SAFE', assetName: '安全架构', subList: [] }
{ id: 'BUSI', name: '业务架构', children: [] },
{ id: 'APP', name: '应用架构', children: [] },
{ id: 'DATA', name: '数据架构', children: [] },
{ id: 'TECH', name: '技术架构', children: [] },
{ id: 'SAFE', name: '安全架构', children: [] }
]
};
},
......@@ -47,11 +47,11 @@ export default {
const params = {
"assetEnum": type
}
archiIntelligenceSearchTree(params).then(res => {
archiAssetShowTree(params).then(res => {
if(res.code == 200) {
this.treeData.forEach(item => {
if(item.assetId == type) {
item.subList = res.data;
if(item.id == type) {
item.children = res.data;
}
})
}
......@@ -60,8 +60,8 @@ export default {
treeClick(data, node, e) {//树点击的时候
// console.log(data.assetId);
const type = [ 'BUSI', 'APP', 'DATA', 'TECH', 'SAFE' ];
if(type.includes(data.assetId)) {
this.getTreeData(data.assetId);
if(type.includes(data.id)) {
this.getTreeData(data.id);
}
}
}
......
......@@ -45,8 +45,8 @@
<el-table-column prop="appName" label="系统名称" align="center" width="200" :show-overflow-tooltip="true"></el-table-column>
<el-table-column label="建设类型" align="center">
<template slot-scope="scope">
<span v-if="scope.row.buildType == 1">统推</span>
<span v-else></span>
<span v-if="scope.row.buildType == 1">新建</span>
<span v-else></span>
</template>
</el-table-column>
<el-table-column prop="prjName" label="项目名称" align="center" width="200" :show-overflow-tooltip="true"></el-table-column>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!