删除暂时没有用的npm 模块(lodash,mock)

发布地图 地图分组代码调整
This commit is contained in:
joylink_cuiweidong 2021-05-18 10:48:58 +08:00
parent 60aeeaedea
commit 622885d3d5
5 changed files with 13 additions and 13 deletions

View File

@ -23,7 +23,6 @@
"file-saver": "^1.3.3",
"js-cookie": "2.2.0",
"js-md5": "^0.7.3",
"lodash": "^4.17.11",
"normalize.css": "7.0.0",
"nprogress": "^0.2.0",
"path-to-regexp": "2.4.0",
@ -71,7 +70,6 @@
"eslint-plugin-vue": "5.2.2",
"file-loader": "^3.0.1",
"html-webpack-plugin": "3.2.0",
"mockjs": "1.0.1-beta3",
"node-sass": "^4.9.0",
"runjs": "^4.3.2",
"sass-loader": "^7.1.0",

View File

@ -3,7 +3,6 @@ import Rect from 'zrender/src/graphic/shape/Rect';
// import Line from 'zrender/src/graphic/shape/Line';
import Text from 'zrender/src/graphic/Text';
import Circle from 'zrender/src/graphic/shape/Circle';
// import { merge } from 'lodash';
const stateMap = {
slidingDoorEmergencyDoorOpenMalfunction : '滑动门&应急门开门故障',
slidingDoorEmergencyDoorCloseMalfunction: '滑动门&应急门关门故障',

View File

@ -105,6 +105,12 @@ export default {
},
doClose() {
this.dialogVisible = false;
this.formModel = {
groupId: '',
name: '',
type: '',
mapIds: []
};
}
}

View File

@ -111,7 +111,6 @@ export default {
methods: {
loadInitData() {
getPublishMapListOnline().then(resp => {
// this.mapList = resp.data;
this.mapList = [];
resp.data.forEach(item => {
this.mapList.push({ id: parseInt(item.id), name: item.name });

View File

@ -1,13 +1,11 @@
<template>
<div>
<el-dialog title="编辑地图" :visible.sync="dialogVisible" width="500px" :before-close="doClose" center>
<data-form ref="dataform" :form="form" :form-model="formModel" :rules="rules" />
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="doCreate">{{ $t('global.confirm') }}</el-button>
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
</span>
</el-dialog>
</div>
<el-dialog title="编辑地图" :visible.sync="dialogVisible" width="500px" :before-close="doClose" center>
<data-form ref="dataform" :form="form" :form-model="formModel" :rules="rules" />
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="doCreate">{{ $t('global.confirm') }}</el-button>
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
</span>
</el-dialog>
</template>
<script>