mooho-base-admin-plus 0.4.57 → 0.4.59

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/setting.js CHANGED
@@ -19,7 +19,7 @@ window.setting = {
19
19
  // 是否根据操作系统缩放比例,自动调整比例
20
20
  autoFixRatio: true,
21
21
  // 是否显示多语言
22
- showI18n: true,
22
+ showI18n: false,
23
23
  // 是否显示通知
24
24
  showNotice: true,
25
25
  // 是否开启多 Tabs 页签
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.57",
4
+ "version": "0.4.59",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
package/public/setting.js CHANGED
@@ -19,7 +19,7 @@ window.setting = {
19
19
  // 是否根据操作系统缩放比例,自动调整比例
20
20
  autoFixRatio: true,
21
21
  // 是否显示多语言
22
- showI18n: true,
22
+ showI18n: false,
23
23
  // 是否显示通知
24
24
  showNotice: true,
25
25
  // 是否开启多 Tabs 页签
@@ -63,8 +63,6 @@
63
63
  let objProperty = groupColumn.property.substr(0, groupColumn.property.length - 2);
64
64
  let node = findNode(nodes, objColumnExp);
65
65
 
66
- console.log('xxx', objColumnExp, objProperty);
67
-
68
66
  if (node != null) {
69
67
  // 找到外键节点
70
68
  results.push({
@@ -193,8 +191,6 @@
193
191
  title: groupMethod.aggregateType + (groupMethod.aggregateType == 'Count' ? '' : ' - ' + groupMethod.columnExp) + ' (' + groupMethod.property + ')'
194
192
  // children: convertList(item.columns, columns, isGroupBy, groupColumns)
195
193
  });
196
-
197
- console.log('aaa', this.data);
198
194
  });
199
195
  } else {
200
196
  // 数据源
@@ -431,7 +431,7 @@
431
431
  option.series = chartSeries.map((item, index) => {
432
432
  return {
433
433
  type: 'pie',
434
- radius: (this.setting.chartItemWidth == null ? 70 : this.setting.chartItemWidth) + 100 / count,
434
+ radius: (this.setting.chartItemWidth == null ? 70 : this.setting.chartItemWidth) / count,
435
435
  center: [(100 / (count + 1)) * (index + 1) + '%', '50%'],
436
436
  datasetIndex: index,
437
437
  data: this.data.map(data => {
package/src/index.js CHANGED
@@ -167,7 +167,6 @@ let isFirstRouteChange = true;
167
167
  const created = async app => {
168
168
  // 加载多语言
169
169
  await store.dispatch('admin/i18n/load', app);
170
-
171
170
  // 初始化动态路由
172
171
  //let dynamicRoutes = await dynamicRouter.init(router, pages, layout);
173
172
  // 处理路由 得到每一级的路由设置
@@ -10,7 +10,7 @@
10
10
  :class="{
11
11
  'i-layout-menu-side-title-text-selected': selected,
12
12
  'i-layout-menu-side-title-text-with-subtitle':
13
- (layout.showI18n && !!($t('Permission_' + menu.code + '_SubName') || '').trim()) || (!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"
@@ -14,7 +14,7 @@
14
14
  </template>
15
15
  <div class="ivu-ml-8 ivu-mr-8">
16
16
  <view-form v-if="!isCustom" ref="form" :readonly="readonly"></view-form>
17
- <component v-if="isCustom" ref="customComponent" :is="customComponent" :readonly="readonly"></component>
17
+ <component v-if="isCustom" ref="customComponent" :is="customComponent" :readonly="readonly" @on-ready="customComponentReady"></component>
18
18
  </div>
19
19
  <template #footer>
20
20
  <div>
@@ -142,11 +142,11 @@
142
142
  this.form.clearValidate();
143
143
  this.readonly = !this.task.activityInst.activity.isEditable;
144
144
 
145
- if (this.form.formView) {
146
- this.width = this.form.formView.width || '800';
147
- this.name = this.form.formView.name;
148
- this.description = this.form.formView.description;
149
- }
145
+ // if (this.form.formView) {
146
+ // this.width = this.form.formView.width || '800';
147
+ // this.name = this.form.formView.name;
148
+ // this.description = this.form.formView.description;
149
+ // }
150
150
 
151
151
  this.opened = true;
152
152
  });
@@ -192,11 +192,11 @@
192
192
  this.form.clearValidate();
193
193
  this.readonly = !this.task.activityInst.activity.isEditable;
194
194
 
195
- if (this.form.formView) {
196
- this.width = this.form.formView.width || '800';
197
- this.name = this.form.formView.name;
198
- this.description = this.form.formView.description;
199
- }
195
+ // if (this.form.formView) {
196
+ // this.width = this.form.formView.width || '800';
197
+ // this.name = this.form.formView.name;
198
+ // this.description = this.form.formView.description;
199
+ // }
200
200
 
201
201
  this.opened = true;
202
202
  });
@@ -230,6 +230,12 @@
230
230
  this.outcomes = res.data;
231
231
  });
232
232
  },
233
+ // 自定义组件就绪
234
+ customComponentReady(formView) {
235
+ this.width = formView.width || '800';
236
+ this.name = formView.name;
237
+ this.description = formView.description;
238
+ },
233
239
  // 执行结果
234
240
  async action(outcome) {
235
241
  let isOK = await this.form.validate();
@@ -49,7 +49,7 @@ function convertMenu(source) {
49
49
  path: reg.test(item.url) ? item.url : '/' + item.url.split('?')[0],
50
50
  code: item.url,
51
51
  title: item.name,
52
- subtitle: item.subName,
52
+ subTitle: item.subName,
53
53
  target: item.isNewWindow ? '_blank' : null,
54
54
  header: 'home',
55
55
  custom: item.icon,