diff --git a/.env b/.env index c4ae906..fe3f0dd 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ -# VITE_BASE_WS1_URL=ws://192.168.8.10:19001/ -# VITE_BASE_WS2_URL=ws://192.168.8.10:19002/ +VITE_BASE_WS1_URL=ws://192.168.8.10:19001/ +VITE_BASE_WS2_URL=ws://192.168.8.10:19002/ -VITE_BASE_WS1_URL=ws://127.0.0.1:19001/ -VITE_BASE_WS2_URL=ws://127.0.0.1:19002/ \ No newline at end of file +# VITE_BASE_WS1_URL=ws://127.0.0.1:19001/ +# VITE_BASE_WS2_URL=ws://127.0.0.1:19002/ \ No newline at end of file diff --git a/README.md b/README.md index c35e212..d363fb5 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ https://tdesign.tencent.com/ │ └─modules // 分modules ├─views // 视图 ├─App.vue // 项目根组件 - ├─main.js // 项目入口 + ├─main.js // 项目入口yarn └─style.scss // 全局样式 ``` diff --git a/publish.ps1 b/publish.ps1 new file mode 100644 index 0000000..ccf2df0 --- /dev/null +++ b/publish.ps1 @@ -0,0 +1,20 @@ +# build project +yarn build +# rename dist to current time, like 20221215121300 +$now = Get-Date -Format "yyyyMMddHHmmss" +Rename-Item -Path ./dist -NewName $now +# compress dist to app.zip +Compress-Archive -Path ./$now -DestinationPath ./app.zip -Force +# upload app.zip to server +scp app.zip root@192.168.8.10:/frontend/ +# unzip app.zip +ssh root:zwsd@192.168.8.10 "cd /frontend && unzip app.zip" +# remove old link +ssh root:zwsd@192.168.8.10 "cd /frontend && rm -f dist" +# create link +ssh root:zwsd@192.168.8.10 "cd /frontend && ln -s /frontend/$now /frontend/dist" +# remove app.zip +ssh root:zwsd@192.168.8.10 "cd /frontend && rm -f app.zip" +Remove-Item -Path ./app.zip +# remove folder +Remove-Item -Path ./$now -Recurse \ No newline at end of file diff --git a/src/components/Setting/components/History.vue b/src/components/Setting/components/History.vue index 1f6682b..f3b2b34 100644 --- a/src/components/Setting/components/History.vue +++ b/src/components/Setting/components/History.vue @@ -2,7 +2,14 @@

消毒名称

-

操作

+

+ + + +

-
-

{{ item }}

-
-
详情
+ +
+

  {{ item }}

+
+
详情
+
-
+
@@ -105,21 +110,47 @@
返回
+ - + diff --git a/src/main.js b/src/main.js index 6c8267c..80c1db2 100644 --- a/src/main.js +++ b/src/main.js @@ -11,6 +11,10 @@ import { NumberKeyboard, Toast, Overlay, + Checkbox, + CheckboxGroup, + DropdownMenu, + DropdownItem } from 'vant' import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' @@ -28,6 +32,10 @@ createApp(App) .use(TimePicker) .use(Field) .use(Overlay) + .use(Checkbox) + .use(CheckboxGroup) + .use(DropdownMenu) + .use(DropdownItem) .use(ElementPlus) .use(Toast) .use(store) diff --git a/src/mock/command.js b/src/mock/command.js index de2b1ea..fbb61bd 100644 --- a/src/mock/command.js +++ b/src/mock/command.js @@ -223,11 +223,24 @@ export const exportDisinfectionRecordJSON = { messageId: 'exportDisinfectionRecord', } +export const exportDisinfectionRecordByKeyListJSON = ( keys ) => ({ + command: 'exportDisinfectionRecord', + messageId: 'exportDisinfectionRecord', + keys, +}); + export const cleanDisinfectionRecordJSON = { command: 'cleanDisinfectionRecord', messageId: 'cleanDisinfectionRecord', } +export const cleanDisinfectionRecordByKeysJSON = ( keys ) => ({ + command: 'cleanDisinfectionRecord', + messageId: 'cleanDisinfectionRecord', + keys, + +}); + export const cleanUserBehaviorRecordJSON = { command: 'cleanUserBehaviorRecord', messageId: 'cleanUserBehaviorRecord',