saas研发配置及网格调整
This commit is contained in:
@@ -11,6 +11,8 @@ instance.interceptors.request.eject(0);
|
|||||||
instance.interceptors.request.use(config => {
|
instance.interceptors.request.use(config => {
|
||||||
if (config.url.startsWith("/node")) {
|
if (config.url.startsWith("/node")) {
|
||||||
config.baseURL = "/ns"
|
config.baseURL = "/ns"
|
||||||
|
} else if (/\/project\/sass/.test(location.pathname)) {
|
||||||
|
config.baseURL = "/saas"
|
||||||
} else if (/\/xiushan/.test(location.pathname)) {
|
} else if (/\/xiushan/.test(location.pathname)) {
|
||||||
config.baseURL = "/xsjr"
|
config.baseURL = "/xsjr"
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "")
|
config.url = config.url.replace(/(app|auth|admin)\//, "")
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-grid-block">
|
<section class="app-grid-block">
|
||||||
<ai-list>
|
<ai-list>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<ai-title title="网格区块" :isShowBottomBorder="true"></ai-title>
|
<ai-title title="网格区块" :isShowBottomBorder="true"></ai-title>
|
||||||
@@ -100,30 +100,12 @@
|
|||||||
ref="aitableex"
|
ref="aitableex"
|
||||||
:current.sync="page.current"
|
:current.sync="page.current"
|
||||||
:size.sync="page.size"
|
:size.sync="page.size"
|
||||||
@selection-change="(v) => (ids = v.map((e) => e.id))"
|
@selection-change="v=>ids=v.map((e) => e.id)"
|
||||||
@getList="getList()"
|
@getList="getList()"
|
||||||
:dict="dict"
|
:dict="dict">
|
||||||
>
|
<el-table-column label="网格成员" slot="user" align="center" width="160">
|
||||||
<el-table-column
|
|
||||||
slot="selectId"
|
|
||||||
type="selection"
|
|
||||||
align="center"
|
|
||||||
width="40"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="网格员"
|
|
||||||
slot="user"
|
|
||||||
align="center"
|
|
||||||
fixed="right"
|
|
||||||
width="160">
|
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="flex-box">
|
<el-button type="text" @click="showGridMembers(row)">{{ row.girdMemberNumber || 0 }}</el-button>
|
||||||
<div v-for="(item, index) in row.girdMemberNames" v-show="index < 3" :key="index">
|
|
||||||
<AiOpenData type="userName" :openid="item"></AiOpenData>
|
|
||||||
<span v-if="index < 2 && index < row.girdMemberNames.length - 1">、</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -196,7 +178,21 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</ai-dialog>
|
</ai-dialog>
|
||||||
</div>
|
<ai-dialog :title="`${gridInfo.girdName}网格成员`" :visible.sync="dialog" customFooter @closed="gridInfo={}"
|
||||||
|
width="700px">
|
||||||
|
<ai-table :tableData="gridInfo.tableData" :colConfigs="gridMemberColConfigs" :dict="dict"
|
||||||
|
:isShowPagination="false" :show-header="false">
|
||||||
|
<el-table-column slot="tags">
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-tag v-if="row.tags" effect="dark">{{ row.tags || '标签' }}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</ai-table>
|
||||||
|
<template #footer>
|
||||||
|
<el-button @click="dialog=false">关闭</el-button>
|
||||||
|
</template>
|
||||||
|
</ai-dialog>
|
||||||
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -245,27 +241,31 @@ export default {
|
|||||||
isEdit: false,
|
isEdit: false,
|
||||||
searchId: "",
|
searchId: "",
|
||||||
fileList: [],
|
fileList: [],
|
||||||
location: {}
|
location: {},
|
||||||
|
dialog: false,
|
||||||
|
gridInfo: {},
|
||||||
|
gridMemberColConfigs: [
|
||||||
|
{prop: "wxUserId", openType: 'userName'},
|
||||||
|
{prop: "girdMemberType", dict: "girdMemberType"},
|
||||||
|
{slot: "tags"}
|
||||||
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getTreeList();
|
this.getTreeList();
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getCorpLocation()
|
this.getCorpLocation()
|
||||||
this.dict.load("girdLevel", "girdType", "isLastLevel", "plottingStatus");
|
this.dict.load("girdLevel", "girdType", "isLastLevel", "plottingStatus", "girdMemberType");
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
colConfigs() {
|
colConfigs() {
|
||||||
let _ = this;
|
|
||||||
return [
|
return [
|
||||||
{type: 'selection'},
|
{type: 'selection'},
|
||||||
{prop: "girdName", align: "left", label: "网格名称",},
|
{prop: "girdName", align: "left", label: "网格名称",},
|
||||||
{prop: "girdCode", align: "center", label: "网格编码",},
|
{slot: 'user'},
|
||||||
{prop: "girdType", align: "center", label: "网格类型", dict: "girdType"},
|
|
||||||
{prop: "girdLevel", align: "center", label: "网格层级", dict: "girdLevel"},
|
|
||||||
{prop: "plottingStatus", align: "center", label: "标绘状态", dict: "plottingStatus"},
|
{prop: "plottingStatus", align: "center", label: "标绘状态", dict: "plottingStatus"},
|
||||||
{prop: "createTime", align: "center", label: "创建时间", dateFormat: "YYYY-MM-DD"},
|
{prop: "createTime", align: "center", label: "创建时间", dateFormat: "YYYY-MM-DD"},
|
||||||
{prop: "girdMemberNames", align: "center", slot: 'user', width: 200, label: "网格员"},
|
{slot: "options"}
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -283,12 +283,9 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
getTreeList() {
|
getTreeList() {
|
||||||
this.instance
|
this.instance.post("/app/appgirdinfo/listAllByTop").then(res => {
|
||||||
.post("/app/appgirdinfo/listByTop", null, null)
|
if (res?.data) {
|
||||||
.then((res) => {
|
this.treeObj.treeList = [res.data];
|
||||||
if (res.code == 0) {
|
|
||||||
this.treeObj.treeList = [...res.data];
|
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.treeObj.treeList.length && !this.info.girdLevel) {
|
if (this.treeObj.treeList.length && !this.info.girdLevel) {
|
||||||
this.$refs.tree.setCurrentKey(this.treeObj.treeList[0].id)
|
this.$refs.tree.setCurrentKey(this.treeObj.treeList[0].id)
|
||||||
@@ -347,15 +344,13 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.instance
|
this.instance.post("/app/appgirdinfo/list", null, {
|
||||||
.post("/app/appgirdinfo/list", null, {
|
|
||||||
params: {
|
params: {
|
||||||
...this.searchObj,
|
...this.searchObj,
|
||||||
...this.page,
|
...this.page,
|
||||||
parentGirdId: this.info.girdLevel === '0' ? '' : this.searchId,
|
parentGirdId: this.info.girdLevel === '0' ? '' : this.searchId,
|
||||||
},
|
},
|
||||||
})
|
}).then((res) => {
|
||||||
.then((res) => {
|
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.tableData = res.data.records.map(v => {
|
this.tableData = res.data.records.map(v => {
|
||||||
return {
|
return {
|
||||||
@@ -556,6 +551,19 @@ export default {
|
|||||||
});
|
});
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
|
showGridMembers(row) {
|
||||||
|
if (row.girdMemberNumber > 0) {
|
||||||
|
this.gridInfo = this.$copy(row)
|
||||||
|
this.instance.post("/app/appgirdmemberinfo/listByGirdIdByThree", null, {
|
||||||
|
params: {girdId: row.id}
|
||||||
|
}).then(res => {
|
||||||
|
if (res?.data) {
|
||||||
|
this.gridInfo.tableData = res.data
|
||||||
|
this.dialog = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else this.$message.warning("当前网格无成员")
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -660,6 +668,10 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::v-deep.ai-list__content--right {
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
|
||||||
::v-deep .treePanel {
|
::v-deep .treePanel {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -71,6 +71,14 @@ module.exports = {
|
|||||||
'^/lan': '/'
|
'^/lan': '/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
'/saas': {
|
||||||
|
target: 'http://192.168.1.34:19898',
|
||||||
|
changeOrigin: true,
|
||||||
|
pathRewrite: {
|
||||||
|
//地址重写
|
||||||
|
'^/saas': '/'
|
||||||
|
}
|
||||||
|
},
|
||||||
'/omsapi': {
|
'/omsapi': {
|
||||||
target: 'http://192.168.1.87:19898',
|
target: 'http://192.168.1.87:19898',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user