mooho-base-admin-plus 0.4.39 → 0.4.41
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 +65 -42
- package/dist/mooho-base-admin-plus.min.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/input/item-select.vue +7 -2
- package/src/components/upload/file-upload.vue +1 -1
- package/src/components/view/column-edit.vue +13 -0
- package/src/components/view/column-select.vue +1 -1
- package/src/components/view/view-table.vue +1 -1
- package/src/layouts/basic-layout/menu-side/menu-title.vue +4 -4
- package/src/pages/system/formView.vue +1 -1
- package/src/setting.js +1 -1
- package/src/styles/css/default.css +4 -4
package/package.json
CHANGED
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
mixins: [mixinPage],
|
|
65
65
|
data() {
|
|
66
66
|
return {
|
|
67
|
+
inited: false,
|
|
67
68
|
opened: false, // 是否打开
|
|
68
69
|
sourceFilter: {} // 来源筛选
|
|
69
70
|
};
|
|
@@ -114,6 +115,8 @@
|
|
|
114
115
|
this.$refs.selectTargetTable.init(targetViewCode, () => {
|
|
115
116
|
this.setSelected([]);
|
|
116
117
|
|
|
118
|
+
this.inited = true;
|
|
119
|
+
|
|
117
120
|
if (typeof callback === 'function') {
|
|
118
121
|
callback();
|
|
119
122
|
}
|
|
@@ -151,8 +154,10 @@
|
|
|
151
154
|
* @public
|
|
152
155
|
*/
|
|
153
156
|
setSelected(data) {
|
|
154
|
-
this
|
|
155
|
-
|
|
157
|
+
if (this.inited) {
|
|
158
|
+
this.$refs.selectTargetTable.loadData(data);
|
|
159
|
+
this.$refs.selectSourceTable.setSelected(data);
|
|
160
|
+
}
|
|
156
161
|
},
|
|
157
162
|
/**
|
|
158
163
|
* 刷新来源数据
|
|
@@ -278,6 +278,19 @@
|
|
|
278
278
|
</Button>
|
|
279
279
|
</FormItem>
|
|
280
280
|
</Col>
|
|
281
|
+
<Col v-bind="grid8">
|
|
282
|
+
<FormItem label="禁用排序" key="sortDisable" prop="sortDisable">
|
|
283
|
+
<Switch
|
|
284
|
+
:model-value="!!data.sortDisable"
|
|
285
|
+
@update:model-value="
|
|
286
|
+
$event => {
|
|
287
|
+
data.sortDisable = $event;
|
|
288
|
+
//$forceUpdate();
|
|
289
|
+
}
|
|
290
|
+
"
|
|
291
|
+
/>
|
|
292
|
+
</FormItem>
|
|
293
|
+
</Col>
|
|
281
294
|
<Col v-bind="grid8">
|
|
282
295
|
<FormItem label="默认值" key="defaultValue" prop="defaultValue">
|
|
283
296
|
<Input type="text" v-model="data.defaultValue" maxlength="200" />
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
column: {
|
|
54
54
|
code: groupColumn.property,
|
|
55
55
|
name: groupColumn.property,
|
|
56
|
-
dataType: groupColumn.dataType == 'DateTime' && groupColumn.dateTimeGroupType != '
|
|
56
|
+
dataType: groupColumn.dataType == 'DateTime' && groupColumn.dateTimeGroupType != 'Date' ? 'Integer' : groupColumn.dataType,
|
|
57
57
|
columns: []
|
|
58
58
|
},
|
|
59
59
|
title: groupColumn.property + ' (' + groupColumn.property + ')',
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
width: item.controlWidth,
|
|
546
546
|
minWidth: 100,
|
|
547
547
|
align: item.align ? item.align.toLowerCase() : 'center',
|
|
548
|
-
sortable: 'custom',
|
|
548
|
+
sortable: !view.dataView.sortDisable && !item.sortDisable ? 'custom' : false,
|
|
549
549
|
resizable: true,
|
|
550
550
|
slot: 'normal'
|
|
551
551
|
};
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
:class="{
|
|
11
11
|
'i-layout-menu-side-title-text-selected': selected,
|
|
12
12
|
'i-layout-menu-side-title-text-with-subtitle':
|
|
13
|
-
(
|
|
13
|
+
(layout.showI18n && !!($t('Permission_' + menu.code + '_SubName') || '').trim()) || (!layout.showI18n && !!(menu.subtitle || '').trim()),
|
|
14
14
|
'i-layout-menu-side-title-text-with-icon': withIcon
|
|
15
15
|
}"
|
|
16
16
|
v-if="!hideTitle"
|
|
17
17
|
>
|
|
18
|
-
{{
|
|
19
|
-
<em v-if="
|
|
20
|
-
<em v-if="!
|
|
18
|
+
{{ layout.showI18n ? $t('Permission_' + menu.code) : menu.title }}
|
|
19
|
+
<em v-if="layout.showI18n && !!($t('Permission_' + menu.code + '_SubName') || '').trim()">{{ $t('Permission_' + menu.code + '_SubName') }}</em>
|
|
20
|
+
<em v-if="!layout.showI18n && !!(menu.subTitle || '').trim()">{{ menu.subTitle }}</em>
|
|
21
21
|
</span>
|
|
22
22
|
</span>
|
|
23
23
|
</template>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<view-table ref="table" view-code="FormView" :filter="filter" :selectEnable="true" @create="create" @edit="edit">
|
|
8
8
|
<template #filterCommand>
|
|
9
9
|
<Button size="small" type="info" custom-icon="fa fa-cloud-download-alt" @click="exportFile()">{{ $t('Front_Btn_Export') }}</Button>
|
|
10
|
-
<file-upload url="api/DataView/importFile" accept=".view" @on-success="importFileSuccess"
|
|
10
|
+
<file-upload url="api/DataView/importFile" accept=".view" @on-success="importFileSuccess">
|
|
11
11
|
<template #>
|
|
12
12
|
<Button type="primary" custom-icon="fa fa-cloud-upload-alt" size="small">{{ $t('Front_Btn_Import') }}</Button>
|
|
13
13
|
</template>
|
package/src/setting.js
CHANGED
|
@@ -247,15 +247,15 @@
|
|
|
247
247
|
margin-bottom: 0;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
.ivu-dropdown {
|
|
251
|
-
margin-right: 4px;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
250
|
.filter .ivu-upload {
|
|
255
251
|
margin-left: 2px !important;
|
|
256
252
|
margin-right: 2px !important;
|
|
257
253
|
}
|
|
258
254
|
|
|
255
|
+
.ivu-dropdown {
|
|
256
|
+
margin-right: 4px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
259
|
/* 表格内部按钮 */
|
|
260
260
|
.ivu-table-cell button + button {
|
|
261
261
|
margin-left: 4px;
|