cloud-web-corejs 1.0.54-dev.595 → 1.0.54-dev.597

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.595",
4
+ "version": "1.0.54-dev.597",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -44,7 +44,7 @@ tmixins = {
44
44
  width: 150
45
45
  },
46
46
  {
47
- title: this.$t1('版本'),
47
+ title: this.$t1('版本号'),
48
48
  field: 'version',
49
49
  width: 150
50
50
  },
@@ -34,7 +34,7 @@
34
34
  <i class="el-icon-close el-icon"></i>
35
35
  {{ $t2("取 消", "system.button.cancel2") }}
36
36
  </el-button>
37
- <el-button type="primary" @click="dialogSubmit" class="button-sty">
37
+ <el-button type="primary" @click="dialogSubmit" class="button-sty" v-if="confirmButtonVisible">
38
38
  <i class="el-icon-check el-icon"></i>
39
39
  {{ $t2("确 定", "system.button.confirm2") }}
40
40
  </el-button>
@@ -77,6 +77,7 @@ export default {
77
77
  currentLayoutType: null,
78
78
  dataId: null,
79
79
  formConfig: {},
80
+ confirmButtonVisible: true
80
81
  };
81
82
  },
82
83
  computed: {
@@ -191,6 +192,9 @@ export default {
191
192
  this.close();
192
193
  }
193
194
  },
195
+ setConfirmButtonHidden(val){
196
+ this.confirmButtonVisible = val || false;
197
+ }
194
198
  },
195
199
  };
196
200
  </script>
@@ -136,8 +136,10 @@
136
136
  </td>
137
137
  </tr>
138
138
  <tr>
139
+ <th>{{ $t1("版本号") }}</th>
140
+ <td>{{ formScript.version }}</td>
139
141
  <th>{{ $t1("唯一标识") }}</th>
140
- <td colspan="7">{{ formScript.sid }}</td>
142
+ <td colspan="5">{{ formScript.sid }}</td>
141
143
  </tr>
142
144
  <tr>
143
145
  <th>{{ $t1("创建人") }}</th>
@@ -263,8 +263,10 @@
263
263
  </td>
264
264
  </tr>
265
265
  <tr>
266
+ <th>{{ $t1("版本号") }}</th>
267
+ <td>{{ formScript.version }}</td>
266
268
  <th>{{ $t1("唯一标识") }}</th>
267
- <td colspan="7">{{ formScript.sid }}</td>
269
+ <td colspan="5">{{ formScript.sid }}</td>
268
270
  </tr>
269
271
  <tr>
270
272
  <th>{{ $t1("创建人") }}</th>
