desc: 修改接口
This commit is contained in:
parent
949b265e6b
commit
999357c520
@ -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');
|
||||
|
@ -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();
|
||||
|
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user