af-mobile-client-vue3 1.0.95 → 1.0.96
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 +6 -6
- package/.env.development +4 -4
- package/.env.envoiceShow +6 -6
- package/.env.production +6 -6
- package/.husky/commit-msg +1 -1
- package/.husky/pre-commit +1 -1
- package/.vscode/settings.json +61 -61
- package/build/vite/index.ts +91 -91
- package/eslint.config.js +9 -1
- package/mock/modules/user.mock.ts +152 -152
- package/package.json +1 -1
- package/public/favicon.svg +4 -4
- package/public/safari-pinned-tab.svg +32 -32
- package/scripts/verifyCommit.js +19 -19
- package/src/App.vue +43 -43
- package/src/api/user/index.ts +40 -40
- package/src/bootstrap.ts +18 -18
- package/src/components/core/App/MicroAppView.vue +3 -3
- package/src/components/core/NavBar/index.vue +12 -12
- package/src/components/core/SvgIcon/index.vue +1 -1
- package/src/components/core/Tabbar/index.vue +38 -38
- package/src/components/core/Uploader/index.vue +1 -1
- package/src/components/core/XGridDropOption/index.vue +151 -151
- package/src/components/core/XMultiSelect/index.vue +183 -183
- package/src/components/data/XCellDetail/index.vue +106 -106
- package/src/components/data/XCellList/XCellList.md +28 -28
- package/src/components/data/XCellList/index.vue +50 -11
- package/src/components/data/XCellListFilter/QrScanner/index.vue +1 -1
- package/src/components/data/XCellListFilter/VpnRecognition/index.vue +3 -3
- package/src/components/data/XCellListFilter/index.vue +160 -62
- package/src/components/data/XForm/index.vue +2 -2
- package/src/components/data/XFormGroup/index.vue +3 -3
- package/src/components/data/XFormItem/index.vue +25 -26
- package/src/components/data/XOlMap/demo.vue +209 -0
- package/src/components/data/XOlMap/index.vue +644 -0
- package/src/components/data/XReportForm/XReportFormJsonRender.vue +220 -220
- package/src/components/data/XReportForm/index.vue +1079 -1079
- package/src/components/data/XReportGrid/XAddReport/XAddReport.vue +4 -7
- package/src/components/data/XReportGrid/XAddReport/index.md +3 -7
- package/src/components/data/XReportGrid/XAddReport/index.ts +2 -2
- package/src/components/data/XReportGrid/XReport.vue +25 -38
- package/src/components/data/XReportGrid/XReportDesign.vue +46 -46
- package/src/components/data/XReportGrid/XReportDrawer/XReportDrawer.vue +3 -3
- package/src/components/data/XReportGrid/XReportDrawer/index.ts +2 -2
- package/src/components/data/XReportGrid/XReportJsonRender.vue +20 -7
- package/src/components/data/XReportGrid/XReportTrGroup.vue +4 -4
- package/src/components/data/XReportGrid/index.md +4 -6
- package/src/components/data/XSignature/index.vue +285 -285
- package/src/components/data/XTag/index.vue +10 -10
- package/src/components/layout/NormalDataLayout/index.vue +70 -70
- package/src/components/layout/TabBarLayout/index.vue +40 -40
- package/src/components.d.ts +53 -53
- package/src/env.d.ts +16 -16
- package/src/font-style/font.css +3 -3
- package/src/hooks/useCommon.ts +9 -9
- package/src/layout/GridView/index.vue +1 -1
- package/src/layout/PageLayout.vue +4 -4
- package/src/layout/SingleLayout.vue +2 -2
- package/src/locales/en-US.json +25 -25
- package/src/locales/zh-CN.json +25 -25
- package/src/plugins/AppData.ts +38 -38
- package/src/plugins/index.ts +1 -1
- package/src/router/guards.ts +59 -59
- package/src/router/index.ts +61 -60
- package/src/router/invoiceRoutes.ts +33 -33
- package/src/router/routes.ts +20 -14
- package/src/services/api/common.ts +109 -109
- package/src/services/api/manage.ts +8 -8
- package/src/services/restTools.ts +52 -52
- package/src/services/v3Api.ts +46 -35
- package/src/stores/modules/cachedView.ts +1 -1
- package/src/stores/modules/setting.ts +52 -52
- package/src/stores/modules/user.ts +5 -5
- package/src/stores/mutation-type.ts +7 -7
- package/src/styles/app.less +6 -1
- package/src/utils/Storage.ts +1 -1
- package/src/utils/authority-utils.ts +84 -84
- package/src/utils/crypto.ts +39 -39
- package/src/utils/http/index.ts +6 -6
- package/src/utils/i18n.ts +41 -41
- package/src/utils/indexedDB.ts +180 -180
- package/src/utils/mobileUtil.ts +26 -26
- package/src/utils/routerUtil.ts +271 -271
- package/src/utils/runEvalFunction.ts +13 -13
- package/src/utils/validate.ts +1 -1
- package/src/utils/wechatUtil.ts +9 -9
- package/src/views/chat/index.vue +1 -1
- package/src/views/common/LoadError.vue +64 -64
- package/src/views/common/NotFound.vue +68 -68
- package/src/views/component/EvaluateRecordView/index.vue +40 -40
- package/src/views/component/XCellDetailView/index.vue +217 -216
- package/src/views/component/XCellListView/index.vue +1 -1
- package/src/views/component/XFormAppraiseView/index.vue +4 -4
- package/src/views/component/XFormGroupView/index.vue +1 -1
- package/src/views/component/XFormView/index.vue +6 -7
- package/src/views/component/XReportFormIframeView/index.vue +47 -47
- package/src/views/component/XReportFormView/index.vue +13 -13
- package/src/views/component/XReportGridView/index.vue +2 -3
- package/src/views/component/XSignatureView/index.vue +50 -50
- package/src/views/component/index.vue +4 -4
- package/src/views/component/menu.vue +117 -117
- package/src/views/component/notice.vue +46 -46
- package/src/views/component/topNav.vue +36 -36
- package/src/views/invoiceShow/index.vue +61 -62
- package/src/views/user/login/ForgetPasswordForm.vue +94 -93
- package/src/views/user/login/LoginForm.vue +8 -7
- package/src/views/user/login/LoginTitle.vue +68 -68
- package/src/views/user/login/index.vue +22 -22
- package/src/views/user/my/index.vue +230 -230
- package/src/vue-router.d.ts +9 -9
- package/tsconfig.json +43 -43
- package/uno.config.ts +1 -1
- package/vite.config.ts +123 -123
|
@@ -1,216 +1,217 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from 'vant'
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
const options = ref([
|
|
23
|
-
{ text: '微信', icon: 'wechat' },
|
|
24
|
-
{ text: '微博', icon: 'weibo' },
|
|
25
|
-
{ text: '微信', icon: 'wechat' },
|
|
26
|
-
{ text: '微博', icon: 'weibo' },
|
|
27
|
-
{ text: '微信', icon: 'wechat' },
|
|
28
|
-
{ text: '微博', icon: 'weibo' },
|
|
29
|
-
{ text: '微信', icon: 'wechat' },
|
|
30
|
-
{ text: '微博', icon: 'weibo' },
|
|
31
|
-
])
|
|
32
|
-
|
|
33
|
-
const barList = ref([
|
|
34
|
-
{ icon: 'edit', text: '编辑', method: 'editElement' },
|
|
35
|
-
{ icon: 'delete-o', text: '删除', method: 'delElement' },
|
|
36
|
-
{ icon: 'ellipsis', text: '更多', method: 'getMore' },
|
|
37
|
-
])
|
|
38
|
-
|
|
39
|
-
const serviceName = ref('af-system')
|
|
40
|
-
|
|
41
|
-
const queryParamsName = ref('crud_oper_log_manage')
|
|
42
|
-
|
|
43
|
-
const route = useRoute()
|
|
44
|
-
|
|
45
|
-
const id = ref(-1)
|
|
46
|
-
|
|
47
|
-
const showMore = ref(false)
|
|
48
|
-
|
|
49
|
-
const showEdit = ref(false)
|
|
50
|
-
|
|
51
|
-
const msg = ref({
|
|
52
|
-
info1: '',
|
|
53
|
-
info2: '',
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
const loading = ref(true)
|
|
57
|
-
|
|
58
|
-
const detailContent = ref({
|
|
59
|
-
编号: '测试编号3.1415926...',
|
|
60
|
-
姓名: '测试人员',
|
|
61
|
-
部门: '测试部门',
|
|
62
|
-
完成日期: '测试时间 2024/4/16 16:59:12',
|
|
63
|
-
请求方式: '测试方法 POST',
|
|
64
|
-
请求ip: '测试ip 127.0.0.1',
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
const callbacks = {
|
|
68
|
-
editElement,
|
|
69
|
-
delElement,
|
|
70
|
-
getMore,
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function editElement() {
|
|
74
|
-
showEdit.value = true
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function doEdit() {
|
|
78
|
-
showEdit.value = false
|
|
79
|
-
}
|
|
80
|
-
function delElement() {
|
|
81
|
-
showConfirmDialog({
|
|
82
|
-
title: '提示',
|
|
83
|
-
message:
|
|
84
|
-
`确认删除---${id.value}---?`,
|
|
85
|
-
closeOnClickOverlay: true,
|
|
86
|
-
})
|
|
87
|
-
.then(() => {
|
|
88
|
-
const params = {
|
|
89
|
-
queryParamsName: queryParamsName.value,
|
|
90
|
-
idList: [id.value],
|
|
91
|
-
}
|
|
92
|
-
remove(params, serviceName)
|
|
93
|
-
.then((_res) => {
|
|
94
|
-
showSuccessToast('删除成功')
|
|
95
|
-
history.back()
|
|
96
|
-
})
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
})
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
<
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
</
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
margin-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import XCellDetail from '@af-mobile-client-vue3/components/data/XCellDetail/index.vue'
|
|
3
|
+
import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
|
|
4
|
+
import TabBarLayout from '@af-mobile-client-vue3/components/layout/TabBarLayout/index.vue'
|
|
5
|
+
import { remove } from '@af-mobile-client-vue3/services/api/common'
|
|
6
|
+
import {
|
|
7
|
+
showConfirmDialog,
|
|
8
|
+
showFailToast,
|
|
9
|
+
showSuccessToast,
|
|
10
|
+
Cell as VanCell,
|
|
11
|
+
CellGroup as VanCellGroup,
|
|
12
|
+
Dialog as VanDialog,
|
|
13
|
+
Field as VanField,
|
|
14
|
+
Form as VanForm,
|
|
15
|
+
Grid as VanGrid,
|
|
16
|
+
GridItem as VanGridItem,
|
|
17
|
+
Popup as VanPopup,
|
|
18
|
+
} from 'vant'
|
|
19
|
+
import { onMounted, ref } from 'vue'
|
|
20
|
+
import { useRoute } from 'vue-router'
|
|
21
|
+
|
|
22
|
+
const options = ref([
|
|
23
|
+
{ text: '微信', icon: 'wechat' },
|
|
24
|
+
{ text: '微博', icon: 'weibo' },
|
|
25
|
+
{ text: '微信', icon: 'wechat' },
|
|
26
|
+
{ text: '微博', icon: 'weibo' },
|
|
27
|
+
{ text: '微信', icon: 'wechat' },
|
|
28
|
+
{ text: '微博', icon: 'weibo' },
|
|
29
|
+
{ text: '微信', icon: 'wechat' },
|
|
30
|
+
{ text: '微博', icon: 'weibo' },
|
|
31
|
+
])
|
|
32
|
+
|
|
33
|
+
const barList = ref([
|
|
34
|
+
{ icon: 'edit', text: '编辑', method: 'editElement' },
|
|
35
|
+
{ icon: 'delete-o', text: '删除', method: 'delElement' },
|
|
36
|
+
{ icon: 'ellipsis', text: '更多', method: 'getMore' },
|
|
37
|
+
])
|
|
38
|
+
|
|
39
|
+
const serviceName = ref('af-system')
|
|
40
|
+
|
|
41
|
+
const queryParamsName = ref('crud_oper_log_manage')
|
|
42
|
+
|
|
43
|
+
const route = useRoute()
|
|
44
|
+
|
|
45
|
+
const id = ref(-1)
|
|
46
|
+
|
|
47
|
+
const showMore = ref(false)
|
|
48
|
+
|
|
49
|
+
const showEdit = ref(false)
|
|
50
|
+
|
|
51
|
+
const msg = ref({
|
|
52
|
+
info1: '',
|
|
53
|
+
info2: '',
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
const loading = ref(true)
|
|
57
|
+
|
|
58
|
+
const detailContent = ref({
|
|
59
|
+
编号: '测试编号3.1415926...',
|
|
60
|
+
姓名: '测试人员',
|
|
61
|
+
部门: '测试部门',
|
|
62
|
+
完成日期: '测试时间 2024/4/16 16:59:12',
|
|
63
|
+
请求方式: '测试方法 POST',
|
|
64
|
+
请求ip: '测试ip 127.0.0.1',
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
const callbacks = {
|
|
68
|
+
editElement,
|
|
69
|
+
delElement,
|
|
70
|
+
getMore,
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function editElement() {
|
|
74
|
+
showEdit.value = true
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function doEdit() {
|
|
78
|
+
showEdit.value = false
|
|
79
|
+
}
|
|
80
|
+
function delElement() {
|
|
81
|
+
showConfirmDialog({
|
|
82
|
+
title: '提示',
|
|
83
|
+
message:
|
|
84
|
+
`确认删除---${id.value}---?`,
|
|
85
|
+
closeOnClickOverlay: true,
|
|
86
|
+
})
|
|
87
|
+
.then(() => {
|
|
88
|
+
const params = {
|
|
89
|
+
queryParamsName: queryParamsName.value,
|
|
90
|
+
idList: [id.value],
|
|
91
|
+
}
|
|
92
|
+
remove(params, serviceName)
|
|
93
|
+
.then((_res) => {
|
|
94
|
+
showSuccessToast('删除成功')
|
|
95
|
+
history.back()
|
|
96
|
+
})
|
|
97
|
+
.catch((_err) => {
|
|
98
|
+
showFailToast('删除失败')
|
|
99
|
+
})
|
|
100
|
+
})
|
|
101
|
+
.catch((err) => {
|
|
102
|
+
console.warn(err)
|
|
103
|
+
})
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function getMore() {
|
|
107
|
+
showMore.value = true
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
onMounted(() => {
|
|
111
|
+
id.value = route.params.id as unknown as number
|
|
112
|
+
setTimeout(() => {
|
|
113
|
+
loading.value = false
|
|
114
|
+
}, 1000)
|
|
115
|
+
})
|
|
116
|
+
</script>
|
|
117
|
+
|
|
118
|
+
<template>
|
|
119
|
+
<div id="XCellDetailView">
|
|
120
|
+
<NormalDataLayout title="详情" class="normal-body">
|
|
121
|
+
<template #layout_content>
|
|
122
|
+
<XCellDetail
|
|
123
|
+
title="测试标题"
|
|
124
|
+
describe="测试描述信息"
|
|
125
|
+
extra="12345"
|
|
126
|
+
:loading="loading"
|
|
127
|
+
:status-bar="{ icon: 'success', color: 'green' }"
|
|
128
|
+
>
|
|
129
|
+
<template #detailContent>
|
|
130
|
+
<div v-for="(value, key) in detailContent" :key="key" class="detail-content">
|
|
131
|
+
<div class="detail-content-title">
|
|
132
|
+
{{ key }}
|
|
133
|
+
</div>
|
|
134
|
+
<div class="detail-content-msg">
|
|
135
|
+
{{ value }}
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</template>
|
|
139
|
+
</XCellDetail>
|
|
140
|
+
</template>
|
|
141
|
+
</NormalDataLayout>
|
|
142
|
+
<TabBarLayout :bar-list="barList" :callbacks="callbacks" />
|
|
143
|
+
<VanPopup
|
|
144
|
+
v-model:show="showMore"
|
|
145
|
+
class="pop-box"
|
|
146
|
+
:overlay-style="{ height: '92.5vh', top: '7.5vh' }"
|
|
147
|
+
round
|
|
148
|
+
position="bottom"
|
|
149
|
+
>
|
|
150
|
+
<div class="grid-box">
|
|
151
|
+
<VanGrid :gutter="10">
|
|
152
|
+
<VanGridItem v-for="(item, index) in options" :key="index" :icon="(item as any).icon" :text="(item as any).text" />
|
|
153
|
+
</VanGrid>
|
|
154
|
+
</div>
|
|
155
|
+
<VanCell class="cell" title="取消" @click="showMore = false" />
|
|
156
|
+
</VanPopup>
|
|
157
|
+
<VanDialog :show="showEdit" title="编辑信息" :close-on-click-overlay="true" @confirm="doEdit">
|
|
158
|
+
<VanForm>
|
|
159
|
+
<VanCellGroup class="cell-group">
|
|
160
|
+
<VanField
|
|
161
|
+
v-model="msg.info1"
|
|
162
|
+
name="信息一"
|
|
163
|
+
label="信息一"
|
|
164
|
+
placeholder="请填写信息一"
|
|
165
|
+
:rules="[{ required: true, message: '信息一不得为空' }]"
|
|
166
|
+
/>
|
|
167
|
+
<VanField
|
|
168
|
+
v-model="msg.info2"
|
|
169
|
+
name="信息二"
|
|
170
|
+
label="信息二"
|
|
171
|
+
placeholder="请填写信息二"
|
|
172
|
+
:rules="[{ required: true, message: '信息二不得为空' }]"
|
|
173
|
+
/>
|
|
174
|
+
</VanCellGroup>
|
|
175
|
+
</VanForm>
|
|
176
|
+
</VanDialog>
|
|
177
|
+
</div>
|
|
178
|
+
</template>
|
|
179
|
+
|
|
180
|
+
<style scoped lang="less">
|
|
181
|
+
#XCellDetailView {
|
|
182
|
+
.normal-body {
|
|
183
|
+
height: 92vh;
|
|
184
|
+
}
|
|
185
|
+
.grid-box {
|
|
186
|
+
background-color: #f7f8fa;
|
|
187
|
+
margin-top: 2vh;
|
|
188
|
+
:deep(.van-grid-item__content) {
|
|
189
|
+
background-color: #f7f8fa;
|
|
190
|
+
}
|
|
191
|
+
:deep(.van-grid-item__content:hover) {
|
|
192
|
+
background-color: white;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
.pop-box {
|
|
196
|
+
height: 28vh;
|
|
197
|
+
background-color: #f7f8fa;
|
|
198
|
+
}
|
|
199
|
+
.cell {
|
|
200
|
+
margin-top: 1vh;
|
|
201
|
+
text-align: center;
|
|
202
|
+
}
|
|
203
|
+
.cell-group {
|
|
204
|
+
margin-top: 2vh;
|
|
205
|
+
margin-bottom: 2vh;
|
|
206
|
+
}
|
|
207
|
+
.detail-content {
|
|
208
|
+
margin: 5px 0 0 0;
|
|
209
|
+
font-size: 15px;
|
|
210
|
+
.detail-content-title {
|
|
211
|
+
font-size: 13px;
|
|
212
|
+
margin-bottom: 5px;
|
|
213
|
+
color: var(--van-text-color-2);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { defineEmits, ref } from 'vue'
|
|
3
2
|
import XCellList from '@af-mobile-client-vue3/components/data/XCellList/index.vue'
|
|
4
3
|
import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
|
|
4
|
+
import { defineEmits, ref } from 'vue'
|
|
5
5
|
import { useRouter } from 'vue-router'
|
|
6
6
|
|
|
7
7
|
// 定义事件
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
import banner1 from '@af-mobile-client-vue3/assets/img/banner/appraise-banner-1.png'
|
|
3
3
|
import banner2 from '@af-mobile-client-vue3/assets/img/banner/appraise-banner-2.png'
|
|
4
4
|
|
|
5
|
+
import { formatDate } from '@af-mobile-client-vue3/hooks/useCommon'
|
|
6
|
+
import { openApiLogic } from '@af-mobile-client-vue3/services/api/common'
|
|
5
7
|
import {
|
|
8
|
+
showDialog,
|
|
6
9
|
Cell as VanCell,
|
|
7
10
|
CellGroup as VanCellGroup,
|
|
8
11
|
Loading as VanLoading,
|
|
@@ -11,12 +14,9 @@ import {
|
|
|
11
14
|
Space as VanSpace,
|
|
12
15
|
Swipe as VanSwipe,
|
|
13
16
|
SwipeItem as VanSwipeItem,
|
|
14
|
-
showDialog,
|
|
15
17
|
} from 'vant'
|
|
16
|
-
import { useRoute } from 'vue-router'
|
|
17
18
|
import { getCurrentInstance, onMounted, ref } from 'vue'
|
|
18
|
-
import {
|
|
19
|
-
import { formatDate } from '@af-mobile-client-vue3/hooks/useCommon'
|
|
19
|
+
import { useRoute } from 'vue-router'
|
|
20
20
|
|
|
21
21
|
const xForm = ref()
|
|
22
22
|
const xFormInit = ref(false)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import XFormGroup from '@af-mobile-client-vue3/components/data/XFormGroup/index.vue'
|
|
3
3
|
import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
|
|
4
|
-
import { onBeforeMount, onMounted, ref } from 'vue'
|
|
5
4
|
import { showDialog } from 'vant'
|
|
5
|
+
import { ref } from 'vue'
|
|
6
6
|
import { useRoute } from 'vue-router'
|
|
7
7
|
|
|
8
8
|
// 纯表单
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import XForm from '@af-mobile-client-vue3/components/data/XForm/index.vue'
|
|
3
|
+
import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
|
|
4
|
+
import { getConfigByName } from '@af-mobile-client-vue3/services/api/common'
|
|
5
|
+
import { post } from '@af-mobile-client-vue3/services/restTools'
|
|
2
6
|
import {
|
|
7
|
+
showDialog,
|
|
3
8
|
NavBar as VanNavBar,
|
|
4
9
|
Space as VanSpace,
|
|
5
|
-
showDialog,
|
|
6
10
|
} from 'vant'
|
|
7
|
-
import XForm from '@af-mobile-client-vue3/components/data/XForm/index.vue'
|
|
8
|
-
import { useRoute } from 'vue-router'
|
|
9
11
|
import { defineEmits, getCurrentInstance, onBeforeMount, ref } from 'vue'
|
|
10
|
-
import {
|
|
11
|
-
import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
|
|
12
|
-
import { post } from '@af-mobile-client-vue3/services/restTools'
|
|
12
|
+
import { useRoute } from 'vue-router'
|
|
13
13
|
|
|
14
14
|
const emit = defineEmits(['onSumbit'])
|
|
15
15
|
const xForm = ref(null)
|
|
@@ -99,7 +99,6 @@ async function getUpdateData() {
|
|
|
99
99
|
updateData.value = res.data[0]
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
|
|
103
102
|
</script>
|
|
104
103
|
|
|
105
104
|
<template>
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const localConfig = ref(undefined)
|
|
7
|
-
const configName = ref(undefined)
|
|
8
|
-
const configData = ref(undefined)
|
|
9
|
-
|
|
10
|
-
function receiveMessage(event) {
|
|
11
|
-
try {
|
|
12
|
-
if (event.data && typeof event.data === 'object' && event.data.type === 'setConfig') {
|
|
13
|
-
localConfig.value = event.data.localConfig
|
|
14
|
-
configName.value = event.data.configName
|
|
15
|
-
configData.value = event.data.configData
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
catch (e) {
|
|
19
|
-
console.error(e)
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
onMounted(() => {
|
|
24
|
-
window.addEventListener('message', receiveMessage, false)
|
|
25
|
-
window.parent.postMessage('calParentSend', '*')
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
onUnmounted(() => {
|
|
29
|
-
window.removeEventListener('message', receiveMessage, false)
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
function saveConfig(_config) {
|
|
33
|
-
const config = JSON.parse(JSON.stringify(_config))
|
|
34
|
-
window.parent.postMessage({
|
|
35
|
-
type: 'saveConfig',
|
|
36
|
-
config,
|
|
37
|
-
}, '*')
|
|
38
|
-
}
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<template>
|
|
42
|
-
<!-- 业务上只保存了data,传递的 localconfig 也是 data 这里临时吧 localconfig 作为data使用 -->
|
|
43
|
-
<XReportForm v-if="localConfig || configName" :config-name="configName" :show-nav="false" :local-config="localConfig" :config-data="configData" @save-config="saveConfig" />
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<style scoped lang="less">
|
|
47
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import XReportForm from '@af-mobile-client-vue3/components/data/XReportForm/index.vue'
|
|
3
|
+
|
|
4
|
+
import { onMounted, onUnmounted, ref } from 'vue'
|
|
5
|
+
|
|
6
|
+
const localConfig = ref(undefined)
|
|
7
|
+
const configName = ref(undefined)
|
|
8
|
+
const configData = ref(undefined)
|
|
9
|
+
|
|
10
|
+
function receiveMessage(event) {
|
|
11
|
+
try {
|
|
12
|
+
if (event.data && typeof event.data === 'object' && event.data.type === 'setConfig') {
|
|
13
|
+
localConfig.value = event.data.localConfig
|
|
14
|
+
configName.value = event.data.configName
|
|
15
|
+
configData.value = event.data.configData
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
catch (e) {
|
|
19
|
+
console.error(e)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
onMounted(() => {
|
|
24
|
+
window.addEventListener('message', receiveMessage, false)
|
|
25
|
+
window.parent.postMessage('calParentSend', '*')
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
onUnmounted(() => {
|
|
29
|
+
window.removeEventListener('message', receiveMessage, false)
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
function saveConfig(_config) {
|
|
33
|
+
const config = JSON.parse(JSON.stringify(_config))
|
|
34
|
+
window.parent.postMessage({
|
|
35
|
+
type: 'saveConfig',
|
|
36
|
+
config,
|
|
37
|
+
}, '*')
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<template>
|
|
42
|
+
<!-- 业务上只保存了data,传递的 localconfig 也是 data 这里临时吧 localconfig 作为data使用 -->
|
|
43
|
+
<XReportForm v-if="localConfig || configName" :config-name="configName" :show-nav="false" :local-config="localConfig" :config-data="configData" @save-config="saveConfig" />
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<style scoped lang="less">
|
|
47
|
+
</style>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const configName = ref('ceshi1')
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<template>
|
|
9
|
-
<XReportForm :config-name="configName" />
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<style scoped lang="less">
|
|
13
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import XReportForm from '@af-mobile-client-vue3/components/data/XReportForm/index.vue'
|
|
3
|
+
import { ref } from 'vue'
|
|
4
|
+
|
|
5
|
+
const configName = ref('ceshi1')
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<XReportForm :config-name="configName" />
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<style scoped lang="less">
|
|
13
|
+
</style>
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ref } from 'vue'
|
|
3
2
|
import XReport from '@af-mobile-client-vue3/components/data/XReportGrid/XReport.vue'
|
|
3
|
+
import { ref } from 'vue'
|
|
4
4
|
import { useRoute } from 'vue-router'
|
|
5
5
|
|
|
6
6
|
const route = useRoute()
|
|
7
7
|
const serverName = ref('af-gaslink')
|
|
8
8
|
// const configName = ref('detailsaddChargesCover')
|
|
9
9
|
const configName = ref(route.query.configName ? route.query.configName : 'ReportGridTest')
|
|
10
|
-
console.log('route==configName', configName)
|
|
11
10
|
</script>
|
|
12
11
|
|
|
13
12
|
<template>
|
|
14
|
-
<XReport :config-name="configName" :server-name="serverName" />
|
|
13
|
+
<XReport :config-name="configName as string" :server-name="serverName" />
|
|
15
14
|
</template>
|
|
16
15
|
|
|
17
16
|
<style scoped lang="less">
|