diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue
index 609cf8f..554b991 100644
--- a/src/views/system/station/index.vue
+++ b/src/views/system/station/index.vue
@@ -8,7 +8,6 @@
v-show="showSearch"
label-width="100px"
>
-
-
+
-
-
+
-
-
取 消
-
{
- 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)
});
},
/** 提交按钮 */