cloud-web-corejs 1.0.54-dev.607 → 1.0.54-dev.609

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.
@@ -1,30 +1,31 @@
1
1
  import tableForm from "@base/components/table/tableForm.vue";
2
2
  import editView from "@base/views/bd/setting/form_script/edit.vue";
3
- import {getBdFlag} from "@base/api/user";
4
- import {getJsxBtn, getJsxStatus} from "@base/views/bd/setting/utils/index";
3
+ import { getBdFlag } from "@base/api/user";
4
+ import { getJsxBtn, getJsxStatus } from "@base/views/bd/setting/utils/index";
5
+ import formVersionButton from "@base/views/bd/setting/formVersion/link.vue";
5
6
 
6
7
  let modules = {};
7
8
  modules = {
8
- name: 'form_script:list',
9
+ name: "form_script:list",
9
10
  props: {
10
11
  scriptType: {
11
12
  type: Number,
12
- default: 0
13
+ default: 0,
13
14
  },
14
15
  formCode: {
15
16
  type: String,
16
- default: null
17
- }
17
+ default: null,
18
+ },
18
19
  },
19
- components: {tableForm, editView},
20
+ components: { tableForm, editView, formVersionButton },
20
21
  data() {
21
22
  return {
22
- activeName: 'second',
23
+ activeName: "second",
23
24
  dataId: 0,
24
25
  showEdit: false,
25
26
  vxeOption: {},
26
27
  formData: {},
27
- isDev: true
28
+ isDev: true,
28
29
  };
29
30
  },
