desc: 修改接口

This commit is contained in:
zyy 2019-12-02 14:50:48 +08:00
parent 949b265e6b
commit 999357c520
3 changed files with 5 additions and 5 deletions

View File

@ -145,7 +145,7 @@ export default {
this.$refs['newForm'].validate((valid) => {
if (valid) {
this.loading = true;
this.newModel['drawWay'] = '1';
this.newModel['drawWay'] = '0';
newMap(this.newModel).then(response => {
this.loading = false;
this.$emit('refresh');

View File

@ -48,7 +48,7 @@
</transition>
</template>
<script>
import { saveNewMap, getMapDetail, verifyMap, postBuildMapImport } from '@/api/jmap/mapdraft';
import { saveNewMap, saveMap, getMapDetail, verifyMap, postBuildMapImport } from '@/api/jmap/mapdraft';
import { ViewMode, TrainingMode, getDeviceMenuByDeviceType } from '@/scripts/ConstDic';
import { checkLoginLine } from '@/api/login';
import JlmapVisual from '@/views/newMap/jlmapNew/index';
@ -236,7 +236,8 @@ export default {
if (this.verifySectionPoint(map)) {
this.mapSaveing = true;
this.$store.dispatch('map/saveMapDeviceDefaultRelations').then(() => {
saveNewMap(Object.assign(map, { mapId: this.$route.params.mapId })).then(response => {
saveMap(Object.assign(map, { mapId: this.$route.params.mapId })).then(response => {
// saveNewMap(Object.assign(map, { mapId: this.$route.params.mapId })).then(response => {
this.$message.success(this.$t('tip.saveSuccessfully'));
this.mapSaveing = false;
this.initAutoSaveTask();

View File

@ -181,7 +181,7 @@ export default {
return list;
},
create() { //
// this.questionList = []; //
this.questionList = []; //
// const models = [];
const createArr = []; // model
this.sectionList.forEach(section => {
@ -262,7 +262,6 @@ export default {
}
}
});
console.log(createArr, '生成的道岔');
this.$confirm(this.$t('tip.confirmBatchGeneration'), this.$t('tip.hint'), {
confirmButtonText: this.$t('tip.confirm'),