mooho-base-admin-plus 0.4.9 → 0.4.12
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/dist/mooho-base-admin-plus.min.esm.js +43 -38
- package/dist/mooho-base-admin-plus.min.js +37 -37
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/view/condition-edit.vue +1 -1
- package/src/components/view/modal-form.vue +1 -1
- package/src/components/view/table-setting.vue +3 -2
- package/src/components/view/view-form-draggable.vue +1 -1
- package/src/components/view/view-form.vue +6 -6
- package/src/components/view/view-table.vue +12 -7
- package/src/layouts/basic-layout/header-user/index.vue +3 -3
- package/src/pages/common/task-form.vue +1 -1
- package/src/pages/system/rolePropertyEdit.vue +9 -9
- package/src/pages/template/processPage.vue +1 -1
package/package.json
CHANGED
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
@slot 页脚
|
|
81
81
|
-->
|
|
82
82
|
<slot name="footer">
|
|
83
|
-
<Button type="primary" custom-icon="fa fa-save" v-if="canSave() && saveEnable" @click="onSave">{{ $t('Front_Btn_Save') }}</Button>
|
|
83
|
+
<Button type="primary" custom-icon="fa fa-save" v-if="canSave() && saveEnable && !formView.editEnable" @click="onSave">{{ $t('Front_Btn_Save') }}</Button>
|
|
84
84
|
</slot>
|
|
85
85
|
<Button type="default" custom-icon="fa fa-times" @click="clickClose">{{ $t('Front_Btn_Close') }}</Button>
|
|
86
86
|
<Button type="error" :title="$t('Front_Btn_Setting')" custom-icon="fa fa-cog" v-if="settingEnable && allow('permission/formView')" @click="settingOpen"></Button>
|
|
@@ -24,8 +24,9 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
<div v-if="code == 'sorting'">
|
|
26
26
|
<Input type="text" :readonly="true" v-model="sort" @click="$refs.modal_sort.open()">
|
|
27
|
-
<template #prepend
|
|
28
|
-
|
|
27
|
+
<template #prepend>
|
|
28
|
+
<Button custom-icon="fa fa-edit" @click="$refs.modal_sort.open()"></Button>
|
|
29
|
+
</template>
|
|
29
30
|
</Input>
|
|
30
31
|
</div>
|
|
31
32
|
<div v-if="code == 'filtering'">
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
},
|
|
590
590
|
// 获取数据源
|
|
591
591
|
getDataSource(data, column) {
|
|
592
|
-
if (column.
|
|
592
|
+
if (!column.isStaticItem && column.dataType.indexOf('Enum:') === 0) {
|
|
593
593
|
// 枚举
|
|
594
594
|
return this.getEnumList(column.dataType.split(':')[1]);
|
|
595
595
|
} else {
|
|
@@ -830,14 +830,14 @@
|
|
|
830
830
|
rules.push({
|
|
831
831
|
pattern: /.+/,
|
|
832
832
|
required: true,
|
|
833
|
-
message: this
|
|
833
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
834
834
|
trigger: this.getTrigger(column)
|
|
835
835
|
});
|
|
836
836
|
} else {
|
|
837
837
|
rules.push({
|
|
838
838
|
type: this.getDataType(column),
|
|
839
839
|
required: true,
|
|
840
|
-
message: this
|
|
840
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
841
841
|
trigger: this.getTrigger(column)
|
|
842
842
|
});
|
|
843
843
|
}
|
|
@@ -847,7 +847,7 @@
|
|
|
847
847
|
rules.push({
|
|
848
848
|
type: this.getDataType(column),
|
|
849
849
|
pattern: column.pattern,
|
|
850
|
-
message: this.$t('Front_Msg_Validation_Pattern
|
|
850
|
+
message: this.$t('Front_Msg_Validation_Pattern'),
|
|
851
851
|
trigger: this.getTrigger(column)
|
|
852
852
|
});
|
|
853
853
|
}
|
|
@@ -856,7 +856,7 @@
|
|
|
856
856
|
rules.push({
|
|
857
857
|
type: this.getDataType(column),
|
|
858
858
|
max: column.maxValue,
|
|
859
|
-
message: this.$t('Front_Msg_Validation_Max_Value|' +
|
|
859
|
+
message: this.$t('Front_Msg_Validation_Max_Value|' + column.maxValue),
|
|
860
860
|
trigger: this.getTrigger(column)
|
|
861
861
|
});
|
|
862
862
|
}
|
|
@@ -865,7 +865,7 @@
|
|
|
865
865
|
rules.push({
|
|
866
866
|
type: this.getDataType(column),
|
|
867
867
|
min: column.minValue,
|
|
868
|
-
message: this.$t('Front_Msg_Validation_Min_Value|' +
|
|
868
|
+
message: this.$t('Front_Msg_Validation_Min_Value|' + column.minValue),
|
|
869
869
|
trigger: this.getTrigger(column)
|
|
870
870
|
});
|
|
871
871
|
}
|
|
@@ -874,7 +874,7 @@
|
|
|
874
874
|
rules.push({
|
|
875
875
|
type: this.getDataType(column),
|
|
876
876
|
length: column.maxLength,
|
|
877
|
-
message: this.$t('Front_Msg_Validation_Max_Length|' +
|
|
877
|
+
message: this.$t('Front_Msg_Validation_Max_Length|' + column.maxLength),
|
|
878
878
|
trigger: this.getTrigger(column)
|
|
879
879
|
});
|
|
880
880
|
}
|
|
@@ -447,8 +447,8 @@
|
|
|
447
447
|
<table-setting ref="tableSetting" v-if="tableSettingActive" :is-setting="true" @on-change="viewCode => init(viewCode)" />
|
|
448
448
|
<filter-setting ref="filterSetting" v-if="filterSettingActive" @on-change="viewCode => init(viewCode)" />
|
|
449
449
|
<item-select ref="itemSelect" v-if="itemSelectActive" @save="saveItemSelect"></item-select>
|
|
450
|
-
<modal-table ref="modalTable" v-if="inited"></modal-table>
|
|
451
|
-
<modal-form ref="modalForm"
|
|
450
|
+
<modal-table ref="modalTable" v-if="inited" @create="$refs.modalForm.openDefault(commandButtonParams)" @edit="({ row, index }) => $refs.modalForm.open(row)"></modal-table>
|
|
451
|
+
<modal-form ref="modalForm" v-if="inited" @on-after-save="$refs.modalTable.loadData()"></modal-form>
|
|
452
452
|
<modal-table ref="batchEditTable" :embedded="true" :static="true" :footerEnable="true" v-if="inited">
|
|
453
453
|
<template #footer>
|
|
454
454
|
<Button type="primary" custom-icon="fa fa-save" @click="batchSave()">{{ $t('Front_Btn_Save') }}</Button>
|
|
@@ -567,7 +567,8 @@
|
|
|
567
567
|
commandButtons: [],
|
|
568
568
|
preview: false,
|
|
569
569
|
imageUrl: null,
|
|
570
|
-
isFullScreen: false
|
|
570
|
+
isFullScreen: false,
|
|
571
|
+
commandButtonParams: null
|
|
571
572
|
};
|
|
572
573
|
},
|
|
573
574
|
async created() {
|
|
@@ -2164,22 +2165,26 @@
|
|
|
2164
2165
|
if (commandButton.viewType == 'TableView') {
|
|
2165
2166
|
// 打开表格
|
|
2166
2167
|
this.$refs.modalTable.init(commandButton.viewCode, async () => {
|
|
2167
|
-
|
|
2168
|
+
if (!!(commandButton.formViewCode || '').trim()) {
|
|
2169
|
+
this.$refs.modalForm.init(commandButton.formViewCode);
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
this.commandButtonParams = {};
|
|
2168
2173
|
|
|
2169
2174
|
if (!!(commandButton.params || '').trim()) {
|
|
2170
2175
|
let commandButtonParams = JSON.parse(commandButton.params);
|
|
2171
2176
|
|
|
2172
2177
|
for (let i = 0; i < commandButtonParams.length; i++) {
|
|
2173
2178
|
let value = this.parseData(row, commandButtonParams[i].value);
|
|
2174
|
-
|
|
2179
|
+
this.commandButtonParams[commandButtonParams[i].param] = value;
|
|
2175
2180
|
}
|
|
2176
2181
|
}
|
|
2177
2182
|
|
|
2178
|
-
this.$refs.modalTable.open(
|
|
2183
|
+
this.$refs.modalTable.open(this.commandButtonParams);
|
|
2179
2184
|
});
|
|
2180
2185
|
} else {
|
|
2181
2186
|
// 打开表单
|
|
2182
|
-
this.$refs.modalForm.init(commandButton.
|
|
2187
|
+
this.$refs.modalForm.init(commandButton.formViewCode, async () => {
|
|
2183
2188
|
this.$refs.modalForm.open(row);
|
|
2184
2189
|
});
|
|
2185
2190
|
}
|
|
@@ -95,19 +95,19 @@
|
|
|
95
95
|
oldPwd: {
|
|
96
96
|
type: 'string',
|
|
97
97
|
required: true,
|
|
98
|
-
message: this
|
|
98
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
99
99
|
trigger: 'blur,change'
|
|
100
100
|
},
|
|
101
101
|
newPwd: {
|
|
102
102
|
type: 'string',
|
|
103
103
|
required: true,
|
|
104
|
-
message: this
|
|
104
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
105
105
|
trigger: 'blur,change'
|
|
106
106
|
},
|
|
107
107
|
checkPwd: {
|
|
108
108
|
type: 'string',
|
|
109
109
|
required: true,
|
|
110
|
-
message: this
|
|
110
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
111
111
|
trigger: 'blur,change'
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -216,43 +216,43 @@
|
|
|
216
216
|
propertyName: {
|
|
217
217
|
type: 'string',
|
|
218
218
|
required: true,
|
|
219
|
-
message: this
|
|
219
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
220
220
|
trigger: 'blur'
|
|
221
221
|
},
|
|
222
222
|
propertyCode: {
|
|
223
223
|
type: 'string',
|
|
224
224
|
required: true,
|
|
225
|
-
message: this
|
|
225
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
226
226
|
trigger: 'blur'
|
|
227
227
|
},
|
|
228
228
|
dataType: {
|
|
229
229
|
type: 'string',
|
|
230
230
|
required: true,
|
|
231
|
-
message: this
|
|
231
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
232
232
|
trigger: 'blur'
|
|
233
233
|
},
|
|
234
234
|
controlType: {
|
|
235
235
|
type: 'string',
|
|
236
236
|
required: true,
|
|
237
|
-
message: this
|
|
237
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
238
238
|
trigger: 'blur'
|
|
239
239
|
},
|
|
240
240
|
source: {
|
|
241
241
|
type: 'string',
|
|
242
242
|
required: true,
|
|
243
|
-
message: this
|
|
243
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
244
244
|
trigger: 'blur'
|
|
245
245
|
},
|
|
246
246
|
sourceDataCode: {
|
|
247
247
|
type: 'string',
|
|
248
248
|
required: true,
|
|
249
|
-
message: this
|
|
249
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
250
250
|
trigger: 'blur'
|
|
251
251
|
},
|
|
252
252
|
sourceDisplayCode: {
|
|
253
253
|
type: 'string',
|
|
254
254
|
required: true,
|
|
255
|
-
message: this
|
|
255
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
256
256
|
trigger: 'blur'
|
|
257
257
|
}
|
|
258
258
|
};
|
|
@@ -269,13 +269,13 @@
|
|
|
269
269
|
code: {
|
|
270
270
|
type: 'string',
|
|
271
271
|
required: true,
|
|
272
|
-
message: this
|
|
272
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
273
273
|
trigger: 'blur,change'
|
|
274
274
|
},
|
|
275
275
|
val: {
|
|
276
276
|
type: 'string',
|
|
277
277
|
required: true,
|
|
278
|
-
message: this
|
|
278
|
+
message: this.$t('Front_Msg_Please_Input'),
|
|
279
279
|
trigger: 'blur,change'
|
|
280
280
|
}
|
|
281
281
|
};
|