From 0fb19c8f132d7155b3f49d3a9736e7e7be668e68 Mon Sep 17 00:00:00 2001
From: xy <271556543@qq.com>
Date: Thu, 9 May 2024 17:34:59 +0800
Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=B7=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.staging | 4 +-
src/layout/index.vue | 4 +
src/views/away/addAway.vue | 13 --
src/views/away/component/addAway.vue | 276 +++++++++++++++++++++++++++
src/views/away/index.vue | 223 ++++++++++++++++++++--
5 files changed, 485 insertions(+), 35 deletions(-)
create mode 100644 src/views/away/component/addAway.vue
diff --git a/.env.staging b/.env.staging
index 48333b9..69cc200 100644
--- a/.env.staging
+++ b/.env.staging
@@ -4,8 +4,8 @@ NODE_ENV = production
ENV = 'staging'
# base api
-VUE_APP_DOMIAN = http://contract-sqhj.ali251.langye.net
-VUE_APP_UPLOAD_API = http://contract-sqhj.ali251.langye.net/api/admin/upload-file
+VUE_APP_DOMIAN = http://contract-sqhj-test.ali251.langye.net
+VUE_APP_UPLOAD_API = http://contract-sqhj-test.ali251.langye.net/api/admin/upload-file
VUE_APP_BASE_API =
VUE_APP_OUT_Book = http://book-sqhj.ali251.langye.net
VUE_APP_OUT_GDZC = http://hjjc-szemcgdzc.ali251.langye.net
diff --git a/src/layout/index.vue b/src/layout/index.vue
index 5400851..e2fe03f 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -230,6 +230,7 @@ export default {
height: $topbarHeight;
filter: drop-shadow(0 1px 1px #49a0f3);
display: grid;
+ -webkit-app-region: drag;
grid-template-columns: auto 0.5fr 6fr 0.2fr 1fr;
grid-template-rows: $topbarHeight;
grid-template-areas: "logo . menu . user";
@@ -241,6 +242,7 @@ export default {
right: 0;
&__logo {
+ -webkit-app-region: no-drag;
height: $topbarHeight;
grid-area: logo;
display: flex;
@@ -255,6 +257,7 @@ export default {
}
&__user {
+ -webkit-app-region: no-drag;
grid-area: user;
}
@@ -266,6 +269,7 @@ export default {
align-items: flex-end;
li {
+ -webkit-app-region: no-drag;
color: #fff;
height: 40px;
line-height: 40px;
diff --git a/src/views/away/addAway.vue b/src/views/away/addAway.vue
index 2b28842..aaa2c29 100644
--- a/src/views/away/addAway.vue
+++ b/src/views/away/addAway.vue
@@ -109,13 +109,6 @@ export default {
this.$nextTick(() => this.$refs.form.clearValidate())
},
- async getDetail () {
- const res = await show({ id: this.id },false);
- for (let key in this.form) {
- this.form[key] = res[key]
- }
- },
-
submit () {
this.loading = true
this.$refs.form.validate((valid) => {
@@ -141,12 +134,6 @@ export default {
computed: {},
created() {
this.init();
- },
- beforeRouteEnter(to, from, next) {
- next(vm => {
- vm.id = to.query.id;
- vm.getDetail(vm.id);
- })
}
}
diff --git a/src/views/away/component/addAway.vue b/src/views/away/component/addAway.vue
new file mode 100644
index 0000000..d71ff1b
--- /dev/null
+++ b/src/views/away/component/addAway.vue
@@ -0,0 +1,276 @@
+
+
+
+
+
+
+
+
+
是否用车 :
+
+
+ 是
+ 否
+
+
+
+
+
+
+
是否室内补助 :
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+
+
+
用车审核 :
+
+
+ 待申请
+ 流转中
+ 已结办
+
+
+
+
+
+
+
市内补助审核 :
+
+
+ 待申请
+ 流转中
+ 已结办
+
+
+
+
+
+
+
出差审核 :
+
+
+ 待申请
+ 流转中
+ 已结办
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/away/index.vue b/src/views/away/index.vue
index e9bc2e7..0fe50ac 100644
--- a/src/views/away/index.vue
+++ b/src/views/away/index.vue
@@ -73,8 +73,9 @@
label="操作"
width="220"
>
-
+
deleteAway(row.id)"
>
+
+
+
+
+
+
@@ -146,15 +168,26 @@
/>
+