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