cloud-web-corejs 1.0.54-dev.804 → 1.0.54-dev.806
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/bizTab/BizBillActions.vue +2 -2
- package/src/components/wf/content.vue +5 -3
- package/src/components/wf/wf.js +2 -0
- package/src/components/wf/wfActionDropdown.vue +2 -2
- package/src/components/wf/wfUtil.js +6 -4
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +8 -5
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +14 -0
- package/src/components/xform/form-designer/setting-panel/index.vue +0 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +4 -0
- package/src/router/modules/customer.js +4 -4
- package/src/utils/pdfUtil.js +300 -70
- package/src/views/bd/setting/bd_company_env/dialog.vue +1 -1
- package/src/views/bd/setting/table_model/edit.vue +15 -29
- package/src/views/bd/setting/table_model/mixins/edit.js +295 -149
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +32 -0
|
@@ -54,6 +54,9 @@ modules = {
|
|
|
54
54
|
...this.param,
|
|
55
55
|
};
|
|
56
56
|
},
|
|
57
|
+
callback: (rows) => {
|
|
58
|
+
this.restoreChecked(rows);
|
|
59
|
+
},
|
|
57
60
|
columns: [
|
|
58
61
|
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
59
62
|
{
|
|
@@ -111,6 +114,35 @@ modules = {
|
|
|
111
114
|
that.vxeOption = opts;
|
|
112
115
|
});
|
|
113
116
|
},
|
|
117
|
+
/**
|
|
118
|
+
* 列表每次查询完,把已选中的字段重新勾上。
|
|
119
|
+
*
|
|
120
|
+
* selectDialogMixins.initSetting 只把 rows 播种进 checkRows(右侧已选列表),
|
|
121
|
+
* 表格自身的勾选状态没人恢复 —— 不补这一步,弹框打开时左边一个勾都没有,
|
|
122
|
+
* 用户再勾一个新字段就会把原有的显示字段整组顶掉。
|
|
123
|
+
*/
|
|
124
|
+
restoreChecked(rows) {
|
|
125
|
+
let checkRows = this.checkRows;
|
|
126
|
+
if (!checkRows || !checkRows.length || !rows || !rows.length) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
let fieldKey = this.fieldKey;
|
|
130
|
+
let keys = checkRows.map((item) => item[fieldKey]);
|
|
131
|
+
let targetRows = rows.filter((row) => keys.includes(row[fieldKey]));
|
|
132
|
+
if (!targetRows.length) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
// 回填进来的可能只是 { taZdMc } 这样的占位行,用列表里的真实行替换掉,
|
|
136
|
+
// 保证「确定」抛给调用方的是带 zdEn / zdCh 的完整数据
|
|
137
|
+
this.checkRows = checkRows.map((item) => {
|
|
138
|
+
let real = targetRows.find((row) => row[fieldKey] === item[fieldKey]);
|
|
139
|
+
return real || item;
|
|
140
|
+
});
|
|
141
|
+
let $grid = this.$refs[this.defaultTableRefName];
|
|
142
|
+
if ($grid && $grid.setCheckboxRow) {
|
|
143
|
+
$grid.setCheckboxRow(targetRows, true);
|
|
144
|
+
}
|
|
145
|
+
},
|
|
114
146
|
},
|
|
115
147
|
};
|
|
116
148
|
export default modules;
|