修改弹框

This commit is contained in:
闫晓茹 2023-02-17 19:14:42 +08:00
parent 64c177abb4
commit 031e2529b3

View File

@ -6,17 +6,25 @@
size="small" size="small"
:inline="true" :inline="true"
v-show="showSearch" v-show="showSearch"
label-width="110px" label-width="100px"
> >
<el-form-item label="护理站名称" prop="nurseStationId"> <el-form-item label="护理站名称" prop="nurseStationId">
<el-button type="" class="stationbtn" @click="ParamsStation(true)">{{ <!-- <el-input placeholder="请输入内容" v-model="queryParams.nurseStationName" readonly>
queryParams.nurseStationName <template slot="prepend"><span @click="ParamsStation(true)">选择</span></template>
}}</el-button> <template slot="append">X</template>
</el-input> -->
<!-- <div @click="ParamsStation(true)">
<el-input v-model="queryParams.nurseStationName" clearable></el-input>
</div> -->
<el-button type="" class="stationbtn" @click="ParamsStation(true)">
{{ aa }}
<i class="el-icon-delete el-icon--right" @click.stop="clearTest"></i>
</el-button>
</el-form-item> </el-form-item>
<el-form-item label="护理项目" prop="nurseItemId" label-width="100px"> <el-form-item label="护理项目" prop="nurseItemId" label-width="100px">
<el-button type="" class="stationbtn" @click="ParamsStationxm(true)">{{ <el-button type="" class="stationbtn" @click="ParamsStationxm(true)">{{bb}}
queryParams.nurseItemName <i class="el-icon-delete el-icon--right" @click.stop="clearTest1"></i>
}}</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item label="海报名称" prop="poserName"> <el-form-item label="海报名称" prop="poserName">
<el-input <el-input
@ -26,6 +34,14 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="海报编号" prop="poserCode">
<el-input
v-model="queryParams.poserCode"
placeholder="请输入海报编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="海报所属模块" prop="moduleType"> <el-form-item label="海报所属模块" prop="moduleType">
<el-select <el-select
v-model="queryParams.moduleType" v-model="queryParams.moduleType"
@ -41,14 +57,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="海报编号" prop="poserCode">
<el-input
v-model="queryParams.poserCode"
placeholder="请输入海报编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
@ -146,7 +155,11 @@
: "" : ""
}} }}
{{ scope.row.moduleType == "HOME_PAGE_MODULE" ? "首页模块" : "" }} {{ scope.row.moduleType == "HOME_PAGE_MODULE" ? "首页模块" : "" }}
{{ scope.row.moduleType == "NURSE_AGENCY_INTRODUCE_MODULE" ? "护理机构简介模块" : "" }} {{
scope.row.moduleType == "NURSE_AGENCY_INTRODUCE_MODULE"
? "护理机构简介模块"
: ""
}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="海报显示顺序" align="center" prop="poserSort" /> <el-table-column label="海报显示顺序" align="center" prop="poserSort" />
@ -589,11 +602,15 @@ import {
import { list } from "@/api/system/nurseItem"; import { list } from "@/api/system/nurseItem";
import stationAcatar from "../stationAvatar/index.vue"; import stationAcatar from "../stationAvatar/index.vue";
import editor from "@/components/Editor"; import editor from "@/components/Editor";
import { blob } from "stream/consumers";
export default { export default {
name: "Poser", name: "Poser",
components: { stationAcatar, editor }, components: { stationAcatar, editor },
data() { data() {
return { return {
aa: "",
bb:"",
// //
loading: true, loading: true,
getListByUserquery: { getListByUserquery: {
@ -795,6 +812,7 @@ export default {
// //
choicenurseItem(e) { choicenurseItem(e) {
this.nurseitemid = e.id; this.nurseitemid = e.id;
if (this.homenumber) { if (this.homenumber) {
this.queryParams.nurseItemName = e.nurseItemName; this.queryParams.nurseItemName = e.nurseItemName;
this.queryParams.nurseItemId = e.id; this.queryParams.nurseItemId = e.id;
@ -839,6 +857,7 @@ export default {
this.nurseItemlistInfo(); this.nurseItemlistInfo();
this.homenumber = item; this.homenumber = item;
this.nurseItemshow = true; this.nurseItemshow = true;
this.bb = item.nurseItemName;
if (this.homenumber) { if (this.homenumber) {
this.nurseitemid = this.queryParams.nurseItemId; this.nurseitemid = this.queryParams.nurseItemId;
} else { } else {
@ -871,6 +890,8 @@ export default {
}, },
// = // =
choicestationid(item) { choicestationid(item) {
this.aa = item.nurseStationName;
// console.error(this.aa);
if (this.homenumber) { if (this.homenumber) {
this.queryParams.nurseStationName = item.nurseStationName; this.queryParams.nurseStationName = item.nurseStationName;
this.queryParams.nurseStationId = item.id; this.queryParams.nurseStationId = item.id;
@ -932,6 +953,9 @@ export default {
}, },
], ],
id: null, id: null,
aa:"",
bb:"",
poserName: null, poserName: null,
posterPictureUrl: null, posterPictureUrl: null,
posterVideoUrl: null, posterVideoUrl: null,
@ -954,6 +978,8 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}; };
this.aa="";
this.bb="";
this.stationid = ""; this.stationid = "";
this.nurseitemid = ""; this.nurseitemid = "";
this.queryParams = { this.queryParams = {
@ -1042,6 +1068,22 @@ export default {
`poser_${new Date().getTime()}.xlsx` `poser_${new Date().getTime()}.xlsx`
); );
}, },
clearTest(e) {
this.aa = "";
this.queryParams.nurseStationName = "";
this.queryParams.nurseStationId = undefined;
this.$set(this.queryParams, "nurseStationName", "");
console.error(this.queryParams);
},
clearTest1(e) {
this.bb = "";
this.queryParams.nurseItemName = "";
this.queryParams.nurseItemId = undefined;
this.$set(this.queryParams, "nurseItemName", "");
console.error(this.queryParams);
},
}, },
}; };
</script> </script>