kz-ui-base 1.0.161 → 2.0.148
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/api/system/config.js +0 -17
- package/common/src/components/base/dialog/BaseDialog.vue +4 -15
- package/common/src/components/base/dialog/editDialog.vue +2 -2
- package/common/src/components/basics/RightToolbar/advancedQuery.vue +26 -5
- package/common/src/components/basics/RightToolbar/advancedQueryClose.vue +26 -5
- package/common/src/components/basics/RightToolbar/index.vue +5 -6
- package/common/src/components/custom/Material/index.vue +27 -25
- package/common/src/components/custom/Material/indexTs.vue +27 -25
- package/common/src/utils/request.js +0 -5
- package/common/src/views/login.vue +0 -5
- package/common/src/views/tenantLogin.vue +0 -5
- package/components/base/dialog/elTable.vue +2 -2
- package/components/base/dialog/sampleEditDialog.vue +38 -61
- package/components/base/dialog/smapleDialog.vue +12 -12
- package/components/base/dialog/tableForm.vue +6 -6
- package/components/customForm/OpMenus.vue +5 -5
- package/components/customForm/datePicker.vue +5 -4
- package/components/customForm/dropDownList.vue +8 -8
- package/components/customForm/lookupDialog.vue +3 -3
- package/components/customForm/printDialog.vue +17 -17
- package/components/customForm/sampleEditDialog.vue +3 -3
- package/components/customForm/searchTable.vue +4 -4
- package/components/customForm/table.vue +5 -5
- package/components/customForm/textarea.vue +1 -1
- package/components/customForm/treeDownList.vue +1 -1
- package/components/customForm/upload.vue +1 -1
- package/components/customForm/uploadButton.vue +7 -7
- package/components/customForm/uploadDialog.vue +1 -1
- package/list-base-page/doublelistBasePageTs.vue +16 -16
- package/list-base-page/listBasePageTs.vue +64 -228
- package/package.json +1 -1
- package/views/bd/common/modal/AddressInfoModal.vue +8 -8
- package/views/bd/common/modal/BankInfoModal.vue +10 -10
- package/views/bd/common/modal/CustomerContactsModal.vue +13 -13
- package/views/bd/common/modal/CustomerModal.vue +49 -51
- package/views/bd/common/modal/DeptModal.vue +10 -10
- package/views/bd/common/modal/EmployeeModal.vue +22 -26
- package/views/bd/common/modal/ItemModal.vue +20 -23
- package/views/bd/common/modal/ItemModalBk.vue +8 -8
- package/views/bd/common/modal/NumberingRuleModal.vue +8 -8
- package/views/bd/common/modal/PostModal.vue +22 -22
- package/views/bd/common/modal/ProjectModal.vue +8 -8
- package/views/bd/common/modal/SalesmanInfoModel.vue +7 -7
- package/views/bd/common/modal/VendorModal.vue +24 -28
- package/views/bd/common/modal/WorkGroupModal.vue +40 -44
- package/views/bd/common/modal/materialCodeModal.vue +30 -23
- package/views/fd/common/modal/AddResourceModal.vue +6 -8
- package/views/fd/common/modal/AssetModal.vue +17 -17
- package/views/fd/common/modal/EquipmentModal.vue +10 -10
- package/views/fd/common/modal/FactoryTreeModal.vue +1 -3
- package/views/fd/common/modal/ResourceModal.vue +6 -6
- package/views/fd/common/modal/SiteModal.vue +11 -9
- package/views/fd/common/modal/StorageUnitModal.vue +9 -9
- package/views/fd/common/modal/StorageZoneModal.vue +11 -11
- package/views/fd/common/modal/WorkAreaModal.vue +9 -9
- package/views/fd/common/modal/WorkCenterModal.vue +9 -9
- package/views/fd/common/modal/WorkUnitModal.vue +9 -9
- package/views/pd/common/modal/BopModal.vue +10 -10
- package/views/pd/common/modal/DrawingPathModal.vue +52 -52
- package/views/pd/common/modal/ParameterModal.vue +18 -18
- package/views/pd/common/modal/ProcessModal.vue +15 -15
- package/views/pd/common/modal/ProdRoutingDtlModal.vue +19 -19
- package/views/pd/common/modal/ProdRoutingModal.vue +14 -14
- package/views/pd/common/modal/ProdStructureModal.vue +14 -14
- package/views/pd/common/modal/ProdstructTemplateHdrModal.vue +25 -27
- package/views/pd/common/modal/ProductionVersionModal.vue +35 -35
- package/views/pd/common/modal/technicalStandardModal.vue +20 -20
- package/views/system/common/modal/UserModal.vue +70 -72
- package/components/base/dialog/MultiLanguageDialog.vue +0 -308
- package/components/base/dialog/config.js +0 -85
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
v-loading="exportButton"
|
|
4
|
-
|
|
4
|
+
element-loading-text="数据加载中..."
|
|
5
5
|
:class="{
|
|
6
6
|
'dialog-body-wrapper': true,
|
|
7
7
|
}"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
icon="el-icon-plus"
|
|
32
32
|
type="primary"
|
|
33
33
|
size="mini"
|
|
34
|
-
|
|
34
|
+
>添加下层</el-button
|
|
35
35
|
>
|
|
36
36
|
<el-button
|
|
37
37
|
style="flex: 1"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
icon="el-icon-edit"
|
|
41
41
|
type="success"
|
|
42
42
|
size="mini"
|
|
43
|
-
|
|
43
|
+
>修改本层</el-button
|
|
44
44
|
>
|
|
45
45
|
<el-button
|
|
46
46
|
style="flex: 1"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
icon="el-icon-delete"
|
|
50
50
|
type="danger"
|
|
51
51
|
size="mini"
|
|
52
|
-
|
|
52
|
+
>删除本层</el-button
|
|
53
53
|
>
|
|
54
54
|
</div>
|
|
55
55
|
<div
|
|
@@ -132,10 +132,10 @@
|
|
|
132
132
|
icon="el-icon-search"
|
|
133
133
|
size="mini"
|
|
134
134
|
@click="handleQuery"
|
|
135
|
-
|
|
135
|
+
>搜索</el-button
|
|
136
136
|
>
|
|
137
137
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
138
|
-
|
|
138
|
+
>重置</el-button
|
|
139
139
|
>
|
|
140
140
|
<AdvancedQuery
|
|
141
141
|
style="margin-left: 10px"
|
|
@@ -284,13 +284,13 @@
|
|
|
284
284
|
icon="el-icon-search"
|
|
285
285
|
size="mini"
|
|
286
286
|
@click="handleQuery"
|
|
287
|
-
|
|
287
|
+
>搜索</el-button
|
|
288
288
|
>
|
|
289
289
|
<el-button
|
|
290
290
|
icon="el-icon-refresh"
|
|
291
291
|
size="mini"
|
|
292
292
|
@click="resetQuery"
|
|
293
|
-
|
|
293
|
+
>重置</el-button
|
|
294
294
|
>
|
|
295
295
|
<AdvancedQueryClose
|
|
296
296
|
style="
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
|
|
313
313
|
<div
|
|
314
314
|
v-loading="contentLoading"
|
|
315
|
-
|
|
315
|
+
element-loading-text="数据加载中..."
|
|
316
316
|
class="content-container"
|
|
317
317
|
>
|
|
318
318
|
<div
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
>
|
|
381
381
|
<el-dropdown>
|
|
382
382
|
<el-button type="info" size="mini">
|
|
383
|
-
|
|
383
|
+
审批<i class="el-icon-arrow-down el-icon--right"></i>
|
|
384
384
|
</el-button>
|
|
385
385
|
<el-dropdown-menu slot="dropdown">
|
|
386
386
|
<template v-for="(opMenu, index) in opMenus">
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
>
|
|
408
408
|
<el-dropdown>
|
|
409
409
|
<el-button type="warning" size="mini">
|
|
410
|
-
|
|
410
|
+
更多操作<i class="el-icon-arrow-down el-icon--right"></i>
|
|
411
411
|
</el-button>
|
|
412
412
|
<el-dropdown-menu slot="dropdown">
|
|
413
413
|
<template v-for="(opMenu, index) in customOpMenus">
|
|
@@ -431,22 +431,6 @@
|
|
|
431
431
|
</el-dropdown>
|
|
432
432
|
</el-col>
|
|
433
433
|
|
|
434
|
-
<el-col
|
|
435
|
-
:span="1.5"
|
|
436
|
-
v-if="multiLanguageConfig && multiLanguageConfig.entityName && multiLanguageConfig.dataLangColumnFields && multiLanguageConfig.dataLangColumnFields.length > 0"
|
|
437
|
-
>
|
|
438
|
-
<el-button
|
|
439
|
-
type="info"
|
|
440
|
-
plain
|
|
441
|
-
icon="el-icon-connection"
|
|
442
|
-
size="mini"
|
|
443
|
-
:disabled="!currentEntities || currentEntities.length === 0"
|
|
444
|
-
@click="handleMultiLanguage"
|
|
445
|
-
>
|
|
446
|
-
{{ t('config.switch_multi_language') }}
|
|
447
|
-
</el-button>
|
|
448
|
-
</el-col>
|
|
449
|
-
|
|
450
434
|
<right-toolbar
|
|
451
435
|
style="float: right"
|
|
452
436
|
v-if="showToolBar"
|
|
@@ -468,7 +452,7 @@
|
|
|
468
452
|
:height="tableHeight"
|
|
469
453
|
:border="true"
|
|
470
454
|
v-loading="loading"
|
|
471
|
-
|
|
455
|
+
element-loading-text="数据加载中..."
|
|
472
456
|
:data="listData"
|
|
473
457
|
:show-summary="listSetting.isShowSumRow"
|
|
474
458
|
:summary-method="getSummaries"
|
|
@@ -599,10 +583,10 @@
|
|
|
599
583
|
"
|
|
600
584
|
>
|
|
601
585
|
{{
|
|
602
|
-
String(scope.row[column.property]) === "1" ?
|
|
586
|
+
String(scope.row[column.property]) === "1" ? "是" : ""
|
|
603
587
|
}}
|
|
604
588
|
{{
|
|
605
|
-
String(scope.row[column.property]) === "0" ?
|
|
589
|
+
String(scope.row[column.property]) === "0" ? "否" : ""
|
|
606
590
|
}}
|
|
607
591
|
</span>
|
|
608
592
|
<el-tag
|
|
@@ -864,7 +848,7 @@
|
|
|
864
848
|
</template>
|
|
865
849
|
|
|
866
850
|
<el-table-column
|
|
867
|
-
|
|
851
|
+
label="操作"
|
|
868
852
|
align="center"
|
|
869
853
|
min-width="160"
|
|
870
854
|
class-name="small-padding fixed-width"
|
|
@@ -911,7 +895,7 @@
|
|
|
911
895
|
:height="tableHeight"
|
|
912
896
|
:border="true"
|
|
913
897
|
v-loading="loading"
|
|
914
|
-
|
|
898
|
+
element-loading-text="数据加载中..."
|
|
915
899
|
:data="dataForTables[index]"
|
|
916
900
|
:show-summary="listSetting.isShowSumRow"
|
|
917
901
|
:summary-method="getSummaries"
|
|
@@ -996,12 +980,12 @@
|
|
|
996
980
|
>
|
|
997
981
|
{{
|
|
998
982
|
String(scope.row[column.property]) === "1"
|
|
999
|
-
?
|
|
983
|
+
? "是"
|
|
1000
984
|
: ""
|
|
1001
985
|
}}
|
|
1002
986
|
{{
|
|
1003
987
|
String(scope.row[column.property]) === "0"
|
|
1004
|
-
?
|
|
988
|
+
? "否"
|
|
1005
989
|
: ""
|
|
1006
990
|
}}
|
|
1007
991
|
</span>
|
|
@@ -1147,7 +1131,7 @@
|
|
|
1147
1131
|
</template>
|
|
1148
1132
|
|
|
1149
1133
|
<el-table-column
|
|
1150
|
-
|
|
1134
|
+
label="操作"
|
|
1151
1135
|
align="center"
|
|
1152
1136
|
min-width="160"
|
|
1153
1137
|
class-name="small-padding fixed-width"
|
|
@@ -1190,8 +1174,8 @@
|
|
|
1190
1174
|
</el-col>
|
|
1191
1175
|
</el-row>
|
|
1192
1176
|
<div v-if="value && value.btnShow" class="dialog-footer">
|
|
1193
|
-
<el-button type="primary" @click="submitForm"
|
|
1194
|
-
<el-button @click="cancel"
|
|
1177
|
+
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
1178
|
+
<el-button @click="cancel">取 消</el-button>
|
|
1195
1179
|
</div>
|
|
1196
1180
|
|
|
1197
1181
|
<!-- 添加或修改参数配置对话框 -->
|
|
@@ -1251,15 +1235,9 @@
|
|
|
1251
1235
|
v-dialogDragHeight
|
|
1252
1236
|
>
|
|
1253
1237
|
</printDialog>
|
|
1254
|
-
|
|
1255
|
-
<!-- 多语言配置对话框 -->
|
|
1256
|
-
<MultiLanguageDialog
|
|
1257
|
-
:visible.sync="multiLanguageOpen"
|
|
1258
|
-
:config="multiLanguageConfig"
|
|
1259
|
-
@saved="handleTranslationSaved"
|
|
1260
|
-
/>
|
|
1261
1238
|
</div>
|
|
1262
1239
|
</template>
|
|
1240
|
+
|
|
1263
1241
|
<script lang="ts">
|
|
1264
1242
|
import { Component, Prop, Vue, Watch } from "vue-property-decorator";
|
|
1265
1243
|
import {
|
|
@@ -1305,8 +1283,6 @@ import KZ_Radio from "@srcComponents/customForm/radio.vue";
|
|
|
1305
1283
|
import UploadDialog from "@srcComponents/customForm/uploadDialog.vue";
|
|
1306
1284
|
import PrintDialog from "@srcComponents/customForm/printDialog.vue";
|
|
1307
1285
|
import KZ_Lookup from "@srcComponents/customForm/lookup.vue";
|
|
1308
|
-
import MultiLanguageDialog from "@srcComponents/base/dialog/MultiLanguageDialog.vue";
|
|
1309
|
-
import { batchGetTranslation } from "@srcComponents/base/dialog/config.js";
|
|
1310
1286
|
@Component({
|
|
1311
1287
|
components: {
|
|
1312
1288
|
// TableDialog,
|
|
@@ -1314,7 +1290,6 @@ import { batchGetTranslation } from "@srcComponents/base/dialog/config.js";
|
|
|
1314
1290
|
EditDialog,
|
|
1315
1291
|
UploadDialog,
|
|
1316
1292
|
PrintDialog,
|
|
1317
|
-
MultiLanguageDialog,
|
|
1318
1293
|
KZ_DropDownList,
|
|
1319
1294
|
KZ_TextBox,
|
|
1320
1295
|
KZ_Cascader,
|
|
@@ -1394,17 +1369,6 @@ export default class listBasePage extends Vue {
|
|
|
1394
1369
|
pkField = "id";
|
|
1395
1370
|
//当前功能显示文本字段
|
|
1396
1371
|
displayField = undefined;
|
|
1397
|
-
// 多语言对话框显示
|
|
1398
|
-
multiLanguageOpen = false;
|
|
1399
|
-
// 多语言配置
|
|
1400
|
-
multiLanguageConfig = {
|
|
1401
|
-
entityName: undefined,
|
|
1402
|
-
dataLangColumnFields: [],
|
|
1403
|
-
dataLangIdField: undefined,
|
|
1404
|
-
data: []
|
|
1405
|
-
};
|
|
1406
|
-
// 原始数据副本(用于多语言对话框展示原始值)
|
|
1407
|
-
originalListData = [];
|
|
1408
1372
|
// 树名称
|
|
1409
1373
|
treeShapeName = undefined;
|
|
1410
1374
|
defaultProps = {
|
|
@@ -1453,7 +1417,7 @@ export default class listBasePage extends Vue {
|
|
|
1453
1417
|
opMenus = [
|
|
1454
1418
|
{
|
|
1455
1419
|
visable: true,
|
|
1456
|
-
text:
|
|
1420
|
+
text: "添加",
|
|
1457
1421
|
icon: "el-icon-plus",
|
|
1458
1422
|
permission: "add",
|
|
1459
1423
|
name: "add",
|
|
@@ -1462,7 +1426,7 @@ export default class listBasePage extends Vue {
|
|
|
1462
1426
|
},
|
|
1463
1427
|
{
|
|
1464
1428
|
visable: true,
|
|
1465
|
-
text:
|
|
1429
|
+
text: "复制",
|
|
1466
1430
|
icon: "ion-md-copy",
|
|
1467
1431
|
permission: "add",
|
|
1468
1432
|
name: "copy",
|
|
@@ -1472,7 +1436,7 @@ export default class listBasePage extends Vue {
|
|
|
1472
1436
|
},
|
|
1473
1437
|
{
|
|
1474
1438
|
visable: true,
|
|
1475
|
-
text:
|
|
1439
|
+
text: "修改",
|
|
1476
1440
|
icon: "el-icon-edit",
|
|
1477
1441
|
permission: "edit",
|
|
1478
1442
|
name: "update",
|
|
@@ -1482,7 +1446,7 @@ export default class listBasePage extends Vue {
|
|
|
1482
1446
|
},
|
|
1483
1447
|
{
|
|
1484
1448
|
visable: true,
|
|
1485
|
-
text:
|
|
1449
|
+
text: "删除",
|
|
1486
1450
|
icon: "el-icon-delete",
|
|
1487
1451
|
permission: "remove",
|
|
1488
1452
|
name: "delete",
|
|
@@ -1492,7 +1456,7 @@ export default class listBasePage extends Vue {
|
|
|
1492
1456
|
},
|
|
1493
1457
|
{
|
|
1494
1458
|
visable: true,
|
|
1495
|
-
text:
|
|
1459
|
+
text: "查看",
|
|
1496
1460
|
icon: "ion-md-information-circle-outline",
|
|
1497
1461
|
name: "detail",
|
|
1498
1462
|
isShowText: false,
|
|
@@ -1502,7 +1466,7 @@ export default class listBasePage extends Vue {
|
|
|
1502
1466
|
|
|
1503
1467
|
{
|
|
1504
1468
|
visable: true,
|
|
1505
|
-
text:
|
|
1469
|
+
text: "导出",
|
|
1506
1470
|
icon: "ion-md-cloud-download",
|
|
1507
1471
|
name: "export",
|
|
1508
1472
|
isShowText: false,
|
|
@@ -1510,7 +1474,7 @@ export default class listBasePage extends Vue {
|
|
|
1510
1474
|
},
|
|
1511
1475
|
{
|
|
1512
1476
|
visable: true,
|
|
1513
|
-
text:
|
|
1477
|
+
text: "导入",
|
|
1514
1478
|
icon: "ion-md-cloud-upload",
|
|
1515
1479
|
permission: "add",
|
|
1516
1480
|
name: "import",
|
|
@@ -1519,7 +1483,7 @@ export default class listBasePage extends Vue {
|
|
|
1519
1483
|
},
|
|
1520
1484
|
{
|
|
1521
1485
|
visable: false,
|
|
1522
|
-
text:
|
|
1486
|
+
text: "发起审批",
|
|
1523
1487
|
icon: "el-icon-position",
|
|
1524
1488
|
permission: "startWf",
|
|
1525
1489
|
name: "startWf",
|
|
@@ -1529,7 +1493,7 @@ export default class listBasePage extends Vue {
|
|
|
1529
1493
|
},
|
|
1530
1494
|
{
|
|
1531
1495
|
visable: false,
|
|
1532
|
-
text:
|
|
1496
|
+
text: "审批进度",
|
|
1533
1497
|
icon: "el-icon-view",
|
|
1534
1498
|
permission: "showWf",
|
|
1535
1499
|
name: "showWf",
|
|
@@ -1542,7 +1506,7 @@ export default class listBasePage extends Vue {
|
|
|
1542
1506
|
//{ visable: true, text: "高级搜索", icon: "ion-md-paw", name: "advanceSearch", isShowText: false },
|
|
1543
1507
|
{
|
|
1544
1508
|
visable: true,
|
|
1545
|
-
text:
|
|
1509
|
+
text: "打印",
|
|
1546
1510
|
icon: "ion-md-print",
|
|
1547
1511
|
name: "print",
|
|
1548
1512
|
isShowText: false,
|
|
@@ -1551,7 +1515,7 @@ export default class listBasePage extends Vue {
|
|
|
1551
1515
|
},
|
|
1552
1516
|
{
|
|
1553
1517
|
visable: true,
|
|
1554
|
-
text:
|
|
1518
|
+
text: "高级搜索",
|
|
1555
1519
|
icon: "ion-md-print",
|
|
1556
1520
|
name: "search",
|
|
1557
1521
|
isShowText: false,
|
|
@@ -1606,7 +1570,7 @@ export default class listBasePage extends Vue {
|
|
|
1606
1570
|
//{ text: `用户账号`, property: "userAccount", visible: true },
|
|
1607
1571
|
];
|
|
1608
1572
|
listSerialNumber = {
|
|
1609
|
-
label:
|
|
1573
|
+
label: "序号",
|
|
1610
1574
|
width: "50",
|
|
1611
1575
|
align: "center",
|
|
1612
1576
|
};
|
|
@@ -1703,7 +1667,7 @@ export default class listBasePage extends Vue {
|
|
|
1703
1667
|
name: "basic",
|
|
1704
1668
|
visable: true,
|
|
1705
1669
|
icon: "ion-plus-round",
|
|
1706
|
-
text:
|
|
1670
|
+
text: "基本信息",
|
|
1707
1671
|
type: "area",
|
|
1708
1672
|
},
|
|
1709
1673
|
];
|
|
@@ -1718,8 +1682,8 @@ export default class listBasePage extends Vue {
|
|
|
1718
1682
|
editRules = {};
|
|
1719
1683
|
//编辑界面按钮菜单
|
|
1720
1684
|
editOpMenus = [
|
|
1721
|
-
{ name: "save", visable: true, icon: "ion-plus-round", text:
|
|
1722
|
-
{ name: "close", visable: true, icon: "ion-md-create", text:
|
|
1685
|
+
{ name: "save", visable: true, icon: "ion-plus-round", text: "保存" },
|
|
1686
|
+
{ name: "close", visable: true, icon: "ion-md-create", text: "关闭" },
|
|
1723
1687
|
];
|
|
1724
1688
|
//编辑界面自定义按钮菜单 - 若无自定义按钮,不需要重写
|
|
1725
1689
|
editCustomOpMenus = [
|
|
@@ -1731,7 +1695,7 @@ export default class listBasePage extends Vue {
|
|
|
1731
1695
|
// 是否显示编辑窗口
|
|
1732
1696
|
isShow: false,
|
|
1733
1697
|
// 弹出层标题(用户导入)
|
|
1734
|
-
title:
|
|
1698
|
+
title: "导入",
|
|
1735
1699
|
// 是否禁用上传
|
|
1736
1700
|
isUploading: false,
|
|
1737
1701
|
// 是否更新已经存在的用户数据
|
|
@@ -1748,7 +1712,7 @@ export default class listBasePage extends Vue {
|
|
|
1748
1712
|
// 是否显示编辑窗口
|
|
1749
1713
|
isShow: false,
|
|
1750
1714
|
// 弹出层标题(用户导入)
|
|
1751
|
-
title:
|
|
1715
|
+
title: "打印模板",
|
|
1752
1716
|
//打印类型
|
|
1753
1717
|
templateType: "",
|
|
1754
1718
|
// 保存时是否自动关闭
|
|
@@ -1808,11 +1772,6 @@ export default class listBasePage extends Vue {
|
|
|
1808
1772
|
(this.$refs.tree as any).filter(val);
|
|
1809
1773
|
}
|
|
1810
1774
|
|
|
1811
|
-
@Watch("listColumns", { deep: true })
|
|
1812
|
-
watchListColumns(newVal, oldVal) {
|
|
1813
|
-
console.log('listColumns 变化:', newVal);
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
1775
|
created() {
|
|
1817
1776
|
// const coms = [KZ_TextBox]; // 将来如果有其它组件,都可以写到这个数组里
|
|
1818
1777
|
|
|
@@ -1820,7 +1779,7 @@ export default class listBasePage extends Vue {
|
|
|
1820
1779
|
// Vue.component(com.name, com);
|
|
1821
1780
|
// });
|
|
1822
1781
|
|
|
1823
|
-
console.log(
|
|
1782
|
+
// console.log(this.listColumns);
|
|
1824
1783
|
// this.oldeditColumns=JSON.parse(JSON.stringify(this.editColumns))
|
|
1825
1784
|
this.initTableField();
|
|
1826
1785
|
//获取树数据
|
|
@@ -1885,7 +1844,7 @@ export default class listBasePage extends Vue {
|
|
|
1885
1844
|
initField(this.moduleName, data)
|
|
1886
1845
|
.then((response) => {
|
|
1887
1846
|
if ((response as any).code != 200) {
|
|
1888
|
-
(this as any).msgError(
|
|
1847
|
+
(this as any).msgError("初始化失败!");
|
|
1889
1848
|
}
|
|
1890
1849
|
listEntity(
|
|
1891
1850
|
this.moduleName,
|
|
@@ -2040,7 +1999,7 @@ export default class listBasePage extends Vue {
|
|
|
2040
1999
|
}
|
|
2041
2000
|
/** 自定义列显示格式方法 */
|
|
2042
2001
|
remarkFormat(data, column) {
|
|
2043
|
-
return data.remark ?
|
|
2002
|
+
return data.remark ? "有备注" : "无备注";
|
|
2044
2003
|
}
|
|
2045
2004
|
/** 自定义列点击方法 */
|
|
2046
2005
|
onFilePriview(data, column) {
|
|
@@ -2049,7 +2008,7 @@ export default class listBasePage extends Vue {
|
|
|
2049
2008
|
/** 自定义列显示Html */
|
|
2050
2009
|
getFilePriviewLink(data, column) {
|
|
2051
2010
|
return `<a href="${this.getFilePriviewUrl(data.remark)}" target="_blank">${
|
|
2052
|
-
data.remark ?
|
|
2011
|
+
data.remark ? "自定义预览" : ""
|
|
2053
2012
|
}</a>`;
|
|
2054
2013
|
}
|
|
2055
2014
|
getSummaries(param) {
|
|
@@ -2057,7 +2016,7 @@ export default class listBasePage extends Vue {
|
|
|
2057
2016
|
const sums = [];
|
|
2058
2017
|
columns.forEach((column, index) => {
|
|
2059
2018
|
if (index === 0) {
|
|
2060
|
-
sums[index] =
|
|
2019
|
+
sums[index] = "合计";
|
|
2061
2020
|
return;
|
|
2062
2021
|
}
|
|
2063
2022
|
const values = data.map((item) => Number(item[column.property]));
|
|
@@ -2172,9 +2131,6 @@ export default class listBasePage extends Vue {
|
|
|
2172
2131
|
onChangeStatistics(args) {
|
|
2173
2132
|
console.log(args);
|
|
2174
2133
|
}
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
2134
|
/** 查询用户列表 */
|
|
2179
2135
|
getList() {
|
|
2180
2136
|
this.contentLoading = true;
|
|
@@ -2190,93 +2146,15 @@ export default class listBasePage extends Vue {
|
|
|
2190
2146
|
)
|
|
2191
2147
|
.then((response) => {
|
|
2192
2148
|
this.listData = (response as any).rows;
|
|
2193
|
-
// 保存原始数据副本
|
|
2194
|
-
this.originalListData = JSON.parse(JSON.stringify((response as any).rows));
|
|
2195
2149
|
|
|
2196
2150
|
this.listQueryParams.total = Number((response as any).total);
|
|
2197
2151
|
this.contentLoading = false;
|
|
2198
|
-
// 获取翻译并替换字段
|
|
2199
|
-
this.fetchAndApplyTranslations(this.listData);
|
|
2200
2152
|
})
|
|
2201
2153
|
.catch(() => {
|
|
2202
2154
|
this.contentLoading = false;
|
|
2203
2155
|
});
|
|
2204
2156
|
}
|
|
2205
2157
|
|
|
2206
|
-
/** 获取并应用翻译 */
|
|
2207
|
-
fetchAndApplyTranslations(dataList) {
|
|
2208
|
-
if (!dataList || dataList.length === 0) {
|
|
2209
|
-
return;
|
|
2210
|
-
}
|
|
2211
|
-
// 检查是否配置了多语言字段
|
|
2212
|
-
if (!this.multiLanguageConfig ||
|
|
2213
|
-
!this.multiLanguageConfig.entityName ||
|
|
2214
|
-
!this.multiLanguageConfig.dataLangIdField ||
|
|
2215
|
-
!this.multiLanguageConfig.dataLangColumnFields ||
|
|
2216
|
-
this.multiLanguageConfig.dataLangColumnFields.length === 0) {
|
|
2217
|
-
return;
|
|
2218
|
-
}
|
|
2219
|
-
// 获取 locale 和 tenantId
|
|
2220
|
-
const locale = (this as any).$cache.local.get('locale') || 'zh_CN';
|
|
2221
|
-
const userInfo = JSON.parse(localStorage.getItem('userInfo') || '{}');
|
|
2222
|
-
const tenantId = userInfo.tenantId;
|
|
2223
|
-
|
|
2224
|
-
// 构建请求参数
|
|
2225
|
-
const recordIds = dataList.map(item => String(item[this.multiLanguageConfig.dataLangIdField]));
|
|
2226
|
-
const columnNames = this.multiLanguageConfig.dataLangColumnFields;
|
|
2227
|
-
|
|
2228
|
-
// 过滤掉没有 dataLangIdField 值的记录
|
|
2229
|
-
const validRecordIds = recordIds.filter(id => id && id !== '' && id !== 'undefined' && id !== 'null');
|
|
2230
|
-
if (validRecordIds.length === 0) {
|
|
2231
|
-
return;
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
const params = {
|
|
2235
|
-
entityName: this.multiLanguageConfig.entityName,
|
|
2236
|
-
recordIds: validRecordIds,
|
|
2237
|
-
columnNames: columnNames,
|
|
2238
|
-
locale: locale,
|
|
2239
|
-
tenantId: tenantId
|
|
2240
|
-
};
|
|
2241
|
-
|
|
2242
|
-
batchGetTranslation(params).then(response => {
|
|
2243
|
-
if ((response as any).code === 200 && response.data) {
|
|
2244
|
-
this.applyTranslations(response.data, dataList);
|
|
2245
|
-
}
|
|
2246
|
-
}).catch(error => {
|
|
2247
|
-
console.error('Failed to fetch translations:', error);
|
|
2248
|
-
});
|
|
2249
|
-
}
|
|
2250
|
-
|
|
2251
|
-
/** 应用翻译到表格数据 */
|
|
2252
|
-
applyTranslations(translationMap, dataList) {
|
|
2253
|
-
// translationMap 格式: {"1001": {"menu_name": "Menu"}, "1002": {"menu_name": "Submenu"}}
|
|
2254
|
-
const idField = this.multiLanguageConfig.dataLangIdField;
|
|
2255
|
-
|
|
2256
|
-
dataList.forEach(row => {
|
|
2257
|
-
const recordId = String(row[idField]);
|
|
2258
|
-
if (translationMap[recordId]) {
|
|
2259
|
-
const translations = translationMap[recordId];
|
|
2260
|
-
// 遍历翻译字段并替换
|
|
2261
|
-
Object.keys(translations).forEach(column => {
|
|
2262
|
-
if (translations[column] && translations[column] !== '') {
|
|
2263
|
-
row[column] = translations[column];
|
|
2264
|
-
}
|
|
2265
|
-
});
|
|
2266
|
-
}
|
|
2267
|
-
});
|
|
2268
|
-
}
|
|
2269
|
-
|
|
2270
|
-
/** 切换多语言按钮操作 */
|
|
2271
|
-
handleMultiLanguage() {
|
|
2272
|
-
this.multiLanguageOpen = true;
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
|
-
/** 翻译保存成功后的处理 */
|
|
2276
|
-
handleTranslationSaved() {
|
|
2277
|
-
this.getList();
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
2158
|
isListClass(value, val, va) {
|
|
2281
2159
|
let dict = JSON.parse(localStorage.getItem("dict"));
|
|
2282
2160
|
for (const key in dict) {
|
|
@@ -2544,7 +2422,7 @@ export default class listBasePage extends Vue {
|
|
|
2544
2422
|
var setting = JSON.parse(args.data.setting);
|
|
2545
2423
|
}
|
|
2546
2424
|
} catch (ex) {
|
|
2547
|
-
(self as any).msgError(
|
|
2425
|
+
(self as any).msgError("验证规则设置有误,JSON格式不正确,请检查!");
|
|
2548
2426
|
this.$set(this.editSetting, "submitLoading", false);
|
|
2549
2427
|
return;
|
|
2550
2428
|
}
|
|
@@ -2583,7 +2461,7 @@ export default class listBasePage extends Vue {
|
|
|
2583
2461
|
updateEntity(self.moduleName, self.serviceName, args.data).then(
|
|
2584
2462
|
(response) => {
|
|
2585
2463
|
self.getList();
|
|
2586
|
-
(self as any).msgSuccess(
|
|
2464
|
+
(self as any).msgSuccess("修改成功");
|
|
2587
2465
|
if (self.editSetting.isCloseOnSave) self.editSetting.isShow = false;
|
|
2588
2466
|
self.$set(this.editSetting, "submitLoading", false);
|
|
2589
2467
|
//self.editSetting.isShow = false;
|
|
@@ -2624,7 +2502,7 @@ export default class listBasePage extends Vue {
|
|
|
2624
2502
|
addEntity(self.moduleName, self.serviceName, args.data).then(
|
|
2625
2503
|
(response) => {
|
|
2626
2504
|
self.getList();
|
|
2627
|
-
(self as any).msgSuccess(
|
|
2505
|
+
(self as any).msgSuccess("新增成功");
|
|
2628
2506
|
if (self.editSetting.isCloseOnSave) self.editSetting.isShow = false;
|
|
2629
2507
|
self.$set(this.editSetting, "submitLoading", false);
|
|
2630
2508
|
},
|
|
@@ -2757,11 +2635,6 @@ export default class listBasePage extends Vue {
|
|
|
2757
2635
|
//this.setOpMenuEnable();
|
|
2758
2636
|
this.currentEntities = selection;
|
|
2759
2637
|
this.setOpMenuEnable();
|
|
2760
|
-
// 更新多语言配置的数据 - 使用原始数据而不是已翻译的数据
|
|
2761
|
-
const selectedOriginalData = this.originalListData.filter(item =>
|
|
2762
|
-
selection.some(selected => selected[this.multiLanguageConfig.dataLangIdField] === item[this.multiLanguageConfig.dataLangIdField])
|
|
2763
|
-
);
|
|
2764
|
-
this.multiLanguageConfig.data = selectedOriginalData;
|
|
2765
2638
|
}
|
|
2766
2639
|
// 表单重置
|
|
2767
2640
|
reset() {
|
|
@@ -2791,7 +2664,7 @@ export default class listBasePage extends Vue {
|
|
|
2791
2664
|
this.serviceName == "search")
|
|
2792
2665
|
) {
|
|
2793
2666
|
if (this.currentSelectTreeId == undefined) {
|
|
2794
|
-
(this as any).msgError(
|
|
2667
|
+
(this as any).msgError("请在左侧选择一个界面设置!");
|
|
2795
2668
|
} else {
|
|
2796
2669
|
Vue.set(
|
|
2797
2670
|
this.currentEntity,
|
|
@@ -2799,7 +2672,7 @@ export default class listBasePage extends Vue {
|
|
|
2799
2672
|
this.currentSelectTreeId
|
|
2800
2673
|
);
|
|
2801
2674
|
this.editSetting.isShow = true;
|
|
2802
|
-
this.editSetting.title =
|
|
2675
|
+
this.editSetting.title = "添加";
|
|
2803
2676
|
}
|
|
2804
2677
|
} else {
|
|
2805
2678
|
this.editColumns.forEach((item) => {
|
|
@@ -2808,7 +2681,7 @@ export default class listBasePage extends Vue {
|
|
|
2808
2681
|
}
|
|
2809
2682
|
});
|
|
2810
2683
|
this.editSetting.isShow = true;
|
|
2811
|
-
this.editSetting.title =
|
|
2684
|
+
this.editSetting.title = "添加";
|
|
2812
2685
|
}
|
|
2813
2686
|
}
|
|
2814
2687
|
/** 复制按钮操作 */
|
|
@@ -2835,9 +2708,9 @@ export default class listBasePage extends Vue {
|
|
|
2835
2708
|
}
|
|
2836
2709
|
}
|
|
2837
2710
|
});
|
|
2838
|
-
self.editSetting.title =
|
|
2711
|
+
self.editSetting.title = "修改";
|
|
2839
2712
|
if (row == "detail") {
|
|
2840
|
-
self.editSetting.title =
|
|
2713
|
+
self.editSetting.title = "查看";
|
|
2841
2714
|
this.oldeditColumns = [];
|
|
2842
2715
|
this.oldeditColumns = JSON.parse(JSON.stringify(this.editColumns));
|
|
2843
2716
|
this.oldeditColumns.forEach((item) => {
|
|
@@ -2870,9 +2743,9 @@ export default class listBasePage extends Vue {
|
|
|
2870
2743
|
const text = this.idsText;
|
|
2871
2744
|
let $this = this;
|
|
2872
2745
|
(this as any)
|
|
2873
|
-
.$confirm(
|
|
2874
|
-
confirmButtonText:
|
|
2875
|
-
cancelButtonText:
|
|
2746
|
+
.$confirm("是否确认删除?", "警告", {
|
|
2747
|
+
confirmButtonText: "确定",
|
|
2748
|
+
cancelButtonText: "取消",
|
|
2876
2749
|
type: "warning",
|
|
2877
2750
|
})
|
|
2878
2751
|
.then(function () {
|
|
@@ -2884,7 +2757,7 @@ export default class listBasePage extends Vue {
|
|
|
2884
2757
|
})
|
|
2885
2758
|
.then(() => {
|
|
2886
2759
|
$this.getList();
|
|
2887
|
-
($this as any).msgSuccess(
|
|
2760
|
+
($this as any).msgSuccess("删除成功");
|
|
2888
2761
|
});
|
|
2889
2762
|
|
|
2890
2763
|
this.submitLoading = false;
|
|
@@ -2892,7 +2765,7 @@ export default class listBasePage extends Vue {
|
|
|
2892
2765
|
/** 导出按钮操作 */
|
|
2893
2766
|
handleExport() {
|
|
2894
2767
|
if (this.exportButton) {
|
|
2895
|
-
(this as any).msgError(
|
|
2768
|
+
(this as any).msgError("请勿重复点击");
|
|
2896
2769
|
return;
|
|
2897
2770
|
}
|
|
2898
2771
|
this.exportButton = true;
|
|
@@ -2916,7 +2789,7 @@ export default class listBasePage extends Vue {
|
|
|
2916
2789
|
}
|
|
2917
2790
|
/** 导入按钮操作 */
|
|
2918
2791
|
handleImport() {
|
|
2919
|
-
this.uploadSetting.title =
|
|
2792
|
+
this.uploadSetting.title = "导入";
|
|
2920
2793
|
// 上传的地址
|
|
2921
2794
|
this.uploadSetting.url =
|
|
2922
2795
|
process.env.VUE_APP_BASE_API +
|
|
@@ -2940,7 +2813,7 @@ export default class listBasePage extends Vue {
|
|
|
2940
2813
|
this.getList();
|
|
2941
2814
|
}
|
|
2942
2815
|
handlePrint() {
|
|
2943
|
-
this.printSetting.title =
|
|
2816
|
+
this.printSetting.title = "打印模板";
|
|
2944
2817
|
this.printSetting.currentEntity = this.currentEntity;
|
|
2945
2818
|
this.printSetting.templateType = `/${this.moduleName}/${this.serviceName}`;
|
|
2946
2819
|
(this.$refs.printDialog as any).show();
|
|
@@ -3090,9 +2963,9 @@ export default class listBasePage extends Vue {
|
|
|
3090
2963
|
};
|
|
3091
2964
|
|
|
3092
2965
|
(this as any)
|
|
3093
|
-
.$prompt(
|
|
3094
|
-
confirmButtonText:
|
|
3095
|
-
cancelButtonText:
|
|
2966
|
+
.$prompt("请输入审批流标题(可为空)", "是否确认发起审批?", {
|
|
2967
|
+
confirmButtonText: "确定",
|
|
2968
|
+
cancelButtonText: "取消",
|
|
3096
2969
|
//inputPattern: /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,
|
|
3097
2970
|
// inputErrorMessage: '邮箱格式不正确'
|
|
3098
2971
|
})
|
|
@@ -3103,7 +2976,7 @@ export default class listBasePage extends Vue {
|
|
|
3103
2976
|
startWorkflow(this.moduleName, this.serviceName, params, this.wfKey)
|
|
3104
2977
|
.then((response) => {
|
|
3105
2978
|
(this as any).exportButton = false;
|
|
3106
|
-
(this as any).$message.success(
|
|
2979
|
+
(this as any).$message.success("发起审批成功");
|
|
3107
2980
|
(this as any).getList();
|
|
3108
2981
|
})
|
|
3109
2982
|
.catch((e) => {
|
|
@@ -3126,7 +2999,7 @@ export default class listBasePage extends Vue {
|
|
|
3126
2999
|
component: WfDialog,
|
|
3127
3000
|
setting: {
|
|
3128
3001
|
isShow: true,
|
|
3129
|
-
title:
|
|
3002
|
+
title: "审批进度",
|
|
3130
3003
|
size: "full", //可选项tiny/small/large/full
|
|
3131
3004
|
// height: "80vh",
|
|
3132
3005
|
labelWidth: "120px", //input标题宽度 不传默认为100px
|
|
@@ -3253,43 +3126,6 @@ export default class listBasePage extends Vue {
|
|
|
3253
3126
|
}
|
|
3254
3127
|
cellStayle(row) {}
|
|
3255
3128
|
mounted() {
|
|
3256
|
-
// // 为 listColumns 中每个对象添加 text 属性
|
|
3257
|
-
// if (this.listColumns) {
|
|
3258
|
-
// this.listColumns.forEach((col: any) => {
|
|
3259
|
-
// if (col.property) {
|
|
3260
|
-
// col.text = (this as any).t(`${this.moduleName}.${this.serviceName}.${col.property}`);
|
|
3261
|
-
// }
|
|
3262
|
-
// });
|
|
3263
|
-
// }
|
|
3264
|
-
|
|
3265
|
-
// // 为 searchRules 中每个对象添加 text 属性
|
|
3266
|
-
// if (this.searchRules) {
|
|
3267
|
-
// this.searchRules.forEach((rule: any) => {
|
|
3268
|
-
// if (rule.property) {
|
|
3269
|
-
// rule.text = (this as any).t(`${this.moduleName}.${this.serviceName}.${rule.property}`);
|
|
3270
|
-
// }
|
|
3271
|
-
// });
|
|
3272
|
-
// }
|
|
3273
|
-
|
|
3274
|
-
// // 为 editColumns 中每个对象添加 text 属性
|
|
3275
|
-
// if (this.editColumns) {
|
|
3276
|
-
// this.editColumns.forEach((col: any) => {
|
|
3277
|
-
// if (col.property) {
|
|
3278
|
-
// col.text = (this as any).t(`${this.moduleName}.${this.serviceName}.${col.property}`);
|
|
3279
|
-
// }
|
|
3280
|
-
// });
|
|
3281
|
-
// }
|
|
3282
|
-
|
|
3283
|
-
// // 为 editSetting.listSetting.listColumns 中每个对象添加 text 属性
|
|
3284
|
-
// if (this.editSetting?.listSetting?.listColumns) {
|
|
3285
|
-
// const listSetting: any = this.editSetting.listSetting;
|
|
3286
|
-
// listSetting.listColumns.forEach((col: any) => {
|
|
3287
|
-
// if (col.property) {
|
|
3288
|
-
// col.text = (this as any).t(`${listSetting.moduleName}.${listSetting.serviceName}.${col.property}`);
|
|
3289
|
-
// }
|
|
3290
|
-
// });
|
|
3291
|
-
// }
|
|
3292
|
-
|
|
3293
3129
|
var that = this;
|
|
3294
3130
|
if (this.listSetting.isShowSumRow) {
|
|
3295
3131
|
setTimeout(() => {
|