mooho-base-admin-plus 0.4.64 → 0.4.65
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 +34 -26
- package/dist/mooho-base-admin-plus.min.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/view/table-filter.vue +9 -9
- package/src/components/view/view-table.vue +2 -2
- package/src/layouts/basic-layout/index.vue +16 -6
- package/src/layouts/basic-layout/menu-side/index.vue +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mooho-base-admin-plus",
|
|
3
3
|
"description": "MOOHO basic framework for admin by Vue3",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.65",
|
|
5
5
|
"author": "jinyifan <jinyifan@mooho.com.cn>",
|
|
6
6
|
"dotnetVersion": "1.4.0",
|
|
7
7
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build": "vite build",
|
|
13
13
|
"preview": "vite preview",
|
|
14
14
|
"lint": "vue-cli-service lint",
|
|
15
|
-
"package": "
|
|
15
|
+
"package": "vite build",
|
|
16
16
|
"styleguide": "vue-styleguidist server",
|
|
17
17
|
"styleguide:build": "vue-styleguidist build"
|
|
18
18
|
},
|
|
@@ -276,28 +276,28 @@
|
|
|
276
276
|
// 当前日期
|
|
277
277
|
let date = new Date();
|
|
278
278
|
let value = date.toISOString().replace(/T.*/, '');
|
|
279
|
-
this.
|
|
279
|
+
this.setFilterData(data, item, new Date(value));
|
|
280
280
|
} else if (item.defaultValue.startsWith('{today(') && item.defaultValue.endsWith(')}')) {
|
|
281
281
|
// 当前时间转字符串
|
|
282
282
|
let format = item.defaultValue.substr(7, item.defaultValue.length - 9);
|
|
283
|
-
this.
|
|
283
|
+
this.setFilterData(data, item, dateFormat(new Date(), format));
|
|
284
284
|
} else if (item.defaultValue == '{currentUserID}') {
|
|
285
285
|
// 当前用户编号
|
|
286
|
-
this.
|
|
286
|
+
this.setFilterData(data, item, this.info.id);
|
|
287
287
|
} else if (item.defaultValue == '{currentUser}') {
|
|
288
288
|
// 当前用户姓名
|
|
289
|
-
this.
|
|
289
|
+
this.setFilterData(data, item, this.info.name);
|
|
290
290
|
} else {
|
|
291
291
|
if (item.dataType === 'Integer') {
|
|
292
|
-
this.
|
|
292
|
+
this.setFilterData(data, item, parseInt(item.defaultValue));
|
|
293
293
|
} else if (item.dataType === 'Decimal') {
|
|
294
|
-
this.
|
|
294
|
+
this.setFilterData(data, item, parseFloat(item.defaultValue));
|
|
295
295
|
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'TRUE') {
|
|
296
|
-
this.
|
|
296
|
+
this.setFilterData(data, item, true);
|
|
297
297
|
} else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'FALSE') {
|
|
298
|
-
this.
|
|
298
|
+
this.setFilterData(data, item, false);
|
|
299
299
|
} else {
|
|
300
|
-
this.
|
|
300
|
+
this.setFilterData(data, item, item.defaultValue);
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
}
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
@click="remove(rowData(row, index), index)"
|
|
410
410
|
></Button>
|
|
411
411
|
<Button
|
|
412
|
-
v-if="
|
|
412
|
+
v-if="static && tableView.adjustEnable && !readonly"
|
|
413
413
|
size="small"
|
|
414
414
|
:title="$t('Front_Btn_Up')"
|
|
415
415
|
type="primary"
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
@click="up(rowData(row, index), index)"
|
|
418
418
|
></Button>
|
|
419
419
|
<Button
|
|
420
|
-
v-if="
|
|
420
|
+
v-if="static && tableView.adjustEnable && !readonly"
|
|
421
421
|
size="small"
|
|
422
422
|
:title="$t('Front_Btn_Down')"
|
|
423
423
|
type="primary"
|
|
@@ -15,14 +15,24 @@
|
|
|
15
15
|
<i-header-search v-if="showSearch && !headerMenu && !isMobile && !showBreadcrumb" />
|
|
16
16
|
<div class="i-layout-header-right">
|
|
17
17
|
<slot name="header" />
|
|
18
|
-
<
|
|
18
|
+
<slot name="search">
|
|
19
|
+
<i-header-search v-if="(showSearch && isMobile) || (showSearch && (headerMenu || showBreadcrumb))" />
|
|
20
|
+
</slot>
|
|
19
21
|
<i-menu-head v-if="headerMenu && isMobile" />
|
|
20
|
-
<i-header-log v-if="isDesktop && showLog" />
|
|
22
|
+
<!-- <i-header-log v-if="isDesktop && showLog" /> -->
|
|
21
23
|
<i-header-fullscreen v-if="isDesktop && showFullscreen" />
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<
|
|
24
|
+
<slot name="notice">
|
|
25
|
+
<i-header-notice ref="notice" v-if="showNotice" />
|
|
26
|
+
</slot>
|
|
27
|
+
<slot name="user">
|
|
28
|
+
<i-header-user />
|
|
29
|
+
</slot>
|
|
30
|
+
<slot name="i18n">
|
|
31
|
+
<i-header-i18n v-if="showI18n" />
|
|
32
|
+
</slot>
|
|
33
|
+
<slot name="setting">
|
|
34
|
+
<i-header-setting v-if="enableSetting && !isMobile" />
|
|
35
|
+
</slot>
|
|
26
36
|
</div>
|
|
27
37
|
</Header>
|
|
28
38
|
</transition>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</template>
|
|
27
27
|
<template v-else>
|
|
28
28
|
<Tooltip
|
|
29
|
-
:content="
|
|
29
|
+
:content="layout.showI18n ? $t('Permission_' + item.code) : item.title"
|
|
30
30
|
placement="right"
|
|
31
31
|
v-if="item.children === undefined || !item.children.length"
|
|
32
32
|
:key="index"
|