接口调整

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) { publish(index, row) {
row.mapId = this.$route.params.mapId; row.mapId = this.$route.params.mapId;
row.cityCode = this.$route.query.cityCode; row.cityCode = this.$route.query.cityCode;
debugger;
this.$refs.publishLesson.doShow(row); this.$refs.publishLesson.doShow(row);
}, },
deleteLesson(index, row) { deleteLesson(index, row) {

View File

@ -22,7 +22,7 @@
</template> </template>
<script> <script>
import { getPublishMapListBySkinCode } from '@/api/jmap/map'; // import { getPublishMapListBySkinCode } from '@/api/jmap/map';
import { adminPublishLesson, releaseOrCancel } from '@/api/designPlatform'; import { adminPublishLesson, releaseOrCancel } from '@/api/designPlatform';
export default { export default {
@ -32,9 +32,6 @@ export default {
dialogShow: false, dialogShow: false,
loading: false, loading: false,
disabled: true, disabled: true,
mapList: [],
cityList: [],
cityMapDict: {},
editModel: { editModel: {
id: '', id: '',
name: '', name: '',
@ -68,9 +65,6 @@ export default {
}, },
methods: { methods: {
doShow(model) { doShow(model) {
this.mapList = [];
this.cityList = [];
this.cityMapDict = {};
this.editModel = { this.editModel = {
id: model.id, id: model.id,
name: model.name, name: model.name,
@ -78,24 +72,6 @@ export default {
prdCode: model.prdCode, prdCode: model.prdCode,
cityCode: model.cityCode 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; this.dialogShow = true;
}, },
doClose() { doClose() {

View File

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