@@ -1,296 +1,297 @@
1
- import projectTagView from "@base/components/projectTag/view.vue";
2
- import projectTagAddButton from "@base/components/projectTag/addButton.vue";
3
- import projectTagDeleteButton from "@base/components/projectTag/deleteButton.vue";
4
- import tableForm from "@base/components/table/tableForm.vue";
5
- import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
6
- import editView from "@base/views/bd/setting/form_script/edit1.vue";
7
- import scriptDialog from "@base/views/bd/setting/form_script/dialog.vue";
8
- import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
9
- import {getBdFlag} from "@base/api/user";
10
- import {getJsxStatus, getJsxBtn} from "@base/views/bd/setting/utils/index";
11
-
12
- let modules = {};
13
- modules = {
14
- name: 'form_script:form_list',
15
- components: {
16
- projectTagView,
17
- projectTagAddButton,
18
- projectTagDeleteButton,
19
- tableForm, MenuKindDialog, editView, scriptDialog, projectTagDialog
20
- },
21
- props: ["formTemplate"],
22
- data() {
23
- return {
24
- activeName: 'second',
25
- dataId: 0,
26
- showEdit: false,
27
- vxeOption: {},
28
- formData: {},
29
- showScriptDialog: false,
30
- addProjectTagOption: {
31
- url: USER_PREFIX + `/formScript/saveTag`,
32
- tableDatas: () => {
33
- return this.$refs["table-m1"].getCheckboxRecords(true);
34
- },
35
- reqData: (tagDatas, tableDatas) => {
36
- let sids = tableDatas.map(item => item.sid);
37
- let tagCodes = tagDatas.map(item => item.tagCode);
38
- let reqData = {
39
- tagCodes,
40
- sids
41
- };
42
- return reqData;
43
- },
44
- callback: () => {
45
- this.searchEvent()
46
- }
47
- },
48
- deleteProjectTagOption: {
49
- url: USER_PREFIX + `/formScript/deleteTag`,
50
- tableDatas: () => {
51
- return this.$refs["table-m1"].getCheckboxRecords(true);
52
- },
53
- reqData: (tagDatas, tableDatas) => {
54
- let sids = tableDatas.map(item => item.sid);
55
- let tagCodes = tagDatas.map(item => item.tagCode);
56
- let reqData = {
57
- tagCodes,
58
- sids
59
- };
60
- return reqData;
61
- },
62
- callback: () => {
63
- this.searchEvent()
64
- }
65
- },
66
- showProjectTagDialog3: false,
67
- checkTags: [],
68
- isDev: true,
69
- menuKindAuth: {
70
- editAuth: 0
71
- }
72
- };
73
- },
74
- mounted() {
75
- this.getBdEnv();
76
- this.getMenuKindAuth();
77
- this.initTableList();
78
- },
79
- methods: {
80
- searchEvent() {
81
- this.$refs['table-m1'].commitProxy('reload');
82
- },
83
- resetEvent() {
84
- this.formData = {};
85
- this.checkTags = [];
86
- this.$refs['table-m1'].commitProxy('reload');
87
- },
88
- openEditDialog(row) {
89
- /*this.dataId = !id || typeof id == 'object' ? 0 : id;
90
- this.activeName = 'first';
91
- this.$openEditView('showEdit');*/
92
-
93
- let dataId = row?.id || 0;
94
- if (!dataId) {
95
- this.dataId = dataId;
96
- this.activeName = 'first';
97
- this.$openEditView('showEdit');
98
- } else {
99
- this.$refs.xTabs.openEditTab(row);
100
- }
101
- },
102
- initTableList() {
103
- let that = this;
104
- let tableOption = {
105
- vue: this,
106
- tableRef: 'table-m1',
107
- tableName: 'bd_form_script_form_list-m1',
108
- path: USER_PREFIX + '/formScript/listPage',
109
- param: () => {
110
- let tagCodes = null;
111
- if (this.checkTags.length) {
112
- tagCodes = this.checkTags.map(item => item.tagCode);
113
- }
114
- return {
115
- formCode: this.formTemplate.formCode,
116
- menuKindCode: this.formTemplate.menuKindCode,
117
- ...this.formData,
118
- tagCodes,
119
- scriptType: 1,
120
- };
121
- },
122
- columns: [
123
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
124
- {
125
- title: this.$t1('脚本名称'),
126
- field: 'scriptName',
127
- width: 180,
128
- fixed: 'left'
129
- },
130
- {
131
- title: this.$t1('脚本编码'),
132
- field: 'scriptCode',
133
- width: 180
134
- },
135
- {
136
- title: this.$t1('脚本说明'),
137
- field: 'scriptRemark',
138
- width: 250
139
- },
140
- {
141
- title: this.$t1('表单模板编码'),
142
- field: 'formCode',
143
- width: 250
144
- },
145
- {
146
- title: this.$t1('项目标签'), field: 'tag', width: 250, slots: {default: "tag"}, params: {
147
- exportVal: ({row}) => {
148
- if (row.formScriptTagDTOs) {
149
- return row.formScriptTagDTOs.map(item => item.tagName).join(",")
150
- }
151
- }
152
- }
153
- },
154
- {
155
- field: 'transactions',
156
- title: this.$t1('开启事务'),
157
- width: 150,
158
- slots: {
159
- default: ({row}) => {
160
- if (row.transactions == 1) {
161
- return getJsxStatus(null, this.$t1('是'))
162
- } else {
163
- return getJsxStatus('s-3', this.$t1('否'))
164
- }
165
- }
166
- }
167
- },
168
- {field: 'serviceName', title: this.$t1('服务名'), width: 150},
169
- {
170
- field: 'sid',
171
- title: this.$t1('唯一标识'),
172
- width: 280
173
- },
174
- {
175
- field: 'createBy',
176
- title: this.$t1('创建人'),
177
- width: 150
178
- },
179
- {
180
- field: 'createDate',
181
- title: this.$t1('创建时间'),
182
- width: 150
183
- },
184
- {
185
- field: 'modifyBy',
186
- title: this.$t1('更新人'),
187
- width: 150
188
- },
189
- {
190
- field: 'modifyDate',
191
- title: this.$t1('更新时间'),
192
- width: 150
193
- },
194
- {
195
- width: 47,
196
- fixed: 'right',
197
- title: '',
198
- sortable: false,
199
- slots: {
200
- default: ({row}) => {
201
- return getJsxBtn({
202
- iconName: "el-icon-edit",
203
- content: this.$t1('查看'),
204
- onclick: () => {
205
- this.openEditDialog(row);
206
- }
207
- });
208
- }
209
- }
210
- }
211
- ],
212
- searchColumns: [
213
- {title: this.$t1('脚本名称'), field: "scriptName", type: "input", common: true},
214
- {title: this.$t1('脚本编码'), field: "scriptCode", type: "input", common: true},
215
- {title: this.$t1('脚本说明'), field: "scriptRemark", type: "input", common: true},
216
- {title: this.$t1('脚本'), field: "script", type: "input", common: true},
217
- {title: this.$t1('项目标签'), field: "tag", type: "input", common: true, slot: "tag"},
218
- ]
219
- };
220
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
221
- this.vxeOption = opts;
222
- });
223
- },
224
- confirmScriptDialog(rows) {
225
- if (rows.length) {
226
- let formCode = this.formTemplate.formCode;
227
- let menuKindCode = this.formTemplate.menuKindCode;
228
- let data = rows.map(row => {
229
- return {
230
- scriptCode: row.scriptCode,
231
- scriptName: row.scriptName,
232
- scriptRemark: row.scriptRemark,
233
- script: row.script,
234
- scriptType: 1,
235
- formCode: formCode,
236
- menuKindCode: menuKindCode
237
- }
238
- })
239
- this.$http({
240
- aes: true,
241
- url: USER_PREFIX + '/formScript/saves',
242
- method: `post`,
243
- data: data,
244
- isLoading: true,
245
- success: res => {
246
- this.$message({
247
- message: res.content,
248
- type: 'success',
249
- duration: 500,
250
- onClose: t => {
251
- this.searchEvent()
252
- }
253
- });
254
- }
255
- });
256
- }
257
- }
258
- ,
259
- openProjectTagDialog3() {
260
- this.showProjectTagDialog3 = true;
261
- }
262
- ,
263
- confirmProjectTagDialog3(rows) {
264
- this.checkTags = rows;
265
- }
266
- ,
267
- getTabNames() {
268
- return this.checkTags.map(item => item.tagName).join(",");
269
- }
270
- ,
271
- getBdEnv() {
272
- getBdFlag({
273
- success: res => {
274
- this.isDev = res.objx == 1
275
- }
276
- });
277
- }
278
- ,
279
- getMenuKindAuth() {
280
- let menuKindCode = this.formTemplate.menuKindCode;
281
- if (menuKindCode) {
282
- this.$http({
283
- aes: true,
284
- url: USER_PREFIX + '/menu_kind_auth/getAuth',
285
- method: `post`,
286
- data: {stringOne: menuKindCode},
287
- isLoading: true,
288
- success: res => {
289
- this.menuKindAuth = res.objx || {}
290
- }
291
- });
292
- }
293
- }
294
- }
295
- };
296
- export default modules
1
+ import projectTagView from "@base/components/projectTag/view.vue";
2
+ import projectTagAddButton from "@base/components/projectTag/addButton.vue";
3
+ import projectTagDeleteButton from "@base/components/projectTag/deleteButton.vue";
4
+ import tableForm from "@base/components/table/tableForm.vue";
5
+ import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
6
+ import editView from "@base/views/bd/setting/form_script/edit1.vue";
7
+ import scriptDialog from "@base/views/bd/setting/form_script/dialog.vue";
8
+ import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
9
+ import {getBdFlag} from "@base/api/user";
10
+ import {getJsxStatus, getJsxBtn} from "@base/views/bd/setting/utils/index";
11
+
12
+ let modules = {};
13
+ modules = {
14
+ name: 'form_script:form_list',
15
+ components: {
16
+ projectTagView,
17
+ projectTagAddButton,
18
+ projectTagDeleteButton,
19
+ tableForm, MenuKindDialog, editView, scriptDialog, projectTagDialog
20
+ },
21
+ props: ["formTemplate"],
22
+ data() {
23
+ return {
24
+ activeName: 'second',
25
+ dataId: 0,
26
+ showEdit: false,
27
+ vxeOption: {},
28
+ formData: {},
29
+ showScriptDialog: false,
30
+ addProjectTagOption: {
31
+ url: USER_PREFIX + `/formScript/saveTag`,
32
+ tableDatas: () => {
33
+ return this.$refs["table-m1"].getCheckboxRecords(true);
34
+ },
35
+ reqData: (tagDatas, tableDatas) => {
36
+ let sids = tableDatas.map(item => item.sid);
37
+ let tagCodes = tagDatas.map(item => item.tagCode);
38
+ let reqData = {
39
+ tagCodes,
40
+ sids
41
+ };
42
+ return reqData;
43
+ },
44
+ callback: () => {
45
+ this.searchEvent()
46
+ }
47
+ },
48
+ deleteProjectTagOption: {
49
+ url: USER_PREFIX + `/formScript/deleteTag`,
50
+ tableDatas: () => {
51
+ return this.$refs["table-m1"].getCheckboxRecords(true);
52
+ },
53
+ reqData: (tagDatas, tableDatas) => {
54
+ let sids = tableDatas.map(item => item.sid);
55
+ let tagCodes = tagDatas.map(item => item.tagCode);
56
+ let reqData = {
57
+ tagCodes,
58
+ sids
59
+ };
60
+ return reqData;
61
+ },
62
+ callback: () => {
63
+ this.searchEvent()
64
+ }
65
+ },
66
+ showProjectTagDialog3: false,
67
+ checkTags: [],
68
+ isDev: true,
69
+ menuKindAuth: {
70
+ editAuth: 0
71
+ }
72
+ };
73
+ },
74
+ mounted() {
75
+ this.getBdEnv();
76
+ this.getMenuKindAuth();
77
+ this.initTableList();
78
+ },
79
+ methods: {
80
+ searchEvent() {
81
+ this.$refs['table-m1'].commitProxy('reload');
82
+ },
83
+ resetEvent() {
84
+ this.formData = {};
85
+ this.checkTags = [];
86
+ this.$refs['table-m1'].commitProxy('reload');
87
+ },
88
+ openEditDialog(row) {
89
+ /*this.dataId = !id || typeof id == 'object' ? 0 : id;
90
+ this.activeName = 'first';
91
+ this.$openEditView('showEdit');*/
92
+
93
+ let dataId = row?.id || 0;
94
+ if (!dataId) {
95
+ this.dataId = dataId;
96
+ this.activeName = 'first';
97
+ this.$openEditView('showEdit');
98
+ } else {
99
+ this.$refs.xTabs.openEditTab(row);
100
+ }
101
+ },
102
+ initTableList() {
103
+ let that = this;
104
+ let tableOption = {
105
+ vue: this,
106
+ tableRef: 'table-m1',
107
+ tableName: 'bd_form_script_form_list-m1',
108
+ path: USER_PREFIX + '/formScript/listPage',
109
+ param: () => {
110
+ let tagCodes = null;
111
+ if (this.checkTags.length) {
112
+ tagCodes = this.checkTags.map(item => item.tagCode);
113
+ }
114
+ return {
115
+ formCode: this.formTemplate.formCode,
116
+ menuKindCode: this.formTemplate.menuKindCode,
117
+ ...this.formData,
118
+ tagCodes,
119
+ scriptType: 1,
120
+ };
121
+ },
122
+ columns: [
123
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
124
+ {
125
+ title: this.$t1('脚本名称'),
126
+ field: 'scriptName',
127
+ width: 180,
128
+ fixed: 'left'
129
+ },
130
+ {
131
+ title: this.$t1('脚本编码'),
132
+ field: 'scriptCode',
133
+ width: 180
134
+ },
135
+ {
136
+ title: this.$t1('脚本说明'),
137
+ field: 'scriptRemark',
138
+ width: 250
139
+ },
140
+ {
141
+ title: this.$t1('表单模板编码'),
142
+ field: 'formCode',
143
+ width: 250
144
+ },
145
+ {
146
+ title: this.$t1('项目标签'), field: 'tag', width: 250, slots: {default: "tag"}, params: {
147
+ exportVal: ({row}) => {
148
+ if (row.formScriptTagDTOs) {
149
+ return row.formScriptTagDTOs.map(item => item.tagName).join(",")
150
+ }
151
+ }
152
+ }
153
+ },
154
+ {
155
+ field: 'transactions',
156
+ title: this.$t1('开启事务'),
157
+ width: 150,
158
+ slots: {
159
+ default: ({row}) => {
160
+ if (row.transactions == 1) {
161
+ return getJsxStatus(null, this.$t1('是'))
162
+ } else {
163
+ return getJsxStatus('s-3', this.$t1('否'))
164
+ }
165
+ }
166
+ }
167
+ },
168
+ {field: 'serviceName', title: this.$t1('服务名'), width: 150},
169
+ {field: 'version', title: this.$t1('版本号'), width: 150},
170
+ {
171
+ field: 'sid',
172
+ title: this.$t1('唯一标识'),
173
+ width: 280
174
+ },
175
+ {
176
+ field: 'createBy',
177
+ title: this.$t1('创建人'),
178
+ width: 150
179
+ },
180
+ {
181
+ field: 'createDate',
182
+ title: this.$t1('创建时间'),
183
+ width: 150
184
+ },
185
+ {
186
+ field: 'modifyBy',
187
+ title: this.$t1('更新人'),
188
+ width: 150
189
+ },
190
+ {
191
+ field: 'modifyDate',
192
+ title: this.$t1('更新时间'),
193
+ width: 150
194
+ },
195
+ {
196
+ width: 47,
197
+ fixed: 'right',
198
+ title: '',
199
+ sortable: false,
200
+ slots: {
201
+ default: ({row}) => {
202
+ return getJsxBtn({
203
+ iconName: "el-icon-edit",
204
+ content: this.$t1('查看'),
205
+ onclick: () => {
206
+ this.openEditDialog(row);
207
+ }
208
+ });
209
+ }
210
+ }
211
+ }
212
+ ],
213
+ searchColumns: [
214
+ {title: this.$t1('脚本名称'), field: "scriptName", type: "input", common: true},
215
+ {title: this.$t1('脚本编码'), field: "scriptCode", type: "input", common: true},
216
+ {title: this.$t1('脚本说明'), field: "scriptRemark", type: "input", common: true},
217
+ {title: this.$t1('脚本'), field: "script", type: "input", common: true},
218
+ {title: this.$t1('项目标签'), field: "tag", type: "input", common: true, slot: "tag"},
219
+ ]
220
+ };
221
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
222
+ this.vxeOption = opts;
223
+ });
224
+ },
225
+ confirmScriptDialog(rows) {
226
+ if (rows.length) {
227
+ let formCode = this.formTemplate.formCode;
228
+ let menuKindCode = this.formTemplate.menuKindCode;
229
+ let data = rows.map(row => {
230
+ return {
231
+ scriptCode: row.scriptCode,
232
+ scriptName: row.scriptName,
233
+ scriptRemark: row.scriptRemark,
234
+ script: row.script,
235
+ scriptType: 1,
236
+ formCode: formCode,
237
+ menuKindCode: menuKindCode
238
+ }
239
+ })
240
+ this.$http({
241
+ aes: true,
242
+ url: USER_PREFIX + '/formScript/saves',
243
+ method: `post`,
244
+ data: data,
245
+ isLoading: true,
246
+ success: res => {
247
+ this.$message({
248
+ message: res.content,
249
+ type: 'success',
250
+ duration: 500,
251
+ onClose: t => {
252
+ this.searchEvent()
253
+ }
254
+ });
255
+ }
256
+ });
257
+ }
258
+ }
259
+ ,
260
+ openProjectTagDialog3() {
261
+ this.showProjectTagDialog3 = true;
262
+ }
263
+ ,
264
+ confirmProjectTagDialog3(rows) {
265
+ this.checkTags = rows;
266
+ }
267
+ ,
268
+ getTabNames() {
269
+ return this.checkTags.map(item => item.tagName).join(",");
270
+ }
271
+ ,
272
+ getBdEnv() {
273
+ getBdFlag({
274
+ success: res => {
275
+ this.isDev = res.objx == 1
276
+ }
277
+ });
278
+ }
279
+ ,
280
+ getMenuKindAuth() {
281
+ let menuKindCode = this.formTemplate.menuKindCode;
282
+ if (menuKindCode) {
283
+ this.$http({
284
+ aes: true,
285
+ url: USER_PREFIX + '/menu_kind_auth/getAuth',
286
+ method: `post`,
287
+ data: {stringOne: menuKindCode},
288
+ isLoading: true,
289
+ success: res => {
290
+ this.menuKindAuth = res.objx || {}
291
+ }
292
+ });
293
+ }
294
+ }
295
+ }
296
+ };
297
+ export default modules
@@ -117,6 +117,7 @@ modules = {
117
117
  }
