cloud-web-corejs 1.0.54-dev.234 → 1.0.54-dev.236
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/mixins.js +66 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1381 -2
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +3 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +3 -17
- package/src/views/bd/setting/form_script/edit1.vue +1 -1
- package/src/views/bd/setting/form_template/list.vue +1 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +2 -0
- package/src/views/bd/setting/form_template/mixins/list.js +31 -4
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
- package/src/views/user/user/form_dialog.vue +1 -1
@@ -246,8 +246,7 @@ modules = {
|
|
246
246
|
let row = rowParam.row;
|
247
247
|
let params = rowParam.column.params;
|
248
248
|
let widgetId = fieldWidget ? fieldWidget.id : params.widget.id;
|
249
|
-
let
|
250
|
-
let widget = fieldSchem && fieldSchem[widgetId] ? fieldSchem[widgetId] : null;
|
249
|
+
let widget = this.fieldSchemaMap[row._X_ROW_KEY][widgetId]
|
251
250
|
return widget;
|
252
251
|
},
|
253
252
|
loopHandleWidgetByName(name, callback) {
|
@@ -270,7 +269,7 @@ modules = {
|
|
270
269
|
},
|
271
270
|
getRowWidgetKey(rowParam, fieldWidget) {
|
272
271
|
let widget = this.getRowWidget(rowParam, fieldWidget);
|
273
|
-
let key = widget
|
272
|
+
let key = widget.id
|
274
273
|
return key;
|
275
274
|
},
|
276
275
|
getGridTableName() {
|
@@ -868,19 +867,6 @@ modules = {
|
|
868
867
|
if (this.widget.options.hideGridCheckBox) {
|
869
868
|
otherConfig.checkBoxRequired = false;
|
870
869
|
}
|
871
|
-
|
872
|
-
let gridPageSize = this.widget.options.gridPageSize;
|
873
|
-
let gridPageSizeList = this.widget.options.gridPageSizeList || [];
|
874
|
-
if(!gridPageSizeList || !gridPageSizeList.length){
|
875
|
-
pagerConfig.pageSizes = [50,100,200,500]
|
876
|
-
if(!gridPageSize)gridPageSize = 100
|
877
|
-
pagerConfig.pageSize = gridPageSize
|
878
|
-
}else{
|
879
|
-
pagerConfig.pageSizes = gridPageSizeList.filter(item=>item.value).map(item=>item.value);
|
880
|
-
if(!gridPageSize)gridPageSize = pagerConfig.pageSizes[0]
|
881
|
-
pagerConfig.pageSize = gridPageSize
|
882
|
-
}
|
883
|
-
|
884
870
|
let tableOption = {
|
885
871
|
// vue: this,
|
886
872
|
tableRef: tableRef,
|
@@ -1741,7 +1727,7 @@ modules = {
|
|
1741
1727
|
data: reqData,
|
1742
1728
|
successMsg: true,
|
1743
1729
|
isConfirm: true,
|
1744
|
-
confirmText:
|
1730
|
+
confirmText: "您确定要保存吗?",
|
1745
1731
|
success: (res0) => {
|
1746
1732
|
this.getRowData(res0.objx, (res) => {
|
1747
1733
|
if (obj.row.id == res.objx.id) {
|
@@ -13,7 +13,7 @@
|
|
13
13
|
class="button-sty"
|
14
14
|
icon="el-icon-set-up"
|
15
15
|
@click="openOtherAuthDialog"
|
16
|
-
v-if="isDev && !!dataId && menuKindAuth.editAuth === 1 && !readonly && !otherFlag"
|
16
|
+
v-if="isDev && !!dataId && menuKindAuth.editAuth === 1 && !readonly && !otherFlag && !formTemplate"
|
17
17
|
>
|
18
18
|
{{ $t1("分派") }}
|
19
19
|
</el-button>
|
@@ -117,7 +117,7 @@
|
|
117
117
|
class="designer-drawer" :class="[isFullscreen ? 'is-fullscreen' : '']" @close="handleFormDesignClose">
|
118
118
|
<el-tabs v-model="formDesTabs" type="card" class="tab-boxOnly" :stretch="true">
|
119
119
|
<el-tab-pane :label="$t1('设计器')" name="first">
|
120
|
-
<designer ref="designer" :formCode.sync="formCode" @reflushTemplateList="reflushTemplateList"></designer>
|
120
|
+
<designer ref="designer" :formCode.sync="formCode" @reflushTemplateList="reflushTemplateList" :readonly="designerReadonly"></designer>
|
121
121
|
</el-tab-pane>
|
122
122
|
<el-tab-pane :label="$t1('后端脚本')" name="second">
|
123
123
|
<formScriptList :formCode="formCode" :formTemplate="currentFormTemplate"
|
@@ -139,6 +139,7 @@ modules = {
|
|
139
139
|
isDev: true,
|
140
140
|
menuKindAuth: {},
|
141
141
|
showTree: false,
|
142
|
+
designerReadonly: false
|
142
143
|
};
|
143
144
|
},
|
144
145
|
computed: {
|
@@ -188,16 +189,42 @@ modules = {
|
|
188
189
|
this.$refs.xTabs.openEditTab(row);
|
189
190
|
}
|
190
191
|
},
|
191
|
-
|
192
|
+
openDesingerDialogByAuth(row) {
|
193
|
+
if (!this.otherFlag) {
|
194
|
+
this.openDesingerDialog(row);
|
195
|
+
} else {
|
196
|
+
this.getOtherMenuKindAuth(row, (editAuth) => {
|
197
|
+
this.openDesingerDialog(row, null, !editAuth);
|
198
|
+
})
|
199
|
+
}
|
200
|
+
},
|
201
|
+
getOtherMenuKindAuth(row, callback) {
|
202
|
+
if (row.sid) {
|
203
|
+
this.$http({
|
204
|
+
aes: true,
|
205
|
+
url: USER_PREFIX + "/form_template_auth/getAuth",
|
206
|
+
method: `post`,
|
207
|
+
data: {stringOne: row.sid},
|
208
|
+
isLoading: true,
|
209
|
+
success: (res) => {
|
210
|
+
let menuKindAuth = res.objx || {};
|
211
|
+
callback(!!menuKindAuth.editAuth)
|
212
|
+
},
|
213
|
+
});
|
214
|
+
}
|
215
|
+
},
|
216
|
+
openDesingerDialog(row, callback, readonly = false) {
|
192
217
|
this.formCode = row.formCode;
|
193
218
|
this.formName = row.formName;
|
194
219
|
this.currentFormTemplate = row;
|
195
220
|
this.isFullscreen = false;
|
221
|
+
|
222
|
+
this.designerReadonly = readonly
|
196
223
|
this.showDesingerDialog = true;
|
197
224
|
this.designerSaveCallback = callback ?? null;
|
198
225
|
},
|
199
|
-
openDesingerDialogByChild({row, callback}) {
|
200
|
-
this.openDesingerDialog(row, callback);
|
226
|
+
openDesingerDialogByChild({row, readonly, callback}) {
|
227
|
+
this.openDesingerDialog(row, callback, readonly);
|
201
228
|
},
|
202
229
|
reflushTemplateList() {
|
203
230
|
this.searchEvent();
|
@@ -379,7 +406,7 @@ modules = {
|
|
379
406
|
iconName: "iconfont icon-liuchengguanli-shejiqi_liucheng",
|
380
407
|
content: this.$t1("表单设计"),
|
381
408
|
onclick: () => {
|
382
|
-
this.
|
409
|
+
this.openDesingerDialogByAuth(row);
|
383
410
|
},
|
384
411
|
},
|
385
412
|
]);
|
@@ -140,7 +140,7 @@ export default {
|
|
140
140
|
{type: 'checkbox', width: 50, resizable: false, fixed: 'left'},
|
141
141
|
{title: this.$t1('登录名'), field: 'loginAccount', width: 250, fixed: 'left'},
|
142
142
|
{field: 'nickName', title: this.$t1('姓名'), width: 150},
|
143
|
-
{field: '
|
143
|
+
{field: 'groupName', title: this.$t1('用户组'), width: 250},
|
144
144
|
{
|
145
145
|
width: 47,
|
146
146
|
fixed: 'right',
|