af-mobile-client-vue3 1.2.13 → 1.2.15

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.
@@ -1,95 +1,112 @@
1
- html:not(.dark) {
2
- .form {
3
- .form_field {
4
- :deep(.van-field__label) {
5
- color: rgb(88, 88, 88);
6
- }
7
- :deep(.van-field__body) {
8
- background: rgb(251, 251, 251);
9
- box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.1);
10
- color: rgb(71, 71, 71);
11
- }
12
- :deep(.van-cell) {
13
- background: #ffffff;
14
- }
15
- }
16
- .extra_setting {
17
- .extra_setting_for_remember_password {
18
- color: rgb(88, 88, 88);
19
- }
20
- }
21
- }
22
- }
23
- .form {
24
- width: 100%;
25
- padding: 0 40px;
26
- .form_field {
27
- padding-right: 0;
28
- padding-left: 0;
29
- :deep(.van-field__label) {
30
- opacity: 0.7;
31
- font-size: 16px;
32
- font-weight: 400;
33
- line-height: 23px;
34
- text-transform: uppercase;
35
- text-indent: 10px;
36
- }
37
- :deep(.van-field__body) {
38
- height: 40px;
39
- border-radius: 5px;
40
- font-size: 16px;
41
- font-weight: 400;
42
- padding: 8px 10px;
43
- opacity: 0.6;
44
- }
45
- }
46
- .extra_setting {
47
- font-size: 12px;
48
- font-weight: 400;
49
- line-height: 12px;
50
- .extra_setting_for_remember_password {
51
- opacity: 0.7;
52
- span {
53
- position: relative;
54
- bottom: 3px;
55
- left: 5px;
56
- }
57
- }
58
- .extra_setting_for_reset_password {
59
- position: relative;
60
- top: 2px;
61
- opacity: 0.7;
62
- color: rgb(56, 149, 250);
63
- }
64
- }
65
- .btn {
66
- height: 50px;
67
- :deep(.van-button__text) {
68
- color: rgb(255, 255, 255);
69
- font-size: 16px;
70
- font-weight: 700;
71
- line-height: 23px;
72
- }
73
- }
74
- .login_btn {
75
- background: rgb(56, 149, 250);
76
- margin-top: 104px;
77
- }
78
- .reset_btn {
79
- margin: 24px 0;
80
- }
81
- .back_btn {
82
- :deep(.van-button__text) {
83
- color: rgb(56, 149, 250);
84
- }
85
- }
86
- :deep(.van-cell:after) {
87
- border-bottom: none;
88
- }
89
- }
90
- .login_form {
91
- margin-top: 65px;
92
- }
93
- .forget_password_form {
94
- margin-top: 15px;
95
- }
1
+ html:not(.dark) {
2
+ .form {
3
+ .form_field {
4
+ :deep(.van-field__label) {
5
+ color: rgb(88, 88, 88);
6
+ }
7
+ :deep(.van-field__body) {
8
+ background: rgb(251, 251, 251);
9
+ box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.1);
10
+ color: rgb(71, 71, 71);
11
+ }
12
+ :deep(.van-cell) {
13
+ background: #ffffff;
14
+ }
15
+ }
16
+ .extra_setting {
17
+ .extra_setting_for_remember_password {
18
+ color: rgb(88, 88, 88);
19
+ }
20
+ }
21
+ }
22
+ }
23
+ .form {
24
+ width: 100%;
25
+ padding: 0 40px;
26
+ .form_field {
27
+ padding-right: 0;
28
+ padding-left: 0;
29
+ :deep(.van-field__label) {
30
+ opacity: 0.7;
31
+ font-size: 16px;
32
+ font-weight: 400;
33
+ line-height: 23px;
34
+ text-transform: uppercase;
35
+ text-indent: 10px;
36
+ }
37
+ :deep(.van-field__body) {
38
+ height: 40px;
39
+ border-radius: 5px;
40
+ font-size: 16px;
41
+ font-weight: 400;
42
+ padding: 8px 10px;
43
+ opacity: 0.6;
44
+ }
45
+ }
46
+ .extra_setting {
47
+ font-size: 12px;
48
+ font-weight: 400;
49
+ line-height: 12px;
50
+ .extra_setting_for_remember_password {
51
+ opacity: 0.7;
52
+ span {
53
+ position: relative;
54
+ bottom: 3px;
55
+ left: 5px;
56
+ }
57
+ }
58
+ .extra_setting_for_reset_password {
59
+ position: relative;
60
+ top: 2px;
61
+ opacity: 0.7;
62
+ color: rgb(56, 149, 250);
63
+ }
64
+ }
65
+ .btn {
66
+ height: 50px;
67
+ :deep(.van-button__text) {
68
+ color: rgb(255, 255, 255);
69
+ font-size: 16px;
70
+ font-weight: 700;
71
+ line-height: 23px;
72
+ }
73
+ }
74
+ .login_btn {
75
+ background: rgb(56, 149, 250);
76
+ margin-top: 104px;
77
+ }
78
+ .reset_btn {
79
+ margin: 24px 0;
80
+ }
81
+ .back_btn {
82
+ :deep(.van-button__text) {
83
+ color: rgb(56, 149, 250);
84
+ }
85
+ }
86
+ :deep(.van-cell:after) {
87
+ border-bottom: none;
88
+ }
89
+ }
90
+ .login_form {
91
+ margin-top: 65px;
92
+ }
93
+ .forget_password_form {
94
+ margin-top: 15px;
95
+ }
96
+
97
+ /* 使图标垂直居中 */
98
+ .wechat-login-btn .van-icon {
99
+ vertical-align: middle;
100
+ }
101
+
102
+ /* 悬停效果 */
103
+ .wechat-login-btn:hover {
104
+ background-color: #06AD56 !important;
105
+ border-color: #06AD56 !important;
106
+ }
107
+
108
+ /* 点击效果 */
109
+ .wechat-login-btn:active {
110
+ background-color: #05994C !important;
111
+ border-color: #05994C !important;
112
+ }
@@ -1,50 +1,104 @@
1
1
  <script setup lang="ts">