30
31
  mounted() {
@@ -33,11 +34,11 @@ modules = {
33
34
  },
34
35
  methods: {
35
36
  searchEvent() {
36
- this.$refs['table-m1'].commitProxy('reload');
37
+ this.$refs["table-m1"].commitProxy("reload");
37
38
  },
38
39
  resetEvent() {
39
40
  this.formData = {};
40
- this.$refs['table-m1'].commitProxy('reload');
41
+ this.$refs["table-m1"].commitProxy("reload");
41
42
  },
42
43
  openEditDialog(row) {
43
44
  /*this.dataId = !id || typeof id == 'object' ? 0 : id;
@@ -47,8 +48,8 @@ modules = {
47
48
  let dataId = row?.id || 0;
48
49
  if (!dataId) {
49
50
  this.dataId = dataId;
50
- this.activeName = 'first';
51
- this.$openEditView('showEdit');
51
+ this.activeName = "first";
52
+ this.$openEditView("showEdit");
52
53
  } else {
53
54
  this.$refs.xTabs.openEditTab(row);
54
55
  }
@@ -57,43 +58,43 @@ modules = {
57
58
  return {
58
59
  ...this.formData,
59
60
  formCode: this.formCode,
60
- scriptType: this.scriptType
61
+ scriptType: this.scriptType,
61
62
  };
62
63
  },
63
64
  initTableList() {
64
65
  let that = this;
65
66
  let tableOption = {
66
67
  vue: this,
67
- tableRef: 'table-m1',
68
- tableName: 'bd_form_script_list-m' + this.scriptType,
69
- path: USER_PREFIX + '/formScript/listPage',
68
+ tableRef: "table-m1",
69
+ tableName: "bd_form_script_list-m" + this.scriptType,
70
+ path: USER_PREFIX + "/formScript/listPage",
70
71
  param: () => {
71
72
  return this.getSearchParam();
72
73
  },
73
74
  columns: [
74
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
75
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
75
76
  {
76
- title: this.$t1('脚本名称'),
77
- field: 'scriptName',
77
+ title: this.$t1("脚本名称"),
78
+ field: "scriptName",
78
79
  width: 180,
79
- fixed: 'left'
80
+ fixed: "left",
80
81
  },
81
82
  {
82
- title: this.$t1('脚本编码'),
83
- field: 'scriptCode',
84
- width: 180
83
+ title: this.$t1("脚本编码"),
84
+ field: "scriptCode",
85
+ width: 180,
85
86
  },
86
87
  {
87
- title: this.$t1('脚本说明'),
88
- field: 'scriptRemark',
89
- width: 250
88
+ title: this.$t1("脚本说明"),
89
+ field: "scriptRemark",
90
+ width: 250,
90
91
  },
91
92
  {
92
93
  title: this.$t1("是否启用"),
93
94
  field: "enabled",
94
95
  width: 150,
95
96
  slots: {
96
- default: ({row}) => {
97
+ default: ({ row }) => {
97
98
  if (row.enabled) {
98
99
  return getJsxStatus(null, this.$t1("启用"));
99
100
  } else {
@@ -103,142 +104,179 @@ modules = {
103
104
  },
104
105
  },
105
106
  {
106
- field: 'transactions',
107
- title: this.$t1('开启事务'),
107
+ field: "transactions",
108
+ title: this.$t1("开启事务"),
108
109
  width: 150,
109
110
  slots: {
110
- default: ({row}) => {
111
+ default: ({ row }) => {
111
112
  if (row.transactions == 1) {
112
- return getJsxStatus(null, this.$t1(''))
113
+ return getJsxStatus(null, this.$t1(""));
113
114
  } else {
114
- return getJsxStatus('s-3', this.$t1(''))
115
+ return getJsxStatus("s-3", this.$t1(""));
115
116
  }
116
- }
117
- }
117
+ },
118
+ },
118
119
  },
119
- {field: 'serviceName', title: this.$t1('服务名'), width: 150},
120
- {field: 'version', title: this.$t1('版本号'), width: 150},
120
+ { field: "serviceName", title: this.$t1("服务名"), width: 150 },
121
+ { field: "version", title: this.$t1("版本号"), width: 150 },
121
122
  {
122
- field: 'sid',
123
- title: this.$t1('唯一标识'),
124
- width: 280
123
+ field: "sid",
124
+ title: this.$t1("唯一标识"),
125
+ width: 280,
125
126
  },
126
127
  {
127
- field: 'createBy',
128
- title: this.$t1('创建人'),
129
- width: 150
128
+ field: "createBy",
129
+ title: this.$t1("创建人"),
130
+ width: 150,
130
131
  },
131
132
  {
132
- field: 'createDate',
133
- title: this.$t1('创建时间'),
134
- width: 150
133
+ field: "createDate",
134
+ title: this.$t1("创建时间"),
135
+ width: 150,
135
136
  },
136
137
  {
137
- field: 'modifyBy',
138
- title: this.$t1('更新人'),
139
- width: 150
138
+ field: "modifyBy",
139
+ title: this.$t1("更新人"),
140
+ width: 150,
140
141
  },
141
142
  {
142
- field: 'modifyDate',
143
- title: this.$t1('更新时间'),
144
- width: 150
143
+ field: "modifyDate",
144
+ title: this.$t1("更新时间"),
145
+ width: 150,
145
146
  },
146
147
  {
147
- width: 47,
148
- fixed: 'right',
149
- title: '',
148
+ width: 100,
149
+ fixed: "right",
150
+ title: "",
150
151
  sortable: false,
151
152
  slots: {
152
- default: ({row}) => {
153
+ default: "operation",
154
+ /* default: ({ row }) => {
153
155
  return getJsxBtn({
154
156
  iconName: "el-icon-edit",
155
- content: this.$t1('查看'),
157
+ content: this.$t1("查看"),
156
158
  onclick: () => {
157
159
  this.openEditDialog(row);
158
- }
160
+ },
159
161
  });
160
- }
161
- }
162
- }
162
+ }, */
163
+ },
164
+ },
163
165
  ],
