|
|
|
|
@ -263,8 +263,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
histories: [],
|
|
|
|
|
units: new Map([
|
|
|
|
|
["jianzhumianji", "m²"],
|
|
|
|
|
["jianzhugaodu", "m"],
|
|
|
|
|
["dengjimianji", "m²"],
|
|
|
|
|
["shijimianji", "m²"],
|
|
|
|
|
["dikuaizongjia", "元"],
|
|
|
|
|
["dikuaimianji", "m²"],
|
|
|
|
|
["muqianjunjia", "元"],
|
|
|
|
|
@ -331,7 +331,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const res = await formShow({ id: this.customForm.customFormId }, false);
|
|
|
|
|
this.fields = res.fields.sort((a, b) => a.sort - b.sort);
|
|
|
|
|
this.fields = res.fields.filter(i => i.list_show).sort((a, b) => a.sort - b.sort);
|
|
|
|
|
this.relation = res.relation;
|
|
|
|
|
|
|
|
|
|
//字段处理
|
|
|
|
|
@ -356,7 +356,6 @@ export default {
|
|
|
|
|
throw new Error("fields或relation格式错误");
|
|
|
|
|
}
|
|
|
|
|
fields
|
|
|
|
|
.sort((a, b) => a.sort - b.sort)
|
|
|
|
|
.forEach((i) => {
|
|
|
|
|
i._relations = relation.find(
|
|
|
|
|
(j) => j.link_table_name.split("_")[1] === i.field
|
|
|
|
|
|