@@ -65,6 +65,7 @@ import {rulesForm, resetForm, rulesPhone} from '@/com/index'
import {getToken, getVisitorRecord, getWhiteCode} from '@/api/admin.js'
/* @data */
+const appVersion = ref(import.meta.env.VITE_APP_VERSION || '1.0.0')
const router = useRouter()
const store = useStore()
const isLoading = ref(false)
@@ -176,6 +177,26 @@ const initializeApp = () => {
}
};
+const onClickItem = (item) => {
+ // 检查instanceUrl是否存在且非空
+ let instanceUrl;
+
+ if (item.instanceUrl && item.instanceUrl.trim() !== '') {
+ instanceUrl = item.instanceUrl;
+ }else{
+ instanceUrl = `https://aflow.dingtalk.com/dingtalk/mobile/homepage.htm?corpid=ding03f8e88dde9b426835c2f4657eb6378f&dd_share=false&showmenu=false&dd_progress=false&back=native&procInstId=${item.instanceId}&taskId=&swfrom=isv&dinghash=approval&dtaction=os&dd_from=corp#approval`;
+ }
+ dd.openLink({
+ url: instanceUrl,
+ success: () => {
+ },
+ fail: () => {
+ },
+ complete: () => {
+ },
+ });
+}
+
// 在组件挂载时调用
onMounted(() => {
initializeApp();
@@ -207,7 +228,7 @@ onMounted(() => {
;
font-size: .48rem /* 36/75 */
;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 500;
color: #222222;
}
@@ -216,7 +237,7 @@ onMounted(() => {
line-height: .48rem /* 36/75 */
;
font-size: $sm-size;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
color: #FFFFFF;
padding: 0 .6933rem /* 52/75 */
@@ -281,7 +302,7 @@ onMounted(() => {
line-height: .64rem /* 48/75 */
;
font-size: $lg-size;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 500;
color: #222222;
}
@@ -291,7 +312,7 @@ onMounted(() => {
;
font-size: .2667rem /* 20/75 */
;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
color: #5F6583;
margin-top: .1067rem /* 8/75 */
@@ -327,14 +348,14 @@ onMounted(() => {
;
font-size: .48rem /* 36/75 */
;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 500;
color: #222222;
span {
// line-height: 36px;
font-size: $sm-size;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
color: #999999;
}
@@ -359,7 +380,7 @@ onMounted(() => {
height: .6667rem /* 50/75 */
;
font-size: $md-size;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
color: #222222;
}
@@ -375,7 +396,7 @@ onMounted(() => {
border-radius: .1333rem /* 10/75 */
;
font-size: $md-size;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
color: #999999;
line-height: .72rem /* 54/75 */
@@ -403,7 +424,7 @@ onMounted(() => {
;
color: #FF6643;
font-size: $sm-size;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
text-align: center;
@@ -436,7 +457,7 @@ onMounted(() => {
}
// font-size: 15px;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
color: #999999;
text-align: center;
diff --git a/src/views/home.vue b/src/views/home.vue
index ae64975..9ae0b53 100644
--- a/src/views/home.vue
+++ b/src/views/home.vue
@@ -274,7 +274,7 @@ if (token.value) {
;
font-size: .7467rem /* 56/75 */
;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 500;
color: #FFFFFF;
padding: .8533rem /* 64/75 */
@@ -292,7 +292,7 @@ if (token.value) {
line-height: .5333rem /* 40/75 */
;
font-size: $sm-size;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
color: #FFFFFF;
@@ -337,7 +337,7 @@ if (token.value) {
.entering-center {
flex: 1;
font-size: $md-size;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 500;
color: #FFFFFF;
@@ -367,7 +367,7 @@ if (token.value) {
;
outline: none;
font-size: $size26;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 500;
color: #202F44;
border: none;
@@ -396,7 +396,7 @@ if (token.value) {
;
font-size: .5333rem /* 40/75 */
;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 500;
color: #222222;
}
@@ -438,7 +438,7 @@ if (token.value) {
;
font-size: $md-size;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
color: #5F6583;
margin-bottom: .28rem /* 21/75 */
@@ -499,7 +499,7 @@ if (token.value) {
line-height: .9867rem /* 74/75 */
;
font-size: $size30;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
color: #4B4C4E;
}
@@ -515,7 +515,7 @@ if (token.value) {
border: none;
outline: none;
font-size: $sm-size;
- font-family: Source Han Sans CN, serif;
+ font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 400;
color: #999999;
box-sizing: border-box;
diff --git a/src/views/visitorRecord.vue b/src/views/visitorRecord.vue
index 40b3aa0..c2ee893 100644
--- a/src/views/visitorRecord.vue
+++ b/src/views/visitorRecord.vue
@@ -1,14 +1,15 @@
-
+
{{ item.statusName }}
-

+
-
+
-
+
被拜访人:{{ item.visitingName }}
拜访时间:{{ item.hours }}
@@ -17,11 +18,11 @@
随行人数:{{ item.visitingNum }}
来访事由:{{ item.reason }}
-
+
{{ stateEnum[item.status].statusName }}
-
+
暂无数据
@@ -30,159 +31,205 @@