代码调整
This commit is contained in:
parent
6ca7474eb1
commit
5e0146f8da
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div style="width: 100%;height: 100%;">
|
||||
<QueryListPage ref="queryListPage" :card-padding="10" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
||||
<QueryListPage v-if="showList" ref="queryListPage" :card-padding="10" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@ -14,6 +14,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
mapList:[],
|
||||
showList: false,
|
||||
pagerConfig: {
|
||||
pageSize: 'pageSize',
|
||||
pageIndex: 'pageNum'
|
||||
@ -27,6 +28,7 @@ export default {
|
||||
type: 'select',
|
||||
label: '地图名称',
|
||||
config: {
|
||||
default: '',
|
||||
noClear:true,
|
||||
data: []
|
||||
}
|
||||
@ -35,6 +37,7 @@ export default {
|
||||
type: 'select',
|
||||
label: '实训类型',
|
||||
config: {
|
||||
default: '',
|
||||
noClear:true,
|
||||
data: [
|
||||
{label: '单操实训', value: 'training'},
|
||||
@ -94,7 +97,8 @@ export default {
|
||||
this.mapList.push({label:element.name, value:element.id});
|
||||
});
|
||||
this.queryForm.queryObject.mapId.config.data = [...this.mapList];
|
||||
// this.queryForm.queryObject.mapId.config.default = this.mapList[0].value;
|
||||
this.queryForm.queryObject.mapId.config.default = this.mapList[0].value;
|
||||
this.showList = true;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
@ -102,9 +106,9 @@ export default {
|
||||
if (!form.trainingType) {
|
||||
form.trainingType = 'training';
|
||||
}
|
||||
// if (!form.mapId) {
|
||||
// form.mapId = this.mapList[0].value;
|
||||
// }
|
||||
if (!form.mapId) {
|
||||
form.mapId = this.mapList[0] ? this.mapList[0].value : '';
|
||||
}
|
||||
},
|
||||
queryFunction(param) {
|
||||
if (param.mapId) {
|
||||
|
Loading…
Reference in New Issue
Block a user