-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
@@ -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;
+}