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;