vue2-client 1.13.26 → 1.13.28
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 +107 -107
- package/src/base-client/components/common/XDescriptions/XDescriptions.vue +174 -174
- package/src/base-client/components/common/XDescriptions/XDescriptionsGroup.vue +314 -314
- package/src/base-client/components/common/XFormTable/XFormTable.vue +874 -874
- package/src/base-client/components/common/XFormTable/demo.vue +1 -1
- package/src/base-client/components/common/XReportGrid/XReport.vue +1 -1
- package/src/base-client/components/common/XReportGrid/XReportDemo.vue +44 -44
- package/src/base-client/components/common/XSimpleDescriptions/XSimpleDescriptions.vue +166 -166
- package/src/base-client/components/common/XTable/XTable.vue +19 -1
- package/src/base-client/components/common/XTable/XTableWrapper.vue +144 -7
- package/src/base-client/components/his/XSelect/XSelect.vue +72 -72
- package/src/base-client/components/his/XTimeSelect/XTimeSelect.vue +131 -131
- package/src/base-client/components/his/XTitle/XTitle.vue +62 -62
- package/src/base-client/components/layout/XPageView/XPageView.vue +155 -155
- package/src/base-client/plugins/AppData.js +126 -126
- package/src/config/CreateQueryConfig.js +325 -325
- package/src/pages/AMisDemo/AMisDemo2.vue +74 -91
- package/src/pages/ReportGrid/index.vue +76 -76
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +875 -876
- package/src/pages/XTreeOneProExample/index.vue +67 -67
- package/src/router/async/router.map.js +119 -127
- package/src/base-client/components/common/XCollapse/XCollapseDemo.vue +0 -15
- package/vue2-client.iml +0 -9
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<a-select
|
|
4
|
-
v-model="selectedValue"
|
|
5
|
-
:placeholder="placeholder"
|
|
6
|
-
class="x-select"
|
|
7
|
-
:allowClear="true"
|
|
8
|
-
:showSearch="true"
|
|
9
|
-
:filter-option="filterOption"
|
|
10
|
-
@change="handleChange"
|
|
11
|
-
>
|
|
12
|
-
<a-select-option v-for="(item, index) in data" :key="index" :value="item.value">
|
|
13
|
-
{{ item.label }}
|
|
14
|
-
</a-select-option>
|
|
15
|
-
</a-select>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script>
|
|
20
|
-
import { runLogic } from '@vue2-client/services/api/common'
|
|
21
|
-
|
|
22
|
-
export default {
|
|
23
|
-
name: 'XSelect',
|
|
24
|
-
props: {
|
|
25
|
-
queryParamsName: {
|
|
26
|
-
type: Object,
|
|
27
|
-
default: null
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
data () {
|
|
31
|
-
return {
|
|
32
|
-
data: [],
|
|
33
|
-
selectedValue: undefined,
|
|
34
|
-
placeholder: ''
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
created () {
|
|
38
|
-
this.getData(this.queryParamsName)
|
|
39
|
-
},
|
|
40
|
-
methods: {
|
|
41
|
-
async getData (config) {
|
|
42
|
-
try {
|
|
43
|
-
const res = await runLogic(config, {}, 'af-his')
|
|
44
|
-
this.data = res.data || []
|
|
45
|
-
if (res.placeholder) {
|
|
46
|
-
this.placeholder = res.placeholder
|
|
47
|
-
}
|
|
48
|
-
this.selectedValue = undefined
|
|
49
|
-
} catch (error) {
|
|
50
|
-
console.error('获取数据失败:', error)
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
handleChange (value) {
|
|
54
|
-
this.selectedValue = value === '' ? undefined : value
|
|
55
|
-
this.$emit('change', this.selectedValue)
|
|
56
|
-
},
|
|
57
|
-
filterOption (input, option) {
|
|
58
|
-
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
watch: {
|
|
62
|
-
selectedValue (val) {
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
</script>
|
|
67
|
-
|
|
68
|
-
<style scoped>
|
|
69
|
-
.x-select {
|
|
70
|
-
min-width: 150px;
|
|
71
|
-
}
|
|
72
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<a-select
|
|
4
|
+
v-model="selectedValue"
|
|
5
|
+
:placeholder="placeholder"
|
|
6
|
+
class="x-select"
|
|
7
|
+
:allowClear="true"
|
|
8
|
+
:showSearch="true"
|
|
9
|
+
:filter-option="filterOption"
|
|
10
|
+
@change="handleChange"
|
|
11
|
+
>
|
|
12
|
+
<a-select-option v-for="(item, index) in data" :key="index" :value="item.value">
|
|
13
|
+
{{ item.label }}
|
|
14
|
+
</a-select-option>
|
|
15
|
+
</a-select>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
import { runLogic } from '@vue2-client/services/api/common'
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
name: 'XSelect',
|
|
24
|
+
props: {
|
|
25
|
+
queryParamsName: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: null
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
data () {
|
|
31
|
+
return {
|
|
32
|
+
data: [],
|
|
33
|
+
selectedValue: undefined,
|
|
34
|
+
placeholder: ''
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
created () {
|
|
38
|
+
this.getData(this.queryParamsName)
|
|
39
|
+
},
|
|
40
|
+
methods: {
|
|
41
|
+
async getData (config) {
|
|
42
|
+
try {
|
|
43
|
+
const res = await runLogic(config, {}, 'af-his')
|
|
44
|
+
this.data = res.data || []
|
|
45
|
+
if (res.placeholder) {
|
|
46
|
+
this.placeholder = res.placeholder
|
|
47
|
+
}
|
|
48
|
+
this.selectedValue = undefined
|
|
49
|
+
} catch (error) {
|
|
50
|
+
console.error('获取数据失败:', error)
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
handleChange (value) {
|
|
54
|
+
this.selectedValue = value === '' ? undefined : value
|
|
55
|
+
this.$emit('change', this.selectedValue)
|
|
56
|
+
},
|
|
57
|
+
filterOption (input, option) {
|
|
58
|
+
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
watch: {
|
|
62
|
+
selectedValue (val) {
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<style scoped>
|
|
69
|
+
.x-select {
|
|
70
|
+
min-width: 150px;
|
|
71
|
+
}
|
|
72
|
+
</style>
|
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="x-time-select">
|
|
3
|
-
<div class="time-select-container">
|
|
4
|
-
<span v-if="label" class="time-select-label">{{ label }}</span>
|
|
5
|
-
<div class="picker-wrapper">
|
|
6
|
-
<a-range-picker
|
|
7
|
-
:value="dateRange"
|
|
8
|
-
:placeholder="['开始日期', '结束日期']"
|
|
9
|
-
separator="至"
|
|
10
|
-
:disabled="disabled"
|
|
11
|
-
:allowClear="allowClear"
|
|
12
|
-
:format="format"
|
|
13
|
-
@change="handleDateChange"
|
|
14
|
-
/>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
import moment from 'moment'
|
|
22
|
-
|
|
23
|
-
export default {
|
|
24
|
-
name: 'XTimeSelect',
|
|
25
|
-
props: {
|
|
26
|
-
queryParamsName: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: null
|
|
29
|
-
},
|
|
30
|
-
value: {
|
|
31
|
-
type: Array,
|
|
32
|
-
default: () => []
|
|
33
|
-
},
|
|
34
|
-
disabled: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: false
|
|
37
|
-
},
|
|
38
|
-
allowClear: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: true
|
|
41
|
-
},
|
|
42
|
-
format: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: 'YYYY/MM/DD'
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
data () {
|
|
48
|
-
return {
|
|
49
|
-
dateRange: [],
|
|
50
|
-
label: ''
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
watch: {
|
|
54
|
-
value: {
|
|
55
|
-
handler (newVal) {
|
|
56
|
-
if (newVal && newVal.length === 2) {
|
|
57
|
-
this.dateRange = [
|
|
58
|
-
newVal[0] ? moment(newVal[0]) : null,
|
|
59
|
-
newVal[1] ? moment(newVal[1]) : null
|
|
60
|
-
]
|
|
61
|
-
} else {
|
|
62
|
-
this.dateRange = []
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
immediate: true,
|
|
66
|
-
deep: true
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
created () {
|
|
70
|
-
this.getData(this.queryParamsName)
|
|
71
|
-
},
|
|
72
|
-
methods: {
|
|
73
|
-
handleDateChange (dates, dateStrings) {
|
|
74
|
-
this.dateRange = dates
|
|
75
|
-
console.warn(dateStrings)
|
|
76
|
-
this.$emit('change', dateStrings)
|
|
77
|
-
},
|
|
78
|
-
getData (data) {
|
|
79
|
-
this.label = data
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
</script>
|
|
84
|
-
|
|
85
|
-
<style scoped>
|
|
86
|
-
.x-time-select {
|
|
87
|
-
position: relative;
|
|
88
|
-
width: 100%;
|
|
89
|
-
box-sizing: border-box;
|
|
90
|
-
display: block;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.time-select-container {
|
|
94
|
-
display: flex;
|
|
95
|
-
align-items: center;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.time-select-label {
|
|
99
|
-
white-space: nowrap;
|
|
100
|
-
color: rgba(0, 0, 0, 0.85);
|
|
101
|
-
padding-right: 8px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.picker-wrapper {
|
|
105
|
-
flex: 1;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.x-time-select :deep(.ant-picker-range),
|
|
109
|
-
.x-time-select :deep(.ant-picker) {
|
|
110
|
-
width: 100%;
|
|
111
|
-
height: 30px;
|
|
112
|
-
border-radius: 7px;
|
|
113
|
-
background: #FFFFFF;
|
|
114
|
-
border: 1px solid #E5E9F0;
|
|
115
|
-
}
|
|
116
|
-
.x-time-select :deep(.ant-calendar-picker) {
|
|
117
|
-
width: 100%;
|
|
118
|
-
display: block;
|
|
119
|
-
}
|
|
120
|
-
.x-time-select :deep(.ant-calendar-picker-input) {
|
|
121
|
-
width: 100%;
|
|
122
|
-
height: 30px;
|
|
123
|
-
border-radius: 7px;
|
|
124
|
-
background: #FFFFFF;
|
|
125
|
-
border: 1px solid #E5E9F0;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.x-time-select :deep(.ant-input) {
|
|
129
|
-
width: 100%;
|
|
130
|
-
}
|
|
131
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="x-time-select">
|
|
3
|
+
<div class="time-select-container">
|
|
4
|
+
<span v-if="label" class="time-select-label">{{ label }}</span>
|
|
5
|
+
<div class="picker-wrapper">
|
|
6
|
+
<a-range-picker
|
|
7
|
+
:value="dateRange"
|
|
8
|
+
:placeholder="['开始日期', '结束日期']"
|
|
9
|
+
separator="至"
|
|
10
|
+
:disabled="disabled"
|
|
11
|
+
:allowClear="allowClear"
|
|
12
|
+
:format="format"
|
|
13
|
+
@change="handleDateChange"
|
|
14
|
+
/>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
import moment from 'moment'
|
|
22
|
+
|
|
23
|
+
export default {
|
|
24
|
+
name: 'XTimeSelect',
|
|
25
|
+
props: {
|
|
26
|
+
queryParamsName: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: null
|
|
29
|
+
},
|
|
30
|
+
value: {
|
|
31
|
+
type: Array,
|
|
32
|
+
default: () => []
|
|
33
|
+
},
|
|
34
|
+
disabled: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false
|
|
37
|
+
},
|
|
38
|
+
allowClear: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: true
|
|
41
|
+
},
|
|
42
|
+
format: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: 'YYYY/MM/DD'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
data () {
|
|
48
|
+
return {
|
|
49
|
+
dateRange: [],
|
|
50
|
+
label: ''
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
watch: {
|
|
54
|
+
value: {
|
|
55
|
+
handler (newVal) {
|
|
56
|
+
if (newVal && newVal.length === 2) {
|
|
57
|
+
this.dateRange = [
|
|
58
|
+
newVal[0] ? moment(newVal[0]) : null,
|
|
59
|
+
newVal[1] ? moment(newVal[1]) : null
|
|
60
|
+
]
|
|
61
|
+
} else {
|
|
62
|
+
this.dateRange = []
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
immediate: true,
|
|
66
|
+
deep: true
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
created () {
|
|
70
|
+
this.getData(this.queryParamsName)
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
handleDateChange (dates, dateStrings) {
|
|
74
|
+
this.dateRange = dates
|
|
75
|
+
console.warn(dateStrings)
|
|
76
|
+
this.$emit('change', dateStrings)
|
|
77
|
+
},
|
|
78
|
+
getData (data) {
|
|
79
|
+
this.label = data
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<style scoped>
|
|
86
|
+
.x-time-select {
|
|
87
|
+
position: relative;
|
|
88
|
+
width: 100%;
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
display: block;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.time-select-container {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.time-select-label {
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
color: rgba(0, 0, 0, 0.85);
|
|
101
|
+
padding-right: 8px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.picker-wrapper {
|
|
105
|
+
flex: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.x-time-select :deep(.ant-picker-range),
|
|
109
|
+
.x-time-select :deep(.ant-picker) {
|
|
110
|
+
width: 100%;
|
|
111
|
+
height: 30px;
|
|
112
|
+
border-radius: 7px;
|
|
113
|
+
background: #FFFFFF;
|
|
114
|
+
border: 1px solid #E5E9F0;
|
|
115
|
+
}
|
|
116
|
+
.x-time-select :deep(.ant-calendar-picker) {
|
|
117
|
+
width: 100%;
|
|
118
|
+
display: block;
|
|
119
|
+
}
|
|
120
|
+
.x-time-select :deep(.ant-calendar-picker-input) {
|
|
121
|
+
width: 100%;
|
|
122
|
+
height: 30px;
|
|
123
|
+
border-radius: 7px;
|
|
124
|
+
background: #FFFFFF;
|
|
125
|
+
border: 1px solid #E5E9F0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.x-time-select :deep(.ant-input) {
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
</style>
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="x-title" :class="{ 'with-underline': hasUnderline, 'only-line': isOnlyLine }">
|
|
3
|
-
<span v-show="!isOnlyLine">{{ processedTitle }}</span>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: 'XTitle',
|
|
10
|
-
props: {
|
|
11
|
-
queryParamsName: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: null
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
data () {
|
|
17
|
-
return {
|
|
18
|
-
title: ''
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
computed: {
|
|
22
|
-
processedTitle () {
|
|
23
|
-
return this.title.replace('</br>', '')
|
|
24
|
-
},
|
|
25
|
-
hasUnderline () {
|
|
26
|
-
return this.title.includes('</br>')
|
|
27
|
-
},
|
|
28
|
-
isOnlyLine () {
|
|
29
|
-
return this.title === '</br>'
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
created () {
|
|
33
|
-
this.getData(this.queryParamsName)
|
|
34
|
-
},
|
|
35
|
-
methods: {
|
|
36
|
-
getData (data) {
|
|
37
|
-
this.title = data
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
</script>
|
|
42
|
-
<style scoped>
|
|
43
|
-
.x-title {
|
|
44
|
-
font-size: 18px;
|
|
45
|
-
font-weight: bold;
|
|
46
|
-
height: 26px;
|
|
47
|
-
width: 100%;
|
|
48
|
-
text-align: left;
|
|
49
|
-
font-family: "Source Han Sans", sans-serif;
|
|
50
|
-
color: #5D5C5C;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.with-underline {
|
|
54
|
-
border-bottom: 1px solid #5D5C5C;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.only-line {
|
|
58
|
-
height: 1px;
|
|
59
|
-
background-color: #5D5C5C;
|
|
60
|
-
margin: 13px 0;
|
|
61
|
-
}
|
|
62
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="x-title" :class="{ 'with-underline': hasUnderline, 'only-line': isOnlyLine }">
|
|
3
|
+
<span v-show="!isOnlyLine">{{ processedTitle }}</span>
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: 'XTitle',
|
|
10
|
+
props: {
|
|
11
|
+
queryParamsName: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: null
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
data () {
|
|
17
|
+
return {
|
|
18
|
+
title: ''
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
computed: {
|
|
22
|
+
processedTitle () {
|
|
23
|
+
return this.title.replace('</br>', '')
|
|
24
|
+
},
|
|
25
|
+
hasUnderline () {
|
|
26
|
+
return this.title.includes('</br>')
|
|
27
|
+
},
|
|
28
|
+
isOnlyLine () {
|
|
29
|
+
return this.title === '</br>'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
created () {
|
|
33
|
+
this.getData(this.queryParamsName)
|
|
34
|
+
},
|
|
35
|
+
methods: {
|
|
36
|
+
getData (data) {
|
|
37
|
+
this.title = data
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
</script>
|
|
42
|
+
<style scoped>
|
|
43
|
+
.x-title {
|
|
44
|
+
font-size: 18px;
|
|
45
|
+
font-weight: bold;
|
|
46
|
+
height: 26px;
|
|
47
|
+
width: 100%;
|
|
48
|
+
text-align: left;
|
|
49
|
+
font-family: "Source Han Sans", sans-serif;
|
|
50
|
+
color: #5D5C5C;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.with-underline {
|
|
54
|
+
border-bottom: 1px solid #5D5C5C;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.only-line {
|
|
58
|
+
height: 1px;
|
|
59
|
+
background-color: #5D5C5C;
|
|
60
|
+
margin: 13px 0;
|
|
61
|
+
}
|
|
62
|
+
</style>
|