cloud-web-corejs 1.0.54-dev.138 → 1.0.54-dev.139

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.138",
4
+ "version": "1.0.54-dev.139",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -441,6 +441,7 @@
441
441
  clearable
442
442
  @clear="$forceUpdate()"
443
443
  v-el-readonly
444
+ :disabled="!!row.systems || !!row.relationZd"
444
445
  >
445
446
  <i
446
447
  slot="suffix"
@@ -449,6 +450,21 @@
449
450
  ></i>
450
451
  </el-input>
451
452
  </template>
453
+ <template #treeFlag="{ row }">
454
+ <el-select
455
+ v-model="row.treeFlag"
456
+ clearable
457
+ :disabled="!!row.systems || !!row.relationZd || szTaMb.taRule!==1"
458
+ >
459
+ <el-option value="name" :label="$t1('名称')"></el-option>
460
+ <el-option value="wbs" :label="$t1('WBS码')"></el-option>
461
+ <el-option value="parent" :label="$t1('上级ID')"></el-option>
462
+ <el-option value="treePath" :label="$t1('树ID路径')"></el-option>
463
+ <el-option value="treePathName" :label="$t1('树名称路径')"></el-option>
464
+ <el-option value="hasChild" :label="$t1('是否有下级')"></el-option>
465
+ <el-option value="grade" :label="$t1('层级')"></el-option>
466
+ </el-select>
467
+ </template>
452
468
  </vxe-grid>
453
469
  </div>
454
470
  <table class="table-detail">
@@ -559,7 +575,7 @@
559
575
  <i
560
576
  slot="suffix"
561
577
  class="el-input__icon el-icon-search"
562
- @click="showEntityFieldDialog1 = true"
578
+ @click="openEntityFieldDialog1"
563
579
  ></i>
564
580
  </el-input>
565
581
  </el-form-item>
@@ -584,7 +600,7 @@
584
600
  <i
585
601
  slot="suffix"
586
602
  class="el-input__icon el-icon-search"
587
- @click="showEntityFieldDialog2 = true"
603
+ @click="openEntityFieldDialog2"
588
604
  ></i>
589
605
  </el-input>
590
606
  </el-form-item>
@@ -689,6 +705,117 @@
689
705
  </el-button>
690
706
  </span>
691
707
  </el-dialog>
708
+
709
+ <!--begin-->
710
+ <el-dialog
711
+ :title="$t1('数据值对应表字段')"
712
+ v-if="showToTaBmZdDialog"
713
+ :visible.sync="showToTaBmZdDialog"
714
+ :modal-append-to-body="false"
715
+ :close-on-click-modal="false"
716
+ :modal="false"
717
+ custom-class="dialog-style wf-dialog"
718
+ v-el-drag-dialog
719
+ v-el-dialog-center
720
+ >
721
+ <el-form>
722
+ <div id="containt">
723
+ <table class="table-detail">
724
+ <tbody>
725
+ <tr>
726
+ <th>
727
+ <span class="t">
728
+ {{ $t1("关联表") }}
729
+ </span>
730
+ </th>
731
+ <td>
732
+ <el-form-item label="">
733
+ <el-input
734
+ class="search-input"
735
+ max="200"
736
+ v-model="toTaBmZdEntity"
737
+ @clear="
738
+ toTaBmZdEntity = null;
739
+ toTaBmZdField = null;
740
+ "
741
+ v-el-readonly
742
+ clearable
743
+ >
744
+ <i
745
+ slot="suffix"
746
+ class="el-input__icon el-icon-search"
747
+ @click="showEntityDialog3 = true"
748
+ ></i>
749
+ </el-input>
750
+ </el-form-item>
751
+ </td>
752
+ </tr>
753
+ <tr>
754
+ <th>
755
+ <span class="t">
756
+ {{ $t1("关联字段") }}
757
+ </span>
758
+ </th>
759
+ <td>
760
+ <el-form-item label="">
761
+ <el-input
762
+ class="search-input"
763
+ max="200"
764
+ v-model="toTaBmZdField"
765
+ @clear="toTaBmZdField = null"
766
+ v-el-readonly
767
+ clearable
768
+ >
769
+ <i
770
+ slot="suffix"
771
+ class="el-input__icon el-icon-search"
772
+ @click="openEntityFieldDialog3"
773
+ ></i>
774
+ </el-input>
775
+ </el-form-item>
776
+ </td>
777
+ </tr>
778
+ </tbody>
779
+ </table>
780
+ </div>
781
+ </el-form>
782
+ <span slot="footer" class="dialog-footer">
783
+ <el-button
784
+ type="primary"
785
+ plain
786
+ class="button-sty"
787
+ @click="showToTaBmZdDialog = false"
788
+ >
789
+ <i class="el-icon-close el-icon"></i>
790
+ {{ $t1("取 消") }}
791
+ </el-button>
792
+ <el-button
793
+ type="primary"
794
+ @click="confirmToTaBmZdDialog"
795
+ class="button-sty"
796
+ >
797
+ <i class="el-icon-check el-icon"></i>
798
+ {{ $t1("确 定") }}
799
+ </el-button>
800
+ </span>
801
+ </el-dialog>
802
+
803
+ <szTaMbDialog
804
+ v-if="showEntityDialog3"
805
+ :visiable.sync="showEntityDialog3"
806
+ @confirm="confirmEntityDialog3"
807
+ :multi="false"
808
+ />
809
+
810
+ <zdDialog
811
+ v-if="showEntityFieldDialog3"
812
+ :visiable.sync="showEntityFieldDialog3"
813
+ @confirm="confirmEntityFieldDialog3"
814
+ :taBm="toTaBmZdEntity"
815
+ :multi="false"
816
+ />
817
+ <!--end-->
818
+
692
819
  </div>
