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/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.39",
4
+ "version": "0.4.41",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
@@ -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.$refs.selectTargetTable.loadData(data);
155
- this.$refs.selectSourceTable.setSelected(data);
157
+ if (this.inited) {
158
+ this.$refs.selectTargetTable.loadData(data);
159
+ this.$refs.selectSourceTable.setSelected(data);
160
+ }
156
161
  },
157
162
  /**
158
163
  * 刷新来源数据
@@ -7,7 +7,7 @@
7
7
  :on-success="importFileSuccess"
8
8
  :on-error="importFileError"
9
9
  :before-upload="beforeUpload"
10
- style="display: inline-block; margin-left: 8px; margin-right: 8px"
10
+ style="display: inline-block"
11
11
  >
12
12
  <slot></slot>
13
13
  </Upload>
@@ -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 != 'Day' ? 'Integer' : groupColumn.dataType,
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
- (this.layout.showI18n && !!(this.$t('Permission_' + menu.code + '_SubName') || '').trim()) || (!this.layout.showI18n && !!(menu.subtitle || '').trim()),
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
- {{ this.layout.showI18n ? this.$t('Permission_' + menu.code) : menu.title }}
19
- <em v-if="this.layout.showI18n && !!(this.$t('Permission_' + menu.code + '_SubName') || '').trim()">{{ this.$t('Permission_' + menu.code + '_SubName') }}</em>
20
- <em v-if="!this.layout.showI18n && !!(menu.subtitle || '').trim()">{{ menu.subTitle }}</em>
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" style="display: inline-block; margin-left: 4px; margin-right: 4px">
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
@@ -161,7 +161,7 @@ const Setting = {
161
161
  * */
162
162
  waterMark: {
163
163
  // 是否显示
164
- show: true,
164
+ show: false,
165
165
  // 初始显示文案,可以通过 vuex 随时更新
166
166
  text: 'MOOHO',
167
167
  // 水印配置
@@ -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;