vue2-client 1.22.23 → 1.22.25

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.
@@ -1,8 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="com.codeverse.userSettings.MarscodeWorkspaceAppSettingsState">
4
- <option name="chatAppRouterInfo" value="chat" />
5
- <option name="ckgOperationStatus" value="SUCCESS" />
6
- <option name="progress" value="1.0" />
4
+ <option name="chatAppRouterInfo" value="chat-session" />
7
5
  </component>
8
6
  </project>
package/.idea/misc.xml CHANGED
@@ -1,88 +1,6 @@
1
- <project version="4">
2
- <component name="ProjectInspectionProfilesVisibleTreeState">
3
- <entry key="Project Default">
4
- <profile-state>
5
- <expanded-state>
6
- <State>
7
- <id>EditorConfig</id>
8
- </State>
9
- <State>
10
- <id>Gradle</id>
11
- </State>
12
- <State>
13
- <id>Java</id>
14
- </State>
15
- <State>
16
- <id>Java 21Java 语言级别迁移帮助Java</id>
17
- </State>
18
- <State>
19
- <id>Java 5Java 语言级别迁移帮助Java</id>
20
- </State>
21
- <State>
22
- <id>Java 语言级别迁移帮助Java</id>
23
- </State>
24
- <State>
25
- <id>JavaScript 和 TypeScript</id>
26
- </State>
27
- <State>
28
- <id>PostCSS</id>
29
- </State>
30
- <State>
31
- <id>代码样式问题Java</id>
32
- </State>
33
- <State>
34
- <id>代码样式问题JavaScript 和 TypeScript</id>
35
- </State>
36
- <State>
37
- <id>可能的 bugGradle</id>
38
- </State>
39
- <State>
40
- <id>可能的 bugJava</id>
41
- </State>
42
- <State>
43
- <id>声明冗余Java</id>
44
- </State>
45
- <State>
46
- <id>安全性</id>
47
- </State>
48
- <State>
49
- <id>安全性Java</id>
50
- </State>
51
- <State>
52
- <id>性能Java</id>
53
- </State>
54
- <State>
55
- <id>抽象问题Java</id>
56
- </State>
57
- <State>
58
- <id>控制流问题Java</id>
59
- </State>
60
- <State>
61
- <id>最佳做法Gradle</id>
62
- </State>
63
- <State>
64
- <id>有效性问题Gradle</id>
65
- </State>
66
- <State>
67
- <id>样式Gradle</id>
68
- </State>
69
- <State>
70
- <id>测试框架Java</id>
71
- </State>
72
- <State>
73
- <id>线程问题Java</id>
74
- </State>
75
- <State>
76
- <id>详细或冗余的代码结构Java</id>
77
- </State>
78
- <State>
79
- <id>资源管理Java</id>
80
- </State>
81
- </expanded-state>
82
- </profile-state>
83
- </entry>
84
- </component>
85
- <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK">
86
- <output url="file://$PROJECT_DIR$/out" />
87
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_22" default="true" project-jdk-name="22" project-jdk-type="JavaSDK">
4
+ <output url="file://$PROJECT_DIR$/out" />
5
+ </component>
88
6
  </project>
package/.idea/vcs.xml CHANGED
@@ -1,6 +1,6 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
6
  </project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.22.23",
3
+ "version": "1.22.25",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -22,44 +22,46 @@
22
22
  @focus="handleFocus"
23
23
  :style="inputStyle">
24
24
  <div slot="dropdownRender">
25
- <a-tabs
26
- v-model="activeKey"
27
- :size="size"
28
- @mousedown="handleTabMousedown"
29
- >
30
- <a-tab-pane
31
- :tab="view.key"
32
- v-for="(view,index) in viewArr"
33
- :key="view.key"
34
- v-if="contexts > index"
35
- :disabled="tagData[view.value].length === 0">
36
- <a-input
37
- v-model="searchKeyword[index]"
38
- placeholder="搜索"
39
- class="search-input"
40
- style="margin-bottom: 10px; width: 100%;"
41
- />
42
- <a-checkable-tag
43
- :style="tagStyle"
44
- v-for="item of filteredTags(view.value, index)"
45
- :key="item.code"
46
- @change="tagClick(view.key, item)"
47
- >
48
- <a-tooltip
49
- placement="top"
50
- :mouseEnterDelay="0.5"
51
- :title="item.name"
52
- :getPopupContainer=" triggerNode => { return triggerNode.parentElement } "
25
+ <a-spin :spinning="loading" tip="加载中...">
26
+ <a-tabs
27
+ v-model="activeKey"
28
+ :size="size"
29
+ @mousedown="handleTabMousedown"
30
+ >
31
+ <a-tab-pane
32
+ :tab="view.key"
33
+ v-for="(view,index) in viewArr"
34
+ :key="view.key"
35
+ v-if="contexts > index"
36
+ :disabled="tagData[view.value].length === 0">
37
+ <a-input
38
+ v-model="searchKeyword[index]"
39
+ placeholder="搜索"
40
+ class="search-input"
41
+ style="margin-bottom: 10px; width: 100%;"
42
+ />
43
+ <a-checkable-tag
44
+ :style="tagStyle"
45
+ v-for="item of filteredTags(view.value, index)"
46
+ :key="item.code"
47
+ @change="tagClick(view.key, item)"
53
48
  >
