cloud-web-corejs 1.0.54-dev.117 → 1.0.54-dev.118
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
@@ -42,7 +42,7 @@
|
|
42
42
|
</th>
|
43
43
|
<td colspan="3">
|
44
44
|
<el-form-item prop="taEn" :rules="[{ required: true, trigger: ['blur', 'change'] }]">
|
45
|
-
<el-input type="text" autocomplete="off" v-model="szTaMb.taEn" clearable
|
45
|
+
<el-input type="text" autocomplete="off" v-model="szTaMb.taEn" clearable />
|
46
46
|
</el-form-item>
|
47
47
|
</td>
|
48
48
|
<th><em class="f-red">*</em>{{ $t1('数据库表名') }}</th>
|
@@ -476,11 +476,9 @@
|
|
476
476
|
|
477
477
|
<script>
|
478
478
|
import mixin from "./mixins/edit";
|
479
|
-
import viewDialog from "@/layout/components/extractedCode/viewDialog.vue";
|
480
479
|
|
481
480
|
export default {
|
482
481
|
name: 'szTaMbEdit',
|
483
|
-
components: {viewDialog},
|
484
482
|
mixins: [mixin]
|
485
483
|
}
|
486
484
|
</script>
|
@@ -40,7 +40,9 @@ modules = {
|
|
40
40
|
szTaMbTagDTOs: [],
|
41
41
|
fromTable: false,
|
42
42
|
taCh: null,
|
43
|
-
sszstEn:null
|
43
|
+
sszstEn: null,
|
44
|
+
taEn: null,
|
45
|
+
taBm: null
|
44
46
|
},
|
45
47
|
treeDefaultZds: [],
|
46
48
|
productOption: {},
|
@@ -805,21 +807,27 @@ modules = {
|
|
805
807
|
this.showDtDialog = true;
|
806
808
|
},
|
807
809
|
confirmDtDialog() {
|
808
|
-
|
809
|
-
|
810
|
+
let dbTable = this.dbTable;
|
811
|
+
if (!dbTable) {
|
812
|
+
this.$baseAlert(this.$t1("数据表不能为空"));
|
810
813
|
return
|
811
814
|
}
|
815
|
+
this.showDtDialog = false;
|
812
816
|
this.$http({
|
813
817
|
// aes: true,
|
814
818
|
url: "/" + this.szTaMb.serviceName + `/dbTable/getSzTaZdMbs`,
|
815
819
|
method: `post`,
|
816
820
|
data: {
|
817
|
-
stringOne:
|
821
|
+
stringOne: dbTable
|
818
822
|
},
|
819
823
|
isLoading: true,
|
820
824
|
success: res => {
|
821
825
|
let items = res.objx || [];
|
822
|
-
|
826
|
+
if (!items.length) {
|
827
|
+
this.$baseAlert(this.$t1("数据表[{dbTable}]不存在", {dbTable}));
|
828
|
+
return
|
829
|
+
}
|
830
|
+
let szTaZdMbDTOs = items.filter(item => !item.systems).map(item => {
|
823
831
|
return {
|
824
832
|
...item,
|
825
833
|
createBy: null,
|
@@ -830,23 +838,9 @@ modules = {
|
|
830
838
|
modifyDate: null
|
831
839
|
}
|
832
840
|
})
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
createDate: null,
|
837
|
-
fromTable: true,
|
838
|
-
id: null,
|
839
|
-
modifyBy: null,
|
840
|
-
modifyDate: null,
|
841
|
-
sid: null
|
842
|
-
}
|
843
|
-
Object.keys(newRow).forEach(key => {
|
844
|
-
if (key.endsWith('DTOs')) {
|
845
|
-
delete newRow[key]
|
846
|
-
}
|
847
|
-
})
|
848
|
-
Object.assign(this.szTaMb, newRow);
|
849
|
-
this.szTaMb.szTaZdMbDTOs = szTaZdMbDTOs;*/
|
841
|
+
this.szTaMb.taEn = dbTable;
|
842
|
+
this.szTaMb.taBm = dbTable;
|
843
|
+
this.szTaMb.szTaZdMbDTOs = szTaZdMbDTOs;
|
850
844
|
}
|
851
845
|
});
|
852
846
|
},
|
@@ -888,7 +882,7 @@ modules = {
|
|
888
882
|
modifyBy: null,
|
889
883
|
modifyDate: null,
|
890
884
|
sid: null,
|
891
|
-
taBm: null,
|
885
|
+
// taBm: null,
|
892
886
|
taCode: null
|
893
887
|
}
|
894
888
|
Object.keys(newRow).forEach(key => {
|