删除暂时没有用的npm 模块(lodash,mock)
发布地图 地图分组代码调整
This commit is contained in:
parent
60aeeaedea
commit
622885d3d5
@ -23,7 +23,6 @@
|
|||||||
"file-saver": "^1.3.3",
|
"file-saver": "^1.3.3",
|
||||||
"js-cookie": "2.2.0",
|
"js-cookie": "2.2.0",
|
||||||
"js-md5": "^0.7.3",
|
"js-md5": "^0.7.3",
|
||||||
"lodash": "^4.17.11",
|
|
||||||
"normalize.css": "7.0.0",
|
"normalize.css": "7.0.0",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"path-to-regexp": "2.4.0",
|
"path-to-regexp": "2.4.0",
|
||||||
@ -71,7 +70,6 @@
|
|||||||
"eslint-plugin-vue": "5.2.2",
|
"eslint-plugin-vue": "5.2.2",
|
||||||
"file-loader": "^3.0.1",
|
"file-loader": "^3.0.1",
|
||||||
"html-webpack-plugin": "3.2.0",
|
"html-webpack-plugin": "3.2.0",
|
||||||
"mockjs": "1.0.1-beta3",
|
|
||||||
"node-sass": "^4.9.0",
|
"node-sass": "^4.9.0",
|
||||||
"runjs": "^4.3.2",
|
"runjs": "^4.3.2",
|
||||||
"sass-loader": "^7.1.0",
|
"sass-loader": "^7.1.0",
|
||||||
|
@ -3,7 +3,6 @@ import Rect from 'zrender/src/graphic/shape/Rect';
|
|||||||
// import Line from 'zrender/src/graphic/shape/Line';
|
// import Line from 'zrender/src/graphic/shape/Line';
|
||||||
import Text from 'zrender/src/graphic/Text';
|
import Text from 'zrender/src/graphic/Text';
|
||||||
import Circle from 'zrender/src/graphic/shape/Circle';
|
import Circle from 'zrender/src/graphic/shape/Circle';
|
||||||
// import { merge } from 'lodash';
|
|
||||||
const stateMap = {
|
const stateMap = {
|
||||||
slidingDoorEmergencyDoorOpenMalfunction : '滑动门&应急门开门故障',
|
slidingDoorEmergencyDoorOpenMalfunction : '滑动门&应急门开门故障',
|
||||||
slidingDoorEmergencyDoorCloseMalfunction: '滑动门&应急门关门故障',
|
slidingDoorEmergencyDoorCloseMalfunction: '滑动门&应急门关门故障',
|
||||||
|
@ -105,6 +105,12 @@ export default {
|
|||||||
},
|
},
|
||||||
doClose() {
|
doClose() {
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
|
this.formModel = {
|
||||||
|
groupId: '',
|
||||||
|
name: '',
|
||||||
|
type: '',
|
||||||
|
mapIds: []
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,7 +111,6 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
loadInitData() {
|
loadInitData() {
|
||||||
getPublishMapListOnline().then(resp => {
|
getPublishMapListOnline().then(resp => {
|
||||||
// this.mapList = resp.data;
|
|
||||||
this.mapList = [];
|
this.mapList = [];
|
||||||
resp.data.forEach(item => {
|
resp.data.forEach(item => {
|
||||||
this.mapList.push({ id: parseInt(item.id), name: item.name });
|
this.mapList.push({ id: parseInt(item.id), name: item.name });
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<el-dialog title="编辑地图" :visible.sync="dialogVisible" width="500px" :before-close="doClose" center>
|
||||||
<el-dialog title="编辑地图" :visible.sync="dialogVisible" width="500px" :before-close="doClose" center>
|
<data-form ref="dataform" :form="form" :form-model="formModel" :rules="rules" />
|
||||||
<data-form ref="dataform" :form="form" :form-model="formModel" :rules="rules" />
|
<span slot="footer" class="dialog-footer">
|
||||||
<span slot="footer" class="dialog-footer">
|
<el-button type="primary" @click="doCreate">{{ $t('global.confirm') }}</el-button>
|
||||||
<el-button type="primary" @click="doCreate">{{ $t('global.confirm') }}</el-button>
|
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
|
||||||
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
|
</span>
|
||||||
</span>
|
</el-dialog>
|
||||||
</el-dialog>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
Loading…
Reference in New Issue
Block a user