资讯信息管理

This commit is contained in:
闫晓茹 2023-02-15 13:54:54 +08:00
parent ad6e2a2b3a
commit 69bd626366

View File

@ -221,7 +221,6 @@
:rules="rules" :rules="rules"
label-width="140px" label-width="140px"
:inline="true" :inline="true"
> >
<el-form-item label="资讯标题" prop="informationTitle"> <el-form-item label="资讯标题" prop="informationTitle">
<el-input <el-input
@ -272,16 +271,16 @@
<el-input <el-input
v-model="form.informationSort" v-model="form.informationSort"
placeholder="请输入显示顺序" placeholder="请输入显示顺序"
style="width:250px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="资讯图文内容" prop="informationContent"> <el-form-item label="资讯图文内容" prop="informationContent">
<editor <editor
@imgs="imgs" @imgs="imgs"
maxlength="300" maxlength="300"
:min-height="102" :min-height="102"
placeholder="请输入资讯图文内容" placeholder="请输入资讯图文内容"
style="width: 80%;margin-left:18%;margin-top: -5%;" style="width: 80%; margin-left: 18%; margin-top: -5%"
v-model="form.informationContent" v-model="form.informationContent"
/> />
</el-form-item> </el-form-item>
@ -336,7 +335,10 @@
@click="informationInfoinfo" @click="informationInfoinfo"
>搜索</el-button >搜索</el-button
> >
<el-button icon="el-icon-refresh" size="mini" @click="addresetQuery" <el-button
icon="el-icon-refresh"
size="mini"
@click="addresetQuerylist"
>重置</el-button >重置</el-button
> >
</el-form-item> </el-form-item>
@ -530,6 +532,7 @@ export default {
innerVisiblecancel() { innerVisiblecancel() {
this.innerVisible = false; this.innerVisible = false;
}, },
//
addresetQuery() { addresetQuery() {
this.nurseStationqueryParams = { this.nurseStationqueryParams = {
pageNum: 1, pageNum: 1,
@ -539,6 +542,15 @@ export default {
}; };
this.getList(); this.getList();
}, },
addresetQuerylist() {
this.nurseStationqueryParams = {
pageNum: 1,
pageSize: 10,
informationCategoryCode: "",
informationCategoryName: "",
};
this.informationInfoinfo();
},
informationInfoinfo() { informationInfoinfo() {
listInformationCategory(this.nurseStationqueryParams).then((response) => { listInformationCategory(this.nurseStationqueryParams).then((response) => {
this.infolist = response.rows; this.infolist = response.rows;
@ -556,7 +568,6 @@ export default {
// this.nnerVisibleindex = index; // this.nnerVisibleindex = index;
// console.log(this.nnerVisibleindex); // console.log(this.nnerVisibleindex);
this.innerVisible = true; this.innerVisible = true;
}, },
imgUrl(imgUrl) { imgUrl(imgUrl) {
this.form.leadThumbnailUrl = imgUrl; this.form.leadThumbnailUrl = imgUrl;
@ -586,7 +597,7 @@ export default {
// this.form.hospitalName = row.hospitalName; // this.form.hospitalName = row.hospitalName;
// this.form.hospitalId = row.id; // this.form.hospitalId = row.id;
// } else { // } else {
this.form.informationCategoryId = row.id; this.form.informationCategoryId = row.id;
this.form.informationCategoryName = row.informationCategoryName; this.form.informationCategoryName = row.informationCategoryName;
// } // }
@ -635,7 +646,7 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.form.informationCategoryName="请选择资讯分类"; this.form.informationCategoryName = "请选择资讯分类";
this.title = "添加资讯信息管理"; this.title = "添加资讯信息管理";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */