vue2-client 1.8.290 → 1.8.291

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,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.290",
3
+ "version": "1.8.291",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -39,9 +39,10 @@
39
39
  :title="item.name"
40
40
  :getPopupContainer=" triggerNode => { return triggerNode.parentElement } "
41
41
  >
42
- {{ item.name.length > 8 ?`${item.name.slice(0, 8)}...`:item.name }}
42
+ {{ item?.name?.length > 8 ? `${item.name.slice(0, 8)}...` : item.name }}
43
43
  </a-tooltip>
44
44
  </a-checkable-tag>
45
+ <a-empty v-if="tagData[view.value].length === 0" :img="Empty.PRESENTED_IMAGE_SIMPLE"></a-empty>
45
46
  </a-tab-pane>
46
47
  </a-tabs>
47
48
  </div>
@@ -53,6 +54,7 @@
53
54
  import { mapState } from 'vuex'
54
55
  import { runLogic } from '@vue2-client/services/api/common'
55
56
  import { handleTree } from '@vue2-client/utils/util'
57
+ import { Empty } from 'ant-design-vue'
56
58
 
57
59
  const viewArr = [
58
60
  {
@@ -76,6 +78,7 @@ export default {
76
78
  name: 'CitySelect',
77
79
  data () {
78
80
  return {
81
+ Empty,
79
82
  open: false,
80
83
  tagData: {
81
84
  divisionsForTree: [],
@@ -110,21 +113,12 @@ export default {
110
113
  }
111
114
  },
112
115
  async mounted () {
113
- await this.$appdata.getDivisionsOhChinaForTree().then(res => {
114
- if (res) {
115
- this.tagData.divisionsForTree = res
116
- if (this.value) {
117
- this.setValue(this.value, res)
118
- }
119
- } else {
120
- runLogic('getOperatingAreas', {
121
- orgId: this.currUser.orgid
122
- }, 'af-revenue').then(res => {
123
- this.tagData.divisionsForTree = handleTree(res, 'code', 'parentcode')
124
- if (this.value) {
125
- this.setValue(this.value, res)
126
- }
127
- })
116
+ runLogic('getOperatingAreas', {
117
+ orgId: this.currUser.orgid
118
+ }, 'af-revenue').then(res => {
119
+ this.tagData.divisionsForTree = handleTree(res, 'code', 'parentcode')
120
+ if (this.value) {
121
+ this.setValue(this.value, res)
128
122
  }
129
123
  })
130
124
  },
@@ -11,6 +11,7 @@
11
11
  </a-col>
12
12
  <a-col :span="xTreeConfigName ? 18 : 24" :style="{ flex: xTreeConfigName ? '1' : 'none' }">
13
13
  <a-skeleton :loading="loading" :paragraph="{ rows: 4 }"/>
14
+ <a-row style="height: 12px" v-if="xTreeConfigName"></a-row>
14
15
  <div v-show="!loading">
15
16
  <template v-if="!loadError">
16
17
  <x-add-form