cloud-web-corejs 1.0.54-dev.656 → 1.0.54-dev.658

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.
Files changed (40) hide show
  1. package/package.json +1 -1
  2. package/src/components/code-editor/index.vue +31 -2
  3. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -2
  4. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +1 -1
  5. package/src/components/xform/form-designer/form-widget/field-widget/mixins/utc-transform-mixin.js +31 -15
  6. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +6 -6
  7. package/src/components/xform/utils/util.js +8 -77
  8. package/src/views/bd/setting/formVersion/compareBasicSection.vue +70 -0
  9. package/src/views/bd/setting/formVersion/compareCodeSection.vue +505 -0
  10. package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
  11. package/src/views/bd/setting/formVersion/compareDialog.vue +135 -219
  12. package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
  13. package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
  14. package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
  15. package/src/views/bd/setting/formVersion/tableDetailDiff.js +78 -0
  16. package/src/views/bd/setting/formVersion/tableModelCompareView.vue +426 -0
  17. package/src/views/bd/setting/formVersion/textDiff.js +102 -0
  18. package/src/views/bd/setting/form_script/edit1.vue +4 -4
  19. package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
  20. package/src/views/bd/setting/form_script/mixins/edit.js +1 -1
  21. package/src/views/bd/setting/form_script/mixins/edit1.js +1 -1
  22. package/src/views/bd/setting/form_script/mixins/form_list.js +3 -3
  23. package/src/views/bd/setting/form_script/mixins/list.js +3 -3
  24. package/src/views/bd/setting/form_script/mixins/list1.js +4 -4
  25. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
  26. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
  27. package/src/views/bd/setting/form_template/formDesignerDialog.vue +1 -1
  28. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
  29. package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
  30. package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
  31. package/src/views/bd/setting/form_template/mixins/list.js +4 -4
  32. package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
  33. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
  34. package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -3
  35. package/src/views/bd/setting/request_setting/list.vue +15 -25
  36. package/src/views/bd/setting/table_model/edit.vue +1 -1
  37. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  38. package/src/views/bd/setting/table_model/mixins/list.js +6 -6
  39. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
  40. package/src/views/user/form/view/list.vue +29 -12
