cloud-web-corejs 1.0.54-dev.600 → 1.0.54-dev.602

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 (24) hide show
  1. package/package.json +1 -1
  2. package/src/components/xform/form-designer/setting-panel/form-setting.vue +4 -4
  3. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +3 -3
  4. package/src/views/bd/setting/formVersion/button.vue +1 -1
  5. package/src/views/bd/setting/formVersion/compareDialog.vue +286 -0
  6. package/src/views/bd/setting/formVersion/fieldCompare.vue +51 -0
  7. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +94 -90
  8. package/src/views/bd/setting/formVersion/preformDialog.vue +2 -2
  9. package/src/views/bd/setting/formVersion/reverButton.vue +12 -14
  10. package/src/views/bd/setting/form_script/edit.vue +79 -34
  11. package/src/views/bd/setting/form_script/edit1.vue +143 -61
  12. package/src/views/bd/setting/form_script/mixins/edit.js +76 -53
  13. package/src/views/bd/setting/form_script/mixins/edit1.js +75 -52
  14. package/src/views/bd/setting/form_template/edit.vue +93 -36
  15. package/src/views/bd/setting/form_template/formDesignerDialog.vue +166 -0
  16. package/src/views/bd/setting/form_template/list.vue +10 -42
  17. package/src/views/bd/setting/form_template/mixins/edit.js +19 -2
  18. package/src/views/bd/setting/form_template/mixins/list.js +2 -4
  19. package/src/views/bd/setting/form_template/mixins/wf_list.js +0 -4
  20. package/src/views/bd/setting/form_template/wf_list.vue +161 -127
  21. package/src/views/bd/setting/table_model/edit.vue +388 -203
  22. package/src/views/bd/setting/table_model/mixins/edit.js +87 -72
  23. package/src/views/user/form/vform/designer.vue +300 -284
  24. package/src/views/bd/setting/form_template/mixins/list2.js +0 -411
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.600",
4
+ "version": "1.0.54-dev.602",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -106,7 +106,7 @@
106
106
  v-model="formConfig.addFormCode"
107
107
  @clear="
108
108
  formConfig.addFormCode = null;
109
- formConfig.addFormName = null
109
+ formConfig.addFormName = null;
110
110
  $forceUpdate();
111
111
  "
112
112
  v-el-readonly
