优化:1、meta 业务配置页面,其他界面改善
2、元数据记录到内存缺少id的处理
3、设置platid为不可修改字段
This commit is contained in:
@@ -128,7 +128,7 @@
|
||||
</li>
|
||||
|
||||
<li class="previous">
|
||||
<a style="border-bottom: 0;border-right: 0;border-top: 0;">到第<input v-model="limit.pn" style="width: 30px;height: 21px;">/ {{limit.total}}页</a>
|
||||
<a style="border-bottom: 0;border-right: 0;border-top: 0;">到第<input v-model="limit.pn" style="width: 40px;height: 21px;">/ {{limit.total}}页</a>
|
||||
</li>
|
||||
<li class="previous">
|
||||
<a @click="findList(limit.pn)" href="javascript:;">确定</a>
|
||||
@@ -257,7 +257,7 @@
|
||||
para: {},
|
||||
list: {rows: [], total: 0},
|
||||
limit: {pn: 1, ps: 20, total: 0},
|
||||
order: {col: "id", desc: 1},
|
||||
order: {col: "", desc: 1},
|
||||
pk: "",
|
||||
detailData: {}
|
||||
},
|
||||
@@ -271,10 +271,11 @@
|
||||
})
|
||||
},
|
||||
service() {
|
||||
this.loadCfg();
|
||||
this.limit = {pn: 1, ps: 20, total: 0};
|
||||
this.order = {col:"", desc:1};
|
||||
this.findList();
|
||||
this.loadCfg(function () {
|
||||
this.limit = {pn: 1, ps: 20, total: 0};
|
||||
this.order = {col:"", desc:1};
|
||||
vm.findList();
|
||||
});
|
||||
},
|
||||
list () {
|
||||
let limit = this.limit;
|
||||
@@ -303,7 +304,7 @@
|
||||
vm.service = json[0].name;
|
||||
});
|
||||
},
|
||||
loadCfg() {
|
||||
loadCfg(back) {
|
||||
getCfg({name: this.service}).then(res => {
|
||||
// res['type'] = res.filters[0]['name']
|
||||
|
||||
@@ -314,6 +315,23 @@
|
||||
res.details = res.shows
|
||||
}
|
||||
this.cfg = res
|
||||
// 设置默认查询值
|
||||
let fbean = red.getData(`FBean-${this.service}`,{});
|
||||
if (fbean['filters']) {
|
||||
for (let i in fbean['filters']) {
|
||||
this.cfg.filters.forEach(function (f) {
|
||||
if (f.name === fbean['filters'][i]['col']) {
|
||||
f.value = fbean['filters'][i]['value']
|
||||
f.type = fbean['filters'][i]['type'];
|
||||
f.checked = f.checked || fbean['filters'][i]['checked']
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if (back) {
|
||||
back();
|
||||
}
|
||||
});
|
||||
},
|
||||
dealFieldFmt(bean, colFmt) { //处理字典数据 及 自定义函数处理数据
|
||||
@@ -432,6 +450,7 @@
|
||||
limit: this.limit,
|
||||
};
|
||||
|
||||
red.setData(`FBean-${this.service}`, fbean)
|
||||
return fbean
|
||||
},
|
||||
detail() {
|
||||
|
||||
Reference in New Issue
Block a user