af-mobile-client-vue3 1.2.18 → 1.2.19
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/components/data/XCellList/index.vue +49 -11
- package/src/components/data/XCellListFilter/index.vue +87 -16
- package/src/components/data/XForm/index.vue +67 -28
- package/src/components/data/XFormItem/index.vue +271 -213
- package/src/components/data/XOlMap/index.vue +4 -3
- package/src/components/data/XOlMap/types.ts +2 -0
- package/src/components/data/XReportGrid/XReportDemo.vue +33 -33
- package/src/components/data/XReportGrid/print.js +184 -184
- package/src/utils/queryFormDefaultRangePicker.ts +57 -57
- package/src/views/component/XCellListView/index.vue +126 -127
- package/src/views/component/XFormGroupView/index.vue +4 -7
- package/vite.config.ts +2 -2
|
@@ -1,143 +1,142 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import XCellList from '@af-mobile-client-vue3/components/data/XCellList/index.vue'
|
|
3
|
-
import
|
|
4
|
-
import { useUserStore } from '@af-mobile-client-vue3/stores/modules/user'
|
|
5
|
-
import { defineEmits, ref } from 'vue'
|
|
3
|
+
import { onMounted, ref } from 'vue'
|
|
6
4
|
import { useRouter } from 'vue-router'
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const userInfo = useUserStore().getUserInfo()
|
|
11
|
-
// 访问路由
|
|
6
|
+
const configName = ref('ApplyMobileProcessCRUD')
|
|
7
|
+
const serviceName = ref('af-apply')
|
|
12
8
|
const router = useRouter()
|
|
13
|
-
// 获取默认值
|
|
14
|
-
const idKey = ref('o_id')
|
|
15
9
|
|
|
16
|
-
//
|
|
17
|
-
|
|
18
|
-
//
|
|
19
|
-
// const configName = ref('lngPriceManageMobileCRUD')
|
|
20
|
-
const configName = ref('测试2')
|
|
21
|
-
const serviceName = ref('af-gaslink')
|
|
22
|
-
// const configName = ref('mobile_liushuiQueryCRUD')
|
|
23
|
-
// const serviceName = ref('af-revenue')
|
|
24
|
-
|
|
25
|
-
// 资源权限测试
|
|
26
|
-
// const configName = ref('crud_sources_test')
|
|
27
|
-
// const serviceName = ref('af-system')
|
|
28
|
-
|
|
29
|
-
// 实际业务测试
|
|
30
|
-
// const configName = ref('lngChargeAuditMobileCRUD')
|
|
31
|
-
// const serviceName = ref('af-gaslink')
|
|
32
|
-
|
|
33
|
-
// 跳转到详情页面
|
|
34
|
-
// function toDetail(item) {
|
|
35
|
-
// router.push({
|
|
36
|
-
// name: 'XCellDetailView',
|
|
37
|
-
// params: { id: item[idKey.value] }, // 如果使用命名路由,推荐使用路由参数而不是直接构建 URL
|
|
38
|
-
// query: {
|
|
39
|
-
// operName: item[operNameKey.value],
|
|
40
|
-
// method:item[methodKey.value],
|
|
41
|
-
// requestMethod:item[requestMethodKey.value],
|
|
42
|
-
// operatorType:item[operatorTypeKey.value],
|
|
43
|
-
// operUrl:item[operUrlKey.value],
|
|
44
|
-
// operIp:item[operIpKey.value],
|
|
45
|
-
// costTime:item[costTimeKey.value],
|
|
46
|
-
// operTime:item[operTimeKey.value],
|
|
47
|
-
//
|
|
48
|
-
// title: item[titleKey.value],
|
|
49
|
-
// businessType: item[businessTypeKey.value],
|
|
50
|
-
// status:item[statusKey.value]
|
|
51
|
-
// }
|
|
52
|
-
// })
|
|
53
|
-
// }
|
|
54
|
-
|
|
55
|
-
// 跳转到表单——以表单组来渲染纯表单
|
|
56
|
-
function toDetail(item) {
|
|
57
|
-
router.push({
|
|
58
|
-
name: 'XFormGroupView',
|
|
59
|
-
// query: {
|
|
60
|
-
// id: item[idKey.value],
|
|
61
|
-
// id: item.rr_id,
|
|
62
|
-
// o_id: item.o_id,
|
|
63
|
-
// },
|
|
64
|
-
})
|
|
10
|
+
// 删除功能
|
|
11
|
+
function phone(result) {
|
|
12
|
+
// todo 调用真机进行通话
|
|
65
13
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
// router.push({
|
|
70
|
-
// name: 'XFormView',
|
|
71
|
-
// params: { id: totalCount, openid: totalCount },
|
|
72
|
-
// query: {
|
|
73
|
-
// configName: configName.value,
|
|
74
|
-
// serviceName: serviceName.value,
|
|
75
|
-
// mode: '新增',
|
|
76
|
-
// },
|
|
77
|
-
// })
|
|
78
|
-
// }
|
|
79
|
-
function addOption() {
|
|
80
|
-
router.push({
|
|
81
|
-
name: 'XFormGroupView',
|
|
82
|
-
// params: { id: totalCount.value },
|
|
83
|
-
// query: {
|
|
84
|
-
// configName: configName.value,
|
|
85
|
-
// serviceName: serviceName.value,
|
|
86
|
-
// mode: '新增',
|
|
87
|
-
// },
|
|
88
|
-
})
|
|
89
|
-
// 如果存在回调函数,调用它并传递true表示已处理
|
|
90
|
-
// if (typeof callback === 'function') {
|
|
91
|
-
// callback(true)
|
|
92
|
-
// }
|
|
14
|
+
// 跳转流程处理
|
|
15
|
+
function action(row) {
|
|
16
|
+
router.push({ name: 'stepDetail', query: { workflowId: row.ab_f_workflow_id, stepId: row.ws_f_step_id } })
|
|
93
17
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
console.log('用户----', userInfo)
|
|
98
|
-
router.push({
|
|
99
|
-
name: 'XFormGroupView',
|
|
100
|
-
// params: { id: result.o_id, openid: result.o_id },
|
|
101
|
-
// query: {
|
|
102
|
-
// configName: configName.value,
|
|
103
|
-
// serviceName: serviceName.value,
|
|
104
|
-
// mode: '修改',
|
|
105
|
-
// },
|
|
106
|
-
})
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// 删除功能
|
|
110
|
-
function deleteRow(result) {
|
|
111
|
-
emit('deleteRow', result.o_id)
|
|
18
|
+
// 工作日志
|
|
19
|
+
function worklog(row) {
|
|
20
|
+
router.push({ name: 'worklog', query: { workflowid: row.ab_f_workflow_id, defname: row.ws_f_name } })
|
|
112
21
|
}
|
|
22
|
+
onMounted(() => {
|
|
23
|
+
})
|
|
113
24
|
</script>
|
|
114
25
|
|
|
115
26
|
<template>
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
<!-- :id-key="idKey" -->
|
|
124
|
-
<!-- @to-detail="toDetail" -->
|
|
125
|
-
<!-- @delete-row="deleteRow" -->
|
|
126
|
-
<!-- @update="updateRow" -->
|
|
127
|
-
<!-- @add="addOption" -->
|
|
128
|
-
<!-- /> -->
|
|
129
|
-
|
|
130
|
-
<!-- :fix-query-form="{ u_f_price_state: ['生效', '待生效'] }" -->
|
|
131
|
-
|
|
132
|
-
<XCellList
|
|
133
|
-
config-name="小小测试CRUD"
|
|
134
|
-
service-name="af-apply"
|
|
135
|
-
@to-detail="toDetail"
|
|
136
|
-
@delete-row="deleteRow"
|
|
137
|
-
/>
|
|
138
|
-
</template>
|
|
139
|
-
</NormalDataLayout>
|
|
27
|
+
<XCellList
|
|
28
|
+
:config-name="configName"
|
|
29
|
+
:service-name="serviceName"
|
|
30
|
+
@phone="phone"
|
|
31
|
+
@action="action"
|
|
32
|
+
@worklog="worklog"
|
|
33
|
+
/>
|
|
140
34
|
</template>
|
|
141
35
|
|
|
142
36
|
<style scoped lang="less">
|
|
37
|
+
.cell-search-after {
|
|
38
|
+
padding: 0 12px 12px 12px;
|
|
39
|
+
background-color: #fff;
|
|
40
|
+
.van-row:first-child {
|
|
41
|
+
align-items: center;
|
|
42
|
+
margin-bottom: 8px;
|
|
43
|
+
padding: 0 2px;
|
|
44
|
+
h4 {
|
|
45
|
+
font-size: 1.08rem;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
margin: 0;
|
|
48
|
+
color: #222;
|
|
49
|
+
letter-spacing: 1px;
|
|
50
|
+
}
|
|
51
|
+
.stat-date-range {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: flex-end;
|
|
55
|
+
font-size: 0.92rem;
|
|
56
|
+
color: #b0b3b8;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
span {
|
|
59
|
+
margin-left: 4px;
|
|
60
|
+
font-size: 0.92rem;
|
|
61
|
+
color: #b0b3b8;
|
|
62
|
+
}
|
|
63
|
+
.van-icon {
|
|
64
|
+
font-size: 1rem;
|
|
65
|
+
color: #b0b3b8;
|
|
66
|
+
margin-right: 2px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
.van-row:nth-child(2) {
|
|
71
|
+
margin-top: 8px;
|
|
72
|
+
// 统计卡片间距由gutter控制
|
|
73
|
+
.van-col {
|
|
74
|
+
// 让卡片宽度自适应
|
|
75
|
+
.stat-card {
|
|
76
|
+
width: 100%;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.stat-card {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
border-radius: 12px;
|
|
86
|
+
padding: 6px 0 4px 0; // 压缩高度
|
|
87
|
+
min-height: 44px; // 压缩高度
|
|
88
|
+
position: relative;
|
|
89
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
|
|
90
|
+
background: #f7f8fa;
|
|
91
|
+
.stat-num {
|
|
92
|
+
font-size: 1.08rem; // 缩小字体
|
|
93
|
+
font-weight: 600;
|
|
94
|
+
margin-bottom: 2px;
|
|
95
|
+
}
|
|
96
|
+
.stat-label {
|
|
97
|
+
font-size: 0.82rem; // 缩小字体
|
|
98
|
+
margin-bottom: 2px;
|
|
99
|
+
}
|
|
100
|
+
.stat-icon {
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 6px;
|
|
103
|
+
right: 8px;
|
|
104
|
+
font-size: 1rem;
|
|
105
|
+
opacity: 0.4;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.stat-total {
|
|
109
|
+
background: #f0f5ff;
|
|
110
|
+
color: #2f54eb;
|
|
111
|
+
.stat-num,
|
|
112
|
+
.stat-label {
|
|
113
|
+
color: #2f54eb;
|
|
114
|
+
}
|
|
115
|
+
.stat-icon {
|
|
116
|
+
color: #2f54eb;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
.stat-done {
|
|
120
|
+
background: #e6fffb;
|
|
121
|
+
color: #13c2c2;
|
|
122
|
+
.stat-num,
|
|
123
|
+
.stat-label {
|
|
124
|
+
color: #13c2c2;
|
|
125
|
+
}
|
|
126
|
+
.stat-icon {
|
|
127
|
+
color: #13c2c2;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
.stat-processing {
|
|
131
|
+
background: #f9f0ff;
|
|
132
|
+
color: #b37feb;
|
|
133
|
+
.stat-num,
|
|
134
|
+
.stat-label {
|
|
135
|
+
color: #b37feb;
|
|
136
|
+
}
|
|
137
|
+
.stat-icon {
|
|
138
|
+
color: #b37feb;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
143
142
|
</style>
|
|
@@ -5,19 +5,16 @@ import { showDialog } from 'vant'
|
|
|
5
5
|
import { ref } from 'vue'
|
|
6
6
|
import { useRoute } from 'vue-router'
|
|
7
7
|
|
|
8
|
-
// const configName = ref('reviewFormGroup')
|
|
9
|
-
// const serviceName = ref('af-revenue')
|
|
10
|
-
|
|
11
8
|
// 纯表单
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const configName = ref('form_check_test')
|
|
10
|
+
const serviceName = ref('af-system')
|
|
14
11
|
|
|
15
12
|
// const configName = ref("计划下发Form")
|
|
16
13
|
// const serviceName = ref("af-linepatrol")
|
|
17
14
|
|
|
18
15
|
// 表单组
|
|
19
|
-
const configName = ref('lngChargeAuditMobileFormGroup')
|
|
20
|
-
const serviceName = ref('af-gaslink')
|
|
16
|
+
// const configName = ref('lngChargeAuditMobileFormGroup')
|
|
17
|
+
// const serviceName = ref('af-gaslink')
|
|
21
18
|
|
|
22
19
|
const formData = ref({})
|
|
23
20
|
const formGroup = ref(null)
|
package/vite.config.ts
CHANGED
|
@@ -11,8 +11,8 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
|
|
11
11
|
|
|
12
12
|
const appProxys = {}
|
|
13
13
|
|
|
14
|
-
const v4Server = 'http://
|
|
15
|
-
const v3Server = '
|
|
14
|
+
const v4Server = 'http://192.168.50.67:31577'
|
|
15
|
+
const v3Server = 'https://wkf.qhgas.com'
|
|
16
16
|
const OSSServerDev = 'http://192.168.50.67:30351'
|
|
17
17
|
const geoserver = 'http://39.104.49.8:30372'
|
|
18
18
|
// const OSSServerProd = 'http://192.168.50.67:31351'
|