@@ -998,7 +998,7 @@ $\{wf.starterName\}提交的$\{pm_product_project.product_code\}$\{pm_product_pr
998
998
  created() {
999
999
  //导入表单JSON后需要重新加载自定义CSS样式!!!
1000
1000
  this.designer.handleEvent("form-json-imported", () => {
1001
- this.formCssCode = this.formConfig.cssCode;
1001
+ this.formCssCode = this.formConfig.cssCode || "";
1002
1002
  insertCustomCssToHead(this.formCssCcssCodeode);
1003
1003
  this.extractCssClass();
1004
1004
  this.designer.emitEvent("form-css-updated", deepClone(this.cssClassList));
@@ -1008,7 +1008,7 @@ $\{wf.starterName\}提交的$\{pm_product_project.product_code\}$\{pm_product_pr
1008
1008
  /* SettingPanel和FormWidget为兄弟组件, 在FormWidget加载formConfig时,
1009
1009
  此处SettingPanel可能无法获取到formConfig.cssCode, 故加个延时函数! */
1010
1010
  setTimeout(() => {
1011
- this.formCssCode = this.formConfig.cssCode;
1011
+ this.formCssCode = this.formConfig.cssCode || "";
1012
1012
  insertCustomCssToHead(this.formCssCode);
1013
1013
  this.extractCssClass();
1014
1014
  this.designer.emitEvent("form-css-updated", deepClone(this.cssClassList));
@@ -1031,7 +1031,7 @@ $\{wf.starterName\}提交的$\{pm_product_project.product_code\}$\{pm_product_pr
1031
1031
 
1032
1032
  extractCssClass() {
1033
1033
  let regExp = /\..*{/g;
1034
- let result = this.formCssCode.match(regExp);
1034
+ let result = this.formCssCode ? this.formCssCode.match(regExp) : [];
1035
1035
  let cssNameArray = [];
1036
1036
 
1037
1037
  if (!!result && result.length > 0) {
@@ -1413,15 +1413,15 @@ export default {
1413
1413
  findColumnByColumnId(columnList, columnId) {
1414
1414
  let result = null;
1415
1415
  if (columnList) {
1416
- let column = columnList.find((item) => item.columnId == columnId);
1416
+ /* let column = columnList.find((item) => item.columnId == columnId);
1417
1417
  if (!column) {
1418
- }
1418
+ } */
1419
1419
  for (let column of columnList) {
1420
1420
  if (column.columnId == columnId) {
1421
1421
  result = column;
1422
1422
  break;
1423
1423
  } else if (column.children && column.children.length) {
1424
- let subColumn = this.findColumnByColumnId(column.children, children);
1424
+ let subColumn = this.findColumnByColumnId(column.children, columnId);
1425
1425
  if (subColumn) {
1426
1426
  result = subColumn;
1427
1427
  break;
@@ -19,7 +19,7 @@
19
19
  </template>
20
20
  <script>
21
21
  export default {
22
- name: "ftHistoryButton",
22
+ name: "historyButton",
23
23
  props: {
24
24
  objType: {
25
25
  type: String,
@@ -0,0 +1,286 @@
1
+ <template>
2
+ <div>
3
+ <el-dialog
4
+ :title="$t1(title)"
5
+ :append-to-body="true"
6
+ :modal-append-to-body="true"
7
+ :close-on-click-modal="falseValue"
8
+ :visible.sync="showDialog"
9
+ :modal="falseValue"
10
+ custom-class="dialog-style list-dialog dialog-checkbox pd_0"
11
+ width="1200px"
12
+ @close="dialogClose"
13
+ v-el-drag-dialog
14
+ v-el-dialog-center
15
+ :fullscreen="true"
16
+ >
17
+ <div
18
+ class="cont"
19
+ id="containt"
20
+ style="height: calc(100vh - 58px); overflow: hidden"
21
+ >
22
+ <el-row :gutter="20" style="height: 100%">
23
+ <el-col :span="12">
24
+ <el-container>
25
+ <el-header>版本号:{{ preRow.version }}</el-header>
26
+ <el-main>
27
+ <component
28
+ :is="compareContent"
29
+ v-if="showCompareContent1"
30
+ visible-key="showCompareContent1"
31
+ :hData="compareHData1"
32
+ :parent-target="_self"
33
+ @reload="$reloadHandle"
34
+ @openDesignDialog="openDesingerDialogByChild"
35
+ ></component>
36
+ </el-main>
37
+ </el-container>
38
+ </el-col>
39
+ <el-col :span="12">
40
+ <el-container>
41
+ <el-header>版本号:{{ curRow.version }}</el-header>
42
+ <el-main>
43
+ <component
44
+ :is="compareContent"
45
+ v-if="showCompareContent2"
46
+ visible-key="showCompareContent2"
47
+ :hData="compareHData2"
48
+ :parent-target="_self"
49
+ @reload="$reloadHandle"
50
+ @openDesignDialog="openDesingerDialogByChild"
51
+ :isCompare="true"
52
+ :compareHData="compareHData1"
53
+ ></component>
54
+ </el-main>
55
+ </el-container>
56
+ </el-col>
57
+ </el-row>
58
+ </div>
59
+ <formDesignerDialog
60
+ ref="formDesignerDialog"
61
+ v-if="showDesingerDialog"
62
+ :visiable.sync="showDesingerDialog"
63
+ :formName="formName"
64
+ :formCode="formCode"
65
+ @reflushTemplateList="reflushTemplateList"
66
+ :readonly="designerReadonly"
67
+ :showFormScript="false"
68
+ :historyFlag="true"
69
+ :formTemplate="currentFormTemplate"
70
+ ></formDesignerDialog>
71
+ </el-dialog>
72
+ </div>
73
+ </template>
74
+
75
+ <script>
76
+ export default {
77
+ name: "compareDialog",
78
+ props: ["visiable", "objType", "objCode", "relationCode", "preRow", "curRow"],
79
+ components: {
80
+ formDesignerDialog: () =>
81
+ import("@base/views/bd/setting/form_template/formDesignerDialog.vue"),
82
+ FormTemplateEdit: () => import("@base/views/bd/setting/form_template/edit.vue"),
83
+ FormScriptEdit: () => import("@base/views/bd/setting/form_script/edit.vue"),
84
+ FormScriptEdit1: () => import("@base/views/bd/setting/form_script/edit1.vue"),
85
+ SzTaMbEdit: () => import("@base/views/bd/setting/table_model/edit.vue"),
86
+ },
87
+ created() {
88
+ // this.initSetting();
89
+ this.initTitle();
90
+ this.compare();
91
+ },
92
+ mounted() {},
93
+ data() {
94
+ return {
95
+ showEdit: false,
96
+ showDialog: true,
97
+ falseValue: false,
98
+ selectMulti: true,
99
+ formData: {},
100
+ vxeOption: {},
101
+ showSaleOrgDialog: false,
102
+ activeName: "second",
103
+
104
+ editContent: null,
105
+ hData: null,
106
+
107
+ formCode: null,
108
+ formName: null,
109
+ currentFormTemplate: null,
110
+ isFullscreen: false,
111
+ designerReadonly: false,
112
+ showDesingerDialog: false,
113
+
114
+ showFormScriptList: false,
115
+ formDesTabs: "first",
116
+ title: "历史列表",
117
+
118
+ showCompareDialog: false,
119
+ compareContent: null,
120
+ showCompareContent1: false,
121
+ showCompareContent2: false,
122
+ compareHData1: null,
123
+ compareHData2: null,
124
+ };
125
+ },
126
+ watch: {
127
+ formDesTabs(val) {
128
+ if (this.showFormScriptList == false && val == "second") {
129
+ this.showFormScriptList = true;
130
+ }
131
+ },
132
+ },
133
+ methods: {
134
+ compare() {
135
+ let map = {
136
+ FormTemplate: "FormTemplateEdit",
137
+ FormScript: "FormScriptEdit",
138
+ SzTaMb: "SzTaMbEdit",
139
+ };
140
+ let scriptTypeMap = {
141
+ 0: "FormScriptEdit",
142
+ 1: "FormScriptEdit1",
143
+ };
144
+
145
+ this.compareHData1 = JSON.parse(this.preRow.content);
146
+ this.compareHData2 = JSON.parse(this.curRow.content);
147
+ if (this.objType === "FormScript") {
148
+ this.compareContent = scriptTypeMap[this.compareHData1.scriptType];
149
+ } else {
150
+ this.compareContent = map[this.objType];
151
+ }
152
+ this.showCompareContent1 = true;
153
+ this.showCompareContent2 = true;
154
+ },
155
+ initTitle() {
156
+ let titleMap = {
157
+ FormTemplate: "表单模板历史版本对比",
158
+ FormScript: "逻辑脚本历史版本对比",
159
+ SzTaMb: "数据表历史版本对比",
160
+ };
161
+ this.title = titleMap[this.objType];
162
+ },
163
+ openEditView(row) {
164
+ this.$http({
165
+ url: USER_PREFIX + "/formVersion/get",
166
+ method: "post",
167
+ data: {
168
+ id: row.id,
169
+ },
170
+ success: (res) => {
171
+ let objx = res.objx;
172
+ let hData = JSON.parse(objx.content);
173
+ this.hData = hData;
174
+ let map = {
175
+ FormTemplate: FormTemplateEdit,
176
+ FormScript: FormScriptEdit,
177
+ SzTaMb: SzTaMbEdit,
178
+ };
179
+ let scriptTypeMap = {
180
+ 0: FormScriptEdit,
181
+ 1: FormScriptEdit1,
182
+ };
183
+ if (row.objType === "FormScript") {
184
+ this.editContent = scriptTypeMap[hData.scriptType];
185
+ } else {
186
+ this.editContent = map[row.objType];
187
+ }
188
+ this.activeName = "first";
189
+ this.$openEditView("showEdit");
190
+ },
191
+ });
192
+ },
193
+ rever(row) {},
194
+ openDesingerDialog(row, callback, readonly = false) {
195
+ debugger;
196
+ let a = 1;
197
+ this.formCode = row.formCode;
198
+ this.formName = row.formName + " - " + row.version;
199
+ this.currentFormTemplate = row;
200
+ this.isFullscreen = false;
201
+
202
+ this.designerReadonly = readonly;
203
+ this.showDesingerDialog = true;
204
+ this.designerSaveCallback = callback ?? null;
205
+ },
206
+ openDesingerDialogByChild({ row, readonly, callback }) {
207
+ this.openDesingerDialog(row, callback, readonly);
208
+ },
209
+ reflushTemplateList() {
210
+ this.searchEvent();
211
+ this.designerSaveCallback && this.designerSaveCallback();
212
+ },
213
+ handleFullscreen() {
214
+ let isFullscreen = this.isFullscreen;
215
+ if (!isFullscreen) {
216
+ indexUtil.addClass(document.body, "hideMenu");
217
+ } else {
218
+ indexUtil.removeClass(document.body, "hideMenu");
219
+ }
220
+ this.isFullscreen = !isFullscreen;
221
+ },
222
+ handleFormDesignClose() {
223
+ this.formDesTabs = "first";
224
+ this.showFormScriptList = false;
225
+ },
226
+ reverCallback() {
227
+ this.$emit("reverCallback");
228
+ this.dialogClose();
229
+ },
230
+ dialogClose() {
231
+ this.showCompareDialog = false;
232
+ this.$emit("close");
233
+ this.$emit("update:visiable", false);
234
+ },
235
+ },
236
+ };
237
+ </script>
238
+ <style scoped lang="scss">
239
+ .grid-height {
240
+ height: calc(100vh - 162px) !important;
241
+ }
242
+ ::v-deep .tab-boxOnly > .el-tabs__header {
243
+ position: absolute;
244
+ right: 130px;
245
+ top: 0;
246
+ }
247
+
248
+ ::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
249
+ .detail-wrap .d-cont {
250
+ height: calc(100vh - 158px) !important;
251
+ }
252
+
253
+ .grid-height {
254
+ height: calc(100vh - 126px) !important;
255
+ }
256
+ }
257
+
258
+ ::v-deep
259
+ .designer-drawer.is-fullscreen
260
+ .tab-boxOnly
261
+ > .el-tabs__content
262
+ .el-tab-pane
263
+ .el-tab-pane {
264
+ .detail-wrap .d-cont {
265
+ height: calc(100vh - 116px) !important;
266
+ }
267
+
268
+ .grid-height {
269
+ height: calc(100vh - 84px) !important;
270
+ }
271
+ }
272
+ .el-header {
273
+ background-color: #b3c0d1;
274
+ color: #333;
275
+ text-align: center;
276
+ line-height: 30px;
277
+ font-size: 15px;
278
+ height: 30px !important;
279
+ }
280
+ .el-main {
281
+ padding-bottom: 0px;
282
+ }
283
+ ::v-deep .detail-wrap .d-cont {
284
+ height: calc(100vh - 158px) !important;
285
+ }
286
+ </style>
@@ -0,0 +1,51 @@
1
+ <template>
2
+ <span :class="{ tipsOldVal: isCompare && hasChange() }">
3
+ <el-popover
4
+ placement="top-start"
5
+ width="200"
6
+ trigger="hover"
7
+ v-if="isCompare && hasChange()"
8
+ :disabled="!hasHData"
9
+ >
10
+ <div class="f12 d-txt">{{ $t1("变更前") }}:{{ oldVal }}</div>
11
+ <div slot="reference" class="icon">
12
+ <i class="el-icon-warning" :class="{ hasNoHData: !hasHData }"></i>
13
+ </div>
14
+ </el-popover>
15
+ <slot></slot>
16
+ </span>
17
+ </template>
18
+
19
+ <script>
20
+ export default {
21
+ name: "fieldCompare",
22
+ props: {
23
+ oldVal: [String, Number, Boolean],
24
+ newVal: [String, Number, Boolean],
25
+ hasHData: {
26
+ type: Boolean,
27
+ default: true,
28
+ },
29
+ isCompare: Boolean,
30
+ },
31
+ methods: {
32
+ isNull(val) {
33
+ return val == null || val == "" || val == undefined;
34
+ },
35
+ hasChange() {
36
+ if (this.isNull(this.oldVal) && this.isNull(this.newVal)) return false;
37
+ return this.oldVal !== this.newVal;
38
+ },
39
+ },
40
+ };
41
+ </script>
42
+
43
+ <style scoped>
44
+ .hasNoHData {
45
+ color: #30b08f !important;
46
+ }
47
+
48
+ .d-txt {
49
+ white-space: pre-line;
50
+ }
51
+ </style>
@@ -14,7 +14,11 @@
14
14
  v-el-dialog-center
15
15
  :fullscreen="true"
16
16
  >
17
- <div class="cont" id="containt" style="overflow: hidden">
17
+ <div
18
+ class="cont"
19
+ id="containt"
20
+ style="height: calc(100vh - 58px); overflow: hidden"
21
+ >
18
22
  <el-tabs ref="xTabs" v-model="activeName" class="tab-box">
19
23
  <el-tab-pane :label="$t1('详情')" name="first">
20
24
  <component
@@ -38,6 +42,16 @@
38
42
  >
39
43
  <template #form>
40
44
  <div class="clearfix screen-btns">
45
+ <div class="fl">
46
+ <el-button
47
+ type="primary"
48
+ icon="el-icon-compare"
49
+ class="button-sty"
50
+ @click="compare"
51
+ >
52
+ {{ $t1("对比") }}
53
+ </el-button>
54
+ </div>
41
55
  <div class="fr">
42
56
  <vxe-button
43
57
  icon="el-icon-brush"
@@ -71,7 +85,7 @@
71
85
  <base-input-number v-model="formData.version" />
72
86
  </template>
73
87
  </vxe-form-item>
74
- <vxe-form-item :title="$t1('备注') + ':'">
88
+ <vxe-form-item :title="$t1('操作日志') + ':'">
75
89
  <template v-slot>
76
90
  <el-input v-model="formData.remark" clearable />
77
91
  </template>
@@ -83,69 +97,47 @@
83
97
  </el-tab-pane>
84
98
  </el-tabs>
85
99
  </div>
86
- <el-drawer
87
- :title="$t1('表单设计({formName})', { formName })"
88
- :visible.sync="showDesingerDialog"
89
- :modal="false"
90
- :destroy-on-close="true"
91
- size="100%"
92
- direction="rtl"
93
- :append-to-body="false"
94
- class="designer-drawer"
95
- :class="[isFullscreen ? 'is-fullscreen' : '']"
96
- @close="handleFormDesignClose"
97
- >
98
- <el-tabs v-model="formDesTabs" type="card" class="tab-boxOnly" :stretch="true">
99
- <el-tab-pane :label="$t1('设计器')" name="first">
100
- <designer
101
- ref="designer"
102
- :formCode.sync="formCode"
103
- @reflushTemplateList="reflushTemplateList"
104
- :readonly="designerReadonly"
105
- ></designer>
106
- </el-tab-pane>
107
- <!-- <el-tab-pane :label="$t1('后端脚本')" name="second">
108
- <formScriptList
109
- :formCode="formCode"
110
- :formTemplate="currentFormTemplate"
111
- v-if="showFormScriptList"
112
- ></formScriptList>
113
- </el-tab-pane> -->
114
- </el-tabs>
115
- <el-button class="isFullIcon" v-if="!isFullscreen" @click="handleFullscreen">
116
- <el-tooltip effect="dark" :content="$t1('全屏')" placement="top">
117
- <i class="iconfont icon-quanping"></i>
118
- </el-tooltip>
119
- </el-button>
120
- <el-button class="isFullIcon" v-else @click="handleFullscreen">
121
- <el-tooltip effect="dark" :content="$t1('缩小')" placement="top">
122
- <i class="iconfont icon-suoxiao"></i>
123
- </el-tooltip>
124
- </el-button>
125
- </el-drawer>
100
+ <formDesignerDialog
101
+ ref="formDesignerDialog"
102
+ v-if="showDesingerDialog"
103
+ :visiable.sync="showDesingerDialog"
104
+ :formName="formName"
105
+ :formCode="formCode"
106
+ @reflushTemplateList="reflushTemplateList"
107
+ :readonly="designerReadonly"
108
+ :showFormScript="false"
109
+ :historyFlag="true"
110
+ :formTemplate="currentFormTemplate"
111
+ ></formDesignerDialog>
126
112
  </el-dialog>
113
+ <compareDialog
114
+ ref="compareDialog"
115
+ :objType="objType"
116
+ :objCode="objCode"
117
+ :relationCode="relationCode"
118
+ :preRow="preRow"
119
+ :curRow="curRow"
120
+ v-if="showCompareDialog"
121
+ :visiable.sync="showCompareDialog"
122
+ ></compareDialog>
127
123
  </div>
128
124
  </template>
129
125
 
130
126
  <script>
131
127
  import { selectDialogMixins } from "@base/mixins/selectDialog";
132
- import FormTemplateEdit from "@base/views/bd/setting/form_template/edit.vue";
133
- import FormScriptEdit from "@base/views/bd/setting/form_script/edit.vue";
134
- import FormScriptEdit1 from "@base/views/bd/setting/form_script/edit1.vue";
135
- import SzTaMbEdit from "@base/views/bd/setting/table_model/edit.vue";
136
- import formScriptList from "@base/views/bd/setting/form_script/form_list.vue";
137
128
 
138
129
  export default {
139
130
  name: "ftHistoryDialog",
140
131
  props: ["visiable", "objType", "objCode", "relationCode"],
141
132
  mixins: [selectDialogMixins],
142
133
  components: {
143
- FormTemplateEdit,
144
- FormScriptEdit,
145
- FormScriptEdit1,
146
- SzTaMbEdit,
147
- formScriptList,
148
- designer: () => import("@base/views/user/form/vform/designer.vue"),
134
+ formDesignerDialog: () =>
135
+ import("@base/views/bd/setting/form_template/formDesignerDialog.vue"),
136
+ compareDialog: () => import("@base/views/bd/setting/formVersion/compareDialog.vue"),
137
+ FormTemplateEdit: () => import("@base/views/bd/setting/form_template/edit.vue"),
138
+ FormScriptEdit: () => import("@base/views/bd/setting/form_script/edit.vue"),
139
+ FormScriptEdit1: () => import("@base/views/bd/setting/form_script/edit1.vue"),
140
+ SzTaMbEdit: () => import("@base/views/bd/setting/table_model/edit.vue"),
149
141
  },
150
142
  created() {
151
143
  this.initSetting();
@@ -178,6 +170,10 @@ export default {
178
170
  showFormScriptList: false,
179
171
  formDesTabs: "first",
180
172
  title: "历史列表",
173
+
174
+ showCompareDialog: false,
175
+ preRow: null,
176
+ curRow: null,
181
177
  };
182
178
  },
183
179
  watch: {
@@ -188,6 +184,41 @@ export default {
188
184
  },
189
185
  },
190
186
  methods: {
187
+ getCompareData(row1, row2, callback) {
188
+ Promise.all([this.getFormVersion(row1.id), this.getFormVersion(row2.id)]).then(
189
+ (res) => {
190
+ let compareHData1 = res[0].objx;
191
+ let compareHData2 = res[1].objx;
192
+ callback && callback(compareHData1, compareHData2);
193
+ }
194
+ );
195
+ },
196
+ getFormVersion(id) {
197
+ return this.$http({
198
+ url: USER_PREFIX + "/formVersion/get",
199
+ method: "post",
200
+ data: {
201
+ id: id,
202
+ },
203
+ });
204
+ },
205
+ compare() {
206
+ let rows = this.$refs["table-m1"].getCheckboxRecords(true);
207
+ if (rows.length != 2) {
208
+ this.$message.error("请选择两个版本进行对比");
209
+ return;
210
+ }
211
+
212
+ let row1 = rows[0];
213
+ let row2 = rows[1];
214
+ let preRow = row1.version > row2.version ? row2 : row1;
215
+ let curRow = row1.version > row2.version ? row1 : row2;
216
+ this.getCompareData(preRow, curRow, (compareHData1, compareHData2) => {
217
+ this.preRow = compareHData1;
218
+ this.curRow = compareHData2;
219
+ this.showCompareDialog = true;
220
+ });
221
+ },
191
222
  initTitle() {
192
223
  let titleMap = {
193
224
  FormTemplate: "表单模板历史版本",
@@ -243,7 +274,7 @@ export default {
243
274
  width: 150,
244
275
  },
245
276
  {
246
- title: this.$t1("备注"),
277
+ title: this.$t1("操作日志"),
247
278
  field: "remark",
248
279
  width: 150,
249
280
  },
@@ -301,13 +332,13 @@ export default {
301
332
  let hData = JSON.parse(objx.content);
302
333
  this.hData = hData;
303
334
  let map = {
304
- FormTemplate: FormTemplateEdit,
305
- FormScript: FormScriptEdit,
306
- SzTaMb: SzTaMbEdit,
335
+ FormTemplate: "FormTemplateEdit",
336
+ FormScript: "FormScriptEdit",
337
+ SzTaMb: "SzTaMbEdit",
307
338
  };
308
339
  let scriptTypeMap = {
309
- 0: FormScriptEdit,
310
- 1: FormScriptEdit1,
340
+ 0: "FormScriptEdit",
341
+ 1: "FormScriptEdit1",
311
342
  };
312
343
  if (row.objType === "FormScript") {
313
344
  this.editContent = scriptTypeMap[hData.scriptType];
@@ -322,7 +353,7 @@ export default {
322
353
  rever(row) {},
323
354
  openDesingerDialog(row, callback, readonly = false) {
324
355
  this.formCode = row.formCode;
325
- this.formName = row.formName + " - " + row.formVersion;
356
+ this.formName = row.formName + " - " + row.version;
326
357
  this.currentFormTemplate = row;
327
358
  this.isFullscreen = false;
328
359
 
@@ -359,36 +390,9 @@ export default {
359
390
  </script>
360
391
  <style scoped lang="scss">
361
392
  .grid-height {
362
- height: calc(100vh - 162px) !important;
393
+ height: calc(100vh - 110px) !important;
363
394
  }
364
- ::v-deep .tab-boxOnly > .el-tabs__header {
365
- position: absolute;
366
- right: 130px;
367
- top: 0;
368
- }
369
-
370
- ::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
371
- .detail-wrap .d-cont {
372
- height: calc(100vh - 158px) !important;
373
- }
374
-
375
- .grid-height {
376
- height: calc(100vh - 126px) !important;
377
- }
378
- }
379
-
380
- ::v-deep
381
- .designer-drawer.is-fullscreen
382
- .tab-boxOnly
383
- > .el-tabs__content
384
- .el-tab-pane
385
- .el-tab-pane {
386
- .detail-wrap .d-cont {
387
- height: calc(100vh - 116px) !important;
388
- }
389
-
390
- .grid-height {
391
- height: calc(100vh - 84px) !important;
392
- }
395
+ ::v-deep .detail-wrap .d-cont {
396
+ height: calc(100vh - 148px) !important;
393
397
  }
394
398
  </style>