vue2-client 1.8.289 → 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 +1 -1
- package/src/base-client/components/common/CitySelect/CitySelect.vue +10 -16
- package/src/base-client/components/common/Upload/Upload.vue +12 -3
- package/src/base-client/components/common/XForm/XForm.vue +5 -0
- package/src/base-client/components/common/XFormTable/XFormTable.vue +2 -1
- package/src/base-client/components/common/XTable/XTable.vue +2 -2
package/package.json
CHANGED
|
@@ -39,9 +39,10 @@
|
|
|
39
39
|
:title="item.name"
|
|
40
40
|
:getPopupContainer=" triggerNode => { return triggerNode.parentElement } "
|
|
41
41
|
>
|
|
42
|
-
{{ item
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
},
|
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
v-if="uploadStyle === 'simple'"
|
|
5
5
|
:accept="model.accept?.join('')"
|
|
6
6
|
:customRequest="uploadFiles"
|
|
7
|
+
:multiple="model.acceptCount && model.acceptCount>1"
|
|
7
8
|
:file-list="uploadedFileList"
|
|
8
9
|
:remove="deleteFileItem">
|
|
9
|
-
<a-button style="margin-top: 2%">
|
|
10
|
+
<a-button style="margin-top: 2%">
|
|
11
|
+
<a-icon type="upload"/>
|
|
12
|
+
上传
|
|
13
|
+
</a-button>
|
|
10
14
|
</a-upload>
|
|
11
15
|
<a-upload-dragger
|
|
12
16
|
v-else-if="model.type === 'file'"
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
<a-upload
|
|
30
34
|
v-else
|
|
31
35
|
:accept="model.accept?.join('')"
|
|
36
|
+
:multiple="model.acceptCount && model.acceptCount>1"
|
|
32
37
|
:customRequest="uploadFiles"
|
|
33
38
|
:file-list="uploadedFileList"
|
|
34
39
|
:remove="deleteFileItem"
|
|
@@ -198,11 +203,15 @@ export default {
|
|
|
198
203
|
switch (that.compatible) {
|
|
199
204
|
case 'V3':
|
|
200
205
|
fileDelete({ id: file.id, f_state: '删除' })
|
|
201
|
-
.then(res => {
|
|
206
|
+
.then(res => {
|
|
207
|
+
}).catch(e => {
|
|
208
|
+
})
|
|
202
209
|
break
|
|
203
210
|
case 'V4':
|
|
204
211
|
fileDeleteV4({ id: file.id, resDeleteMode: 'server' })
|
|
205
|
-
.then(res => {
|
|
212
|
+
.then(res => {
|
|
213
|
+
}).catch(e => {
|
|
214
|
+
})
|
|
206
215
|
break
|
|
207
216
|
}
|
|
208
217
|
}
|
|
@@ -280,5 +280,10 @@ export default {
|
|
|
280
280
|
<style lang="less" scoped>
|
|
281
281
|
:deep(.ant-form-inline .ant-form-item) {
|
|
282
282
|
margin-right: 0px;
|
|
283
|
+
margin-top: 0px;
|
|
284
|
+
margin-bottom: 12px;
|
|
285
|
+
}
|
|
286
|
+
:deep(.table-page-search-wrapper .table-page-search-submitButtons) {
|
|
287
|
+
margin-top: 0px;
|
|
283
288
|
}
|
|
284
289
|
</style>
|
|
@@ -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
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
</template>
|
|
60
61
|
<template slot="rightBtnExpand" slot-scope="{selectedRowKeys, selectedRows}">
|
|
61
62
|
<slot name="rightBtnExpand" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
62
|
-
<a-tooltip title="收起查询条件">
|
|
63
|
+
<a-tooltip title="收起查询条件" placement="bottom">
|
|
63
64
|
<a-button @click="toggleIsFormShow">
|
|
64
65
|
<a-icon :style="iconStyle" :type="toggleIsFormIcon"/>
|
|
65
66
|
</a-button>
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
<span :style="{ float: 'right', overflow: 'hidden', marginBottom: '8px' }">
|
|
42
42
|
<a-button-group>
|
|
43
43
|
<slot name="rightBtnExpand" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
44
|
-
<a-tooltip title="重新查询">
|
|
44
|
+
<a-tooltip title="重新查询" placement="bottom">
|
|
45
45
|
<a-button @click="refresh(true)">
|
|
46
46
|
<a-icon :style="iconStyle" type="reload"/>
|
|
47
47
|
</a-button>
|
|
48
48
|
</a-tooltip>
|
|
49
|
-
<a-tooltip title="列展示/排序">
|
|
49
|
+
<a-tooltip title="列展示/排序" placement="bottom">
|
|
50
50
|
<table-setting v-if="columnSelectLoaded" v-model="tableColumns"/>
|
|
51
51
|
</a-tooltip>
|
|
52
52
|
</a-button-group>
|