修改
This commit is contained in:
parent
584fe05cd6
commit
74c898568c
@ -8,7 +8,6 @@
|
||||
v-show="showSearch"
|
||||
label-width="100px"
|
||||
>
|
||||
|
||||
<el-form-item
|
||||
label="护理站名称"
|
||||
prop="nurseStationName"
|
||||
@ -279,7 +278,7 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="form.areaCode"
|
||||
v-model="form.streetCode"
|
||||
clearable
|
||||
placeholder="请选择街道"
|
||||
style="width: 129px; margin-left: 10px"
|
||||
@ -294,7 +293,6 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="护理站名称" prop="nurseStationName">
|
||||
<el-input
|
||||
v-model="form.nurseStationName"
|
||||
@ -325,7 +323,6 @@
|
||||
oninput=" if(value.length>10){value=value.slice(0,20)}"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="联系电话" prop="phone">
|
||||
<el-input
|
||||
v-model="form.phone"
|
||||
@ -356,10 +353,9 @@
|
||||
maxlength="11"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="护理站总概述" prop="nurseStationDescription">
|
||||
<el-input
|
||||
style="width:540px"
|
||||
style="width: 540px"
|
||||
v-model="form.nurseStationDescription"
|
||||
placeholder="请输入护理站信息总概述"
|
||||
type="textarea"
|
||||
@ -450,7 +446,6 @@
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<!-- //导入 -->
|
||||
<el-dialog
|
||||
:title="upload.title"
|
||||
@ -502,7 +497,6 @@ import {
|
||||
getSecondaryLevelInfo,
|
||||
getInfoLists,
|
||||
updatePicture,
|
||||
|
||||
} from "@/api/system/station";
|
||||
import { getInfoList } from "@/api/system/nurseItem";
|
||||
import stationAcatar from "../stationAvatar/index.vue";
|
||||
@ -541,8 +535,8 @@ export default {
|
||||
return {
|
||||
imageUrl: "",
|
||||
imageUrl2: "",
|
||||
imgtwo:"",
|
||||
imgone:"",
|
||||
imgtwo: "",
|
||||
imgone: "",
|
||||
// 用户导入参数
|
||||
upload: {
|
||||
// 是否显示弹出层(用户导入)
|
||||
@ -562,11 +556,6 @@ export default {
|
||||
nurseTypeCode: "nurse_type_code",
|
||||
nurseStationTypelist: [],
|
||||
nurseStationType2: null,
|
||||
//shengshiqu
|
||||
value3: "",
|
||||
value2: "",
|
||||
value1: "",
|
||||
value: "",
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@ -739,7 +728,6 @@ export default {
|
||||
}
|
||||
console.log(this.looknurseStationLabel);
|
||||
},
|
||||
|
||||
//查看类型
|
||||
looktype(item) {
|
||||
// console.log(item);
|
||||
@ -752,15 +740,15 @@ export default {
|
||||
},
|
||||
//点击街道
|
||||
clickstreet(item) {
|
||||
this.form.streetCode = item.areaCode;
|
||||
this.form.areaCode = item.areaCode;
|
||||
console.log(this.form);
|
||||
console.log(item, this.form);
|
||||
},
|
||||
//点击区县城
|
||||
clickarea(item) {
|
||||
this.form.areaCode = "";
|
||||
console.log(item);
|
||||
this.form.streetName = "";
|
||||
getSecondaryLevelInfo(item.id).then((res) => {
|
||||
console.log(res);
|
||||
this.streetlist = res.data;
|
||||
});
|
||||
},
|
||||
@ -768,9 +756,8 @@ export default {
|
||||
clickcity(item) {
|
||||
this.form.regionName = "";
|
||||
this.form.areaCode = "";
|
||||
console.log(item);
|
||||
this.form.streetName = "";
|
||||
getSecondaryLevelInfo(item.id).then((res) => {
|
||||
console.log(res);
|
||||
this.arealist = res.data;
|
||||
});
|
||||
},
|
||||
@ -779,6 +766,7 @@ export default {
|
||||
this.form.cityName = "";
|
||||
this.form.regionName = "";
|
||||
this.form.areaCode = "";
|
||||
this.form.streetName = "";
|
||||
getSecondaryLevelInfo(item.id).then((res) => {
|
||||
this.citylist = res.data;
|
||||
});
|
||||
@ -796,25 +784,18 @@ export default {
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
console.log(this.form);
|
||||
var obj = { pictureUrlList: [] };
|
||||
if(this.imgone!=this.form.stationIntroducePcitureUrl ){
|
||||
if (this.imgone != 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);
|
||||
}
|
||||
if (obj.pictureUrlList.length > 0) {
|
||||
updatePicture(obj).then((res) => {
|
||||
console.log(res);
|
||||
});
|
||||
updatePicture(obj).then((res) => {});
|
||||
}
|
||||
this.open = false;
|
||||
this.reset();
|
||||
this.value3 = "";
|
||||
this.value2 = "";
|
||||
this.value1 = "";
|
||||
this.value = "";
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
@ -879,8 +860,7 @@ export default {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
} else {
|
||||
console.log(1);
|
||||
// this.queryParams.nurseStationCode = null;
|
||||
// console.log(1);
|
||||
this.queryParams.pageSize = 10;
|
||||
this.queryParams.pageNum = 1;
|
||||
this.queryParams.nurseStationCode = null;
|
||||
@ -896,10 +876,6 @@ export default {
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.value3 = "";
|
||||
this.value2 = "";
|
||||
this.value1 = "";
|
||||
this.value = "";
|
||||
this.open = true;
|
||||
this.looknurseStationLabel = [
|
||||
{
|
||||
@ -912,20 +888,18 @@ export default {
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
console.log(row, "看一当前行数据");
|
||||
this.reset();
|
||||
this.loading = true;
|
||||
const id = row.id || this.ids;
|
||||
getStation(id).then((response) => {
|
||||
console.log(response);
|
||||
this.form = response.data;
|
||||
this.form.streetCode = this.form.streetName;
|
||||
this.imgone = this.form.stationIntroducePcitureUrl;
|
||||
this.imgtwo = this.form.stationPictureUrl;
|
||||
this.looknurseStationLabel = response.data.nurseStationLabel;
|
||||
console.log(this.list);
|
||||
this.open = true;
|
||||
this.loading = false;
|
||||
console.log(this.form);
|
||||
console.log(this.form)
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user