cnhis-design-vue 3.0.8 → 3.1.1
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/CHANGELOG.md +34 -0
- package/es/big-table/index.js +101 -14
- package/es/button-print/index.css +4 -0
- package/es/button-print/index.js +112 -44
- package/es/drag-layout/index.css +4 -0
- package/es/field-set/index.css +46 -42
- package/es/grid/index.css +62 -58
- package/es/index.css +4 -0
- package/es/index.js +213 -58
- package/es/select-person/index.css +62 -58
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +9 -3
- package/packages/big-table/src/components/edit-form/edit-date.vue +36 -2
- package/packages/big-table/src/components/edit-form/edit-select.vue +37 -7
- package/packages/big-table/src/hooks/useEdit.ts +21 -2
- package/packages/button-print/src/ButtonPrint.vue +16 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.1.1](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/compare/v3.1.0...v3.1.1) (2022-06-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 表格编辑调接口下拉框支持关键字搜索 ([93157a8](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/93157a8e6cfca91f7f146c61ba7986eaa2716d0f))
|
|
11
|
+
* 表格编辑默认状态设置、校验规则可配置 ([e9618a5](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/e9618a57b9c26dc1a354650bf631eadb91cd0552))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* 打印组件选择格式后下拉菜单未收起,也没有选定的格式样式标识 ([f64f656](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/f64f656dc87c0efef1fea114a57fdc94c179b4b6))
|
|
17
|
+
* big-table初始化会强制默认选中所有行 ([55eadeb](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/55eadebe653f366d4fa27d5d82cfef6347d7f322))
|
|
18
|
+
|
|
19
|
+
## [3.1.0](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/compare/v3.0.9...v3.1.0) (2022-05-31)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* 打印格式选择 ([56180bf](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/56180bfde66108455c7ed15870c257c46a88c834))
|
|
25
|
+
* 下拉加映射配置 ([0ea094b](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/0ea094be74e155b2cf37b52df149694118ecf876))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* 解决冲突 ([0ee5bc1](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/0ee5bc10e02148e208eb4da481590d2da9be536c))
|
|
31
|
+
|
|
32
|
+
### [3.0.9](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/compare/v3.0.8...v3.0.9) (2022-05-30)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* 不传scrollConfig报错; ([8897413](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/88974131e5eed48f39ebe2955830062b6976f8ec))
|
|
38
|
+
|
|
5
39
|
### [3.0.8](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/compare/v3.0.7...v3.0.8) (2022-05-27)
|
|
6
40
|
|
|
7
41
|
|
package/es/big-table/index.js
CHANGED
|
@@ -13323,21 +13323,34 @@ var script$5 = defineComponent({
|
|
|
13323
13323
|
emits: ["setOptions", "formChange"],
|
|
13324
13324
|
setup(props, { attrs, slots, emit }) {
|
|
13325
13325
|
const state = reactive({
|
|
13326
|
-
options: []
|
|
13326
|
+
options: [],
|
|
13327
|
+
loading: false,
|
|
13328
|
+
keyword: "",
|
|
13329
|
+
config: {}
|
|
13327
13330
|
});
|
|
13328
13331
|
const setOptions = async () => {
|
|
13329
13332
|
if (props.col.options) {
|
|
13330
13333
|
state.options = JSON.parse(JSON.stringify(props.col.options));
|
|
13331
13334
|
}
|
|
13332
13335
|
else {
|
|
13333
|
-
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13336
|
+
`${props.col.columnName}_options`;
|
|
13337
|
+
const obj = {
|
|
13338
|
+
keyword: state.keyword,
|
|
13339
|
+
row: props.row,
|
|
13340
|
+
column: props.col,
|
|
13341
|
+
index: props.index
|
|
13342
|
+
};
|
|
13343
|
+
state.options = await props.col.queryOptions(obj);
|
|
13344
|
+
state.loading = false;
|
|
13345
|
+
emit("setOptions", state.options);
|
|
13338
13346
|
}
|
|
13339
13347
|
};
|
|
13340
|
-
|
|
13348
|
+
let selectSearch = (value) => {
|
|
13349
|
+
state.keyword = value;
|
|
13350
|
+
state.loading = true;
|
|
13351
|
+
setOptions();
|
|
13352
|
+
};
|
|
13353
|
+
selectSearch = xeUtils.debounce(selectSearch, 800);
|
|
13341
13354
|
const onUpdateValue = (value) => {
|
|
13342
13355
|
emit("formChange", {
|
|
13343
13356
|
value,
|
|
@@ -13346,13 +13359,25 @@ var script$5 = defineComponent({
|
|
|
13346
13359
|
index: props.index
|
|
13347
13360
|
});
|
|
13348
13361
|
};
|
|
13349
|
-
|
|
13362
|
+
const init = () => {
|
|
13363
|
+
if (props.col.options) {
|
|
13364
|
+
setOptions();
|
|
13365
|
+
}
|
|
13366
|
+
else {
|
|
13367
|
+
state.config.remote = true;
|
|
13368
|
+
state.config.onSearch = selectSearch;
|
|
13369
|
+
selectSearch("");
|
|
13370
|
+
}
|
|
13371
|
+
};
|
|
13372
|
+
init();
|
|
13373
|
+
return () => [createVNode(NSelect, mergeProps(attrs, state.config, {
|
|
13350
13374
|
"options": state.options,
|
|
13351
13375
|
"consistentMenuWidth": false,
|
|
13352
13376
|
"clearable": true,
|
|
13353
13377
|
"filterable": true,
|
|
13354
13378
|
"to": false,
|
|
13355
13379
|
"placeholder": "\u8BF7\u9009\u62E9",
|
|
13380
|
+
"loading": state.loading,
|
|
13356
13381
|
"onUpdateValue": onUpdateValue
|
|
13357
13382
|
}), null)];
|
|
13358
13383
|
}
|
|
@@ -13390,13 +13415,47 @@ var script$4 = defineComponent({
|
|
|
13390
13415
|
index: props.index
|
|
13391
13416
|
});
|
|
13392
13417
|
};
|
|
13418
|
+
const { isStartDate = false, isEndDate = false, connectField } = props.col;
|
|
13419
|
+
const setDateDisabled = (cur, date) => {
|
|
13420
|
+
if (isStartDate && connectField) {
|
|
13421
|
+
return cur > date;
|
|
13422
|
+
}
|
|
13423
|
+
if (isEndDate && connectField) {
|
|
13424
|
+
return cur < date;
|
|
13425
|
+
}
|
|
13426
|
+
return false;
|
|
13427
|
+
};
|
|
13428
|
+
const isDateDisabled = (ts) => {
|
|
13429
|
+
return setDateDisabled(ts, new Date(props.row[connectField]).getTime());
|
|
13430
|
+
};
|
|
13431
|
+
const isTimeDisabled = (ts) => {
|
|
13432
|
+
const date = new Date(props.row[connectField] || ts);
|
|
13433
|
+
const h = date.getHours();
|
|
13434
|
+
const m = date.getMinutes();
|
|
13435
|
+
const s = date.getSeconds();
|
|
13436
|
+
return {
|
|
13437
|
+
isHourDisabled: (hour) => {
|
|
13438
|
+
return setDateDisabled(hour, h);
|
|
13439
|
+
},
|
|
13440
|
+
isMinuteDisabled: (minute) => {
|
|
13441
|
+
return setDateDisabled(minute, m);
|
|
13442
|
+
},
|
|
13443
|
+
isSecondDisabled: (second) => {
|
|
13444
|
+
return setDateDisabled(second, s);
|
|
13445
|
+
}
|
|
13446
|
+
};
|
|
13447
|
+
};
|
|
13393
13448
|
const config = {
|
|
13394
13449
|
type: props.col.type || "datetime",
|
|
13395
13450
|
clearable: props.col.clearable || true,
|
|
13396
13451
|
disabled: props.col.disabled || false,
|
|
13397
13452
|
valueFormat: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
|
|
13398
|
-
to: false
|
|
13453
|
+
to: false,
|
|
13454
|
+
isDateDisabled: props.col.isDateDisabled || isDateDisabled
|
|
13399
13455
|
};
|
|
13456
|
+
if (config.type.includes("time")) {
|
|
13457
|
+
config.isTimeDisabled = props.col.isTimeDisabled || isTimeDisabled;
|
|
13458
|
+
}
|
|
13400
13459
|
return () => createVNode(NDatePicker, mergeProps(attrs, config, {
|
|
13401
13460
|
"onUpdateFormattedValue": onConfirm
|
|
13402
13461
|
}), null);
|
|
@@ -13466,13 +13525,33 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
13466
13525
|
await xGrid.value.insertAt(record, getInsertRecords.at(-1));
|
|
13467
13526
|
xGrid.value.clearActived();
|
|
13468
13527
|
};
|
|
13528
|
+
const getLabel = (opts, value) => {
|
|
13529
|
+
return opts.find((opt) => opt.value === value)?.label || "";
|
|
13530
|
+
};
|
|
13469
13531
|
const onFormChange = ({ value, row, column, index }) => {
|
|
13470
|
-
row[column.columnName]
|
|
13471
|
-
|
|
13532
|
+
let oldValue = row[column.columnName];
|
|
13533
|
+
if ((column?.formType === "input" || column?.formType === "number") && props.columnConfig?.formValidate) {
|
|
13534
|
+
row[column.columnName] = props.columnConfig?.formValidate({ row, column, current: value, old: row[column.columnName] });
|
|
13535
|
+
}
|
|
13536
|
+
else if (column?.formatMap) {
|
|
13537
|
+
oldValue = {
|
|
13538
|
+
label: row[column.formatMap.label],
|
|
13539
|
+
value: row[column.formatMap.value]
|
|
13540
|
+
};
|
|
13541
|
+
row[column.formatMap.label] = getLabel(row[column.columnName + "_options"] || [], value);
|
|
13542
|
+
row[column.formatMap.value] = value;
|
|
13543
|
+
}
|
|
13544
|
+
else {
|
|
13545
|
+
row[column.columnName] = value;
|
|
13546
|
+
}
|
|
13547
|
+
emit("formChange", { value, row, column, index, oldValue });
|
|
13472
13548
|
};
|
|
13473
13549
|
const getDefaultValue = (params, item) => {
|
|
13474
13550
|
const value = params.row[item.columnName];
|
|
13475
13551
|
if (item.formType === "select") {
|
|
13552
|
+
if (item.formatMap) {
|
|
13553
|
+
return params.row[item.formatMap.label];
|
|
13554
|
+
}
|
|
13476
13555
|
if (item.options) {
|
|
13477
13556
|
return item.options.find((v) => v.value == value)?.label || "";
|
|
13478
13557
|
}
|
|
@@ -39686,7 +39765,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
39686
39765
|
return;
|
|
39687
39766
|
let currentPageTableData = table.getTableData()?.tableData;
|
|
39688
39767
|
let currentPageSelectedRows = currentPageTableData.filter((row) => {
|
|
39689
|
-
return currentCheckedKeys.value.includes(row[props.primaryKey]);
|
|
39768
|
+
return row[props.primaryKey] ? currentCheckedKeys.value.includes(row[props.primaryKey]) : false;
|
|
39690
39769
|
});
|
|
39691
39770
|
setCurrentCheckedLength();
|
|
39692
39771
|
if (!currentPageSelectedRows || !currentPageSelectedRows.length) {
|
|
@@ -39807,6 +39886,9 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
39807
39886
|
if (!isEdit || item.columnName === "operatorColumn" || !item.isEdit) {
|
|
39808
39887
|
return formatter(params, item);
|
|
39809
39888
|
}
|
|
39889
|
+
else if (isEdit && item.isEdit && item.checkEditStatus && item.checkEditStatus(params)) {
|
|
39890
|
+
return formatterEdit(params, item);
|
|
39891
|
+
}
|
|
39810
39892
|
else {
|
|
39811
39893
|
return createVNode("span", null, [getDefaultValue(params, item)]);
|
|
39812
39894
|
}
|
|
@@ -39848,6 +39930,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
39848
39930
|
const formatterEdit = (params, col) => {
|
|
39849
39931
|
let { row, column, $rowIndex, rowIndex } = params;
|
|
39850
39932
|
let formType = column.formType || col.formType || "";
|
|
39933
|
+
let formatMap = column.formatMap || col.formatMap || null;
|
|
39851
39934
|
if (!formType)
|
|
39852
39935
|
return null;
|
|
39853
39936
|
if (formType === "custom") {
|
|
@@ -39866,6 +39949,9 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
39866
39949
|
if (formType === "date") {
|
|
39867
39950
|
propsData.defaultFormattedValue = row[col.columnName];
|
|
39868
39951
|
}
|
|
39952
|
+
else if (formatMap) {
|
|
39953
|
+
propsData.defaultValue = row[formatMap.value];
|
|
39954
|
+
}
|
|
39869
39955
|
else {
|
|
39870
39956
|
propsData.defaultValue = row[col.columnName];
|
|
39871
39957
|
}
|
|
@@ -40756,7 +40842,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
40756
40842
|
emit("scroll", params);
|
|
40757
40843
|
};
|
|
40758
40844
|
const initScroll = () => {
|
|
40759
|
-
const { throttle = false, throttleTime = 800, throttleOptions = {} } = props.columnConfig?.scrollConfig;
|
|
40845
|
+
const { throttle = false, throttleTime = 800, throttleOptions = {} } = props.columnConfig?.scrollConfig || {};
|
|
40760
40846
|
if (throttle) {
|
|
40761
40847
|
scrollEvent = xeUtils.throttle(scrollEvent, throttleTime, throttleOptions);
|
|
40762
40848
|
}
|
|
@@ -41553,6 +41639,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
41553
41639
|
iconClose: "iconfont icon-a-xitongtubiaotianjia"
|
|
41554
41640
|
},
|
|
41555
41641
|
"keyboard-config": _ctx.columnConfig.keyboardConfig || {},
|
|
41642
|
+
"edit-rules": _ctx.columnConfig.editRules || {},
|
|
41556
41643
|
onCellDblclick: rowdblclick,
|
|
41557
41644
|
onCellClick: handlerClickRow,
|
|
41558
41645
|
onCheckboxChange: selectionChange,
|
|
@@ -41603,7 +41690,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
41603
41690
|
}
|
|
41604
41691
|
})]),
|
|
41605
41692
|
_: 3
|
|
41606
|
-
}, 8, ["seq-config", "tree-config", "row-id", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config", "keyboard-config"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
|
|
41693
|
+
}, 8, ["seq-config", "tree-config", "row-id", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config", "keyboard-config", "edit-rules"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
|
|
41607
41694
|
class: "refresh",
|
|
41608
41695
|
onClick: hanldeClickRefresh
|
|
41609
41696
|
}, [createVNode(unref(NIcon), {
|
package/es/button-print/index.js
CHANGED
|
@@ -7898,18 +7898,65 @@ const __default__ = create({
|
|
|
7898
7898
|
var script = /* @__PURE__ */ defineComponent({
|
|
7899
7899
|
...__default__,
|
|
7900
7900
|
props: {
|
|
7901
|
-
btnText: {
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7901
|
+
btnText: {
|
|
7902
|
+
type: String,
|
|
7903
|
+
required: false,
|
|
7904
|
+
default: "\u6253\u5370"
|
|
7905
|
+
},
|
|
7906
|
+
printText: {
|
|
7907
|
+
type: String,
|
|
7908
|
+
required: false,
|
|
7909
|
+
default: "\u76F4\u63A5\u6253\u5370"
|
|
7910
|
+
},
|
|
7911
|
+
previewText: {
|
|
7912
|
+
type: String,
|
|
7913
|
+
required: false,
|
|
7914
|
+
default: "\u6253\u5370\u9884\u89C8"
|
|
7915
|
+
},
|
|
7916
|
+
formatEditText: {
|
|
7917
|
+
type: String,
|
|
7918
|
+
required: false,
|
|
7919
|
+
default: "\u683C\u5F0F\u7F16\u8F91"
|
|
7920
|
+
},
|
|
7921
|
+
identityVerificationTitle: {
|
|
7922
|
+
type: String,
|
|
7923
|
+
required: false,
|
|
7924
|
+
default: "\u6253\u5370\u670D\u52A1\u8EAB\u4EFD\u6821\u9A8C"
|
|
7925
|
+
},
|
|
7926
|
+
params: {
|
|
7927
|
+
type: Array,
|
|
7928
|
+
required: false,
|
|
7929
|
+
default: () => []
|
|
7930
|
+
},
|
|
7931
|
+
prevFn: {
|
|
7932
|
+
type: Function,
|
|
7933
|
+
required: false,
|
|
7934
|
+
default: () => Promise.resolve()
|
|
7935
|
+
},
|
|
7936
|
+
verifyUser: {
|
|
7937
|
+
type: Function,
|
|
7938
|
+
required: false,
|
|
7939
|
+
default: () => Promise.resolve()
|
|
7940
|
+
},
|
|
7941
|
+
queryPrintFormatByNumber: {
|
|
7942
|
+
type: Function,
|
|
7943
|
+
required: true,
|
|
7944
|
+
default: () => Promise.resolve({})
|
|
7945
|
+
},
|
|
7946
|
+
queryTemplateParams: {
|
|
7947
|
+
type: Function,
|
|
7948
|
+
required: false,
|
|
7949
|
+
default: () => Promise.resolve({})
|
|
7950
|
+
},
|
|
7951
|
+
strategy: {
|
|
7952
|
+
type: String,
|
|
7953
|
+
required: false,
|
|
7954
|
+
default: "MULTI"
|
|
7955
|
+
},
|
|
7956
|
+
printParams: {
|
|
7957
|
+
type: Array,
|
|
7958
|
+
required: false
|
|
7959
|
+
}
|
|
7913
7960
|
},
|
|
7914
7961
|
emits: ["success", "error"],
|
|
7915
7962
|
setup(__props, { emit }) {
|
|
@@ -7930,27 +7977,30 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
7930
7977
|
watchPrintParamsReformatFn: null,
|
|
7931
7978
|
spinTimer: null
|
|
7932
7979
|
});
|
|
7933
|
-
const options = reactive([
|
|
7934
|
-
{
|
|
7980
|
+
const options = reactive([{
|
|
7935
7981
|
label: props.printText,
|
|
7936
7982
|
key: "printText"
|
|
7937
|
-
},
|
|
7938
|
-
{
|
|
7983
|
+
}, {
|
|
7939
7984
|
label: props.previewText,
|
|
7940
7985
|
key: "previewText"
|
|
7941
|
-
},
|
|
7942
|
-
{
|
|
7986
|
+
}, {
|
|
7943
7987
|
label: props.formatEditText,
|
|
7944
7988
|
key: "formatEditText"
|
|
7945
|
-
}
|
|
7946
|
-
]);
|
|
7989
|
+
}]);
|
|
7947
7990
|
const currentFormatItem = computed(() => {
|
|
7948
7991
|
if (!state.currentFormatId)
|
|
7949
7992
|
return {};
|
|
7950
7993
|
let id = state.currentFormatId;
|
|
7951
7994
|
return state.formatList.find((item) => item.id === id);
|
|
7952
7995
|
});
|
|
7953
|
-
computed(() => currentFormatItem.value.name || "\u683C\u5F0F\u9009\u62E9");
|
|
7996
|
+
const formatTitle = computed(() => currentFormatItem.value.name || "\u683C\u5F0F\u9009\u62E9");
|
|
7997
|
+
const renderLabel = (option) => {
|
|
7998
|
+
return createVNode("span", {
|
|
7999
|
+
"class": {
|
|
8000
|
+
"active": option.key === state.currentFormatId
|
|
8001
|
+
}
|
|
8002
|
+
}, [option.label]);
|
|
8003
|
+
};
|
|
7954
8004
|
const getTemplateIdByFormatId = (id) => {
|
|
7955
8005
|
let find = state.formatList.find((item) => item.id === id);
|
|
7956
8006
|
return find.templateId;
|
|
@@ -8080,6 +8130,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
8080
8130
|
break;
|
|
8081
8131
|
default:
|
|
8082
8132
|
state.currentFormatId = key;
|
|
8133
|
+
state.visible = false;
|
|
8083
8134
|
break;
|
|
8084
8135
|
}
|
|
8085
8136
|
};
|
|
@@ -8107,6 +8158,19 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
8107
8158
|
let findDefault = list.find((item) => item[key] == 1);
|
|
8108
8159
|
return findDefault?.id || list[0].id;
|
|
8109
8160
|
};
|
|
8161
|
+
const setOptions = () => {
|
|
8162
|
+
const children = state.formatList.map((v) => {
|
|
8163
|
+
return {
|
|
8164
|
+
label: v.name,
|
|
8165
|
+
key: v.id
|
|
8166
|
+
};
|
|
8167
|
+
});
|
|
8168
|
+
options.unshift({
|
|
8169
|
+
label: formatTitle.value,
|
|
8170
|
+
key: "format",
|
|
8171
|
+
children
|
|
8172
|
+
});
|
|
8173
|
+
};
|
|
8110
8174
|
const formatFormatList = (list) => {
|
|
8111
8175
|
let formatList = [];
|
|
8112
8176
|
list.forEach((item) => {
|
|
@@ -8172,6 +8236,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
8172
8236
|
state.formatList = formatListResult ? formatFormatList(formatListResult.obj) : [];
|
|
8173
8237
|
console.log("formatListResult", formatListResult);
|
|
8174
8238
|
state.currentFormatId = getDefaultFormatId(state.formatList, "defaultFlag");
|
|
8239
|
+
setOptions();
|
|
8175
8240
|
if (!state.currentFormatId) {
|
|
8176
8241
|
window.$message.error("\u83B7\u53D6\u6253\u5370\u683C\u5F0F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01");
|
|
8177
8242
|
return requestError();
|
|
@@ -8239,48 +8304,51 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
8239
8304
|
if (!val?.length)
|
|
8240
8305
|
return false;
|
|
8241
8306
|
reformatPrintParams();
|
|
8242
|
-
}, {
|
|
8307
|
+
}, {
|
|
8308
|
+
deep: true
|
|
8309
|
+
});
|
|
8243
8310
|
return (_ctx, _cache) => {
|
|
8244
|
-
return openBlock(), createElementBlock("span", {
|
|
8245
|
-
|
|
8311
|
+
return openBlock(), createElementBlock("span", {
|
|
8312
|
+
onClick: handleClickWrap
|
|
8313
|
+
}, [createVNode(unref(NDropdown), {
|
|
8314
|
+
class: "rowFoldHideBtnList-dropdown",
|
|
8246
8315
|
placement: "bottom-start",
|
|
8247
8316
|
show: unref(state).visible,
|
|
8248
8317
|
onClickoutside: handleClickOutside,
|
|
8249
8318
|
options: unref(options),
|
|
8250
|
-
onSelect: handleSelect
|
|
8319
|
+
onSelect: handleSelect,
|
|
8320
|
+
"render-label": renderLabel
|
|
8251
8321
|
}, {
|
|
8252
|
-
default: withCtx(() => [
|
|
8253
|
-
renderSlot(_ctx.$slots, "button", {
|
|
8322
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "button", {
|
|
8254
8323
|
handleClickPrintBtn: handleClickBtn,
|
|
8255
8324
|
printSpinning: unref(state).spinning,
|
|
8256
8325
|
printbtnText: __props.btnText,
|
|
8257
8326
|
printVisible: unref(state).visible
|
|
8258
|
-
}, () => [
|
|
8259
|
-
createVNode(unref(NButton), {
|
|
8327
|
+
}, () => [createVNode(unref(NButton), {
|
|
8260
8328
|
class: "dropdown-button",
|
|
8261
|
-
style: {
|
|
8329
|
+
style: {
|
|
8330
|
+
"margin": "0 8px 8px 0"
|
|
8331
|
+
},
|
|
8262
8332
|
onClick: withModifiers(handleClickBtn, ["stop"])
|
|
8263
8333
|
}, {
|
|
8264
|
-
default: withCtx(() => [
|
|
8265
|
-
unref(state).spinning ? (openBlock(), createBlock(unref(NIcon), {
|
|
8334
|
+
default: withCtx(() => [unref(state).spinning ? (openBlock(), createBlock(unref(NIcon), {
|
|
8266
8335
|
key: 0,
|
|
8267
8336
|
component: unref(Reload),
|
|
8268
|
-
style: {
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8337
|
+
style: {
|
|
8338
|
+
"line-height": "10px"
|
|
8339
|
+
}
|
|
8340
|
+
}, null, 8, ["component"])) : createCommentVNode("v-if", true), createTextVNode(" " + toDisplayString(__props.btnText) + " ", 1), createVNode(unref(NIcon), {
|
|
8341
|
+
component: unref(ChevronDown)
|
|
8342
|
+
}, null, 8, ["component"])]),
|
|
8273
8343
|
_: 1
|
|
8274
|
-
}, 8, ["onClick"])
|
|
8275
|
-
])
|
|
8276
|
-
]),
|
|
8344
|
+
}, 8, ["onClick"])])]),
|
|
8277
8345
|
_: 3
|
|
8278
|
-
}, 8, ["show", "options"]),
|
|
8279
|
-
createVNode(script$1, mergeProps({
|
|
8346
|
+
}, 8, ["show", "options"]), createVNode(script$1, mergeProps({
|
|
8280
8347
|
modelValue: unref(state).identityVerification.visible,
|
|
8281
8348
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(state).identityVerification.visible = $event)
|
|
8282
|
-
}, _ctx.$attrs, {
|
|
8283
|
-
|
|
8349
|
+
}, _ctx.$attrs, {
|
|
8350
|
+
onSuccess: verifiySuccess
|
|
8351
|
+
}), null, 16, ["modelValue"])]);
|
|
8284
8352
|
};
|
|
8285
8353
|
}
|
|
8286
8354
|
});
|
package/es/drag-layout/index.css
CHANGED
package/es/field-set/index.css
CHANGED
|
@@ -593,6 +593,10 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
593
593
|
margin-bottom: 8px;
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
+
.rowFoldHideBtnList-dropdown .n-dropdown-menu-wrapper span.active {
|
|
597
|
+
color: #5585f5;
|
|
598
|
+
}
|
|
599
|
+
|
|
596
600
|
.login-form[data-v-06588d4e] {
|
|
597
601
|
padding-top: 15px;
|
|
598
602
|
}
|
|
@@ -732,48 +736,6 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
732
736
|
z-index: 2001;
|
|
733
737
|
}
|
|
734
738
|
|
|
735
|
-
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] {
|
|
736
|
-
width: 100%;
|
|
737
|
-
margin-bottom: 16px;
|
|
738
|
-
overflow: hidden;
|
|
739
|
-
cursor: pointer;
|
|
740
|
-
color: #2e2e2e;
|
|
741
|
-
}
|
|
742
|
-
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] {
|
|
743
|
-
display: -webkit-box;
|
|
744
|
-
display: -webkit-flex;
|
|
745
|
-
display: -ms-flexbox;
|
|
746
|
-
display: flex;
|
|
747
|
-
-webkit-box-pack: center;
|
|
748
|
-
-webkit-justify-content: center;
|
|
749
|
-
-ms-flex-pack: center;
|
|
750
|
-
justify-content: center;
|
|
751
|
-
-webkit-box-align: center;
|
|
752
|
-
-webkit-align-items: center;
|
|
753
|
-
-ms-flex-align: center;
|
|
754
|
-
align-items: center;
|
|
755
|
-
width: 100%;
|
|
756
|
-
height: 60px;
|
|
757
|
-
padding: 0 8px;
|
|
758
|
-
-webkit-box-sizing: border-box;
|
|
759
|
-
box-sizing: border-box;
|
|
760
|
-
margin-bottom: 8px;
|
|
761
|
-
background: #f3f5f8;
|
|
762
|
-
}
|
|
763
|
-
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966]-input[data-v-55852966] {
|
|
764
|
-
width: 85%;
|
|
765
|
-
overflow: hidden;
|
|
766
|
-
text-overflow: ellipsis;
|
|
767
|
-
white-space: nowrap;
|
|
768
|
-
cursor: pointer !important;
|
|
769
|
-
}
|
|
770
|
-
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="radio"][disabled][data-v-55852966],
|
|
771
|
-
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="checkbox"][disabled][data-v-55852966],
|
|
772
|
-
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="radio"].disabled[data-v-55852966],
|
|
773
|
-
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="checkbox"].disabled[data-v-55852966] {
|
|
774
|
-
cursor: pointer !important;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
739
|
.DragFormRightItem[data-v-2d9603cc] {
|
|
778
740
|
position: relative;
|
|
779
741
|
}
|
|
@@ -845,6 +807,48 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
845
807
|
color: red;
|
|
846
808
|
}
|
|
847
809
|
|
|
810
|
+
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] {
|
|
811
|
+
width: 100%;
|
|
812
|
+
margin-bottom: 16px;
|
|
813
|
+
overflow: hidden;
|
|
814
|
+
cursor: pointer;
|
|
815
|
+
color: #2e2e2e;
|
|
816
|
+
}
|
|
817
|
+
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] {
|
|
818
|
+
display: -webkit-box;
|
|
819
|
+
display: -webkit-flex;
|
|
820
|
+
display: -ms-flexbox;
|
|
821
|
+
display: flex;
|
|
822
|
+
-webkit-box-pack: center;
|
|
823
|
+
-webkit-justify-content: center;
|
|
824
|
+
-ms-flex-pack: center;
|
|
825
|
+
justify-content: center;
|
|
826
|
+
-webkit-box-align: center;
|
|
827
|
+
-webkit-align-items: center;
|
|
828
|
+
-ms-flex-align: center;
|
|
829
|
+
align-items: center;
|
|
830
|
+
width: 100%;
|
|
831
|
+
height: 60px;
|
|
832
|
+
padding: 0 8px;
|
|
833
|
+
-webkit-box-sizing: border-box;
|
|
834
|
+
box-sizing: border-box;
|
|
835
|
+
margin-bottom: 8px;
|
|
836
|
+
background: #f3f5f8;
|
|
837
|
+
}
|
|
838
|
+
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966]-input[data-v-55852966] {
|
|
839
|
+
width: 85%;
|
|
840
|
+
overflow: hidden;
|
|
841
|
+
text-overflow: ellipsis;
|
|
842
|
+
white-space: nowrap;
|
|
843
|
+
cursor: pointer !important;
|
|
844
|
+
}
|
|
845
|
+
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="radio"][disabled][data-v-55852966],
|
|
846
|
+
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="checkbox"][disabled][data-v-55852966],
|
|
847
|
+
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="radio"].disabled[data-v-55852966],
|
|
848
|
+
.DragFormLeftItem[data-v-55852966] .left-content[data-v-55852966] .style-box[data-v-55852966] input[type="checkbox"].disabled[data-v-55852966] {
|
|
849
|
+
cursor: pointer !important;
|
|
850
|
+
}
|
|
851
|
+
|
|
848
852
|
ul[data-v-726261b7] {
|
|
849
853
|
margin: 0;
|
|
850
854
|
padding: 0;
|