vue2-client 1.4.18 → 1.4.20

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/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.4.18 -2022-09-28 @江超**
4
+ **1.4.20 -2022-09-28 @江超**
5
+ - 功能修改:
6
+ - `AppData`修复没有设置徽标时,字典类型数据显示异常的问题
7
+ - `XFormItem`移除综合筛选框
8
+ - `CreateQueryItem`修复一个小问题
9
+
10
+ **1.4.18 - 1.4.19 -2022-09-28 @江超**
5
11
  - 功能修改:
6
12
  - V4登录获取路由提取到后端处理
7
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.4.18",
3
+ "version": "1.4.20",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -384,7 +384,7 @@ export default {
384
384
  },
385
385
  // 作用域插槽是否禁用
386
386
  slotTypeDisabled () {
387
- return this.item.selectType === 'key' && this.item.selectKey
387
+ return this.item.selectKey && this.item.selectType === 'key'
388
388
  },
389
389
  // 字段名称是否禁用
390
390
  keyDisabled () {
@@ -1,31 +1,7 @@
1
1
  <template>
2
- <!-- 综合筛选 -->
3
- <x-form-col
4
- v-if="attr.type === 'select' && attr.model === 'rowIdValue'"
5
- :xl="xl"
6
- :xxl="xxl">
7
- <a-form-model-item
8
- :ref="attr.model"
9
- :label="attr.name"
10
- :prop="attr.model">
11
- <a-input v-model="form[attr.model]" :disabled="disabled">
12
- <a-select
13
- slot="addonBefore"
14
- v-model="form['rowIdName']"
15
- :getPopupContainer=" triggerNode => { return triggerNode.parentNode } "
16
- style="width: 100px">
17
- <a-select-option
18
- v-for="(item,index) in attr.keys"
19
- :key="index"
20
- :value="item.value">{{ item.label }}
21
- </a-select-option>
22
- </a-select>
23
- </a-input>
24
- </a-form-model-item>
25
- </x-form-col>
26
2
  <!-- 输入框 -->
27
3
  <x-form-col
28
- v-else-if="attr.type === 'input'"
4
+ v-if="attr.type === 'input'"
29
5
  :xl="xl"
30
6
  :xxl="xxl">
31
7
  <a-form-model-item
@@ -14,11 +14,15 @@ const GetAppDataService = {
14
14
  for (const key of Object.keys(params)) {
15
15
  badgeItemArray[key] = {}
16
16
  for (const item of params[key]) {
17
- if (item.status) {
18
- badgeItemArray[key][item.value] = {
19
- status: item.status,
20
- text: item.text
21
- }
17
+ let status
18
+ if (!item.status) {
19
+ status = 'none'
20
+ } else {
21
+ status = item.status
22
+ }
23
+ badgeItemArray[key][item.value] = {
24
+ status: status,
25
+ text: item.text
22
26
  }
23
27
  }
24
28
  }
@@ -240,7 +240,7 @@ export default {
240
240
  let matches = this.$route.matched
241
241
  const route = matches[matches.length - 1]
242
242
  let chose = this.routesMap[route.path]
243
- if (chose.meta && chose.meta.highlight) {
243
+ if (chose && chose.meta && chose.meta.highlight) {
244
244
  chose = this.routesMap[chose.meta.highlight]
245
245
  const resolve = this.$router.resolve({ path: chose.fullPath })
246
246
  matches = (resolve.resolved && resolve.resolved.matched) || matches