2
- import XForm from '@af-mobile-client-vue3/components/data/XForm/index.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
+ import { useRouter } from 'vue-router'
6
+
7
+ // 定义事件
8
+ const emit = defineEmits(['deleteRow'])
9
+ // 访问路由
10
+ const router = useRouter()
11
+ // 获取默认值
12
+ const idKey = ref('o_id')
13
+
14
+ // 简易crud表单测试
15
+ const configName = ref('lngChargeAuditMobileCRUD')
16
+ const serviceName = ref('af-gaslink')
17
+
18
+ // 资源权限测试
19
+ // const configName = ref('crud_sources_test')
20
+ // const serviceName = ref('af-system')
21
+
22
+ // 实际业务测试
23
+ // const configName = ref('lngChargeAuditMobileCRUD')
24
+ // const serviceName = ref('af-gaslink')
5
25
 
6
- import { runLogic } from '@af-mobile-client-vue3/services/api/common'
7
- import { onBeforeMount, ref } from 'vue'
8
-
9
- import { useRoute } from 'vue-router'
10
-
11
- const route = useRoute()
12
- const workflowId: string = route.query.workflowId as string
13
- const stepId: string = route.query.stepId as string
14
- const currentStep = ref(undefined)
15
- const formData = ref(undefined)
16
- const isLoading = ref(false)
17
- const isFinish = ref(false)
18
-
19
- // http://localhost:7190/apply-app/step-detail?workflowId=376&stepId=2#/
20
- // 初始化组件
21
- function initComponent() {
22
- isLoading.value = true
23
- runLogic('getWorkFlowDefine', {
24
- id: workflowId,
25
- }, 'af-apply').then((res: any) => {
26
- const stepIdValue = Number.parseInt(stepId as string)
27
- currentStep.value = res.steps.filter((item: any) => item.id === stepIdValue)[0]
28
- formData.value = currentStep.value.properties.form
29
- console.log('formData.value==', formData.value)
30
- isFinish.value = true
31
- }).finally(() => {
32
- isLoading.value = false
26
+ // 跳转到详情页面
27
+ // function toDetail(item) {
28
+ // router.push({
29
+ // name: 'XCellDetailView',
30
+ // params: { id: item[idKey.value] }, // 如果使用命名路由,推荐使用路由参数而不是直接构建 URL
31
+ // query: {
32
+ // operName: item[operNameKey.value],
33
+ // method:item[methodKey.value],
34
+ // requestMethod:item[requestMethodKey.value],
35
+ // operatorType:item[operatorTypeKey.value],
36
+ // operUrl:item[operUrlKey.value],
37
+ // operIp:item[operIpKey.value],
38
+ // costTime:item[costTimeKey.value],
39
+ // operTime:item[operTimeKey.value],
40
+ //
41
+ // title: item[titleKey.value],
42
+ // businessType: item[businessTypeKey.value],
43
+ // status:item[statusKey.value]
44
+ // }
45
+ // })
46
+ // }
47
+
48
+ // 跳转到表单——以表单组来渲染纯表单
49
+ function toDetail(item) {
50
+ router.push({
51
+ name: 'XFormGroupView',
52
+ query: {
53
+ id: item[idKey.value],
54
+ // id: item.rr_id,
55
+ // o_id: item.o_id,
56
+ },
33
57
  })
34
58
  }
35
59
 
36
- onBeforeMount(() => {
37
- initComponent()
38
- })
60
+ // 新增功能
61
+ // function addOption(totalCount) {
62
+ // router.push({
63
+ // name: 'XFormView',
64
+ // params: { id: totalCount, openid: totalCount },
65
+ // query: {
66
+ // configName: configName.value,
67
+ // serviceName: serviceName.value,
68
+ // mode: '新增',
69
+ // },
70
+ // })
71
+ // }
72
+
73
+ // 修改功能
74
+ // function updateRow(result) {
75
+ // router.push({
76
+ // name: 'XFormView',
77
+ // params: { id: result.o_id, openid: result.o_id },
78
+ // query: {
79
+ // configName: configName.value,
80
+ // serviceName: serviceName.value,
81
+ // mode: '修改',
82
+ // },
83
+ // })
84
+ // }
85
+
86
+ // 删除功能
87
+ function deleteRow(result) {
88
+ emit('deleteRow', result.o_id)
89
+ }
39
90
  </script>
40
91
 
41
92
  <template>
42
- <NormalDataLayout v-if="isFinish" :title="currentStep.name">
93
+ <NormalDataLayout id="XCellListView" title="工作计划">
43
94
  <template #layout_content>
44
- <XForm
45
- mode="新增"
46
- :group-form-items="formData"
47
- service-name="af-apply"
95
+ <XCellList
96
+ :config-name="configName"
97
+ :service-name="serviceName"
98
+ :fix-query-form="{ o_f_oper_name: 'edu_test' }"
99
+ :id-key="idKey"
100
+ @to-detail="toDetail"
101
+ @delete-row="deleteRow"
48
102
  />
49
103
  </template>
50
104
  </NormalDataLayout>