Commit 74e71d0c authored by 张俊's avatar 张俊

Merge branch 'dev' of https://cloud.wodcloud.com/git/apaas/apaas-v3-ui into dev

parents fc532ca5 1642ec63
...@@ -313,19 +313,19 @@ export default { ...@@ -313,19 +313,19 @@ export default {
data: [ data: [
{ {
name: "已下架", name: "已下架",
value: 0, value: 2,
}, },
{ {
name: "已上架", name: "已上架",
value: 1, value: 3,
}, },
{ {
name: "上架审核中", name: "上架审核中",
value: 2, value: 1,
}, },
{ {
name: "下架审核中", name: "下架审核中",
value: 3, value: 4,
}, },
], ],
}, },
...@@ -674,19 +674,19 @@ export default { ...@@ -674,19 +674,19 @@ export default {
data: [ data: [
{ {
name: "已下架", name: "已下架",
value: 0, value: 2,
}, },
{ {
name: "已上架", name: "已上架",
value: 1, value: 3,
}, },
{ {
name: "上架审核中", name: "上架审核中",
value: 2, value: 1,
}, },
{ {
name: "下架审核中", name: "下架审核中",
value: 3, value: 4,
}, },
], ],
}, },
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</div> </div>
<div class="main-container"> <div class="main-container">
<iframe ref="intelligent_drawing_iframe" width="100%" height="100%" scrolling="no" :src="url" frameborder="0"></iframe> <iframe ref="intelligent_drawing_iframe" width="100%" height="100%" scrolling="no" :src="znztUrl" frameborder="0"></iframe>
</div> </div>
</div> </div>
</template> </template>
...@@ -17,21 +17,52 @@ ...@@ -17,21 +17,52 @@
export default { export default {
data() { data() {
return { return {
url:'https://apaasgis.wodcloud.com/portal/apaasplat/viewer/mapViewer.html' url:'https://apaasgis.wodcloud.com/portal/apaasplat/viewer/mapViewer.html',
}; };
}, },
computed:{
getZnztParams() {
return this.$store.state.znztParams;
},
getAppBuilderParams() {
return this.$store.state.appBuilderParams;
},
znztUrl(){
return this.url+this.urlParams
},
urlParams(){
if(this.$store.state.znztParams){
return `?webmap=${this.$store.state.znztParams.id}`;
}else{
return ''
}
},
},
watch: {
getZnztParams(newVal) {
this.urlParams = `?webmap=${newVal.id}`
console.log('智能制图参数'+newVal)
},
getAppBuilderParams(newVal) {
console.log('智能制图应用程序参数'+newVal)
},
},
mounted() { mounted() {
// window.addEventListener('message',event =>{ window.addEventListener('message',event =>{
// let data = event.data; let data = event.data;
// if (data.cmd == 'mapviewmsg'){ // 智能制图发布服务
// this.$router.push({ if (data.cmd == 'mapviewmsg'){
// name: "intelligent_details", console.log(data);
// query: { this.$store.commit("setZnztParams", data.params);
// id: data.params.id this.$router.push(`/fwzc/fwcs`);
// } }
// }); // App Builder发布服务
// } if (data.cmd == 'appbuildermsg'){
// }) console.log(data);
this.$store.commit("setAppBuilderParams", data.params);
this.$router.push(`/fwzc/fwcs`);
}
})
}, },
methods: {}, methods: {},
}; };
......
...@@ -19,6 +19,8 @@ const store = new Vuex.Store({ ...@@ -19,6 +19,8 @@ const store = new Vuex.Store({
], // 应用管理列表,onlyRead ], // 应用管理列表,onlyRead
shoppingCart: [], //购物车 shoppingCart: [], //购物车
menuCartState: 0, //购物车操作都要修改这个值,menu监听这个值的变化实时获取购物车列表 menuCartState: 0, //购物车操作都要修改这个值,menu监听这个值的变化实时获取购物车列表
znztParams: null, //智能制图传入过来的数据
appBuilderParams: null, //应用程序传入过来的数据
}, },
getters: { getters: {
// 1:超管 2:组织管理员 3:普通用户 4:开发者 // 1:超管 2:组织管理员 3:普通用户 4:开发者
...@@ -52,6 +54,12 @@ const store = new Vuex.Store({ ...@@ -52,6 +54,12 @@ const store = new Vuex.Store({
setMenuCartState(state) { setMenuCartState(state) {
state.menuCartState++; state.menuCartState++;
}, },
setZnztParams(state, newValue) {
state.znztParams = newValue;
},
setAppBuilderParams(state, newValue) {
state.appBuilderParams = newValue;
},
}, },
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment