接口调整
This commit is contained in:
parent
ccd71601d1
commit
0c938f5928
@ -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) {
|
||||
|
@ -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() {
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user