This commit is contained in:
lVAL 2019-12-09 10:52:19 +08:00
commit 0b590e922c
5 changed files with 22 additions and 3 deletions

View File

@ -76,6 +76,7 @@ const menuOperation = {
setMenu: (state, menu) => {
state.menu = menu;
state.menuCount += 1;
console.log(state.menuCount);
},
setMenuParam: (state, param) => {
state.menuParam = param;

View File

@ -3,11 +3,11 @@ export function getBaseUrl() {
let BASE_API;
if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud';
// BASE_API = 'https://test.joylink.club/jlcloud';
BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
BASE_API = 'http://192.168.3.82:9000'; // 杜康
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
} else {
BASE_API = process.env.VUE_APP_BASE_API;
}

View File

@ -92,6 +92,7 @@ export default {
},
watch: {
'$store.state.menuOperation.menuCount': function (val) {
console.log(val);
if (this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.Map)) {
this.menu = [...this.menuMap];
if (this.hasRelease) {

View File

@ -20,6 +20,14 @@
</el-button>
<el-button size="small" type="primary" class="eachButton" @click="createMap">{{ $t('map.newConstruction') }}</el-button>
</div>
<map-operate-menu
ref="menu"
:point="point"
:edit-model="editModel"
:line-code="lineCode"
@refresh="loadInitData"
@jlmap3d="jlmap3d"
/>
</div>
</div>
</template>
@ -28,9 +36,13 @@ import { DeviceMenu } from '@/scripts/ConstDic';
import { postBuildMapImport, listMap } from '@/api/jmap/mapdraft';
import { UrlConfig } from '@/router/index';
import { removeSessionStorage } from '@/utils/auth';
import MapOperateMenu from './mapmanage/operateMenu';
export default {
name: 'UserMapList',
components: {
MapOperateMenu
},
props: {
width: {
type: Number,
@ -134,6 +146,9 @@ export default {
this.$store.dispatch('menuOperation/setPopMenu', { position: this.point, menu: menu });
}
},
jlmap3d() {
this.$router.push({ path: '/design/jlmap3d/edit', query: { mapid: this.editModel.id } });
},
importf() {
const loading = this.$loading({
lock: true,

View File

@ -480,6 +480,7 @@ export default {
const switchList = [...this.switchList, ...list];
if (list && list.length && sectionLists && sectionLists.length) {
const sectionList = [];
const addSectionList = [];
list.forEach(elem => {
const sectionb = this.findSectionData(sectionLists, elem.sectionBCode);
const sectiona = this.findSectionData(sectionLists, elem.sectionACode);
@ -488,9 +489,10 @@ export default {
if (!parentSectionModel) { //
let uid;
if (!elem['uid']) {
uid = getUID('T', [...this.sectionList, ...sectionList]);
uid = getUID('T', [...this.sectionList, ...addSectionList]);
elem['uid'] = uid;
}
addSectionList.push({ code: elem.uid });
sectiona.parentCode = elem['uid'];
sectionb.parentCode = elem['uid'];
sectionc.parentCode = elem['uid'];