|
@@ -2,7 +2,7 @@
|
|
|
<el-container class="home">
|
|
|
<!-- 顶部导航栏 -->
|
|
|
<el-header class="header">
|
|
|
- <Select width="200" radius v-model="projectId" @change="testClick" :selectdata="dataSelect3" :placeholder="'请选择'" :hideClear="true" />
|
|
|
+ <Select width="200" radius v-model="projectId" @change="testClick" :selectdata="projectList" :placeholder="'请选择'" :hideClear="true" />
|
|
|
<DropDownButton
|
|
|
@click="createCanvas"
|
|
|
type="primary"
|
|
@@ -24,7 +24,7 @@
|
|
|
<!-- 左侧树状导航栏部分 -->
|
|
|
<el-aside class="aside" width="240px">
|
|
|
<left-folder ref="leftFolder" @changeFolder="changeFolder"></left-folder>
|
|
|
- <!--
|
|
|
+ <!--
|
|
|
<div class="recycle" @click="showRecycleDialog">
|
|
|
<img :src="require('@/assets/images/recycle.png')" />
|
|
|
<span>回收站</span>
|
|
@@ -131,6 +131,7 @@ import recycle from "@/components/homeView/recycle";
|
|
|
import createPlanarDialog from "@/components/homeView/createPlanarDialog";
|
|
|
import { SNetUtil } from "@persagy-web/base";
|
|
|
import { mapState, mapMutations } from "vuex";
|
|
|
+const projectList = window.__systemConf.projectList
|
|
|
export default {
|
|
|
name: "home",
|
|
|
components: {
|
|
@@ -150,12 +151,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
chooseProjectId: this.projectId,
|
|
|
- dataSelect3: [
|
|
|
- { id: "Pj1101050029", name: "东坝万达" },
|
|
|
- { id: "Pj4403070003", name: "龙岗万达" },
|
|
|
- { id: "Pj5001120003", name: "香港置地" },
|
|
|
- { id: "Pj4403050019", name: "招商IOC" },
|
|
|
- ], // 项目列表
|
|
|
+ projectList, // 项目列表
|
|
|
dropDownList: [
|
|
|
{
|
|
|
id: "batch",
|
|
@@ -572,6 +568,14 @@ export default {
|
|
|
immediate: true,
|
|
|
},
|
|
|
},
|
|
|
+ created(){
|
|
|
+ // 如果路径带参数则摈弃项目配置项目、使用传入项目
|
|
|
+ const urlData = this.$route.query;
|
|
|
+ if (Object.keys(urlData).length != 0) {
|
|
|
+ this.projectList = [{ id: urlData.projectId, name: urlData.projectName }];
|
|
|
+ this.projectId = urlData.projectId;
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|