cloud-web-corejs 1.0.31 → 1.0.32
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 +1 -1
- package/src/components/statusTag/index.vue +14 -14
- package/src/components/statusTag/mixins.js +5 -5
- package/src/components/table/index.js +10 -10
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +379 -379
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +125 -125
- package/src/components/xform/form-render/container-item/data-table-mixin.js +18 -18
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -2
- package/src/views/bd/setting/bd_attach_setting/edit.vue +7 -6
- package/src/views/bd/setting/bd_attach_setting/list.vue +2 -2
- package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +5 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +15 -23
- package/src/views/bd/setting/form_script/dialog.vue +8 -7
- package/src/views/bd/setting/form_script/edit.vue +9 -9
- package/src/views/bd/setting/form_script/edit1.vue +20 -18
- package/src/views/bd/setting/form_script/form_list.vue +5 -5
- package/src/views/bd/setting/form_script/list1.vue +8 -6
- package/src/views/bd/setting/form_script/mixins/dialog.js +15 -23
- package/src/views/bd/setting/form_script/mixins/form_list.js +52 -36
- package/src/views/bd/setting/form_script/mixins/list.js +19 -27
- package/src/views/bd/setting/form_script/mixins/list1.js +28 -36
- package/src/views/bd/setting/form_template/dialog.vue +6 -6
- package/src/views/bd/setting/form_template/edit.vue +30 -37
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +3 -3
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +5 -4
- package/src/views/bd/setting/form_template/itemEdit.vue +29 -25
- package/src/views/bd/setting/form_template/itemList.vue +1 -1
- package/src/views/bd/setting/form_template/list.vue +15 -13
- package/src/views/bd/setting/form_template/mixins/dialog.js +7 -14
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +4 -4
- package/src/views/bd/setting/form_template/mixins/itemList.js +43 -57
- package/src/views/bd/setting/form_template/mixins/list.js +40 -77
- package/src/views/bd/setting/form_template/preformDialog.vue +1 -1
- package/src/views/bd/setting/menu_kind/authDialog.vue +7 -2
- package/src/views/bd/setting/menu_kind/dialog.vue +2 -2
- package/src/views/bd/setting/menu_kind/list.vue +7 -10
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +14 -33
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +14 -18
- package/src/views/bd/setting/menu_kind/mixins/list.js +17 -24
- package/src/views/bd/setting/table_model/dialog.vue +8 -6
- package/src/views/bd/setting/table_model/edit.vue +79 -41
- package/src/views/bd/setting/table_model/list.vue +8 -11
- package/src/views/bd/setting/table_model/mixins/dialog.js +6 -6
- package/src/views/bd/setting/table_model/mixins/edit.js +54 -84
- package/src/views/bd/setting/table_model/mixins/list.js +26 -58
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +14 -16
- package/src/views/bd/setting/table_model/zdDialog.vue +8 -6
- package/src/views/bd/setting/utils/index.js +60 -0
|
@@ -7,6 +7,7 @@ import editView from "@base/views/bd/setting/form_script/edit1.vue";
|
|
|
7
7
|
import scriptDialog from "@base/views/bd/setting/form_script/dialog.vue";
|
|
8
8
|
import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
|
|
9
9
|
import {getBdFlag} from "@base/api/user";
|
|
10
|
+
import {getJsxStatus, getJsxBtn} from "@base/views/bd/setting/utils/index";
|
|
10
11
|
|
|
11
12
|
let modules = {};
|
|
12
13
|
modules = {
|
|
@@ -64,11 +65,15 @@ modules = {
|
|
|
64
65
|
},
|
|
65
66
|
showProjectTagDialog3: false,
|
|
66
67
|
checkTags: [],
|
|
67
|
-
isDev: true
|
|
68
|
+
isDev: true,
|
|
69
|
+
menuKindAuth: {
|
|
70
|
+
editAuth: 0
|
|
71
|
+
}
|
|
68
72
|
};
|
|
69
73
|
},
|
|
70
74
|
mounted() {
|
|
71
75
|
this.getBdEnv();
|
|
76
|
+
this.getMenuKindAuth();
|
|
72
77
|
this.initTableList();
|
|
73
78
|
},
|
|
74
79
|
methods: {
|
|
@@ -117,28 +122,28 @@ modules = {
|
|
|
117
122
|
columns: [
|
|
118
123
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
119
124
|
{
|
|
120
|
-
title: '脚本名称',
|
|
125
|
+
title: this.$t1('脚本名称'),
|
|
121
126
|
field: 'scriptName',
|
|
122
127
|
width: 180,
|
|
123
128
|
fixed: 'left'
|
|
124
129
|
},
|
|
125
130
|
{
|
|
126
|
-
title: '脚本编码',
|
|
131
|
+
title: this.$t1('脚本编码'),
|
|
127
132
|
field: 'scriptCode',
|
|
128
133
|
width: 180
|
|
129
134
|
},
|
|
130
135
|
{
|
|
131
|
-
title: '脚本说明',
|
|
136
|
+
title: this.$t1('脚本说明'),
|
|
132
137
|
field: 'scriptRemark',
|
|
133
138
|
width: 250
|
|
134
139
|
},
|
|
135
140
|
{
|
|
136
|
-
title: '表单模板编码',
|
|
141
|
+
title: this.$t1('表单模板编码'),
|
|
137
142
|
field: 'formCode',
|
|
138
143
|
width: 250
|
|
139
144
|
},
|
|
140
145
|
{
|
|
141
|
-
title: '项目标签', field: 'tag', width: 250, slots: {default: "tag"}, params: {
|
|
146
|
+
title: this.$t1('项目标签'), field: 'tag', width: 250, slots: {default: "tag"}, params: {
|
|
142
147
|
exportVal: ({row}) => {
|
|
143
148
|
if (row.formScriptTagDTOs) {
|
|
144
149
|
return row.formScriptTagDTOs.map(item => item.tagName).join(",")
|
|
@@ -148,21 +153,21 @@ modules = {
|
|
|
148
153
|
},
|
|
149
154
|
{
|
|
150
155
|
field: 'transactions',
|
|
151
|
-
title: '开启事务',
|
|
156
|
+
title: this.$t1('开启事务'),
|
|
152
157
|
width: 150,
|
|
153
158
|
slots: {
|
|
154
159
|
default: ({row}) => {
|
|
155
160
|
if (row.transactions == 1) {
|
|
156
|
-
return
|
|
161
|
+
return getJsxStatus(null, this.$t1('是'))
|
|
157
162
|
} else {
|
|
158
|
-
return
|
|
163
|
+
return getJsxStatus('s-3', this.$t1('否'))
|
|
159
164
|
}
|
|
160
165
|
}
|
|
161
166
|
}
|
|
162
167
|
},
|
|
163
168
|
{
|
|
164
169
|
field: 'sid',
|
|
165
|
-
title: '唯一标识',
|
|
170
|
+
title: this.$t1('唯一标识'),
|
|
166
171
|
width: 280
|
|
167
172
|
},
|
|
168
173
|
{
|
|
@@ -177,32 +182,23 @@ modules = {
|
|
|
177
182
|
sortable: false,
|
|
178
183
|
slots: {
|
|
179
184
|
default: ({row}) => {
|
|
180
|
-
return
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}}
|
|
188
|
-
>
|
|
189
|
-
<el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
|
|
190
|
-
popper-class="tooltip-skin">
|
|
191
|
-
<i class="el-icon-edit"/>
|
|
192
|
-
</el-tooltip>
|
|
193
|
-
</a>
|
|
194
|
-
</div>
|
|
195
|
-
];
|
|
185
|
+
return getJsxBtn({
|
|
186
|
+
iconName: "el-icon-edit",
|
|
187
|
+
content: this.$t1('查看'),
|
|
188
|
+
onclick: () => {
|
|
189
|
+
this.openEditDialog(row);
|
|
190
|
+
}
|
|
191
|
+
});
|
|
196
192
|
}
|
|
197
193
|
}
|
|
198
194
|
}
|
|
199
195
|
],
|
|
200
196
|
searchColumns: [
|
|
201
|
-
{title:
|
|
202
|
-
{title:
|
|
203
|
-
{title:
|
|
204
|
-
{title:
|
|
205
|
-
{title:
|
|
197
|
+
{title: this.$t1('脚本名称'), field: "scriptName", type: "input", common: true},
|
|
198
|
+
{title: this.$t1('脚本编码'), field: "scriptCode", type: "input", common: true},
|
|
199
|
+
{title: this.$t1('脚本说明'), field: "scriptRemark", type: "input", common: true},
|
|
200
|
+
{title: this.$t1('脚本'), field: "script", type: "input", common: true},
|
|
201
|
+
{title: this.$t1('项目标签'), field: "tag", type: "input", common: true, slot: "tag"},
|
|
206
202
|
]
|
|
207
203
|
};
|
|
208
204
|
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
@@ -225,7 +221,7 @@ modules = {
|
|
|
225
221
|
}
|
|
226
222
|
})
|
|
227
223
|
this.$http({
|
|
228
|
-
aes:true,
|
|
224
|
+
aes: true,
|
|
229
225
|
url: USER_PREFIX + '/formScript/saves',
|
|
230
226
|
method: `post`,
|
|
231
227
|
data: data,
|
|
@@ -242,16 +238,20 @@ modules = {
|
|
|
242
238
|
}
|
|
243
239
|
});
|
|
244
240
|
}
|
|
245
|
-
}
|
|
241
|
+
}
|
|
242
|
+
,
|
|
246
243
|
openProjectTagDialog3() {
|
|
247
244
|
this.showProjectTagDialog3 = true;
|
|
248
|
-
}
|
|
245
|
+
}
|
|
246
|
+
,
|
|
249
247
|
confirmProjectTagDialog3(rows) {
|
|
250
248
|
this.checkTags = rows;
|
|
251
|
-
}
|
|
249
|
+
}
|
|
250
|
+
,
|
|
252
251
|
getTabNames() {
|
|
253
252
|
return this.checkTags.map(item => item.tagName).join(",");
|
|
254
|
-
}
|
|
253
|
+
}
|
|
254
|
+
,
|
|
255
255
|
getBdEnv() {
|
|
256
256
|
getBdFlag({
|
|
257
257
|
success: res => {
|
|
@@ -259,6 +259,22 @@ modules = {
|
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
+
,
|
|
263
|
+
getMenuKindAuth() {
|
|
264
|
+
let menuKindCode = this.formTemplate.menuKindCode;
|
|
265
|
+
if (menuKindCode) {
|
|
266
|
+
this.$http({
|
|
267
|
+
aes: true,
|
|
268
|
+
url: USER_PREFIX + '/menu_kind_auth/getAuth',
|
|
269
|
+
method: `post`,
|
|
270
|
+
data: {stringOne: menuKindCode},
|
|
271
|
+
isLoading: true,
|
|
272
|
+
success: res => {
|
|
273
|
+
this.menuKindAuth = res.objx || {}
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
}
|
|
262
278
|
}
|
|
263
279
|
};
|
|
264
280
|
export default modules
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import tableForm from "@base/components/table/tableForm.vue";
|
|
2
2
|
import editView from "@base/views/bd/setting/form_script/edit.vue";
|
|
3
3
|
import {getBdFlag} from "@base/api/user";
|
|
4
|
+
import {getJsxBtn, getJsxStatus} from "@base/views/bd/setting/utils/index";
|
|
4
5
|
|
|
5
6
|
let modules = {};
|
|
6
7
|
modules = {
|
|
@@ -72,38 +73,38 @@ modules = {
|
|
|
72
73
|
columns: [
|
|
73
74
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
74
75
|
{
|
|
75
|
-
title: '脚本名称',
|
|
76
|
+
title: this.$t1('脚本名称'),
|
|
76
77
|
field: 'scriptName',
|
|
77
78
|
width: 180,
|
|
78
79
|
fixed: 'left'
|
|
79
80
|
},
|
|
80
81
|
{
|
|
81
|
-
title: '脚本编码',
|
|
82
|
+
title: this.$t1('脚本编码'),
|
|
82
83
|
field: 'scriptCode',
|
|
83
84
|
width: 180
|
|
84
85
|
},
|
|
85
86
|
{
|
|
86
|
-
title: '脚本说明',
|
|
87
|
+
title: this.$t1('脚本说明'),
|
|
87
88
|
field: 'scriptRemark',
|
|
88
89
|
width: 250
|
|
89
90
|
},
|
|
90
91
|
{
|
|
91
92
|
field: 'transactions',
|
|
92
|
-
title: '开启事务',
|
|
93
|
+
title: this.$t1('开启事务'),
|
|
93
94
|
width: 150,
|
|
94
95
|
slots: {
|
|
95
96
|
default: ({row}) => {
|
|
96
97
|
if (row.transactions == 1) {
|
|
97
|
-
return
|
|
98
|
+
return getJsxStatus(null,this.$t1('是'))
|
|
98
99
|
} else {
|
|
99
|
-
return
|
|
100
|
+
return getJsxStatus('s-3',this.$t1('否'))
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
105
|
{
|
|
105
106
|
field: 'sid',
|
|
106
|
-
title: '唯一标识',
|
|
107
|
+
title: this.$t1('唯一标识'),
|
|
107
108
|
width: 280
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -118,31 +119,22 @@ modules = {
|
|
|
118
119
|
sortable: false,
|
|
119
120
|
slots: {
|
|
120
121
|
default: ({row}) => {
|
|
121
|
-
return
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}}
|
|
129
|
-
>
|
|
130
|
-
<el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
|
|
131
|
-
popper-class="tooltip-skin">
|
|
132
|
-
<i class="el-icon-edit"/>
|
|
133
|
-
</el-tooltip>
|
|
134
|
-
</a>
|
|
135
|
-
</div>
|
|
136
|
-
];
|
|
122
|
+
return getJsxBtn({
|
|
123
|
+
iconName: "el-icon-edit",
|
|
124
|
+
content: this.$t1('查看'),
|
|
125
|
+
onclick: () => {
|
|
126
|
+
this.openEditDialog(row);
|
|
127
|
+
}
|
|
128
|
+
});
|
|
137
129
|
}
|
|
138
130
|
}
|
|
139
131
|
}
|
|
140
132
|
],
|
|
141
133
|
searchColumns: [
|
|
142
|
-
{title:
|
|
143
|
-
{title:
|
|
144
|
-
{title:
|
|
145
|
-
{title:
|
|
134
|
+
{title: this.$t1('脚本名称'), field: "scriptName", type: "input", common: true},
|
|
135
|
+
{title: this.$t1('脚本编码'), field: "scriptCode", type: "input", common: true},
|
|
136
|
+
{title: this.$t1('脚本说明'), field: "scriptRemark", type: "input", common: true},
|
|
137
|
+
{title: this.$t1('脚本'), field: "script", type: "input", common: true},
|
|
146
138
|
]
|
|
147
139
|
};
|
|
148
140
|
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
@@ -7,6 +7,7 @@ import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
|
|
|
7
7
|
import editView from "@base/views/bd/setting/form_script/edit1.vue";
|
|
8
8
|
import {treeScollx} from "@base/utils/global";
|
|
9
9
|
import {getBdFlag} from "@base/api/user";
|
|
10
|
+
import {getJsxBtn, getJsxStatus} from "@base/views/bd/setting/utils/index";
|
|
10
11
|
|
|
11
12
|
let modules = {};
|
|
12
13
|
modules = {
|
|
@@ -133,24 +134,24 @@ modules = {
|
|
|
133
134
|
columns: [
|
|
134
135
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
135
136
|
{
|
|
136
|
-
title: '脚本名称',
|
|
137
|
+
title: this.$t1('脚本名称'),
|
|
137
138
|
field: 'scriptName',
|
|
138
139
|
width: 180,
|
|
139
140
|
fixed: 'left'
|
|
140
141
|
},
|
|
141
142
|
{
|
|
142
|
-
title: '脚本编码',
|
|
143
|
+
title: this.$t1('脚本编码'),
|
|
143
144
|
field: 'scriptCode',
|
|
144
145
|
width: 180
|
|
145
146
|
},
|
|
146
|
-
{title: '表单分类', field: 'menuKindName', width: 150},
|
|
147
|
+
{title: this.$t1('表单分类'), field: 'menuKindName', width: 150},
|
|
147
148
|
{
|
|
148
|
-
title: '表单模板编码',
|
|
149
|
+
title: this.$t1('表单模板编码'),
|
|
149
150
|
field: 'formCode',
|
|
150
151
|
width: 150
|
|
151
152
|
},
|
|
152
153
|
{
|
|
153
|
-
title: 'Url路径',
|
|
154
|
+
title: this.$t1('Url路径'),
|
|
154
155
|
field: 'url',
|
|
155
156
|
width: 200,
|
|
156
157
|
slots: {
|
|
@@ -160,31 +161,31 @@ modules = {
|
|
|
160
161
|
}
|
|
161
162
|
},
|
|
162
163
|
{
|
|
163
|
-
title: '脚本说明',
|
|
164
|
+
title: this.$t1('脚本说明'),
|
|
164
165
|
field: 'scriptRemark',
|
|
165
166
|
width: 250
|
|
166
167
|
},
|
|
167
168
|
{
|
|
168
|
-
title: '自定义URL',
|
|
169
|
+
title: this.$t1('自定义URL'),
|
|
169
170
|
field: 'uri',
|
|
170
171
|
width: 250
|
|
171
172
|
},
|
|
172
173
|
{
|
|
173
174
|
field: 'transactions',
|
|
174
|
-
title: '开启事务',
|
|
175
|
+
title: this.$t1('开启事务'),
|
|
175
176
|
width: 150,
|
|
176
177
|
slots: {
|
|
177
178
|
default: ({row}) => {
|
|
178
179
|
if (row.transactions == 1) {
|
|
179
|
-
return
|
|
180
|
+
return getJsxStatus(null, this.$t1('是'))
|
|
180
181
|
} else {
|
|
181
|
-
return
|
|
182
|
+
return getJsxStatus('s-3', this.$t1('否'))
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
185
|
}
|
|
185
186
|
},
|
|
186
187
|
{
|
|
187
|
-
title: '项目标签', field: 'tag', width: 250, slots: {default: "tag"}, params: {
|
|
188
|
+
title: this.$t1('项目标签'), field: 'tag', width: 250, slots: {default: "tag"}, params: {
|
|
188
189
|
exportVal: ({row}) => {
|
|
189
190
|
if (row.formScriptTagDTOs) {
|
|
190
191
|
return row.formScriptTagDTOs.map(item => item.tagName).join(",")
|
|
@@ -194,7 +195,7 @@ modules = {
|
|
|
194
195
|
},
|
|
195
196
|
{
|
|
196
197
|
field: 'sid',
|
|
197
|
-
title: '唯一标识',
|
|
198
|
+
title: this.$t1('唯一标识'),
|
|
198
199
|
width: 280
|
|
199
200
|
},
|
|
200
201
|
{
|
|
@@ -209,29 +210,20 @@ modules = {
|
|
|
209
210
|
sortable: false,
|
|
210
211
|
slots: {
|
|
211
212
|
default: ({row}) => {
|
|
212
|
-
return
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}}
|
|
220
|
-
>
|
|
221
|
-
<el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
|
|
222
|
-
popper-class="tooltip-skin">
|
|
223
|
-
<i class="el-icon-edit"/>
|
|
224
|
-
</el-tooltip>
|
|
225
|
-
</a>
|
|
226
|
-
</div>
|
|
227
|
-
];
|
|
213
|
+
return getJsxBtn({
|
|
214
|
+
iconName: "el-icon-edit",
|
|
215
|
+
content: this.$t1('查看'),
|
|
216
|
+
onclick: () => {
|
|
217
|
+
this.openEditDialog(row);
|
|
218
|
+
}
|
|
219
|
+
});
|
|
228
220
|
}
|
|
229
221
|
}
|
|
230
222
|
}
|
|
231
223
|
],
|
|
232
224
|
searchColumns: [
|
|
233
225
|
{
|
|
234
|
-
title:
|
|
226
|
+
title: this.$t1('表单分类'),
|
|
235
227
|
field: "menuKindName",
|
|
236
228
|
type: "input",
|
|
237
229
|
common: true,
|
|
@@ -239,12 +231,12 @@ modules = {
|
|
|
239
231
|
defaultValueEnabled: false,
|
|
240
232
|
slot: "menuKindName"
|
|
241
233
|
},
|
|
242
|
-
{title:
|
|
243
|
-
{title:
|
|
244
|
-
{title:
|
|
245
|
-
{title:
|
|
246
|
-
{title:
|
|
247
|
-
{title:
|
|
234
|
+
{title: this.$t1('脚本名称'), field: "scriptName", type: "input", common: true},
|
|
235
|
+
{title: this.$t1('脚本编码'), field: "scriptCode", type: "input", common: true},
|
|
236
|
+
{title: this.$t1('脚本说明'), field: "scriptRemark", type: "input", common: true},
|
|
237
|
+
{title: this.$t1('脚本'), field: "script", type: "input", common: true},
|
|
238
|
+
{title: this.$t1('表单模板编码'), field: "formCode", type: "input", common: true},
|
|
239
|
+
{title: this.$t1('项目标签'), field: "tag", type: "input", common: true, slot: "tag"},
|
|
248
240
|
],
|
|
249
241
|
config: {
|
|
250
242
|
proxyConfig: {
|
|
@@ -268,7 +260,7 @@ modules = {
|
|
|
268
260
|
let param = {enabled: true};
|
|
269
261
|
let url = !id ? USER_PREFIX + '/menuKind/getAllList' : USER_PREFIX + '/menuKind/getChildren';
|
|
270
262
|
this.$http({
|
|
271
|
-
|
|
263
|
+
aes: true,
|
|
272
264
|
url: url,
|
|
273
265
|
method: 'post',
|
|
274
266
|
data: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dialog
|
|
3
|
-
title="表单模板列表"
|
|
3
|
+
:title="$t1('表单模板列表')"
|
|
4
4
|
:append-to-body="true"
|
|
5
5
|
:modal-append-to-body="true"
|
|
6
6
|
:close-on-click-modal="falseValue"
|
|
@@ -36,27 +36,27 @@
|
|
|
36
36
|
</div>
|
|
37
37
|
<vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent"
|
|
38
38
|
@reset="resetEvent">
|
|
39
|
-
<vxe-form-item title="
|
|
39
|
+
<vxe-form-item :title="$t1('模板名称') + ':'" field="formName">
|
|
40
40
|
<template v-slot>
|
|
41
41
|
<el-input v-model="formData.formName" size="small" clearable/>
|
|
42
42
|
</template>
|
|
43
43
|
</vxe-form-item>
|
|
44
|
-
<vxe-form-item title="
|
|
44
|
+
<vxe-form-item :title="$t1('模板编码') + ':'" field="formCode">
|
|
45
45
|
<template v-slot>
|
|
46
46
|
<el-input v-model="formData.formCode" size="small" clearable/>
|
|
47
47
|
</template>
|
|
48
48
|
</vxe-form-item>
|
|
49
|
-
<vxe-form-item title="
|
|
49
|
+
<vxe-form-item :title="$t1('模板版本') + ':'" field="formVersion">
|
|
50
50
|
<template v-slot>
|
|
51
51
|
<base-input-number v-model="formData.formVersion"/>
|
|
52
52
|
</template>
|
|
53
53
|
</vxe-form-item>
|
|
54
|
-
<vxe-form-item title="
|
|
54
|
+
<vxe-form-item :title="$t1('数据表名') + ':'" field="ftableName">
|
|
55
55
|
<template v-slot>
|
|
56
56
|
<el-input v-model="formData.ftableName" size="small" clearable/>
|
|
57
57
|
</template>
|
|
58
58
|
</vxe-form-item>
|
|
59
|
-
<vxe-form-item title="
|
|
59
|
+
<vxe-form-item :title="$t1('数据表别名') + ':'" field="ftableAlias">
|
|
60
60
|
<template v-slot>
|
|
61
61
|
<el-input v-model="formData.ftableAlias" size="small" clearable/>
|
|
62
62
|
</template>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
<div class="fr">
|
|
10
10
|
<el-button type="success" class="button-sty" @click="openDesignDialog"
|
|
11
|
-
icon="iconfont icon-liuchengguanli-shejiqi_liucheng" v-if="!!dataId"
|
|
11
|
+
icon="iconfont icon-liuchengguanli-shejiqi_liucheng" v-if="!!dataId">{{ $t1('表单设计') }}
|
|
12
12
|
</el-button>
|
|
13
13
|
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
|
14
14
|
{{ $t1('重置') }}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<tr>
|
|
28
28
|
<th>
|
|
29
29
|
<em class="f-red">*</em>
|
|
30
|
-
模板名称
|
|
30
|
+
{{ $t1('模板名称') }}
|
|
31
31
|
</th>
|
|
32
32
|
<td colspan="3">
|
|
33
33
|
<el-form-item prop="formName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</td>
|
|
37
37
|
</tr>
|
|
38
38
|
<tr>
|
|
39
|
-
<th
|
|
39
|
+
<th>{{ $t1('模板编码') }}</th>
|
|
40
40
|
<td colspan="3">
|
|
41
41
|
<el-form-item prop="formCode" :rules="[{ required: true, trigger: 'blur' }]" v-if="!formTemplate.id">
|
|
42
42
|
<el-input type="text" autocomplete="off" v-model="formTemplate.formCode" clearable/>
|
|
@@ -47,23 +47,12 @@
|
|
|
47
47
|
</td>
|
|
48
48
|
</tr>
|
|
49
49
|
<tr>
|
|
50
|
-
|
|
51
|
-
<!-- <em class="f-red">*</em>-->
|
|
52
|
-
<!-- 服务名-->
|
|
53
|
-
<!-- </th>-->
|
|
54
|
-
<!-- <td>-->
|
|
55
|
-
<!-- <el-form-item prop="serviceId" :rules="[{ required: true, trigger: 'blur' }]">-->
|
|
56
|
-
<!-- <el-select v-model="formTemplate.serviceId">-->
|
|
57
|
-
<!-- <el-option v-for="serviceId in serviceIds" :value="serviceId">{{ serviceId }}</el-option>-->
|
|
58
|
-
<!-- </el-select>-->
|
|
59
|
-
<!-- </el-form-item>-->
|
|
60
|
-
<!-- </td>-->
|
|
61
|
-
<th>是否启用</th>
|
|
50
|
+
<th>{{ $t1('是否启用') }}</th>
|
|
62
51
|
<td>
|
|
63
52
|
<el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
|
|
64
53
|
<el-radio-group v-model="formTemplate.enabled">
|
|
65
|
-
<el-radio :label="true"
|
|
66
|
-
<el-radio :label="false"
|
|
54
|
+
<el-radio :label="true">{{ $t1('启用') }}</el-radio>
|
|
55
|
+
<el-radio :label="false">{{ $t1('禁用') }}</el-radio>
|
|
67
56
|
</el-radio-group>
|
|
68
57
|
</el-form-item>
|
|
69
58
|
</td>
|
|
@@ -71,7 +60,7 @@
|
|
|
71
60
|
<tr>
|
|
72
61
|
<th>
|
|
73
62
|
<em class="f-red">*</em>
|
|
74
|
-
表单分类
|
|
63
|
+
{{ $t1('表单分类') }}
|
|
75
64
|
</th>
|
|
76
65
|
<td colspan="5">
|
|
77
66
|
<el-form-item prop="menuKindName" :rules="[{ required:true, trigger: ['blur', 'change'] }]">
|
|
@@ -102,15 +91,15 @@
|
|
|
102
91
|
<tr>
|
|
103
92
|
<th>
|
|
104
93
|
<em class="f-red">*</em>
|
|
105
|
-
模板版本
|
|
94
|
+
{{ $t1('模板版本') }}
|
|
106
95
|
</th>
|
|
107
96
|
<td>{{ formTemplate.formVersion }}</td>
|
|
108
|
-
<th
|
|
109
|
-
<td>{{ formTemplate.history ? '是' : '否' }}</td>
|
|
97
|
+
<th>{{ $t1('是否历史版本') }}</th>
|
|
98
|
+
<td>{{ formTemplate.history ? $t1('是') : $t1('否') }}</td>
|
|
110
99
|
</tr>
|
|
111
100
|
<tr>
|
|
112
101
|
<th>
|
|
113
|
-
项目标签
|
|
102
|
+
{{ $t1('项目标签') }}
|
|
114
103
|
</th>
|
|
115
104
|
<td colspan="7">
|
|
116
105
|
<projectTagView v-model="formTemplate.formTemplateTagDTOs" :readonly="true"></projectTagView>
|
|
@@ -127,27 +116,31 @@
|
|
|
127
116
|
<td>{{ formTemplate.modifyDate }}</td>
|
|
128
117
|
</tr>
|
|
129
118
|
<tr>
|
|
130
|
-
<th><span class="tips">URL
|
|
119
|
+
<th><span class="tips">{{ $t1('URL说明') }}</span></th>
|
|
131
120
|
<td colspan="7">
|
|
132
121
|
<span class="fl tips">
|
|
133
|
-
<div> 一、表单模板嵌入第三方系统URL
|
|
122
|
+
<div> {{ $t1('一、表单模板嵌入第三方系统URL配置') }}</div>
|
|
134
123
|
<div style="padding-left: 20px">
|
|
135
|
-
<p>
|
|
136
|
-
|
|
124
|
+
<p> {{
|
|
125
|
+
$t1('1、列表URL: /#/form_outLinkView?url=/user/form/view/list&formCode=xx&tp=&i18nLang=&access_token=xx')
|
|
126
|
+
}}</p>
|
|
127
|
+
<p> {{
|
|
128
|
+
$t1('2、详情URL: /#/form_outLinkView?url=/user/form/view/edit&formCode=xx&dataId=1&tp=&i18nLang=&access_token=xx')
|
|
129
|
+
}}</p>
|
|
137
130
|
</div>
|
|
138
|
-
<div> 二、表单模板嵌入本地系统菜单URL
|
|
131
|
+
<div> {{ $t1('二、表单模板嵌入本地系统菜单URL配置') }}</div>
|
|
139
132
|
<div style="padding-left: 20px">
|
|
140
|
-
<p> 1、菜单URL: /user/form/view/list/xxx;xx
|
|
133
|
+
<p> {{ $t1('1、菜单URL: /user/form/view/list/xxx;xx为表单模板编码;菜单类型:动态表单') }}</p>
|
|
141
134
|
</div>
|
|
142
|
-
<div>
|
|
135
|
+
<div> {{ $t1('三、参数说明') }}</div>
|
|
143
136
|
<div style="padding-left: 20px">
|
|
144
|
-
<p>1、url:详情页面固定为/user/form/view/edit,列表页面固定为/user/form/view/list
|
|
145
|
-
<p>2、formCode
|
|
146
|
-
<p>3、dataId:单据ID
|
|
147
|
-
<p>4、i18nLang
|
|
148
|
-
<p>5、tp
|
|
149
|
-
<p>6、access_token:用户信息token
|
|
150
|
-
<p>7、tp与access_token
|
|
137
|
+
<p>{{ $t1('1、url:详情页面固定为/user/form/view/edit,列表页面固定为/user/form/view/list;') }}</p>
|
|
138
|
+
<p>{{ $t1('2、formCode:表单编码;') }}</p>
|
|
139
|
+
<p>{{ $t1('3、dataId:单据ID,详情页面才需要传;') }}</p>
|
|
140
|
+
<p>{{ $t1('4、i18nLang:国际化编码,不传默认中文;') }}</p>
|
|
141
|
+
<p>{{ $t1('5、tp:第三方登录秘钥;') }}</p>
|
|
142
|
+
<p>{{ $t1('6、access_token:用户信息token;') }}</p>
|
|
143
|
+
<p>{{ $t1('7、tp与access_token只需要传其中一个即可;') }}</p>
|
|
151
144
|
</div>
|
|
152
145
|
</span>
|
|
153
146
|
</td>
|
|
@@ -156,7 +149,7 @@
|
|
|
156
149
|
</table>
|
|
157
150
|
</template>
|
|
158
151
|
</baseTabPane>
|
|
159
|
-
<baseTabPane label="操作日志">
|
|
152
|
+
<baseTabPane :label="$t1('操作日志')">
|
|
160
153
|
<template #default>
|
|
161
154
|
<formOplogTable :parent-target="_self" ref="oplogTable"></formOplogTable>
|
|
162
155
|
</template>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dialog
|
|
3
|
-
:title="dataId
|
|
3
|
+
:title="dataId?$t1('编辑表单流程单据'):$t1('新增表单流程单据')"
|
|
4
4
|
:append-to-body="true"
|
|
5
5
|
:modal-append-to-body="true"
|
|
6
6
|
:close-on-click-modal="false"
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
<div class="cont">
|
|
17
17
|
<el-form ref="editForm" :model="wfObjConfig" label-width="110px" class="adSearchForm"
|
|
18
18
|
style="width: 362px;height: auto;">
|
|
19
|
-
<el-form-item label="表单类型编码">
|
|
19
|
+
<el-form-item :label="$t1('表单类型编码')">
|
|
20
20
|
<span>{{ wfObjConfig.objTypeCode }}</span>
|
|
21
21
|
</el-form-item>
|
|
22
|
-
<el-form-item label="表单类型名称" :rules="[{ required: true, trigger: 'blur' }]">
|
|
22
|
+
<el-form-item :label="$t1('表单类型名称')" :rules="[{ required: true, trigger: 'blur' }]">
|
|
23
23
|
<el-input v-model="wfObjConfig.objTypeName" clearable class="all-width"/>
|
|
24
24
|
</el-form-item>
|
|
25
25
|
</el-form>
|