118
118
  },
119
119
  {field: 'serviceName', title: this.$t1('服务名'), width: 150},
120
+ {field: 'version', title: this.$t1('版本号'), width: 150},
120
121
  {
121
122
  field: 'sid',
122
123
  title: this.$t1('唯一标识'),
@@ -219,6 +219,7 @@ modules = {
219
219
  }
220
220
  },
221
221
  {field: 'serviceName', title: this.$t1('服务名'), width: 150},
222
+ {field: 'version', title: this.$t1('版本号'), width: 150},
222
223
  {
223
224
  field: 'sid',
224
225
  title: this.$t1('唯一标识'),
@@ -292,7 +292,14 @@
292
292
  {{ szTaMb.serviceName }}
293
293
  </td>
294
294
  </tr>
295
-
295
+ <tr>
296
+ <th>
297
+ {{ $t1("版本号") }}
298
+ </th>
299
+ <td colspan="7">
300
+ {{ szTaMb.version }}
301
+ </td>
302
+ </tr>
296
303
  <tr>
297
304
  <th>
298
305
  {{ $t1("唯一标识") }}
@@ -208,6 +208,7 @@ modules = {
208
208
  },
209
209
  {title: this.$t1('表编码'), field: 'taCode', width: 150},
210
210
  {field: 'serviceName', title: this.$t1('服务名'), width: 150},
211
+ {field: 'version', title: this.$t1('版本号'), width: 150},
211
212
  {title: this.$t1('唯一标识'), field: 'sid', width: 280},
212
213
  // {field: 'sszstEn', title: this.$t1('所属主实体'), width: 150},
213
214
  {