54
- {{ item?.name?.length > 8 ? `${item.name.slice(0, 8)}...` : item.name }}
55
- </a-tooltip>
56
- </a-checkable-tag>
57
- <a-empty v-if="tagData[view.value].length === 0" :img="Empty.PRESENTED_IMAGE_SIMPLE"></a-empty>
58
- </a-tab-pane>
59
- <a-button slot="tabBarExtraContent" @click="back">
60
- 收起
61
- </a-button>
62
- </a-tabs>
49
+ <a-tooltip
50
+ placement="top"
51
+ :mouseEnterDelay="0.5"
52
+ :title="item.name"
53
+ :getPopupContainer=" triggerNode => { return triggerNode.parentElement } "
54
+ >
55
+ {{ item?.name?.length > 8 ? `${item.name.slice(0, 8)}...` : item.name }}
56
+ </a-tooltip>
57
+ </a-checkable-tag>
58
+ <a-empty v-if="tagData[view.value].length === 0" :img="Empty.PRESENTED_IMAGE_SIMPLE"></a-empty>
59
+ </a-tab-pane>
60
+ <a-button slot="tabBarExtraContent" @click="back">
61
+ 收起
62
+ </a-button>
63
+ </a-tabs>
64
+ </a-spin>
63
65
  </div>
64
66
  </a-select>
65
67
  </div>
@@ -95,6 +97,7 @@ export default {
95
97
  return {
96
98
  Empty,
97
99
  open: false,
100
+ loading: false,
98
101
  tagData: {
99
102
  divisionsForTree: [],
100
103
  // 市
@@ -131,6 +134,7 @@ export default {
131
134
  }
132
135
  },
133
136
  async mounted () {
137
+ this.loading = true
134
138
  runLogic('getOperatingAreas', {
135
139
  orgId: this.currUser.orgid
136
140
  }, 'af-revenue').then(res => {
@@ -138,6 +142,8 @@ export default {
138
142
  if (this.value) {
139
143
  this.setValue(this.value, res)
140
144
  }
145
+ }).finally(() => {
146
+ this.loading = false
141
147
  })
142
148
  },
143
149
  model: {
@@ -287,9 +293,42 @@ export default {
287
293
  parent = findParent(parent.code, tree)
288
294
  }
289
295
  }
296
+ // 设置下级数据,确保可以正常选择
297
+ if (this.model[0].code) {
298
+ const provinceNode = findNode(this.model[0].code, tree)
299
+ this.tagData.cityData = provinceNode ? provinceNode.children || [] : []
300
+ }
301
+ if (this.model[1].code) {
302
+ const cityNode = findNode(this.model[1].code, tree)
303
+ this.tagData.areaData = cityNode ? cityNode.children || [] : []
304
+ }
305
+ if (this.model[2].code) {
306
+ const areaNode = findNode(this.model[2].code, tree)
307
+ this.tagData.streetData = areaNode ? areaNode.children || [] : []
308
+ }
309
+ if (this.model[3].code) {
310
+ const streetNode = findNode(this.model[3].code, tree)
311
+ this.tagData.communityData = streetNode ? streetNode.children || [] : []
312
+ }
290
313
  this.getResultText(this.contexts)
291
314
  }
292
315
  },
316
+ resetState () {
317
+ this.tagData.cityData = []
318
+ this.tagData.areaData = []
319
+ this.tagData.streetData = []
320
+ this.tagData.communityData = []
321
+ this.model = [
322
+ { name: '', code: '' },
323
+ { name: '', code: '' },
324
+ { name: '', code: '' },
325
+ { name: '', code: '' },
326
+ { name: '', code: '' }
327
+ ]
328
+ this.activeKey = '省/直辖市'
329
+ this.valueView = undefined
330
+ this.searchKeyword = ['', '', '', '', '']
331
+ },
293
332
  tagClick (e, item) {
294
333
  if (e === '省/直辖市') {
295
334
  // 如果是同一个标签
@@ -267,6 +267,8 @@ export default {
267
267
  let value = res.result
268
268
  if (this.tableContext.compatible === 'V4' && (Object.keys(res).length === 1 && Object.prototype.hasOwnProperty.call(res, 'value'))) {
269
269
  value = res.value
270
+ } else if (this.tableContext.compatible === 'V3') {
271
+ value = res?.includes('resource') ? res : `/resource/${process.env.VUE_APP_SYSTEM_NAME}/excel/${res}`
270
272
  }
271
273
  this.confirmLoading = false
272
274
  window.open(value)
package/.idea/.name DELETED
@@ -1 +0,0 @@
1
- af-vue2-client
package/.idea/gradle.xml DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="GradleMigrationSettings" migrationVersion="1" />
4
- <component name="GradleSettings">
5
- <option name="parallelModelFetch" value="true" />
6
- </component>
7
- </project>
@@ -1,9 +0,0 @@
1
- <component name="libraryTable">
2
- <library name="contour_plot">
3
- <CLASSES>
4
- <root url="jar://$PROJECT_DIR$/node_modules/contour_plot/build/contour_plot.zip!/" />
5
- </CLASSES>
6
- <JAVADOC />
7
- <SOURCES />
8
- </library>
9
- </component>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="MaterialThemeProjectNewConfig">
4
- <option name="metadata">
5
- <MTProjectMetadataState>
6
- <option name="migrated" value="true" />
7
- <option name="pristineConfig" value="false" />
8
- <option name="userId" value="-1f970a2c:17cde818e34:-8000" />
9
- <option name="version" value="8.6.4" />
10
- </MTProjectMetadataState>
11
- </option>
12
- <option name="titleBarState">
13
- <MTProjectTitleBarConfigState>
14
- <option name="overrideColor" value="false" />
15
- </MTProjectTitleBarConfigState>
16
- </option>
17
- </component>
18
- </project>