@@ -0,0 +1,78 @@
1
+ const DETAIL_COMPARE_FIELDS = [
2
+ "zdEn",
3
+ "taZdMc",
4
+ "zdCh",
5
+ "zdType",
6
+ "zdLength",
7
+ "treeFlag",
8
+ "referenceZd",
9
+ "relationZd",
10
+ "refServiceName",
11
+ "toTaBmZd",
12
+ "zdTypeValues",
13
+ "required",
14
+ "enabled",
15
+ "generateCode",
16
+ "atened",
17
+ "updateIgnore",
18
+ "codeType",
19
+ "orders",
20
+ ];
21
+
22
+ function isNull(val) {
23
+ return val == null || val === "";
24
+ }
25
+
26
+ function isSameValue(val1, val2) {
27
+ if (isNull(val1) && isNull(val2)) return true;
28
+ return val1 === val2;
29
+ }
30
+
31
+ export function getDetailRowKey(row, index = 0) {
32
+ if (!row) return `idx_${index}`;
33
+ return row.zdEn || row.taZdMc || `idx_${row.orders ?? index}`;
34
+ }
35
+
36
+ export function buildDetailDiffMaps(preRows = [], curRows = []) {
37
+ const preMap = new Map();
38
+ const curMap = new Map();
39
+
40
+ preRows.forEach((row, index) => {
41
+ preMap.set(getDetailRowKey(row, index), row);
42
+ });
43
+ curRows.forEach((row, index) => {
44
+ curMap.set(getDetailRowKey(row, index), row);
45
+ });
46
+
47
+ const preCellDiff = {};
48
+ const curCellDiff = {};
49
+ const allKeys = new Set([...preMap.keys(), ...curMap.keys()]);
50
+
51
+ allKeys.forEach((key) => {
52
+ const preRow = preMap.get(key);
53
+ const curRow = curMap.get(key);
54
+
55
+ if (!preRow) {
56
+ DETAIL_COMPARE_FIELDS.forEach((field) => {
57
+ curCellDiff[`${key}__${field}`] = true;
58
+ });
59
+ return;
60
+ }
61
+
62
+ if (!curRow) {
63
+ DETAIL_COMPARE_FIELDS.forEach((field) => {
64
+ preCellDiff[`${key}__${field}`] = true;
65
+ });
66
+ return;
67
+ }
68
+
69
+ DETAIL_COMPARE_FIELDS.forEach((field) => {
70
+ if (!isSameValue(preRow[field], curRow[field])) {
71
+ preCellDiff[`${key}__${field}`] = true;
72
+ curCellDiff[`${key}__${field}`] = true;
73
+ }
74
+ });
75
+ });
76
+
77
+ return { preCellDiff, curCellDiff };
78
+ }
@@ -0,0 +1,426 @@
1
+ <template>
2
+ <div class="compare-view-wrap">
3
+ <compareBasicSection
4
+ sectionTitle="基础信息"
5
+ headerLabel="查看数据表定义模板"
6
+ :objType="objType"
7
+ :objCode="objCode"
8
+ :compareHData1="compareHData1"
9
+ :compareHData2="compareHData2"
10
+ :preVersion="preVersion"
11
+ :curVersion="curVersion"
12
+ :fields="basicFields"
13
+ @reverCallback="$emit('reverCallback')"
14
+ />
15
+ <div class="compare-cont compare-detail-section" :class="{ 'is-section-fullscreen': detailFullscreen }">
16
+ <div class="compare-detail-header">
17
+ <div class="compare-header-main">
18
+ <div class="title"><b>{{ $t1("明细") }}</b></div>
19
+ <div class="compare-diff-legend">
20
+ <span class="legend-item legend-old">{{ $t1("变更/删除") }}</span>
21
+ <span class="legend-item legend-new">{{ $t1("变更/新增") }}</span>
22
+ </div>
23
+ </div>
24
+ <el-tooltip class="item" effect="dark" :content="$t1('全屏')" placement="top">
25
+ <el-link class="is-full" :underline="false" @click="detailFullscreen = !detailFullscreen">
26
+ <i class="iconfont icon-quanping"></i>
27
+ </el-link>
28
+ </el-tooltip>
29
+ </div>
30
+ <div class="compare-detail-grid">
31
+ <span class="version-blue">{{ $t1("版本号") }}:{{ preVersion }}</span>
32
+ <div class="grid-height" :class="{ 'is-fullscreen-grid': detailFullscreen }">
33
+ <vxe-grid ref="table-pre" v-bind="preGridOption" />
34
+ </div>
35
+ </div>
36
+ <div class="compare-detail-grid">
37
+ <span class="version-green">{{ $t1("版本号") }}:{{ curVersion }}</span>
38
+ <div class="grid-height" :class="{ 'is-fullscreen-grid': detailFullscreen }">
39
+ <vxe-grid ref="table-cur" v-bind="curGridOption" />
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </template>
45
+
46
+ <script>
47
+ import compareMixin from "./compareMixin";
48
+ import compareBasicSection from "./compareBasicSection.vue";
49
+ import { buildDetailDiffMaps, getDetailRowKey } from "./tableDetailDiff";
50
+
51
+ const zdTypeMap = {
52
+ Boolean: "布尔",
53
+ Integer: "整数",
54
+ Long: "长整数",
55
+ Decimal: "精度小数",
56
+ Money: "金额",
57
+ Text: "文本",
58
+ TextArea: "长文本",
59
+ DateTime: "日期时间",
60
+ Reference: "关联表(文本)",
61
+ ReferenceLong: "关联表(长整型)",
62
+ };
63
+
64
+ const treeFlagMap = {
65
+ name: "名称",
66
+ wbs: "WBS码",
67
+ parent: "上级ID",
68
+ treePath: "树ID路径",
69
+ treePathName: "树名称路径",
70
+ hasChild: "是否有下级",
71
+ grade: "层级",
72
+ };
73
+
74
+ export default {
75
+ name: "tableModelCompareView",
76
+ mixins: [compareMixin],
77
+ components: {
78
+ compareBasicSection,
79
+ },
80
+ data() {
81
+ return {
82
+ detailFullscreen: false,
83
+ preRows: [],
84
+ curRows: [],
85
+ preGridOption: {},
86
+ curGridOption: {},
87
+ detailDiff: {
88
+ preCellDiff: {},
89
+ curCellDiff: {},
90
+ },
91
+ };
92
+ },
93
+ computed: {
94
+ basicFields() {
95
+ return [
96
+ { key: "taBm", label: "数据库表名" },
97
+ { key: "taEn", label: "实体名称" },
98
+ { key: "taCh", label: "表描述" },
99
+ {
100
+ key: "taType",
101
+ label: "是否明细",
102
+ formatter: (val) => this.formatBool(val),
103
+ },
104
+ { key: "sszstEn", label: "所属主实体" },
105
+ {
106
+ key: "taRule",
107
+ label: "是否树结构",
108
+ formatter: (val) => this.formatBool(val),
109
+ },
110
+ {
111
+ key: "dataRange",
112
+ label: "数据范围",
113
+ formatter: (val) => this.formatDataRange(val),
114
+ },
115
+ { key: "menuKindName", label: "表单分类" },
116
+ {
117
+ key: "szTaMbTagDTOs",
118
+ label: "项目标签",
119
+ formatter: (val) => this.formatTags(val),
120
+ },
121
+ {
122
+ key: "enabled",
123
+ label: "是否启用",
124
+ formatter: (val) => this.formatBool(val, "启用", "禁用"),
125
+ },
126
+ { key: "serviceName", label: "服务名" },
127
+ { key: "sid", label: "唯一标识" },
128
+ ...this.auditFields(),
129
+ ];
130
+ },
131
+ },
132
+ mounted() {
133
+ this.initDetailGrids();
134
+ },
135
+ watch: {
136
+ detailFullscreen() {
137
+ this.updateDetailGridLayout();
138
+ },
139
+ },
140
+ methods: {
141
+ formatYesNo(cellValue) {
142
+ return this.$t1(cellValue ? "是" : "否");
143
+ },
144
+ formatZdType(cellValue) {
145
+ return this.$t1(zdTypeMap[cellValue] || cellValue || "");
146
+ },
147
+ formatTreeFlag(cellValue) {
148
+ return this.$t1(treeFlagMap[cellValue] || cellValue || "");
149
+ },
150
+ getDetailColumns() {
151
+ return [
152
+ {
153
+ title: this.$t1("实体字段名称"),
154
+ field: "zdEn",
155
+ width: 150,
156
+ fixed: "left",
157
+ },
158
+ {
159
+ title: this.$t1("数据库表字段名"),
160
+ field: "taZdMc",
161
+ width: 150,
162
+ fixed: "left",
163
+ },
164
+ {
165
+ title: this.$t1("字段描述"),
166
+ field: "zdCh",
167
+ width: 150,
168
+ },
169
+ {
170
+ title: this.$t1("字段类型"),
171
+ field: "zdType",
172
+ width: 150,
173
+ formatter: ({ cellValue }) => this.formatZdType(cellValue),
174
+ },
175
+ {
176
+ title: this.$t1("字段长度"),
177
+ field: "zdLength",
178
+ width: 150,
179
+ },
180
+ {
181
+ title: this.$t1("树标识"),
182
+ field: "treeFlag",
183
+ width: 150,
184
+ formatter: ({ cellValue }) => this.formatTreeFlag(cellValue),
185
+ },
186
+ {
187
+ title: this.$t1("关联字段"),
188
+ field: "referenceZd",
189
+ width: 250,
190
+ },
191
+ {
192
+ title: this.$t1("来源关联字段"),
193
+ field: "relationZd",
194
+ width: 250,
195
+ },
196
+ {
197
+ title: this.$t1("关联表对应服务名"),
198
+ field: "refServiceName",
199
+ width: 200,
200
+ },
201
+ {
202
+ title: this.$t1("数据值对应表的字段"),
203
+ field: "toTaBmZd",
204
+ width: 250,
205
+ },
206
+ {
207
+ title: this.$t1("字段类型对应的默认值"),
208
+ field: "zdTypeValues",
209
+ width: 200,
210
+ },
211
+ {
212
+ title: this.$t1("是否必填项"),
213
+ field: "required",
214
+ width: 140,
215
+ formatter: ({ cellValue }) => this.formatYesNo(cellValue),
216
+ },
217
+ {
218
+ title: this.$t1("是否启用"),
219
+ field: "enabled",
220
+ width: 120,
221
+ formatter: ({ cellValue }) => this.formatYesNo(cellValue),
222
+ },
223
+ {
224
+ title: this.$t1("是否自动生成编码"),
225
+ field: "generateCode",
226
+ width: 180,
227
+ formatter: ({ cellValue }) => this.formatYesNo(cellValue),
228
+ },
229
+ {
230
+ title: this.$t1("数据库字段加密"),
231
+ field: "atened",
232
+ width: 180,
233
+ formatter: ({ cellValue }) => this.formatYesNo(cellValue),
234
+ },
235
+ {
236
+ title: this.$t1("是否更新忽略字段"),
237
+ field: "updateIgnore",
238
+ width: 180,
239
+ formatter: ({ cellValue }) => this.formatYesNo(cellValue),
240
+ },
241
+ {
242
+ title: this.$t1("编码类型"),
243
+ field: "codeType",
244
+ width: 150,
245
+ },
246
+ {
247
+ title: this.$t1("序号"),
248
+ field: "orders",
249
+ width: 150,
250
+ },
251
+ ];
252
+ },
253
+ getGridSizeConfig() {
254
+ if (this.detailFullscreen) {
255
+ return {
256
+ height: "100%",
257
+ maxHeight: null,
258
+ };
259
+ }
260
+ return {
261
+ height: "auto",
262
+ maxHeight: 320,
263
+ };
264
+ },
265
+ initDetailGrids() {
266
+ this.preRows = this.compareHData1?.szTaZdMbDTOs || [];
267
+ this.curRows = this.compareHData2?.szTaZdMbDTOs || [];
268
+ this.detailDiff = buildDetailDiffMaps(this.preRows, this.curRows);
269
+
270
+ const columns = this.getDetailColumns();
271
+ const baseConfig = {
272
+ border: true,
273
+ resizable: true,
274
+ showOverflow: true,
275
+ scrollX: { enabled: true },
276
+ columns,
277
+ ...this.getGridSizeConfig(),
278
+ };
279
+ this.preGridOption = {
280
+ ...baseConfig,
281
+ data: this.preRows,
282
+ cellClassName: (params) => this.getPreCellClassName(params),
283
+ };
284
+ this.curGridOption = {
285
+ ...baseConfig,
286
+ data: this.curRows,
287
+ cellClassName: (params) => this.getCurCellClassName(params),
288
+ };
289
+ },
290
+ updateDetailGridLayout() {
291
+ const sizeConfig = this.getGridSizeConfig();
292
+ Object.assign(this.preGridOption, sizeConfig);
293
+ Object.assign(this.curGridOption, sizeConfig);
294
+ this.$nextTick(() => {
295
+ this.refreshDetailGrids();
296
+ });
297
+ },
298
+ refreshDetailGrids() {
299
+ [
300
+ { ref: "table-pre", rows: this.preRows },
301
+ { ref: "table-cur", rows: this.curRows },
302
+ ].forEach(({ ref, rows }) => {
303
+ const grid = this.$refs[ref];
304
+ if (!grid) return;
305
+ if (typeof grid.loadData === "function") {
306
+ grid.loadData(rows);
307
+ }
308
+ if (typeof grid.recalculate === "function") {
309
+ grid.recalculate(true);
310
+ }
311
+ });
312
+ },
313
+ getPreCellClassName({ row, column, rowIndex }) {
314
+ return this.getDetailCellClassName("pre", row, column, rowIndex);
315
+ },
316
+ getCurCellClassName({ row, column, rowIndex }) {
317
+ return this.getDetailCellClassName("cur", row, column, rowIndex);
318
+ },
319
+ getDetailCellClassName(side, row, column, rowIndex) {
320
+ const field = column.field;
321
+ if (!field || !row) return "";
322
+ const diffKey = `${getDetailRowKey(row, rowIndex)}__${field}`;
323
+ const diffMap =
324
+ side === "pre" ? this.detailDiff.preCellDiff : this.detailDiff.curCellDiff;
325
+ return diffMap[diffKey] ? `compare-diff-${side === "pre" ? "old" : "new"}` : "";
326
+ },
327
+ },
328
+ };
329
+ </script>
330
+
331
+ <style scoped lang="scss">
332
+ .compare-detail-section {
333
+ .compare-detail-header {
334
+ position: relative;
335
+ min-height: 28px;
336
+ margin-bottom: 4px;
337
+ padding-right: 24px;
338
+ }
339
+
340
+ .compare-header-main {
341
+ display: flex;
342
+ align-items: center;
343
+ flex-wrap: wrap;
344
+ gap: 0 16px;
345
+ }
346
+
347
+ .title {
348
+ margin-bottom: 0 !important;
349
+ }
350
+
351
+ .compare-diff-legend {
352
+ display: inline-flex;
353
+ align-items: center;
354
+ font-size: 12px;
355
+
356
+ .legend-item {
357
+ display: inline-block;
358
+ margin-right: 12px;
359
+ padding: 2px 8px;
360
+ border-radius: 2px;
361
+
362
+ &.legend-old {
363
+ background: rgba(245, 108, 108, 0.2);
364
+ color: #f56c6c;
365
+ }
366
+
367
+ &.legend-new {
368
+ background: rgba(103, 194, 58, 0.2);
369
+ color: #67c23a;
370
+ }
371
+ }
372
+ }
373
+
374
+ ::v-deep .compare-diff-old {
375
+ background-color: rgba(245, 108, 108, 0.28) !important;
376
+ color: #f56c6c;
377
+ }
378
+
379
+ ::v-deep .compare-diff-new {
380
+ background-color: rgba(103, 194, 58, 0.28) !important;
381
+ color: #67c23a;
382
+ }
383
+
384
+ &.is-section-fullscreen {
385
+ position: fixed;
386
+ top: 0;
387
+ right: 0;
388
+ bottom: 0;
389
+ left: 0;
390
+ z-index: 9999;
391
+ display: flex;
392
+ flex-direction: column;
393
+ margin: 0;
394
+ overflow: hidden;
395
+ padding: 12px 16px 16px;
396
+ background: #fff;
397
+
398
+ .compare-detail-header {
399
+ flex-shrink: 0;
400
+ }
401
+
402
+ .compare-detail-grid {
403
+ flex: 1;
404
+ min-height: 0;
405
+ display: flex;
406
+ flex-direction: column;
407
+
408
+ .grid-height.is-fullscreen-grid {
409
+ flex: 1;
410
+ min-height: 0;
411
+ height: auto !important;
412
+ }
413
+ }
414
+ }
415
+ }
416
+
417
+ .compare-detail-grid + .compare-detail-grid {
418
+ margin-top: 16px;
419
+ }
420
+
421
+ .compare-detail-section.is-section-fullscreen {
422
+ .compare-detail-grid + .compare-detail-grid {
423
+ margin-top: 12px;
424
+ }
425
+ }
426
+ </style>
@@ -0,0 +1,102 @@
1
+ /**
2
+ * 基于 LCS 的行级 diff,返回左右两侧需要高亮的行号(0-based)
3
+ */
4
+ export function diffLines(oldStr, newStr) {
5
+ const oldLines = (oldStr || "").split("\n");
6
+ const newLines = (newStr || "").split("\n");
7
+ const m = oldLines.length;
8
+ const n = newLines.length;
9
+ const dp = buildLcsDp(oldLines, newLines);
10
+
11
+ const oldMarks = [];
12
+ const newMarks = [];
13
+ const rawOps = [];
14
+ let i = m;
15
+ let j = n;
16
+
17
+ while (i > 0 || j > 0) {
18
+ if (i > 0 && j > 0 && oldLines[i - 1] === newLines[j - 1]) {
19
+ rawOps.unshift({ type: "eq", old: i - 1, new: j - 1 });
20
+ i--;
21
+ j--;
22
+ } else if (j > 0 && (i === 0 || dp[i][j - 1] >= dp[i - 1][j])) {
23
+ newMarks.unshift(j - 1);
24
+ rawOps.unshift({ type: "ins", new: j - 1 });
25
+ j--;
26
+ } else {
27
+ oldMarks.unshift(i - 1);
28
+ rawOps.unshift({ type: "del", old: i - 1 });
29
+ i--;
30
+ }
31
+ }
32
+
33
+ const diffNavList = buildDiffHunks(rawOps);
34
+
35
+ return { oldMarks, newMarks, diffNavList };
36
+ }
37
+
38
+ function buildLcsDp(oldLines, newLines) {
39
+ const m = oldLines.length;
40
+ const n = newLines.length;
41
+ const dp = Array.from({ length: m + 1 }, () => Array(n + 1).fill(0));
42
+
43
+ for (let i = 1; i <= m; i++) {
44
+ for (let j = 1; j <= n; j++) {
45
+ if (oldLines[i - 1] === newLines[j - 1]) {
46
+ dp[i][j] = dp[i - 1][j - 1] + 1;
47
+ } else {
48
+ dp[i][j] = Math.max(dp[i - 1][j], dp[i][j - 1]);
49
+ }
50
+ }
51
+ }
52
+
53
+ return dp;
54
+ }
55
+
56
+ function buildDiffHunks(rawOps) {
57
+ const hunks = [];
58
+ let hunk = null;
59
+ let lastEqOld = -1;
60
+ let lastEqNew = -1;
61
+
62
+ rawOps.forEach((op) => {
63
+ if (op.type === "eq") {
64
+ if (hunk) {
65
+ hunks.push(finalizeHunk(hunk, lastEqOld, lastEqNew));
66
+ hunk = null;
67
+ }
68
+ lastEqOld = op.old;
69
+ lastEqNew = op.new;
70
+ return;
71
+ }
72
+
73
+ if (!hunk) {
74
+ hunk = { left: null, right: null, leftEnd: null, rightEnd: null };
75
+ }
76
+
77
+ if (op.type === "del") {
78
+ if (hunk.left == null) hunk.left = op.old;
79
+ hunk.leftEnd = op.old;
80
+ } else {
81
+ if (hunk.right == null) hunk.right = op.new;
82
+ hunk.rightEnd = op.new;
83
+ }
84
+ });
85
+
86
+ if (hunk) {
87
+ hunks.push(finalizeHunk(hunk, lastEqOld, lastEqNew));
88
+ }
89
+
90
+ return hunks;
91
+ }
92
+
93
+ function finalizeHunk(hunk, lastEqOld, lastEqNew) {
94
+ return {
95
+ left: hunk.left,
96
+ right: hunk.right,
97
+ leftEnd: hunk.leftEnd,
98
+ rightEnd: hunk.rightEnd,
99
+ anchorLeft: Math.max(lastEqOld, 0),
100
+ anchorRight: Math.max(lastEqNew, 0),
101
+ };
102
+ }
@@ -115,8 +115,8 @@
115
115
  <td colspan="5">