164
166
  searchColumns: [
165
- {title: this.$t1('脚本名称'), field: "scriptName", type: "input", common: true},
166
- {title: this.$t1('脚本编码'), field: "scriptCode", type: "input", common: true},
167
+ {
168
+ title: this.$t1("脚本名称"),
169
+ field: "scriptName",
170
+ type: "input",
171
+ common: true,
172
+ },
173
+ {
174
+ title: this.$t1("脚本编码"),
175
+ field: "scriptCode",
176
+ type: "input",
177
+ common: true,
178
+ },
167
179
  {
168
180
  title: this.$t1("是否启用"),
169
181
  field: "enabled",
170
182
  type: "select",
171
183
  common: true,
172
184
  itemOption: [
173
- {label: this.$t1("启用"), value: true},
174
- {label: this.$t1("禁用"), value: false},
185
+ { label: this.$t1("启用"), value: true },
186
+ { label: this.$t1("禁用"), value: false },
175
187
  ],
176
188
  },
177
- {title: this.$t1('脚本说明'), field: "scriptRemark", type: "input", common: true},
178
- {title: this.$t1('脚本'), field: "script", type: "input", common: true},
179
- {title: this.$t1('创建人'), field: "createBy", type: "input", common: false},
180
- {title: this.$t1('更新人'), field: "modifyBy", type: "input", common: false},
181
189
  {
182
- title: this.$t1('创建时间'),
190
+ title: this.$t1("脚本说明"),
191
+ field: "scriptRemark",
192
+ type: "input",
193
+ common: true,
194
+ },
195
+ {
196
+ title: this.$t1("脚本"),
197
+ field: "script",
198
+ type: "input",
199
+ common: true,
200
+ },
201
+ {
202
+ title: this.$t1("创建人"),
203
+ field: "createBy",
204
+ type: "input",
205
+ common: false,
206
+ },
207
+ {
208
+ title: this.$t1("更新人"),
209
+ field: "modifyBy",
210
+ type: "input",
211
+ common: false,
212
+ },
213
+ {
214
+ title: this.$t1("操作日志"),
215
+ field: "logContent",
216
+ type: "input",
217
+ common: false,
218
+ },
219
+ {
220
+ title: this.$t1("创建时间"),
183
221
  field: "startCreateDate",
184
222
  field2: "endCreateDate",
185
223
  type: "dateRange",
186
224
  common: false,
187
225
  widgetType: "datetime",
188
- valueFormat: "yyyy-MM-dd HH:mm:ss"
226
+ valueFormat: "yyyy-MM-dd HH:mm:ss",
189
227
  },
190
228
  {
191
- title: this.$t1('更新时间'),
229
+ title: this.$t1("更新时间"),
192
230
  field: "startModifyDate",
193
231
  field2: "endModifyDate",
194
232
  type: "dateRange",
195
233
  common: false,
196
234
  widgetType: "datetime",
197
- valueFormat: "yyyy-MM-dd HH:mm:ss"
198
- }
199
- ]
235
+ valueFormat: "yyyy-MM-dd HH:mm:ss",
236
+ },
237
+ ],
200
238
  };
201
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
239
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
202
240
  this.vxeOption = opts;
203
241
  });
204
242
  },
205
243
  jsonImport() {
206
244
  this.$jsonImport({
207
- saveUrl: USER_PREFIX + '/form_develop/importFormScript',
245
+ saveUrl: USER_PREFIX + "/form_develop/importFormScript",
208
246
  showResult: true,
209
247
  resultColumns: [
210
248
  {
211
- title: this.$t1('脚本名称'),
212
- field: 'scriptName',
249
+ title: this.$t1("脚本名称"),
250
+ field: "scriptName",
213
251
  width: 180,
214
- fixed: 'left'
252
+ fixed: "left",
215
253
  },
216
254
  {
217
- title: this.$t1('脚本编码'),
218
- field: 'scriptCode',
219
- width: 180
220
- }
255
+ title: this.$t1("脚本编码"),
256
+ field: "scriptCode",
257
+ width: 180,
258
+ },
221
259
  ],
222
260
  callback: () => {
223
261
  this.searchEvent();
224
- }
262
+ },
225
263
  });
226
264
  },
227
265
  jsonExport() {
228
266
  this.$jsonExport({
229
- title:"通用脚本",
267
+ title: "通用脚本",
230
268
  targetRef: "table-m1",
231
269
  url: USER_PREFIX + "/form_develop/exportFormScript",
232
- abcEnabled: true
233
- })
270
+ abcEnabled: true,
271
+ });
234
272
  },
235
273
  getBdEnv() {
236
274
  getBdFlag({
237
- success: res => {
238
- this.isDev = res.objx == 1
239
- }
275
+ success: (res) => {
276
+ this.isDev = res.objx == 1;
277
+ },
240
278
  });
241
- }
242
- }
279
+ },
280
+ },
243
281
  };
244
- export default modules
282
+ export default modules;