接口调整

This commit is contained in:
joylink_cuiweidong 2019-11-01 13:36:14 +08:00
parent ccd71601d1
commit 0c938f5928
3 changed files with 1 additions and 27 deletions

View File

@ -191,7 +191,6 @@ export default {
publish(index, row) {
row.mapId = this.$route.params.mapId;
row.cityCode = this.$route.query.cityCode;
debugger;
this.$refs.publishLesson.doShow(row);
},
deleteLesson(index, row) {

View File

@ -22,7 +22,7 @@
</template>
<script>
import { getPublishMapListBySkinCode } from '@/api/jmap/map';
// import { getPublishMapListBySkinCode } from '@/api/jmap/map';
import { adminPublishLesson, releaseOrCancel } from '@/api/designPlatform';
export default {
@ -32,9 +32,6 @@ export default {
dialogShow: false,
loading: false,
disabled: true,
mapList: [],
cityList: [],
cityMapDict: {},
editModel: {
id: '',
name: '',
@ -68,9 +65,6 @@ export default {
},
methods: {
doShow(model) {
this.mapList = [];
this.cityList = [];
this.cityMapDict = {};
this.editModel = {
id: model.id,
name: model.name,
@ -78,24 +72,6 @@ export default {
prdCode: model.prdCode,
cityCode: model.cityCode
};
if (model.skinCode && model.id) {
getPublishMapListBySkinCode(model.skinCode).then(resp => {
const list = resp.data || [];
list.forEach(elem => {
if (!this.cityMapDict[elem.cityCode]) {
this.cityMapDict[elem.cityCode] = [];
}
this.cityMapDict[elem.cityCode].push(elem);
});
this.$Dictionary.cityType().then(list => {
this.cityList = list.filter(elem => { return this.cityMapDict[elem.code]; });
});
this.mapList = this.cityMapDict[model.cityCode];
});
}
this.dialogShow = true;
},
doClose() {

View File

@ -197,7 +197,6 @@ export default {
//
const res = await getPlaceholderList({ trainingType: data.trainingType });
this.placeholderList = res.data;
debugger;
this.formModel = {
id: data.id,
trainingName: this.repliceName(data.trainingName, this.placeholderList),