116
116
  <el-form-item
117
117
  v-if="
118
- formScript.formCode == 'intf' ||
119
- formScript.formCode == 'busgeneral'
118
+ formScript.formCode === 'intf' ||
119
+ formScript.formCode === 'busgeneral'
120
120
  "
121
121
  prop="menuKindName"
122
122
  :rules="[{ required: true, trigger: ['blur', 'change'] }]"
@@ -170,8 +170,8 @@
170
170
  </el-radio-group>
171
171
  </template>
172
172
  <template v-else>
173
- <span v-if="formScript.formCode == 'intf'">intf(接口)</span>
174
- <span v-else-if="formScript.formCode == 'busgeneral'"
173
+ <span v-if="formScript.formCode === 'intf'">intf(接口)</span>
174
+ <span v-else-if="formScript.formCode === 'busgeneral'"
175
175
  >busgeneral(业务通用)</span
176
176
  >
177
177
  <span v-else>{{ formScript.formCode }}</span>
@@ -75,7 +75,7 @@ modules = {
75
75
  width: 150,
76
76
  slots: {
77
77
  default: ({row}) => {
78
- if (row.transactions == 1) {
78
+ if (row.transactions === 1) {
79
79
  return getJsxStatus(null,this.$t1('是'))
80
80
  } else {
81
81
  return getJsxStatus('s-3',this.$t1('否'))
@@ -118,7 +118,7 @@ modules = {
118
118
  });
119
119
  },
120
120
  openEditDialog(row) {
121
- /*this.dataId = !id || typeof id == 'object' ? 0 : id;
121
+ /*this.dataId = !id || typeof id === 'object' ? 0 : id;
122
122
  this.activeName = 'first';
123
123
  this.$openEditView('showEdit');*/
124
124
 
@@ -218,7 +218,7 @@ modules = {
218
218
  getBdEnv() {
219
219
  getBdFlag({
220
220
  success: (res) => {
221
- this.isDev = res.objx == 1;
221
+ this.isDev = res.objx === 1;
222
222
  },
223
223
  });
224
224
  },
@@ -212,7 +212,7 @@ modules = {
212
212
  getBdEnv() {
213
213
  getBdFlag({
214
214
  success: (res) => {
215
- this.isDev = res.objx == 1;
215
+ this.isDev = res.objx === 1;
216
216
  },
217
217
  });
218
218
  },
@@ -92,7 +92,7 @@ modules = {
92
92
  this.$refs["table-m1"].commitProxy("reload");
93
93
  },
94
94
  openEditDialog(row) {
95
- /*this.dataId = !id || typeof id == 'object' ? 0 : id;
95
+ /*this.dataId = !id || typeof id === 'object' ? 0 : id;
96
96
  this.activeName = 'first';
97
97
  this.$openEditView('showEdit');*/
98
98
 
@@ -169,7 +169,7 @@ modules = {
169
169
  width: 150,
170
170
  slots: {
171
171
  default: ({ row }) => {
172
- if (row.transactions == 1) {
172
+ if (row.transactions === 1) {
173
173
  return getJsxStatus(null, this.$t1("是"));
174
174
  } else {
175
175
  return getJsxStatus("s-3", this.$t1("否"));
@@ -298,7 +298,7 @@ modules = {
298
298
  getBdEnv() {
299
299
  getBdFlag({
300
300
  success: (res) => {
301
- this.isDev = res.objx == 1;
301
+ this.isDev = res.objx === 1;
302
302
  },
303
303
  });
304
304
  },