cloud-web-corejs 1.0.54-dev.277 → 1.0.54-dev.279
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/table/vxeFilter/mixin.js +1 -295
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +632 -632
- package/src/layout/components/extractedCode/viewDialog.vue +1 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -209
- package/src/views/bd/setting/push_data/edit.vue +15 -15
- package/src/views/bd/setting/push_data/list.vue +5 -15
- package/src/views/bd/setting/push_data_h/edit.vue +15 -15
- package/src/views/bd/setting/push_data_h/list.vue +5 -19
- package/src/views/bd/setting/table_model/edit.vue +12 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +66 -14
@@ -348,6 +348,18 @@
|
|
348
348
|
></el-option>
|
349
349
|
</el-select>
|
350
350
|
</template>
|
351
|
+
<template #zdLength="{ row, rowIndex }">
|
352
|
+
<el-form-item
|
353
|
+
:prop="'szTaZdMbDTOs.' + rowIndex + '.zdLength'"
|
354
|
+
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
355
|
+
>
|
356
|
+
<el-input
|
357
|
+
v-model="row.zdLength"
|
358
|
+
clearable
|
359
|
+
:disabled="!!row.systems || !!row.relationZd"
|
360
|
+
/>
|
361
|
+
</el-form-item>
|
362
|
+
</template>
|
351
363
|
<template #referenceZd="{ row, rowIndex, $table }">
|
352
364
|
<el-input
|
353
365
|
class="search-input"
|
@@ -311,6 +311,14 @@ modules = {
|
|
311
311
|
default: "zdType",
|
312
312
|
},
|
313
313
|
},
|
314
|
+
{
|
315
|
+
title: this.$t1("字段长度"),
|
316
|
+
field: "zdLength",
|
317
|
+
width: 150,
|
318
|
+
slots: {
|
319
|
+
default: "zdLength",
|
320
|
+
},
|
321
|
+
},
|
314
322
|
{
|
315
323
|
title: this.$t1("树标识"),
|
316
324
|
field: "treeFlag",
|
@@ -510,23 +518,30 @@ modules = {
|
|
510
518
|
// }
|
511
519
|
// this.customer.szTaZdMbDTOs.push({tacitly: tacitly});
|
512
520
|
let newIndex = this.getNewIndex();
|
513
|
-
let item = {
|
521
|
+
/* let item = {
|
514
522
|
zdEn: null,
|
515
523
|
zdCh: null,
|
524
|
+
taZdMc: null,
|
516
525
|
zdTypeValues: null,
|
517
526
|
required: false,
|
518
527
|
codeType: null,
|
519
528
|
referenceZd: null,
|
520
529
|
zdType: "Text",
|
530
|
+
zdLength: "255",
|
521
531
|
enabled: true,
|
522
532
|
orders: newIndex,
|
533
|
+
relationZd:null,
|
534
|
+
refServiceName:null,
|
535
|
+
|
523
536
|
generateCode: false,
|
524
537
|
fromTable: false,
|
525
538
|
toTaBmZd: null,
|
526
539
|
treeFlag: null,
|
527
540
|
atened: false,
|
528
541
|
updateIgnore: false
|
529
|
-
};
|
542
|
+
}; */
|
543
|
+
let item = this.createRow();
|
544
|
+
item.orders = newIndex,
|
530
545
|
this.szTaMb.szTaZdMbDTOs.splice(0, 0, item);
|
531
546
|
},
|
532
547
|
deleteItem(row, rowIndex) {
|
@@ -643,6 +658,14 @@ modules = {
|
|
643
658
|
this.showReferenceZdDialog = true;
|
644
659
|
},
|
645
660
|
changeZdType(row) {
|
661
|
+
let map = {
|
662
|
+
"Integer": "11",
|
663
|
+
"Long": "20",
|
664
|
+
"Decimal": "21,6",
|
665
|
+
"Money": "21,2",
|
666
|
+
"Text": "255"
|
667
|
+
}
|
668
|
+
row.zdLength = map[row.zdType] || null;
|
646
669
|
this.clearReferenceZd(row);
|
647
670
|
},
|
648
671
|
clearReferenceZd(row) {
|
@@ -739,22 +762,21 @@ modules = {
|
|
739
762
|
addReferenceShowRows.forEach((item, index) => {
|
740
763
|
let rIndex = addIndex + index;
|
741
764
|
let orders = (row.orders || 0) + index + 1;
|
742
|
-
|
765
|
+
|
766
|
+
let newItem = this.createRow();
|
767
|
+
Object.assign(newItem, {
|
743
768
|
zdEn: "ref_" + item.zdEn,
|
744
|
-
taZdMc: null,
|
745
769
|
zdCh: item.zdCh,
|
746
|
-
zdType: "Text",
|
747
|
-
referenceZd: referenceEntity + "." + item.taZdMc,
|
748
|
-
relationZd: referenceZd + "." + row.zdEn,
|
749
|
-
refServiceName,
|
750
|
-
zdTypeValues: null,
|
751
770
|
required: false,
|
771
|
+
referenceZd: referenceEntity + "." + item.taZdMc,
|
772
|
+
zdType: "Text",
|
773
|
+
zdLength: "255",
|
752
774
|
enabled: true,
|
753
|
-
requiredMsg: null,
|
754
|
-
regexp: null,
|
755
|
-
regexpMsg: null,
|
756
775
|
orders,
|
757
|
-
|
776
|
+
relationZd: referenceZd + "." + row.zdEn,
|
777
|
+
refServiceName,
|
778
|
+
})
|
779
|
+
|
758
780
|
this.szTaMb.szTaZdMbDTOs.splice(rIndex, 0, newItem);
|
759
781
|
});
|
760
782
|
row.referenceZd = referenceZd;
|
@@ -762,7 +784,37 @@ modules = {
|
|
762
784
|
this.handleReferenceOrders(row);
|
763
785
|
this.showReferenceZdDialog = false;
|
764
786
|
},
|
765
|
-
|
787
|
+
createRow(){
|
788
|
+
let row = {
|
789
|
+
"orders": null,
|
790
|
+
"taCode": null,
|
791
|
+
"zdCode": null,
|
792
|
+
"zdEn": null,
|
793
|
+
"zdCh": null,
|
794
|
+
"taZdMc": null,
|
795
|
+
"zdType": "Text",
|
796
|
+
"zdLength": "255",
|
797
|
+
"referenceZd": null,
|
798
|
+
"relationZd": null,
|
799
|
+
"refServiceName": null,
|
800
|
+
"zdTypeValues": null,
|
801
|
+
"required": false,
|
802
|
+
"requiredMsg": null,
|
803
|
+
"regexpVal": null,
|
804
|
+
"regexpMsg": null,
|
805
|
+
"enabled": true,
|
806
|
+
"systems": false,
|
807
|
+
"generateCode": false,
|
808
|
+
"codeType": null,
|
809
|
+
"toTaBmZd": null,
|
810
|
+
"fromTable": false,
|
811
|
+
"treeFlag": null,
|
812
|
+
"atened": false,
|
813
|
+
"updateIgnore": false,
|
814
|
+
"abc": null
|
815
|
+
}
|
816
|
+
return row;
|
817
|
+
},
|
766
818
|
changeOrders(row) {
|
767
819
|
this.handleReferenceOrders(row);
|
768
820
|
},
|