vue2-client 1.4.48 → 1.4.49
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/.env +15 -15
- package/.eslintrc.js +82 -82
- package/CHANGELOG.md +4 -1
- package/index.js +30 -30
- package/package.json +1 -1
- package/src/assets/img/querySlotDemo.svg +15 -15
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +113 -113
- package/src/base-client/components/common/CitySelect/CitySelect.vue +244 -244
- package/src/base-client/components/common/CitySelect/index.js +3 -3
- package/src/base-client/components/common/CitySelect/index.md +109 -109
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -777
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +310 -310
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
- package/src/base-client/components/common/PersonSetting/PersonSetting.vue +210 -210
- package/src/base-client/components/common/PersonSetting/index.js +3 -3
- package/src/base-client/components/common/Upload/index.js +3 -3
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +327 -327
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XForm/XForm.vue +274 -274
- package/src/base-client/components/common/XForm/XFormItem.vue +469 -469
- package/src/base-client/components/common/XFormTable/index.md +96 -96
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
- package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
- package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
- package/src/base-client/plugins/AppData.js +73 -73
- package/src/base-client/plugins/GetLoginInfoService.js +179 -179
- package/src/base-client/plugins/PagedList.js +177 -177
- package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
- package/src/base-client/plugins/i18n-extend.js +32 -32
- package/src/components/Ellipsis/index.md +38 -38
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/STable/README.md +341 -341
- package/src/components/STable/index.js +318 -318
- package/src/components/Trend/index.md +45 -45
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/checkbox/ImgCheckbox.vue +163 -163
- package/src/components/form/FormRow.vue +52 -52
- package/src/components/index.js +36 -36
- package/src/components/menu/SideMenu.vue +62 -62
- package/src/components/menu/menu.js +273 -273
- package/src/components/page/header/index.less +40 -40
- package/src/components/setting/Setting.vue +235 -235
- package/src/components/table/StandardTable.vue +141 -141
- package/src/components/table/advance/ActionColumns.vue +158 -158
- package/src/components/table/advance/SearchArea.vue +355 -355
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/components/tool/AvatarList.vue +68 -68
- package/src/components/tool/Drawer.vue +142 -142
- package/src/components/tool/TagSelect.vue +83 -83
- package/src/components/transition/PageToggleTransition.vue +97 -97
- package/src/config/CreateQueryConfig.js +310 -310
- package/src/config/default/admin.config.js +18 -18
- package/src/config/replacer/resolve.config.js +67 -67
- package/src/layouts/AdminLayout.vue +174 -174
- package/src/layouts/PageLayout.vue +151 -151
- package/src/layouts/SinglePageView.vue +105 -105
- package/src/layouts/header/AdminHeader.vue +104 -104
- package/src/layouts/header/HeaderNotice.vue +167 -167
- package/src/layouts/header/HeaderSearch.vue +67 -67
- package/src/layouts/header/InstitutionDetail.vue +181 -181
- package/src/layouts/header/index.less +92 -92
- package/src/layouts/tabs/TabsHead.vue +190 -190
- package/src/layouts/tabs/TabsView.vue +379 -379
- package/src/mock/goods/index.js +108 -108
- package/src/pages/CreateQueryPage.vue +65 -65
- package/src/pages/login/Login.vue +345 -345
- package/src/pages/report/ReportTable.js +124 -124
- package/src/pages/report/ReportTableHome.vue +28 -28
- package/src/pages/resourceManage/orgListManage.vue +98 -98
- package/src/pages/system/dictionary/index.vue +43 -43
- package/src/pages/system/file/index.vue +317 -317
- package/src/pages/system/monitor/loginInfor/index.vue +36 -36
- package/src/pages/system/monitor/operLog/index.vue +36 -36
- package/src/pages/system/queryParams/index.vue +43 -43
- package/src/router/async/config.async.js +27 -27
- package/src/router/async/router.map.js +65 -65
- package/src/router/index.js +27 -27
- package/src/services/api/DictionaryDetailsViewApi.js +6 -6
- package/src/services/api/LogDetailsViewApi.js +10 -10
- package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
- package/src/services/api/TicketDetailsViewApi.js +34 -34
- package/src/services/api/cas.js +79 -79
- package/src/services/api/commonTempTable.js +10 -10
- package/src/services/api/index.js +17 -17
- package/src/services/api/manage.js +8 -8
- package/src/services/api/restTools.js +24 -24
- package/src/services/apiService.js +13 -13
- package/src/services/user.js +53 -53
- package/src/store/modules/index.js +4 -4
- package/src/theme/default/nprogress.less +76 -76
- package/src/theme/default/style.less +47 -47
- package/src/utils/colors.js +107 -103
- package/src/utils/excel/Blob.js +180 -180
- package/src/utils/excel/Export2Excel.js +141 -141
- package/src/utils/formatter.js +68 -68
- package/src/utils/i18n.js +80 -80
- package/src/utils/theme-color-replacer-extend.js +91 -91
- package/src/utils/themeUtil.js +100 -100
- package/src/utils/util.js +230 -230
|
@@ -1,165 +1,165 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-drawer
|
|
3
|
-
:visible="visible"
|
|
4
|
-
:width="isMobile ? screenWidth : screenWidth * 0.85"
|
|
5
|
-
placement="right"
|
|
6
|
-
title="表单参数组配置"
|
|
7
|
-
@close="onClose"
|
|
8
|
-
>
|
|
9
|
-
<create-simple-form-query
|
|
10
|
-
:to-edit-json="editItem()"
|
|
11
|
-
:visible.sync="createQueryVisible"
|
|
12
|
-
@saveSimpleFormQueryParams="saveQueryParams"
|
|
13
|
-
/>
|
|
14
|
-
<a-list
|
|
15
|
-
:dataSource="columnJsonCopy()"
|
|
16
|
-
:grid="{gutter: 24, lg: 4, md: 3, sm: 1, xs: 1}"
|
|
17
|
-
>
|
|
18
|
-
<a-list-item slot="renderItem" slot-scope="item, index">
|
|
19
|
-
<template v-if="item.type">
|
|
20
|
-
<a-button class="new-btn" type="dashed" @click="toCreateQuery">
|
|
21
|
-
<a-icon type="plus" />新增参数组
|
|
22
|
-
</a-button>
|
|
23
|
-
</template>
|
|
24
|
-
<template v-else>
|
|
25
|
-
<a-card :hoverable="true">
|
|
26
|
-
<a-card-meta >
|
|
27
|
-
<div slot="title" style="margin-bottom: 3px">{{ item.group }}</div>
|
|
28
|
-
<a-icon slot="avatar" :style="{ fontSize:'2em' }" type="tags"/>
|
|
29
|
-
<div slot="description" class="meta-content">{{ item.describe }}</div>
|
|
30
|
-
</a-card-meta>
|
|
31
|
-
<a slot="actions" @click="toEditQuery(index)">编辑</a>
|
|
32
|
-
<a slot="actions" @click="toDelete(index)">删除</a>
|
|
33
|
-
</a-card>
|
|
34
|
-
</template>
|
|
35
|
-
</a-list-item>
|
|
36
|
-
</a-list>
|
|
37
|
-
</a-drawer>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script>
|
|
41
|
-
import { mapState } from 'vuex'
|
|
42
|
-
import CreateSimpleFormQuery from '@vue2-client/base-client/components/common/CreateSimpleFormQuery'
|
|
43
|
-
|
|
44
|
-
export default {
|
|
45
|
-
name: 'FormGroupQuery',
|
|
46
|
-
components: {
|
|
47
|
-
CreateSimpleFormQuery
|
|
48
|
-
},
|
|
49
|
-
data () {
|
|
50
|
-
return {
|
|
51
|
-
// 页面宽度
|
|
52
|
-
screenWidth: document.documentElement.clientWidth,
|
|
53
|
-
// 是否显示生成查询配置抽屉
|
|
54
|
-
createQueryVisible: false,
|
|
55
|
-
targetIndex: 0,
|
|
56
|
-
columnJson: {},
|
|
57
|
-
editIndex: -1
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
mounted () {
|
|
61
|
-
this.initView()
|
|
62
|
-
},
|
|
63
|
-
computed: {
|
|
64
|
-
...mapState('setting', ['isMobile'])
|
|
65
|
-
},
|
|
66
|
-
props: {
|
|
67
|
-
visible: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: false
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
watch: {
|
|
73
|
-
visible (rel) {
|
|
74
|
-
if (rel) {
|
|
75
|
-
this.initView()
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
methods: {
|
|
80
|
-
// 初始化组件
|
|
81
|
-
initView () {
|
|
82
|
-
this.editIndex = -1
|
|
83
|
-
this.$emit('getColumnJson', val => {
|
|
84
|
-
this.columnJson = val
|
|
85
|
-
})
|
|
86
|
-
},
|
|
87
|
-
toCreateQuery () {
|
|
88
|
-
this.editIndex = -1
|
|
89
|
-
this.createQueryVisible = true
|
|
90
|
-
},
|
|
91
|
-
toEditQuery (index) {
|
|
92
|
-
this.editIndex = index
|
|
93
|
-
this.createQueryVisible = true
|
|
94
|
-
},
|
|
95
|
-
toDelete (index) {
|
|
96
|
-
const _this = this
|
|
97
|
-
this.$confirm({
|
|
98
|
-
title: '您确定要删除该参数组?',
|
|
99
|
-
content: '删除的参数组无法恢复',
|
|
100
|
-
okText: '确定',
|
|
101
|
-
okType: 'danger',
|
|
102
|
-
cancelText: '取消',
|
|
103
|
-
onOk () {
|
|
104
|
-
_this.columnJson.groups.splice(index, 1)
|
|
105
|
-
_this.$emit('saveQueryParams', _this.columnJson)
|
|
106
|
-
}
|
|
107
|
-
})
|
|
108
|
-
},
|
|
109
|
-
onClose () {
|
|
110
|
-
this.$emit('update:visible', false)
|
|
111
|
-
},
|
|
112
|
-
// 存储查询配置信息
|
|
113
|
-
saveQueryParams (source) {
|
|
114
|
-
if (!this.columnJson.groups) {
|
|
115
|
-
this.columnJson.groups = []
|
|
116
|
-
}
|
|
117
|
-
if (this.editIndex !== -1) {
|
|
118
|
-
this.columnJson.groups[this.editIndex] = source
|
|
119
|
-
} else {
|
|
120
|
-
this.columnJson.groups.push(source)
|
|
121
|
-
}
|
|
122
|
-
this.$emit('saveQueryParams', this.columnJson)
|
|
123
|
-
this.createQueryVisible = false
|
|
124
|
-
},
|
|
125
|
-
columnJsonCopy () {
|
|
126
|
-
let groups
|
|
127
|
-
if (this.columnJson.groups) {
|
|
128
|
-
groups = JSON.parse(JSON.stringify(this.columnJson.groups))
|
|
129
|
-
} else {
|
|
130
|
-
groups = []
|
|
131
|
-
}
|
|
132
|
-
groups.push({ type: 'add' })
|
|
133
|
-
return groups
|
|
134
|
-
},
|
|
135
|
-
editItem () {
|
|
136
|
-
if (this.editIndex !== -1) {
|
|
137
|
-
return JSON.parse(JSON.stringify(this.columnJson.groups[this.editIndex]))
|
|
138
|
-
} else {
|
|
139
|
-
return {}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
</script>
|
|
145
|
-
<style lang="less" scoped>
|
|
146
|
-
.card-avatar {
|
|
147
|
-
width: 48px;
|
|
148
|
-
height: 48px;
|
|
149
|
-
border-radius: 48px;
|
|
150
|
-
}
|
|
151
|
-
.new-btn{
|
|
152
|
-
border-radius: 2px;
|
|
153
|
-
width: 100%;
|
|
154
|
-
height: 187px;
|
|
155
|
-
}
|
|
156
|
-
.meta-content{
|
|
157
|
-
position: relative;
|
|
158
|
-
overflow: hidden;
|
|
159
|
-
text-overflow: ellipsis;
|
|
160
|
-
display: -webkit-box;
|
|
161
|
-
height: 64px;
|
|
162
|
-
-webkit-line-clamp: 3;
|
|
163
|
-
-webkit-box-orient: vertical;
|
|
164
|
-
}
|
|
165
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<a-drawer
|
|
3
|
+
:visible="visible"
|
|
4
|
+
:width="isMobile ? screenWidth : screenWidth * 0.85"
|
|
5
|
+
placement="right"
|
|
6
|
+
title="表单参数组配置"
|
|
7
|
+
@close="onClose"
|
|
8
|
+
>
|
|
9
|
+
<create-simple-form-query
|
|
10
|
+
:to-edit-json="editItem()"
|
|
11
|
+
:visible.sync="createQueryVisible"
|
|
12
|
+
@saveSimpleFormQueryParams="saveQueryParams"
|
|
13
|
+
/>
|
|
14
|
+
<a-list
|
|
15
|
+
:dataSource="columnJsonCopy()"
|
|
16
|
+
:grid="{gutter: 24, lg: 4, md: 3, sm: 1, xs: 1}"
|
|
17
|
+
>
|
|
18
|
+
<a-list-item slot="renderItem" slot-scope="item, index">
|
|
19
|
+
<template v-if="item.type">
|
|
20
|
+
<a-button class="new-btn" type="dashed" @click="toCreateQuery">
|
|
21
|
+
<a-icon type="plus" />新增参数组
|
|
22
|
+
</a-button>
|
|
23
|
+
</template>
|
|
24
|
+
<template v-else>
|
|
25
|
+
<a-card :hoverable="true">
|
|
26
|
+
<a-card-meta >
|
|
27
|
+
<div slot="title" style="margin-bottom: 3px">{{ item.group }}</div>
|
|
28
|
+
<a-icon slot="avatar" :style="{ fontSize:'2em' }" type="tags"/>
|
|
29
|
+
<div slot="description" class="meta-content">{{ item.describe }}</div>
|
|
30
|
+
</a-card-meta>
|
|
31
|
+
<a slot="actions" @click="toEditQuery(index)">编辑</a>
|
|
32
|
+
<a slot="actions" @click="toDelete(index)">删除</a>
|
|
33
|
+
</a-card>
|
|
34
|
+
</template>
|
|
35
|
+
</a-list-item>
|
|
36
|
+
</a-list>
|
|
37
|
+
</a-drawer>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
import { mapState } from 'vuex'
|
|
42
|
+
import CreateSimpleFormQuery from '@vue2-client/base-client/components/common/CreateSimpleFormQuery'
|
|
43
|
+
|
|
44
|
+
export default {
|
|
45
|
+
name: 'FormGroupQuery',
|
|
46
|
+
components: {
|
|
47
|
+
CreateSimpleFormQuery
|
|
48
|
+
},
|
|
49
|
+
data () {
|
|
50
|
+
return {
|
|
51
|
+
// 页面宽度
|
|
52
|
+
screenWidth: document.documentElement.clientWidth,
|
|
53
|
+
// 是否显示生成查询配置抽屉
|
|
54
|
+
createQueryVisible: false,
|
|
55
|
+
targetIndex: 0,
|
|
56
|
+
columnJson: {},
|
|
57
|
+
editIndex: -1
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
mounted () {
|
|
61
|
+
this.initView()
|
|
62
|
+
},
|
|
63
|
+
computed: {
|
|
64
|
+
...mapState('setting', ['isMobile'])
|
|
65
|
+
},
|
|
66
|
+
props: {
|
|
67
|
+
visible: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
watch: {
|
|
73
|
+
visible (rel) {
|
|
74
|
+
if (rel) {
|
|
75
|
+
this.initView()
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
methods: {
|
|
80
|
+
// 初始化组件
|
|
81
|
+
initView () {
|
|
82
|
+
this.editIndex = -1
|
|
83
|
+
this.$emit('getColumnJson', val => {
|
|
84
|
+
this.columnJson = val
|
|
85
|
+
})
|
|
86
|
+
},
|
|
87
|
+
toCreateQuery () {
|
|
88
|
+
this.editIndex = -1
|
|
89
|
+
this.createQueryVisible = true
|
|
90
|
+
},
|
|
91
|
+
toEditQuery (index) {
|
|
92
|
+
this.editIndex = index
|
|
93
|
+
this.createQueryVisible = true
|
|
94
|
+
},
|
|
95
|
+
toDelete (index) {
|
|
96
|
+
const _this = this
|
|
97
|
+
this.$confirm({
|
|
98
|
+
title: '您确定要删除该参数组?',
|
|
99
|
+
content: '删除的参数组无法恢复',
|
|
100
|
+
okText: '确定',
|
|
101
|
+
okType: 'danger',
|
|
102
|
+
cancelText: '取消',
|
|
103
|
+
onOk () {
|
|
104
|
+
_this.columnJson.groups.splice(index, 1)
|
|
105
|
+
_this.$emit('saveQueryParams', _this.columnJson)
|
|
106
|
+
}
|
|
107
|
+
})
|
|
108
|
+
},
|
|
109
|
+
onClose () {
|
|
110
|
+
this.$emit('update:visible', false)
|
|
111
|
+
},
|
|
112
|
+
// 存储查询配置信息
|
|
113
|
+
saveQueryParams (source) {
|
|
114
|
+
if (!this.columnJson.groups) {
|
|
115
|
+
this.columnJson.groups = []
|
|
116
|
+
}
|
|
117
|
+
if (this.editIndex !== -1) {
|
|
118
|
+
this.columnJson.groups[this.editIndex] = source
|
|
119
|
+
} else {
|
|
120
|
+
this.columnJson.groups.push(source)
|
|
121
|
+
}
|
|
122
|
+
this.$emit('saveQueryParams', this.columnJson)
|
|
123
|
+
this.createQueryVisible = false
|
|
124
|
+
},
|
|
125
|
+
columnJsonCopy () {
|
|
126
|
+
let groups
|
|
127
|
+
if (this.columnJson.groups) {
|
|
128
|
+
groups = JSON.parse(JSON.stringify(this.columnJson.groups))
|
|
129
|
+
} else {
|
|
130
|
+
groups = []
|
|
131
|
+
}
|
|
132
|
+
groups.push({ type: 'add' })
|
|
133
|
+
return groups
|
|
134
|
+
},
|
|
135
|
+
editItem () {
|
|
136
|
+
if (this.editIndex !== -1) {
|
|
137
|
+
return JSON.parse(JSON.stringify(this.columnJson.groups[this.editIndex]))
|
|
138
|
+
} else {
|
|
139
|
+
return {}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
</script>
|
|
145
|
+
<style lang="less" scoped>
|
|
146
|
+
.card-avatar {
|
|
147
|
+
width: 48px;
|
|
148
|
+
height: 48px;
|
|
149
|
+
border-radius: 48px;
|
|
150
|
+
}
|
|
151
|
+
.new-btn{
|
|
152
|
+
border-radius: 2px;
|
|
153
|
+
width: 100%;
|
|
154
|
+
height: 187px;
|
|
155
|
+
}
|
|
156
|
+
.meta-content{
|
|
157
|
+
position: relative;
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
text-overflow: ellipsis;
|
|
160
|
+
display: -webkit-box;
|
|
161
|
+
height: 64px;
|
|
162
|
+
-webkit-line-clamp: 3;
|
|
163
|
+
-webkit-box-orient: vertical;
|
|
164
|
+
}
|
|
165
|
+
</style>
|