From 5ed1c9a9bf412c8b70851e9899b5e00f9eea68c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com>
Date: Tue, 8 Aug 2023 09:00:51 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=BA=86=E6=89=93?=
=?UTF-8?q?=E5=8C=85=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.production | 4 +--
src/App.vue | 10 +++++-
src/api/external/index.js | 1 +
.../productsMsg/components/productInfo.vue | 35 +++++++++++--------
vue.config.js | 2 +-
5 files changed, 34 insertions(+), 18 deletions(-)
diff --git a/.env.production b/.env.production
index c6adc7d..6e1379e 100644
--- a/.env.production
+++ b/.env.production
@@ -5,11 +5,11 @@ VUE_APP_TITLE = 产品档案管理系统
ENV = 'production'
# 检查员管理系统/生产环境
-VUE_APP_BASE_API = '/prod-api'
+VUE_APP_BASE_API = '/ggfw-api'
#外网(部署104、105服务器)
# VUE_APP_BASE_API2 = '/api/inspector/inspector'
-VUE_APP_BASE_API2 = :9026/inspector
+VUE_APP_BASE_API2 = '/ggfw-api'
#调用外部接口
VUE_APP_BASE_API3 = '/api/admin'
#本地文件下载路径
diff --git a/src/App.vue b/src/App.vue
index e644922..62d4fc2 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -24,7 +24,15 @@ export default {
};
},
mounted(){
-
+ /*
+ sudo mv html.zip /usr/share/nginx/html/ggfw-dangan 在 MSSM-Dev 文件夹下 移动压缩包到 ggfw文件夹下
+
+ cd /usr/share/nginx/html/ggfw-dangan 移动到文件夹下
+
+ unzip html.zip -d . 解压
+
+ rm ./html.zip 删除当前目录下的压缩包 弹出确定删除 打 y 并回车
+ */
}
};
diff --git a/src/api/external/index.js b/src/api/external/index.js
index 6e7df23..527f619 100644
--- a/src/api/external/index.js
+++ b/src/api/external/index.js
@@ -3,6 +3,7 @@ import request from "@/utils/request";
//获取用户信息
export function getselfInfo() {
return request({
+ baseURL: location.origin,
url: "/api/admin/user/getSelfInfo",
method: "GET",
});
diff --git a/src/views/productsMsg/components/productInfo.vue b/src/views/productsMsg/components/productInfo.vue
index 8c767e4..1aa5fce 100644
--- a/src/views/productsMsg/components/productInfo.vue
+++ b/src/views/productsMsg/components/productInfo.vue
@@ -2,33 +2,40 @@
-
+
\ No newline at end of file
+::v-deep.el-table--medium .el-table__cell {
+ padding: 2.53px 0;
+}
+
diff --git a/src/views/productsMsg/components/health.vue b/src/views/productsMsg/components/health.vue
index 557dd81..7c50b41 100644
--- a/src/views/productsMsg/components/health.vue
+++ b/src/views/productsMsg/components/health.vue
@@ -9,7 +9,7 @@
-
+
@@ -27,14 +27,14 @@
-
+
-
+
@@ -57,24 +57,53 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
@@ -129,6 +159,11 @@ export default {
size: 10,
current: 1,
},
+ form: {
+ size: 10,
+ current: 1,
+ },
+ jieliuShow: true,
};
},
mounted() {},
@@ -136,20 +171,36 @@ export default {
this.chinaCosmetics();
},
methods: {
+ jieliuFunc() {
+ if (this.jieliuShow) {
+ this.chinaCosmetics();
+ this.jieliuShow = false;
+ setTimeout(() => {
+ this.jieliuShow = true;
+ }, 3000);
+ } else {
+ this.$message("点击过快");
+ }
+ },
//去内嵌页面
toDetail(e) {
this.$router.push({
path: `/cosmeticsDetail`,
- query: { type: '3', data:e.zczh },
+ query: { type: "3", data: e.zczh },
});
},
//搜索
searchList() {
- this.chinaCosmetics();
+ this.form.current = 1;
+
+ for (let i in this.form1) {
+ this.form[i] = this.form1[i];
+ }
+ this.jieliuFunc();
},
getPagination(e) {
- this.form1.current = e.page;
- this.form1.size = e.limit;
+ this.form.current = e.page;
+ this.form.size = e.limit;
this.chinaCosmetics();
},
//重置
@@ -162,21 +213,25 @@ export default {
size: 10,
current: 1,
};
+ this.form = {
+ size: 10,
+ current: 1,
+ };
+ this.jieliuFunc();
},
async chinaCosmetics() {
this.loading = true;
- let msg1 = await this.$api.apparatus.apparatusList(this.form1);
+ let msg1 = await this.$api.apparatus.apparatusList(this.form);
this.tableData = msg1.data.records;
this.total = msg1.data.total;
- this.form1.size = msg1.data.size;
- this.form1.current = msg1.data.current;
+ this.form.size = msg1.data.size;
+ this.form.current = msg1.data.current;
this.loading = false;
},
},
};
-
\ No newline at end of file
+::v-deep.el-table--medium .el-table__cell {
+ padding: 2.53px 0;
+}
+
diff --git a/src/views/productsMsg/index.vue b/src/views/productsMsg/index.vue
index 6d44651..3e31ffb 100644
--- a/src/views/productsMsg/index.vue
+++ b/src/views/productsMsg/index.vue
@@ -9,17 +9,17 @@
-
+
-
+
-
+
@@ -27,17 +27,17 @@
-
+
-
+
-
+
{{ scope.row.yptymc }}
-
+
{{ scope.row.yppzwh }}
-
+
{{ scope.row.ypfl }}
-
+
{{ scope.row.jx }}
@@ -118,10 +118,10 @@
@@ -137,14 +137,40 @@ export default {
loading: false,
tableData: [],
total: 0,
- options: [],
+ options: [
+ {
+ value: 1,
+ label: "全部",
+ },
+ {
+ value: 2,
+ label: "中药",
+ },
+ {
+ value: 3,
+ label: "辅料",
+ },
+ {
+ value: 4,
+ label: "生物制品",
+ },
+ {
+ value: 5,
+ label: "化学药品",
+ },
+ ],
form1: {
- types: "",
+ jx: "",
ypfl: "",
name: "",
+ pzwh: "",
+ scqy: "",
+ },
+ form: {
size: 10,
current: 1,
},
+ jieliuShow: true,
};
},
mounted() {},
@@ -152,42 +178,63 @@ export default {
this.chinaCosmetics(1);
},
methods: {
+ jieliuFunc() {
+ if (this.jieliuShow) {
+ this.chinaCosmetics();
+ this.jieliuShow = false;
+ setTimeout(() => {
+ this.jieliuShow = true;
+ }, 3000);
+ } else {
+ this.$message("点击过快");
+ }
+ },
//去内嵌页面
toDetail(e) {
this.$router.push({
path: `/cosmeticsDetail`,
- query: { type: '2', data:e.yppzwh },
+ query: { type: "2", data: e.yppzwh },
});
},
//搜索
searchList() {
- this.form1.current = 1
- this.chinaCosmetics();
+ this.form.current = 1;
+ for (let i in this.form1) {
+ this.form[i] = this.form1[i];
+ }
+ console.log(this.form);
+ this.jieliuFunc();
},
getPagination(e) {
console.log(e);
- this.form1.current = e.page;
- this.form1.size = e.limit;
- this.chinaCosmetics();
+ this.form.current = e.page;
+ this.form.size = e.limit;
+ this.chinaCosmetics(1);
},
//重置
reset() {
this.form1 = {
- name: "",
+ jx: "",
ypfl: "",
+ name: "",
+ pzwh: "",
+ scqy: "",
+ };
+ this.form = {
size: 10,
current: 1,
};
+ this.jieliuFunc();
},
//国产化妆品
async chinaCosmetics() {
this.loading = true;
- let msg1 = await this.$api.cosmetics.vRdgYpwhGxwz(this.form1);
+ let msg1 = await this.$api.cosmetics.vRdgYpwhGxwz(this.form);
console.log(msg1);
this.tableData = msg1.data.records;
this.total = msg1.data.total;
- this.form1.size = msg1.data.size;
- this.form1.current = msg1.data.current;
+ this.form.size = msg1.data.size;
+ this.form.current = msg1.data.current;
this.loading = false;
},
},
@@ -260,4 +307,7 @@ export default {
justify-content: space-between;
padding: 15px 20px;
}
+::v-deep.el-table--medium .el-table__cell{
+ padding: 5.2px 0;
+}
From ec79e364f25bfda182adfc886d865759df546e77 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com>
Date: Wed, 9 Aug 2023 16:00:00 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=BA=86bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productsMsg/components/cosmeticsArchives.vue | 9 ++++++---
src/views/productsMsg/components/health.vue | 9 +++++----
src/views/productsMsg/index.vue | 12 ++++++++----
3 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/src/views/productsMsg/components/cosmeticsArchives.vue b/src/views/productsMsg/components/cosmeticsArchives.vue
index 0fcba39..ca6ce12 100644
--- a/src/views/productsMsg/components/cosmeticsArchives.vue
+++ b/src/views/productsMsg/components/cosmeticsArchives.vue
@@ -69,7 +69,7 @@
v-loading="loading"
:data="tableData"
border
- height="300"
+ height="43vh"
:stripe="false"
>
@@ -89,7 +89,7 @@
{{ scope.row.bah || scope.row.pzrq }}
-
+
{{ scope.row.qy || scope.row.sf }}
@@ -372,6 +372,9 @@ export default {
padding: 15px 20px;
}
::v-deep.el-table--medium .el-table__cell {
- padding: 2.53px 0;
+ padding: 5.3px 0;
+}
+::v-deep .el-table {
+ overflow: auto;
}
diff --git a/src/views/productsMsg/components/health.vue b/src/views/productsMsg/components/health.vue
index 7c50b41..372159a 100644
--- a/src/views/productsMsg/components/health.vue
+++ b/src/views/productsMsg/components/health.vue
@@ -61,7 +61,7 @@
v-loading="loading"
:data="tableData"
border
- height="300"
+ height="43vh"
align="center"
>
@@ -95,7 +95,6 @@
prop="zczh"
align="center"
width="200"
-
>
diff --git a/src/views/productsMsg/index.vue b/src/views/productsMsg/index.vue
index 3e31ffb..ef98476 100644
--- a/src/views/productsMsg/index.vue
+++ b/src/views/productsMsg/index.vue
@@ -62,7 +62,7 @@
v-loading="loading"
:data="tableData"
border
- height="340"
+ height="49vh"
:stripe="false"
>