af-mobile-client-vue3 1.4.59 → 1.4.61
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/__dummy__ +9 -9
- package/build/vite/optimize.ts +36 -36
- package/package.json +3 -2
- package/public/favicon.svg +4 -4
- package/scripts/verifyCommit.js +19 -19
- package/src/components/common/MateChat/components/MateChatContent.vue +274 -274
- package/src/components/common/MateChat/components/MateChatHeader.vue +337 -337
- package/src/components/common/MateChat/index.vue +444 -444
- package/src/components/common/MateChat/types.ts +247 -247
- package/src/components/data/FilePreview/index.vue +139 -0
- package/src/components/data/UserDetail/types.ts +1 -1
- package/src/components/data/XOlMap/types.ts +1 -1
- package/src/components/data/XReportGrid/XAddReport/index.ts +1 -1
- package/src/components/data/XReportGrid/XReportDrawer/index.ts +1 -1
- package/src/components/data/XTag/index.vue +10 -10
- package/src/components/layout/TabBarLayout/index.vue +40 -40
- package/src/hooks/useCommon.ts +9 -9
- package/src/plugins/AppData.ts +38 -38
- package/src/router/invoiceRoutes.ts +33 -33
- package/src/router/routes.ts +6 -0
- package/src/services/api/common.ts +109 -109
- package/src/services/api/manage.ts +8 -8
- package/src/services/api/search.ts +16 -16
- package/src/services/restTools.ts +56 -56
- package/src/utils/authority-utils.ts +84 -84
- package/src/utils/crypto.ts +39 -39
- package/src/utils/runEvalFunction.ts +13 -13
- package/src/views/component/EvaluateRecordView/index.vue +40 -40
- package/src/views/component/FilePreviewView/index.vue +31 -0
- package/src/views/component/MateChat/MateChatView.vue +10 -10
- package/src/views/component/XCellDetailView/index.vue +217 -217
- package/src/views/component/XCellListView/index.vue +2 -78
- package/src/views/component/XFormView/index.vue +13 -28
- package/src/views/component/XOlMapView/XLocationPicker/index.vue +118 -118
- package/src/views/component/XReportFormIframeView/index.vue +47 -47
- package/src/views/component/XReportFormView/index.vue +13 -13
- package/src/views/component/XSignatureView/index.vue +50 -50
- package/src/views/component/index.vue +5 -1
- package/src/views/component/notice.vue +46 -46
- package/src/views/component/topNav.vue +36 -36
- package/src/views/invoiceShow/index.vue +61 -61
- package/src/views/user/login/index.vue +22 -22
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { LocationResult } from '@af-mobile-client-vue3/components/data/XOlMap/types'
|
|
3
|
-
import LocationPicker from '@af-mobile-client-vue3/components/data/XOlMap/XLocationPicker/index.vue'
|
|
4
|
-
import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
|
|
5
|
-
import { showNotify } from 'vant'
|
|
6
|
-
import { ref } from 'vue'
|
|
7
|
-
|
|
8
|
-
const selectedLocation = ref<LocationResult>()
|
|
9
|
-
|
|
10
|
-
// 处理位置选择
|
|
11
|
-
function handleLocationConfirm(location: LocationResult) {
|
|
12
|
-
// console.log('选择的位置:', location)
|
|
13
|
-
// selectedLocation.value = location
|
|
14
|
-
showNotify({ type: 'success', message: '位置已选择' })
|
|
15
|
-
}
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<template>
|
|
19
|
-
<NormalDataLayout id="XLocationPicker" title="XOlMap地址选择器">
|
|
20
|
-
<template #layout_content>
|
|
21
|
-
<div class="location-picker-demo">
|
|
22
|
-
<!-- 页面标题 -->
|
|
23
|
-
<div class="page-header">
|
|
24
|
-
<div class="title">
|
|
25
|
-
位置选择
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<!-- 选择结果展示 -->
|
|
30
|
-
<div v-if="selectedLocation" class="location-result">
|
|
31
|
-
<div class="label">
|
|
32
|
-
已选位置:
|
|
33
|
-
</div>
|
|
34
|
-
<div class="value">
|
|
35
|
-
{{ selectedLocation.address }}
|
|
36
|
-
</div>
|
|
37
|
-
<div class="coordinates">
|
|
38
|
-
经度: {{ selectedLocation.longitude.toFixed(6) }},
|
|
39
|
-
纬度: {{ selectedLocation.latitude.toFixed(6) }}
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<!-- 地图组件 -->
|
|
44
|
-
<div class="map-container">
|
|
45
|
-
<LocationPicker
|
|
46
|
-
v-model="selectedLocation"
|
|
47
|
-
:default-center="[108.948024, 34.263161]"
|
|
48
|
-
:default-zoom="12"
|
|
49
|
-
@confirm="handleLocationConfirm"
|
|
50
|
-
/>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</template>
|
|
54
|
-
</NormalDataLayout>
|
|
55
|
-
</template>
|
|
56
|
-
|
|
57
|
-
<style scoped lang="less">
|
|
58
|
-
.location-picker-demo {
|
|
59
|
-
width: 100%;
|
|
60
|
-
height: 100%;
|
|
61
|
-
position: relative;
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
background-color: #f7f8fa;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.page-header {
|
|
68
|
-
height: 44px;
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
justify-content: center;
|
|
72
|
-
background: white;
|
|
73
|
-
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
|
|
74
|
-
position: relative;
|
|
75
|
-
z-index: 1;
|
|
76
|
-
|
|
77
|
-
.title {
|
|
78
|
-
font-size: 16px;
|
|
79
|
-
color: #333;
|
|
80
|
-
font-weight: 500;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.location-result {
|
|
85
|
-
background: white;
|
|
86
|
-
padding: 12px 16px;
|
|
87
|
-
margin: 10px;
|
|
88
|
-
border-radius: 8px;
|
|
89
|
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
90
|
-
|
|
91
|
-
.label {
|
|
92
|
-
font-size: 14px;
|
|
93
|
-
color: #666;
|
|
94
|
-
margin-bottom: 4px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.value {
|
|
98
|
-
font-size: 16px;
|
|
99
|
-
color: #333;
|
|
100
|
-
margin-bottom: 8px;
|
|
101
|
-
word-break: break-all;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.coordinates {
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
color: #999;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.map-container {
|
|
111
|
-
flex: 1;
|
|
112
|
-
position: relative;
|
|
113
|
-
margin: 0 10px 10px 10px;
|
|
114
|
-
border-radius: 8px;
|
|
115
|
-
overflow: hidden;
|
|
116
|
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
117
|
-
}
|
|
118
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { LocationResult } from '@af-mobile-client-vue3/components/data/XOlMap/types'
|
|
3
|
+
import LocationPicker from '@af-mobile-client-vue3/components/data/XOlMap/XLocationPicker/index.vue'
|
|
4
|
+
import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
|
|
5
|
+
import { showNotify } from 'vant'
|
|
6
|
+
import { ref } from 'vue'
|
|
7
|
+
|
|
8
|
+
const selectedLocation = ref<LocationResult>()
|
|
9
|
+
|
|
10
|
+
// 处理位置选择
|
|
11
|
+
function handleLocationConfirm(location: LocationResult) {
|
|
12
|
+
// console.log('选择的位置:', location)
|
|
13
|
+
// selectedLocation.value = location
|
|
14
|
+
showNotify({ type: 'success', message: '位置已选择' })
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<NormalDataLayout id="XLocationPicker" title="XOlMap地址选择器">
|
|
20
|
+
<template #layout_content>
|
|
21
|
+
<div class="location-picker-demo">
|
|
22
|
+
<!-- 页面标题 -->
|
|
23
|
+
<div class="page-header">
|
|
24
|
+
<div class="title">
|
|
25
|
+
位置选择
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<!-- 选择结果展示 -->
|
|
30
|
+
<div v-if="selectedLocation" class="location-result">
|
|
31
|
+
<div class="label">
|
|
32
|
+
已选位置:
|
|
33
|
+
</div>
|
|
34
|
+
<div class="value">
|
|
35
|
+
{{ selectedLocation.address }}
|
|
36
|
+
</div>
|
|
37
|
+
<div class="coordinates">
|
|
38
|
+
经度: {{ selectedLocation.longitude.toFixed(6) }},
|
|
39
|
+
纬度: {{ selectedLocation.latitude.toFixed(6) }}
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<!-- 地图组件 -->
|
|
44
|
+
<div class="map-container">
|
|
45
|
+
<LocationPicker
|
|
46
|
+
v-model="selectedLocation"
|
|
47
|
+
:default-center="[108.948024, 34.263161]"
|
|
48
|
+
:default-zoom="12"
|
|
49
|
+
@confirm="handleLocationConfirm"
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
54
|
+
</NormalDataLayout>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<style scoped lang="less">
|
|
58
|
+
.location-picker-demo {
|
|
59
|
+
width: 100%;
|
|
60
|
+
height: 100%;
|
|
61
|
+
position: relative;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
background-color: #f7f8fa;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.page-header {
|
|
68
|
+
height: 44px;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
background: white;
|
|
73
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
|
|
74
|
+
position: relative;
|
|
75
|
+
z-index: 1;
|
|
76
|
+
|
|
77
|
+
.title {
|
|
78
|
+
font-size: 16px;
|
|
79
|
+
color: #333;
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.location-result {
|
|
85
|
+
background: white;
|
|
86
|
+
padding: 12px 16px;
|
|
87
|
+
margin: 10px;
|
|
88
|
+
border-radius: 8px;
|
|
89
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
90
|
+
|
|
91
|
+
.label {
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
color: #666;
|
|
94
|
+
margin-bottom: 4px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.value {
|
|
98
|
+
font-size: 16px;
|
|
99
|
+
color: #333;
|
|
100
|
+
margin-bottom: 8px;
|
|
101
|
+
word-break: break-all;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.coordinates {
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
color: #999;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.map-container {
|
|
111
|
+
flex: 1;
|
|
112
|
+
position: relative;
|
|
113
|
+
margin: 0 10px 10px 10px;
|
|
114
|
+
border-radius: 8px;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
117
|
+
}
|
|
118
|
+
</style>
|
|
@@ -1,47 +1,47 @@
|
|
|
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
|
+
<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 XReportForm from '@af-mobile-client-vue3/components/data/XReportForm/index.vue'
|
|
3
|
-
import { ref } from 'vue'
|
|
4
|
-
|
|
5
|
-
const configName = ref('用户户内通气点火工艺流程')
|
|
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('用户户内通气点火工艺流程')
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<XReportForm :config-name="configName" />
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<style scoped lang="less">
|
|
13
|
+
</style>
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import XSignature from '@af-mobile-client-vue3/components/data/XSignature/index.vue'
|
|
3
|
-
import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
|
|
4
|
-
import { showToast, Image as VanImage } from 'vant'
|
|
5
|
-
import { ref } from 'vue'
|
|
6
|
-
|
|
7
|
-
const signatureImage = ref('')
|
|
8
|
-
|
|
9
|
-
function handleSave() {
|
|
10
|
-
showToast('签名已保存')
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function handleClear() {
|
|
14
|
-
showToast('签名已清除')
|
|
15
|
-
}
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<template>
|
|
19
|
-
<NormalDataLayout title="签名组件">
|
|
20
|
-
<template #layout_content>
|
|
21
|
-
基础使用
|
|
22
|
-
<div class="signature-demo">
|
|
23
|
-
<XSignature v-model="signatureImage" @save="handleSave" @clear="handleClear" />
|
|
24
|
-
<div v-if="signatureImage" class="preview">
|
|
25
|
-
<h3>预览签名</h3>
|
|
26
|
-
<VanImage v-if="signatureImage" :src="signatureImage" />
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
</NormalDataLayout>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
<style scoped lang="less">
|
|
34
|
-
.signature-demo {
|
|
35
|
-
padding: 16px;
|
|
36
|
-
.preview {
|
|
37
|
-
margin-top: 20px;
|
|
38
|
-
h3 {
|
|
39
|
-
margin: 0 0 10px;
|
|
40
|
-
font-size: 16px;
|
|
41
|
-
color: #323233;
|
|
42
|
-
}
|
|
43
|
-
img {
|
|
44
|
-
max-width: 100%;
|
|
45
|
-
border: 1px solid #ebedf0;
|
|
46
|
-
border-radius: 8px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import XSignature from '@af-mobile-client-vue3/components/data/XSignature/index.vue'
|
|
3
|
+
import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
|
|
4
|
+
import { showToast, Image as VanImage } from 'vant'
|
|
5
|
+
import { ref } from 'vue'
|
|
6
|
+
|
|
7
|
+
const signatureImage = ref('')
|
|
8
|
+
|
|
9
|
+
function handleSave() {
|
|
10
|
+
showToast('签名已保存')
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function handleClear() {
|
|
14
|
+
showToast('签名已清除')
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<NormalDataLayout title="签名组件">
|
|
20
|
+
<template #layout_content>
|
|
21
|
+
基础使用
|
|
22
|
+
<div class="signature-demo">
|
|
23
|
+
<XSignature v-model="signatureImage" @save="handleSave" @clear="handleClear" />
|
|
24
|
+
<div v-if="signatureImage" class="preview">
|
|
25
|
+
<h3>预览签名</h3>
|
|
26
|
+
<VanImage v-if="signatureImage" :src="signatureImage" />
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
</NormalDataLayout>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<style scoped lang="less">
|
|
34
|
+
.signature-demo {
|
|
35
|
+
padding: 16px;
|
|
36
|
+
.preview {
|
|
37
|
+
margin-top: 20px;
|
|
38
|
+
h3 {
|
|
39
|
+
margin: 0 0 10px;
|
|
40
|
+
font-size: 16px;
|
|
41
|
+
color: #323233;
|
|
42
|
+
}
|
|
43
|
+
img {
|
|
44
|
+
max-width: 100%;
|
|
45
|
+
border: 1px solid #ebedf0;
|
|
46
|
+
border-radius: 8px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</style>
|
|
@@ -31,7 +31,7 @@ const list = ref([
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
name: 'XForm 表单',
|
|
34
|
-
to: '/Component/XFormView
|
|
34
|
+
to: '/Component/XFormView',
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
name: 'XFormGroup 表单组',
|
|
@@ -85,6 +85,10 @@ const list = ref([
|
|
|
85
85
|
name: 'MateChat 对话组件',
|
|
86
86
|
to: '/Component/MateChatView',
|
|
87
87
|
},
|
|
88
|
+
{
|
|
89
|
+
name: 'kk预览',
|
|
90
|
+
to: '/Component/FilePreview',
|
|
91
|
+
},
|
|
88
92
|
])
|
|
89
93
|
|
|
90
94
|
function cleanConfigCache() {
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { getImageUrl } from '@af-mobile-client-vue3/utils/common'
|
|
3
|
-
import {
|
|
4
|
-
Divider as VanDivider,
|
|
5
|
-
NoticeBar as VanNoticeBar,
|
|
6
|
-
} from 'vant/es'
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<template>
|
|
10
|
-
<div>
|
|
11
|
-
<VanNoticeBar class="notice" color="#1989fa" background="#ebf2fb" mode="link">
|
|
12
|
-
<img class="notice_icon" :src="getImageUrl('../assets/img/home/notice/icon.png')">
|
|
13
|
-
<span class="notice_title">
|
|
14
|
-
消息中心<VanDivider vertical :style="{ borderColor: '#1989fa' }" />
|
|
15
|
-
</span>
|
|
16
|
-
<span class="notice_content">
|
|
17
|
-
您有0条未读消息
|
|
18
|
-
</span>
|
|
19
|
-
</VanNoticeBar>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<style scoped lang="less">
|
|
24
|
-
.notice {
|
|
25
|
-
font-size: 14px;
|
|
26
|
-
margin-bottom: var(--base-interval-1);
|
|
27
|
-
.notice_icon {
|
|
28
|
-
width: 30px;
|
|
29
|
-
height: 30px;
|
|
30
|
-
vertical-align: middle;
|
|
31
|
-
position: relative;
|
|
32
|
-
bottom: 2px;
|
|
33
|
-
}
|
|
34
|
-
.notice_title {
|
|
35
|
-
padding-left: 4px;
|
|
36
|
-
line-height: 50px;
|
|
37
|
-
}
|
|
38
|
-
.notice_content {
|
|
39
|
-
color: #000;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
:deep(.van-notice-bar) {
|
|
43
|
-
height: 50px;
|
|
44
|
-
padding: 0 8px;
|
|
45
|
-
}
|
|
46
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { getImageUrl } from '@af-mobile-client-vue3/utils/common'
|
|
3
|
+
import {
|
|
4
|
+
Divider as VanDivider,
|
|
5
|
+
NoticeBar as VanNoticeBar,
|
|
6
|
+
} from 'vant/es'
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<div>
|
|
11
|
+
<VanNoticeBar class="notice" color="#1989fa" background="#ebf2fb" mode="link">
|
|
12
|
+
<img class="notice_icon" :src="getImageUrl('../assets/img/home/notice/icon.png')">
|
|
13
|
+
<span class="notice_title">
|
|
14
|
+
消息中心<VanDivider vertical :style="{ borderColor: '#1989fa' }" />
|
|
15
|
+
</span>
|
|
16
|
+
<span class="notice_content">
|
|
17
|
+
您有0条未读消息
|
|
18
|
+
</span>
|
|
19
|
+
</VanNoticeBar>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<style scoped lang="less">
|
|
24
|
+
.notice {
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
margin-bottom: var(--base-interval-1);
|
|
27
|
+
.notice_icon {
|
|
28
|
+
width: 30px;
|
|
29
|
+
height: 30px;
|
|
30
|
+
vertical-align: middle;
|
|
31
|
+
position: relative;
|
|
32
|
+
bottom: 2px;
|
|
33
|
+
}
|
|
34
|
+
.notice_title {
|
|
35
|
+
padding-left: 4px;
|
|
36
|
+
line-height: 50px;
|
|
37
|
+
}
|
|
38
|
+
.notice_content {
|
|
39
|
+
color: #000;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
:deep(.van-notice-bar) {
|
|
43
|
+
height: 50px;
|
|
44
|
+
padding: 0 8px;
|
|
45
|
+
}
|
|
46
|
+
</style>
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
Col as VanCol,
|
|
4
|
-
Row as VanRow,
|
|
5
|
-
Search as VanSearch,
|
|
6
|
-
} from 'vant/es'
|
|
7
|
-
import { ref } from 'vue'
|
|
8
|
-
|
|
9
|
-
const value = ref('')
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<div class="top_nav_main">
|
|
14
|
-
<VanRow gutter="54" align="center">
|
|
15
|
-
<VanCol span="2">
|
|
16
|
-
<img alt="default-user-profile" class="default_user_profile" src="../../assets/common/default-user-profile.png">
|
|
17
|
-
</VanCol>
|
|
18
|
-
<VanCol span="22">
|
|
19
|
-
<VanSearch v-model="value" placeholder="请输入搜索关键词" />
|
|
20
|
-
</VanCol>
|
|
21
|
-
</VanRow>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<style scoped lang="less">
|
|
26
|
-
.top_nav_main {
|
|
27
|
-
padding-bottom: var(--base-interval-1);
|
|
28
|
-
}
|
|
29
|
-
.default_user_profile {
|
|
30
|
-
border-radius: 50%;
|
|
31
|
-
width: 33px;
|
|
32
|
-
height: 33px;
|
|
33
|
-
position: relative;
|
|
34
|
-
top: 2px;
|
|
35
|
-
}
|
|
36
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
Col as VanCol,
|
|
4
|
+
Row as VanRow,
|
|
5
|
+
Search as VanSearch,
|
|
6
|
+
} from 'vant/es'
|
|
7
|
+
import { ref } from 'vue'
|
|
8
|
+
|
|
9
|
+
const value = ref('')
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<div class="top_nav_main">
|
|
14
|
+
<VanRow gutter="54" align="center">
|
|
15
|
+
<VanCol span="2">
|
|
16
|
+
<img alt="default-user-profile" class="default_user_profile" src="../../assets/common/default-user-profile.png">
|
|
17
|
+
</VanCol>
|
|
18
|
+
<VanCol span="22">
|
|
19
|
+
<VanSearch v-model="value" placeholder="请输入搜索关键词" />
|
|
20
|
+
</VanCol>
|
|
21
|
+
</VanRow>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<style scoped lang="less">
|
|
26
|
+
.top_nav_main {
|
|
27
|
+
padding-bottom: var(--base-interval-1);
|
|
28
|
+
}
|
|
29
|
+
.default_user_profile {
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
width: 33px;
|
|
32
|
+
height: 33px;
|
|
33
|
+
position: relative;
|
|
34
|
+
top: 2px;
|
|
35
|
+
}
|
|
36
|
+
</style>
|