693
820
  </template>
694
821
 
@@ -78,6 +78,8 @@ modules = {
78
78
  showToTaBmZdDialog: false,
79
79
  toTaBmZdEntity: null,
80
80
  toTaBmZdField: null,
81
+ showEntityDialog3: false,
82
+ showEntityFieldDialog3: false,
81
83
  };
82
84
  },
83
85
  created() {
@@ -298,6 +300,14 @@ modules = {
298
300
  default: "zdType",
299
301
  },
300
302
  },
303
+ {
304
+ title: this.$t1("树标识"),
305
+ field: "treeFlag",
306
+ width: 150,
307
+ slots: {
308
+ default: "treeFlag",
309
+ },
310
+ },
301
311
  {
302
312
  title: this.$t1("关联字段"),
303
313
  field: "referenceZd",
@@ -311,10 +321,18 @@ modules = {
311
321
  field: "refServiceName",
312
322
  width: 200,
313
323
  },
324
+ {
325
+ title: this.$t1("数据值对应表的字段"),
326
+ field: "toTaBmZd",
327
+ width: 250,
328
+ slots: {
329
+ default: "toTaBmZd",
330
+ },
331
+ },
314
332
  {
315
333
  title: this.$t1("字段类型对应的默认值"),
316
334
  field: "zdTypeValues",
317
- width: 150,
335
+ width: 200,
318
336
  slots: {
319
337
  default: "zdTypeValues",
320
338
  /*default: ({row, rowIndex, $table}) => {
@@ -480,6 +498,8 @@ modules = {
480
498
  orders: newIndex,
481
499
  generateCode: false,
482
500
  fromTable: false,
501
+ toTaBmZd: null,
502
+ treeFlag:null
483
503
  };
484
504
  this.szTaMb.szTaZdMbDTOs.splice(0, 0, item);
485
505
  },
@@ -713,12 +733,26 @@ modules = {
713
733
  this.refServiceName = row.serviceName;
714
734
  }
715
735
  },
736
+ openEntityFieldDialog1() {
737
+ if (!this.referenceEntity) {
738
+ this.$baseAlert("关联表不能为空");
739
+ return;
740
+ }
741
+ this.showEntityFieldDialog1 = true;
742
+ },
716
743
  confirmEntityFieldDialog1(rows) {
717
744
  if (rows.length) {
718
745
  let row = rows[0];
719
746
  this.referenceKey = row.taZdMc;
720
747
  }
721
748
  },
749
+ openEntityFieldDialog2() {
750
+ if (!this.referenceEntity) {
751
+ this.$baseAlert("关联表不能为空");
752
+ return;
753
+ }
754
+ this.showEntityFieldDialog2 = true;
755
+ },
722
756
  confirmEntityFieldDialog2(rows) {
723
757
  if (rows.length) {
724
758
  this.referenceShowRows = rows;
@@ -962,7 +996,46 @@ modules = {
962
996
  this.currentIndex = rowIndex;
963
997
  this.showToTaBmZdDialog = true;
964
998
  },
965
- confirmToTaBmZdDialog(rows) {},
999
+ confirmToTaBmZdDialog() {
1000
+ let toTaBmZdEntity = this.toTaBmZdEntity;
1001
+ let toTaBmZdField = this.toTaBmZdField;
1002
+ if (!toTaBmZdEntity) {
1003
+ this.$baseAlert(this.$t1("关联表不能为空"));
1004
+ return;
1005
+ }
1006
+ if (!toTaBmZdField) {
1007
+ this.$baseAlert(this.$t1("关联字段不能为空"));
1008
+ return;
1009
+ }
1010
+ this.szTaMb.szTaZdMbDTOs[this.currentIndex].toTaBmZd =
1011
+ toTaBmZdEntity + "." + toTaBmZdField;
1012
+ this.showToTaBmZdDialog = false;
1013
+ },
1014
+ openEntityDialog3() {
1015
+ this.showEntityDialog3 = true;
1016
+ },
1017
+ confirmEntityDialog3(rows) {
1018
+ if (rows.length) {
1019
+ let row = rows[0];
1020
+ if (this.toTaBmZdEntity != row.taBm) {
1021
+ this.toTaBmZdEntity = row.taBm;
1022
+ this.toTaBmZdField = null;
1023
+ }
1024
+ }
1025
+ },
1026
+ openEntityFieldDialog3() {
1027
+ if (!this.toTaBmZdEntity) {
1028
+ this.$baseAlert(this.$t1("关联表不能为空"));
1029
+ return;
1030
+ }
1031
+ this.showEntityFieldDialog3 = true;
1032
+ },
1033
+ confirmEntityFieldDialog3(rows) {
1034
+ if (rows.length) {
1035
+ let row = rows[0];
1036
+ this.toTaBmZdField = row.taZdMc;
1037
+ }
1038
+ },
966
1039
  },
967
1040
  };
968
1041
  export default modules;