htui-yllkbz 1.3.19 → 1.3.22
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/lib/htui.common.js +95 -121
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.css +1 -1
- package/lib/htui.umd.js +95 -121
- package/lib/htui.umd.js.gz +0 -0
- package/lib/htui.umd.min.js +3 -3
- package/lib/htui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/packages/HtSelectBaseData/index.vue +2 -2
- package/src/packages/HtShowBaseData/index.vue +11 -0
- package/src/packages/HtTable/index.vue +33 -62
package/lib/htui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-12-30 15:47:47
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2022-04-
|
|
7
|
+
* @LastEditTime: 2022-04-24 09:46:42
|
|
8
8
|
-->
|
|
9
9
|
|
|
10
10
|
<template>
|
|
@@ -102,7 +102,7 @@ export default class HtSelectBaseData extends Vue {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
this.$emit("input", data);
|
|
105
|
-
this.$emit("change", data);
|
|
105
|
+
this.$emit("change", data, dep);
|
|
106
106
|
// this.$emit("input", id);
|
|
107
107
|
// this.$emit("change", id, data[this.dataTypeId][0]);
|
|
108
108
|
}
|
|
@@ -234,6 +234,17 @@ export default class CommonDatas extends Vue {
|
|
|
234
234
|
if (this.baseDataId) {
|
|
235
235
|
const tempText = this.setAllLevel(this.baseDataId);
|
|
236
236
|
this.state.text = tempText;
|
|
237
|
+
} else {
|
|
238
|
+
this.state.text = "";
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
@Watch("baseDataId")
|
|
242
|
+
getText(val: string) {
|
|
243
|
+
if (val && this.baseDataItem) {
|
|
244
|
+
const tempText = this.setAllLevel(val);
|
|
245
|
+
this.state.text = tempText;
|
|
246
|
+
} else {
|
|
247
|
+
this.state.text = "";
|
|
237
248
|
}
|
|
238
249
|
}
|
|
239
250
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @Author: hutao
|
|
6
6
|
* @Date: 2021-11-11 11:23:24
|
|
7
7
|
* @LastEditors: hutao
|
|
8
|
-
* @LastEditTime: 2022-04-
|
|
8
|
+
* @LastEditTime: 2022-04-29 09:45:54
|
|
9
9
|
-->
|
|
10
10
|
<template>
|
|
11
11
|
<div v-loading="state.loading"
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
<!-- 详情弹框 -->
|
|
212
212
|
<el-dialog :visible.sync="state.visibleFilter"
|
|
213
213
|
title="属性设置"
|
|
214
|
+
v-if="state.visibleFilter"
|
|
214
215
|
:append-to-body="true"
|
|
215
216
|
:close-on-click-modal="true"
|
|
216
217
|
width="400px">
|
|
@@ -253,6 +254,7 @@
|
|
|
253
254
|
</el-dialog>
|
|
254
255
|
<!-- 附件详情弹框 -->
|
|
255
256
|
<el-dialog :visible.sync="state.visibleFile"
|
|
257
|
+
v-if="state.visibleFile"
|
|
256
258
|
title="附件查看"
|
|
257
259
|
:append-to-body="true"
|
|
258
260
|
:close-on-click-modal="true"
|
|
@@ -371,35 +373,7 @@ export default class HtTable extends Vue {
|
|
|
371
373
|
created() {
|
|
372
374
|
this.setPageInfo(this.pageInfo);
|
|
373
375
|
//this.setColumns(this.columns);
|
|
374
|
-
|
|
375
|
-
//通过uuid获取缓存起来的header显示信息
|
|
376
|
-
//-todo
|
|
377
|
-
//---columns 要改变
|
|
378
|
-
//---showColumnKeys 要改变
|
|
379
|
-
//---排列顺序要改变 todo
|
|
380
|
-
const allColumns: string | null = window.localStorage.getItem(
|
|
381
|
-
"table_" + this.uuId
|
|
382
|
-
);
|
|
383
|
-
if (allColumns) {
|
|
384
|
-
this.state.allColumns = JSON.parse(allColumns);
|
|
385
|
-
this.state.showColumns = JSON.parse(allColumns);
|
|
386
|
-
this.getShowKeys(this.state.allColumns);
|
|
387
|
-
} else {
|
|
388
|
-
if (this.configShow) {
|
|
389
|
-
this.columns.forEach((item) => (item.checked = !!item.deafaultShow));
|
|
390
|
-
this.creatInitColumnKey(this.columns);
|
|
391
|
-
} else {
|
|
392
|
-
this.creatInitColumnKey(this.columns || []);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
} else {
|
|
396
|
-
if (this.configShow) {
|
|
397
|
-
this.columns.forEach((item) => (item.checked = !!item.deafaultShow));
|
|
398
|
-
this.creatInitColumnKey(this.columns);
|
|
399
|
-
} else {
|
|
400
|
-
this.creatInitColumnKey(this.columns || []);
|
|
401
|
-
}
|
|
402
|
-
}
|
|
376
|
+
|
|
403
377
|
// console.log("this.columns", this.columns);
|
|
404
378
|
}
|
|
405
379
|
resetColumn() {
|
|
@@ -603,43 +577,40 @@ export default class HtTable extends Vue {
|
|
|
603
577
|
|
|
604
578
|
return allColumns.filter((item) => !item.hide);
|
|
605
579
|
}
|
|
606
|
-
@Watch("columns")
|
|
580
|
+
@Watch("columns", { immediate: true })
|
|
607
581
|
setColumns(columns?: Column[]) {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
const lastColumn: Column[] = [];
|
|
625
|
-
successColumns.forEach((item, index) => {
|
|
626
|
-
/** 去除操作列 */
|
|
627
|
-
if (item.key !== "handel") {
|
|
628
|
-
tempColumns.push(item);
|
|
582
|
+
if (!columns) {
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
if (this.uuId) {
|
|
586
|
+
//通过uuid获取缓存起来的header显示信息
|
|
587
|
+
//-todo
|
|
588
|
+
//---columns 要改变
|
|
589
|
+
//---showColumnKeys 要改变
|
|
590
|
+
//---排列顺序要改变 todo
|
|
591
|
+
const allColumns: string | null = window.localStorage.getItem(
|
|
592
|
+
"table_" + this.uuId
|
|
593
|
+
);
|
|
594
|
+
if (allColumns) {
|
|
595
|
+
this.state.allColumns = JSON.parse(allColumns);
|
|
596
|
+
this.state.showColumns = JSON.parse(allColumns);
|
|
597
|
+
this.getShowKeys(this.state.allColumns);
|
|
629
598
|
} else {
|
|
630
|
-
|
|
599
|
+
if (this.configShow) {
|
|
600
|
+
columns.forEach((item) => (item.checked = !!item.deafaultShow));
|
|
601
|
+
this.creatInitColumnKey(columns);
|
|
602
|
+
} else {
|
|
603
|
+
this.creatInitColumnKey(columns || []);
|
|
604
|
+
}
|
|
631
605
|
}
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
tempColumns.push(item);
|
|
606
|
+
} else {
|
|
607
|
+
if (this.configShow) {
|
|
608
|
+
columns.forEach((item) => (item.checked = !!item.deafaultShow));
|
|
609
|
+
this.creatInitColumnKey(columns);
|
|
637
610
|
} else {
|
|
638
|
-
|
|
611
|
+
this.creatInitColumnKey(columns || []);
|
|
639
612
|
}
|
|
640
|
-
}
|
|
641
|
-
/** 去除多余并且添加新增的 */
|
|
642
|
-
this.creatInitColumnKey([...tempColumns, ...lastColumn]);
|
|
613
|
+
}
|
|
643
614
|
}
|
|
644
615
|
}
|
|
645
616
|
</script>
|