完成
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<!-- 标题 -->
|
<!-- 标题 -->
|
||||||
<ai-title slot="title" :title="$options.label" isShowBottomBorder/>
|
<ai-title slot="title" :title="$options.label" isShowBottomBorder/>
|
||||||
<template #content>
|
<template #content>
|
||||||
<ai-tree-menu title="企微统计">
|
<ai-tree-menu title="企微统计" hideInput>
|
||||||
<el-tree @node-click="nodeClick" :props="props" :load="loadNode" lazy :expand-on-click-node="false"/>
|
<el-tree @node-click="nodeClick" :props="props" :load="loadNode" lazy :expand-on-click-node="false"/>
|
||||||
</ai-tree-menu>
|
</ai-tree-menu>
|
||||||
<div class="fill mar-l8">
|
<div class="fill mar-l8">
|
||||||
@@ -109,12 +109,10 @@ export default {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
loadNode(node, resolve) {
|
loadNode(node, resolve) {
|
||||||
if (node.level == 0) {
|
if (node.level == 0) {
|
||||||
@@ -139,7 +137,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
nodeClick(list, node) {
|
nodeClick(list, node) {
|
||||||
if (node.data.id) {
|
if (node.data.id) {
|
||||||
this.areaId = node.data.id
|
this.areaId = node.data.id
|
||||||
@@ -150,7 +147,6 @@ export default {
|
|||||||
this.getInfo()
|
this.getInfo()
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
},
|
},
|
||||||
|
|
||||||
resetSearch() {
|
resetSearch() {
|
||||||
this.name = ''
|
this.name = ''
|
||||||
this.page.current = 1
|
this.page.current = 1
|
||||||
@@ -158,7 +154,6 @@ export default {
|
|||||||
this.page.total = 0
|
this.page.total = 0
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
},
|
},
|
||||||
|
|
||||||
getInfo() {
|
getInfo() {
|
||||||
this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`).then(res => {
|
this.instance.post(`/api/appcorp2/getLatestInfo?areaId=${this.areaId}`).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
@@ -166,7 +161,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getTableData() {
|
getTableData() {
|
||||||
this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}¤t=${this.page.current}&size=${this.page.size}&name=${this.name}`,).then(res => {
|
this.instance.post(`/api/appcorp2/list?areaId=${this.areaId}¤t=${this.page.current}&size=${this.page.size}&name=${this.name}`,).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
@@ -208,6 +202,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ai-table {
|
.ai-table {
|
||||||
height: calc(100% - 44px);
|
height: calc(100% - 44px);
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
|
const aiBase = process.env.NODE_ENV == "production" ? "https://aiweb.icunwei.com" : "http://192.168.1.87:9000"
|
||||||
import AiTable from "dui/packages/basic/AiTable.vue";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "coDetail",
|
name: "coDetail",
|
||||||
components: {AiTable},
|
|
||||||
label: "系统详情",
|
label: "系统详情",
|
||||||
props: {
|
props: {
|
||||||
dict: Object,
|
dict: Object,
|
||||||
@@ -40,7 +37,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.instance.post("/api/apiForward", null, {
|
this.instance.post("/api/apiForward", null, {
|
||||||
params: {url: "http://192.168.1.87:9000/app/appmasssendingtaskbaidu/ailist?size=15"}
|
params: {url: `${aiBase}/app/appmasssendingtaskbaidu/ailist?size=15`}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.tableData = res.data
|
this.tableData = res.data
|
||||||
|
|||||||
Reference in New Issue
Block a user