This commit is contained in:
曹辉 2022-11-16 10:25:34 +08:00
parent 584fe05cd6
commit 74c898568c

View File

@ -8,7 +8,6 @@
v-show="showSearch" v-show="showSearch"
label-width="100px" label-width="100px"
> >
<el-form-item <el-form-item
label="护理站名称" label="护理站名称"
prop="nurseStationName" prop="nurseStationName"
@ -279,7 +278,7 @@
</el-option> </el-option>
</el-select> </el-select>
<el-select <el-select
v-model="form.areaCode" v-model="form.streetCode"
clearable clearable
placeholder="请选择街道" placeholder="请选择街道"
style="width: 129px; margin-left: 10px" style="width: 129px; margin-left: 10px"
@ -294,7 +293,6 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="护理站名称" prop="nurseStationName"> <el-form-item label="护理站名称" prop="nurseStationName">
<el-input <el-input
v-model="form.nurseStationName" v-model="form.nurseStationName"
@ -302,7 +300,7 @@
maxlength="40" maxlength="40"
/> />
</el-form-item> </el-form-item>
<el-form-item label="护理站地址" prop="address"> <el-form-item label="护理站地址" prop="address">
<el-input <el-input
v-model="form.address" v-model="form.address"
placeholder="请输入护理站地址" placeholder="请输入护理站地址"
@ -325,7 +323,6 @@
oninput=" if(value.length>10){value=value.slice(0,20)}" oninput=" if(value.length>10){value=value.slice(0,20)}"
/> />
</el-form-item> </el-form-item>
<el-form-item label="联系电话" prop="phone"> <el-form-item label="联系电话" prop="phone">
<el-input <el-input
v-model="form.phone" v-model="form.phone"
@ -356,10 +353,9 @@
maxlength="11" maxlength="11"
/> />
</el-form-item> </el-form-item>
<el-form-item label="护理站总概述" prop="nurseStationDescription"> <el-form-item label="护理站总概述" prop="nurseStationDescription">
<el-input <el-input
style="width:540px" style="width: 540px"
v-model="form.nurseStationDescription" v-model="form.nurseStationDescription"
placeholder="请输入护理站信息总概述" placeholder="请输入护理站信息总概述"
type="textarea" type="textarea"
@ -450,7 +446,6 @@
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- // --> <!-- // -->
<el-dialog <el-dialog
:title="upload.title" :title="upload.title"
@ -502,7 +497,6 @@ import {
getSecondaryLevelInfo, getSecondaryLevelInfo,
getInfoLists, getInfoLists,
updatePicture, updatePicture,
} from "@/api/system/station"; } from "@/api/system/station";
import { getInfoList } from "@/api/system/nurseItem"; import { getInfoList } from "@/api/system/nurseItem";
import stationAcatar from "../stationAvatar/index.vue"; import stationAcatar from "../stationAvatar/index.vue";
@ -541,8 +535,8 @@ export default {
return { return {
imageUrl: "", imageUrl: "",
imageUrl2: "", imageUrl2: "",
imgtwo:"", imgtwo: "",
imgone:"", imgone: "",
// //
upload: { upload: {
// //
@ -562,11 +556,6 @@ export default {
nurseTypeCode: "nurse_type_code", nurseTypeCode: "nurse_type_code",
nurseStationTypelist: [], nurseStationTypelist: [],
nurseStationType2: null, nurseStationType2: null,
//shengshiqu
value3: "",
value2: "",
value1: "",
value: "",
// //
loading: true, loading: true,
// //
@ -739,7 +728,6 @@ export default {
} }
console.log(this.looknurseStationLabel); console.log(this.looknurseStationLabel);
}, },
// //
looktype(item) { looktype(item) {
// console.log(item); // console.log(item);
@ -752,15 +740,15 @@ export default {
}, },
// //
clickstreet(item) { clickstreet(item) {
this.form.streetCode = item.areaCode;
this.form.areaCode = item.areaCode; this.form.areaCode = item.areaCode;
console.log(this.form); console.log(item, this.form);
}, },
// //
clickarea(item) { clickarea(item) {
this.form.areaCode = ""; this.form.areaCode = "";
console.log(item); this.form.streetName = "";
getSecondaryLevelInfo(item.id).then((res) => { getSecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.streetlist = res.data; this.streetlist = res.data;
}); });
}, },
@ -768,9 +756,8 @@ export default {
clickcity(item) { clickcity(item) {
this.form.regionName = ""; this.form.regionName = "";
this.form.areaCode = ""; this.form.areaCode = "";
console.log(item); this.form.streetName = "";
getSecondaryLevelInfo(item.id).then((res) => { getSecondaryLevelInfo(item.id).then((res) => {
console.log(res);
this.arealist = res.data; this.arealist = res.data;
}); });
}, },
@ -779,6 +766,7 @@ export default {
this.form.cityName = ""; this.form.cityName = "";
this.form.regionName = ""; this.form.regionName = "";
this.form.areaCode = ""; this.form.areaCode = "";
this.form.streetName = "";
getSecondaryLevelInfo(item.id).then((res) => { getSecondaryLevelInfo(item.id).then((res) => {
this.citylist = res.data; this.citylist = res.data;
}); });
@ -796,25 +784,18 @@ export default {
}, },
// //
cancel() { cancel() {
console.log(this.form);
var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] };
if(this.imgone!=this.form.stationIntroducePcitureUrl ){ if (this.imgone != this.form.stationIntroducePcitureUrl) {
obj.pictureUrlList.push(this.form.stationIntroducePcitureUrl); obj.pictureUrlList.push(this.form.stationIntroducePcitureUrl);
} }
if(this.imgtwo!=this.form.stationPictureUrl ){ if (this.imgtwo != this.form.stationPictureUrl) {
obj.pictureUrlList.push(this.form.stationPictureUrl); obj.pictureUrlList.push(this.form.stationPictureUrl);
} }
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => { updatePicture(obj).then((res) => {});
console.log(res);
});
} }
this.open = false; this.open = false;
this.reset(); this.reset();
this.value3 = "";
this.value2 = "";
this.value1 = "";
this.value = "";
}, },
// //
reset() { reset() {
@ -879,8 +860,7 @@ export default {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
} else { } else {
console.log(1); // console.log(1);
// this.queryParams.nurseStationCode = null;
this.queryParams.pageSize = 10; this.queryParams.pageSize = 10;
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.queryParams.nurseStationCode = null; this.queryParams.nurseStationCode = null;
@ -896,10 +876,6 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.value3 = "";
this.value2 = "";
this.value1 = "";
this.value = "";
this.open = true; this.open = true;
this.looknurseStationLabel = [ this.looknurseStationLabel = [
{ {
@ -912,20 +888,18 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
console.log(row, "看一当前行数据");
this.reset(); this.reset();
this.loading = true; this.loading = true;
const id = row.id || this.ids; const id = row.id || this.ids;
getStation(id).then((response) => { getStation(id).then((response) => {
console.log(response);
this.form = response.data; this.form = response.data;
this.form.streetCode = this.form.streetName;
this.imgone = this.form.stationIntroducePcitureUrl; this.imgone = this.form.stationIntroducePcitureUrl;
this.imgtwo = this.form.stationPictureUrl; this.imgtwo = this.form.stationPictureUrl;
this.looknurseStationLabel = response.data.nurseStationLabel; this.looknurseStationLabel = response.data.nurseStationLabel;
console.log(this.list);
this.open = true; this.open = true;
this.loading = false; this.loading = false;
console.log(this.form); console.log(this.form)
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */