From 13c472f0200d5161f9d7605c0e6a36a386fd089c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com>
Date: Mon, 20 Feb 2023 16:38:04 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E8=AE=AF=E5=88=86=E7=B1=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/informationInfo/index.vue | 189 +++++++++++++++++----
1 file changed, 160 insertions(+), 29 deletions(-)
diff --git a/src/views/system/informationInfo/index.vue b/src/views/system/informationInfo/index.vue
index 02261df..4656ba0 100644
--- a/src/views/system/informationInfo/index.vue
+++ b/src/views/system/informationInfo/index.vue
@@ -17,6 +17,36 @@
@keyup.enter.native="handleQuery"
/>
+
+
+ {{ queryParams.informationCategoryName }}
+ {{ queryParams.informationCategoryName }}
+
+
-
+
-
+
-
+
@@ -344,6 +377,104 @@
@pagination="informationInfoinfo"
/>
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -372,11 +503,13 @@ export default {
// 非多个禁用
multiple: true,
innerVisible: false,
+ innerVisiblezx: false,
informationqueryParams: {
pageNum: 1,
pageSize: 10,
informationCategoryCode: "",
informationCategoryName: "",
+ informationCategoryId: "",
},
// 显示搜索条件
showSearch: true,
@@ -395,6 +528,7 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
+ informationCategoryName: "请选择资讯分类",
informationCategoryId: null,
informationTitle: null,
informationCode: null,
@@ -448,7 +582,6 @@ export default {
required: true,
message: "请输入资讯图文内容",
trigger: "blur",
-
},
],
},
@@ -460,11 +593,13 @@ export default {
this.getList();
},
methods: {
-
-
innerVisiblecancel() {
this.innerVisible = false;
},
+ innerVisiblecancelzx() {
+ this.innerVisiblezx = false;
+ },
+
//重置
addresetQuery() {
this.queryParams = {
@@ -472,6 +607,7 @@ export default {
pageSize: 10,
informationCategoryCode: "",
informationTitle: "",
+ informationCategoryName: "",
};
this.getList();
},
@@ -493,15 +629,15 @@ export default {
});
},
- // 新增医院按钮
+ // 新增按钮
clickinnerVisible() {
this.informationInfoinfo();
- // this.form.informationCategoryId =
- // this.nurseStationqueryParams.informationCategoryId;
- // this.nnerVisibleindex = index;
- // console.log(this.nnerVisibleindex);
this.innerVisible = true;
},
+ clickitem() {
+ this.informationInfoinfo();
+ this.innerVisiblezx = true;
+ },
imgUrl(imgUrl) {
this.form.leadThumbnailUrl = imgUrl;
},
@@ -530,29 +666,24 @@ export default {
updatePicture(obj).then((res) => {});
}
if (this.imgsurl.pictureUrlList.length > 0) {
- updatePicture(this.imgsurl).then((res) => {});
- }
- this.imgsurl = { pictureUrlList: [] };
-
- // var obj = { pictureUrlList: [] };
- // if (this.form.leadThumbnailUrl != this.leadThumbnailUrl) {
- // obj.pictureUrlList.push(this.leadThumbnailUrl);
- // }
- // updatePicture(obj).then((res) => {
- // this.open = false;
- // });
+ updatePicture(this.imgsurl).then((res) => {});
+ }
+ this.imgsurl = { pictureUrlList: [] };
+
this.open = false;
this.reset();
},
nurseclick(row) {
console.log(row);
-
this.form.informationCategoryId = row.id;
this.form.informationCategoryName = row.informationCategoryName;
-
- // }
this.innerVisible = false;
},
+ nurseclickzx(row) {
+ this.queryParams.informationCategoryId = row.id;
+ this.queryParams.informationCategoryName = row.informationCategoryName;
+ this.innerVisiblezx = false;
+ },
// 表单重置
reset() {
this.form = {
@@ -588,7 +719,8 @@ export default {
pageNum: 1,
pageSize: 10,
informationCategoryCode: "",
- informationCategoryName: "",
+ informationCategoryName: "请选择资讯分类",
+ // informationCategoryName:"",
};
this.informationInfoinfo();
this.handleQuery();
@@ -621,7 +753,6 @@ export default {
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
-
if (this.form.id != null) {
updateInformationInfo(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
@@ -637,7 +768,7 @@ export default {
this.getList();
});
} else {
- this.form.informationSort=parseInt( this.form.informationSort)
+ this.form.informationSort = parseInt(this.form.informationSort);
addInformationInfo(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;