vue2-client 1.8.343 → 1.8.346
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 +1 -1
- package/src/base-client/components/common/XForm/XForm.vue +3 -0
- package/src/base-client/components/common/XFormTable/XFormTable.vue +1 -0
- package/src/base-client/components/common/XTable/XTable.vue +15 -1
- package/src/base-client/components/common/XTree/XTreePro.vue +12 -6
- package/vue.config.js +1 -1
- package/src/base-client/components/common/XTree/testData.js +0 -44401
package/package.json
CHANGED
|
@@ -292,7 +292,8 @@ export default {
|
|
|
292
292
|
// 汇总抽屉是否显示
|
|
293
293
|
summaryDrawerVisible: false,
|
|
294
294
|
// 汇总更新标志
|
|
295
|
-
summaryUpdate: false
|
|
295
|
+
summaryUpdate: false,
|
|
296
|
+
formItems: []
|
|
296
297
|
}
|
|
297
298
|
},
|
|
298
299
|
props: {
|
|
@@ -403,8 +404,10 @@ export default {
|
|
|
403
404
|
serviceName,
|
|
404
405
|
tableSummaryMap = {},
|
|
405
406
|
viewMode,
|
|
407
|
+
formItems,
|
|
406
408
|
env = 'prod'
|
|
407
409
|
} = params
|
|
410
|
+
this.formItems = formItems
|
|
408
411
|
this.showSummary = Object.keys(tableSummaryMap).length > 0
|
|
409
412
|
this.queryParams = queryParams
|
|
410
413
|
this.tableColumns = JSON.parse(JSON.stringify(tableColumns))
|
|
@@ -564,6 +567,12 @@ export default {
|
|
|
564
567
|
* 获取主键列名称
|
|
565
568
|
*/
|
|
566
569
|
getPrimaryKeyName () {
|
|
570
|
+
if (this.formItems && this.formItems.length) {
|
|
571
|
+
const primaryKeyData = this.formItems.filter(item => item.silencePurpose === 'primaryKey')
|
|
572
|
+
if (primaryKeyData.length) {
|
|
573
|
+
return primaryKeyData[0].model
|
|
574
|
+
}
|
|
575
|
+
}
|
|
567
576
|
return this.tableColumns[0].dataIndex
|
|
568
577
|
},
|
|
569
578
|
// 导出选中或本页数据
|
|
@@ -680,6 +689,11 @@ export default {
|
|
|
680
689
|
this.selectId = id
|
|
681
690
|
}
|
|
682
691
|
const primaryKeyName = this.getPrimaryKeyName()
|
|
692
|
+
|
|
693
|
+
if (this.tableColumns[0].dataIndex !== primaryKeyName) {
|
|
694
|
+
this.selectId = this.selectedRows[0][primaryKeyName]
|
|
695
|
+
}
|
|
696
|
+
|
|
683
697
|
requestParameters.conditionParams[primaryKeyName] = this.selectId
|
|
684
698
|
requestParameters.f_businessid = this.selectId
|
|
685
699
|
if (this.isTableTemp) {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
ref="veTree"
|
|
42
42
|
node-key="value"
|
|
43
43
|
:height="heightStore[1]"
|
|
44
|
-
show-checkbox
|
|
45
|
-
:data="
|
|
44
|
+
:show-checkbox="config.checkable"
|
|
45
|
+
:data="localTreeData"
|
|
46
46
|
:item-size="40"
|
|
47
47
|
:auto-expand-parent="true"
|
|
48
48
|
@check-change="handleCheckChange"
|
|
@@ -112,6 +112,7 @@ export default {
|
|
|
112
112
|
label: 'label',
|
|
113
113
|
children: 'children'
|
|
114
114
|
},
|
|
115
|
+
localTreeData: this.treeData,
|
|
115
116
|
config: {},
|
|
116
117
|
// 暂存选中的数据
|
|
117
118
|
expandedKeys: [],
|
|
@@ -132,16 +133,21 @@ export default {
|
|
|
132
133
|
// 选了但没有全选
|
|
133
134
|
indeterminate: false,
|
|
134
135
|
// 暂存查询信息
|
|
135
|
-
searchInfo:
|
|
136
|
+
searchInfo: {},
|
|
136
137
|
searchInput: ''
|
|
137
138
|
}
|
|
138
139
|
},
|
|
139
140
|
components: {
|
|
140
141
|
VueEasyTree
|
|
141
142
|
},
|
|
143
|
+
watch: {
|
|
144
|
+
treeData (newVal) {
|
|
145
|
+
this.localTreeData = newVal
|
|
146
|
+
}
|
|
147
|
+
},
|
|
142
148
|
created () {
|
|
143
149
|
if (this.configName) {
|
|
144
|
-
getConfigByNameAsync(this.configName
|
|
150
|
+
getConfigByNameAsync(this.configName).then(
|
|
145
151
|
(x) => {
|
|
146
152
|
Object.assign(this.config, x)
|
|
147
153
|
Object.assign(this.replaceFields, x.replaceFields)
|
|
@@ -265,8 +271,8 @@ export default {
|
|
|
265
271
|
userId: this.currUser.id,
|
|
266
272
|
depId: this.currUser.f_department_id
|
|
267
273
|
}), this.config.serviceName, this.env === 'dev').then(res => {
|
|
268
|
-
this.
|
|
269
|
-
this.deepestNodes = this.getDeepestNodes(this.
|
|
274
|
+
this.localTreeData = res
|
|
275
|
+
this.deepestNodes = this.getDeepestNodes(this.localTreeData)
|
|
270
276
|
this.spinning = false
|
|
271
277
|
}).catch(e => {
|
|
272
278
|
console.error('获取数据失败:' + e)
|
package/vue.config.js
CHANGED
|
@@ -15,7 +15,7 @@ const v3Server = 'http://121.36.106.17:8400'
|
|
|
15
15
|
const gateway = 'http://192.168.50.67:31467'
|
|
16
16
|
const testUpload = 'http://123.60.214.109:8406'
|
|
17
17
|
const OSSServerDev = 'http://192.168.50.67:30351'
|
|
18
|
-
const revenue = 'http://192.168.50.67:
|
|
18
|
+
const revenue = 'http://192.168.50.67:31467'
|
|
19
19
|
// const OSSServerProd = 'http://192.168.50.67:31351'
|
|
20
20
|
// const testUploadLocal = 'http://127.0.0.1:9001'
|
|
21
21
|
// v3 铜川
|