-
+ >
-
+
-
+ >
-
+
-
+ >
-
+
-
+ >
-
+
-
-
+
+
+ -->
-
+ >
-
+
-
+ >
-
+
-
+ >
-
+
-
+ @click.native="clickcode2(item)"
+ >
@@ -458,7 +353,7 @@
placeholder="请输入社区经度"
maxlength="20"
style="width: 200px"
- type="number"
+ type="number"
oninput=" if(value.length>10){value=value.slice(0,20)}"
/>
@@ -468,7 +363,7 @@
placeholder="请输入社区纬度"
maxlength="20"
style="width: 200px"
- type="number"
+ type="number"
oninput=" if(value.length>10){value=value.slice(0,20)}"
/>
@@ -490,7 +385,7 @@ import {
updateCommunityInfo,
FirstLevels,
SecondaryLevelInfo,
- SubordinateRegions,
+ SubordinateRegions
} from "@/api/system/communityInfo";
export default {
@@ -518,10 +413,10 @@ export default {
{
provinceName: null,
cityName: null,
- streetName: null,
- },
- ],
- },
+ streetName: null
+ }
+ ]
+ }
],
// 所属区域
arealist: [],
@@ -547,7 +442,7 @@ export default {
city: "",
area: "",
areaCode: "",
- province: "",
+ province: ""
// areaCode: null,
// communityCode: null,
// communityName: null,
@@ -557,7 +452,7 @@ export default {
getProvincequeryParams: {
pageNum: 1,
pageSize: 10,
- pageNum: 1,
+ pageNum: 1
// pageSize: 10,
// searchValue: null,
// createBy: null,
@@ -573,7 +468,7 @@ export default {
getProvincequeryParams2: {
pageNum: 1,
pageSize: 10,
- pageNum: 1,
+ pageNum: 1
// pageSize: 10,
// searchValue: null,
// createBy: null,
@@ -593,12 +488,12 @@ export default {
areaCode: {
required: true,
message: "所属区域不能为空",
- trigger: "blur",
+ trigger: "blur"
},
communityName: {
required: true,
message: "社区名称不能为空",
- trigger: "blur",
+ trigger: "blur"
},
// communityLongitude: {
// required: true,
@@ -614,13 +509,13 @@ export default {
areaCode: {
required: true,
message: "所属区域不能为空",
- trigger: "blur",
+ trigger: "blur"
},
communityName: {
required: true,
message: "社区名称不能为空",
- trigger: "blur",
- },
+ trigger: "blur"
+ }
// communityLongitude: {
// required: true,
// message: "经度不能为空",
@@ -631,8 +526,8 @@ export default {
// message: "纬度不能为空",
// trigger: "blur",
// },
- },
- },
+ }
+ }
};
},
created() {
@@ -640,30 +535,22 @@ export default {
this.Provincelist();
},
methods: {
- clickcode2(item) {
+ clickcode2(item) {
this.form.areaCode = Number(item.areaCode);
- console.log(this.form);
- this.$forceUpdate()
-
+ this.$forceUpdate();
},
clickcode(item, index) {
- console.log(item);
this.form.communityInfoList[index].areaCode = Number(item.areaCode);
// this.form.communityInfoList[index].areaCode = Number(this.form.communityInfoList[index].areaCode);
-
- console.log(this.form);
},
// 查询省事件
province(item) {
// this.form.xxx[index].code=''
- console.log(item);
this.queryParams.city = "";
this.queryParams.area = "";
this.queryParams.areaCode = "";
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
// this.SecondaryLevelInfolist = res.data;
- // console.log(this.SecondaryLevelInfolist);
this.citylist = res.data;
});
},
@@ -672,35 +559,27 @@ export default {
this.form.communityInfoList[index].city = "";
this.form.communityInfoList[index].area = "";
this.form.communityInfoList[index].areaCode = "";
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
// this.SecondaryLevelInfolist = res.data;
- // console.log(this.SecondaryLevelInfolist);
this.citylist = res.data;
});
},
// 修改
province3(item) {
// this.form.xxx[index].code=''
- console.log(item);
this.form.city = "";
this.form.area = "";
this.form.code = "";
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
// this.SecondaryLevelInfolist = res.data;
- // console.log(this.SecondaryLevelInfolist);
this.citylist = res.data;
});
},
// 点击市
clickcity(item) {
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
+ SecondaryLevelInfo(item.id).then(res => {
this.queryParams.area = "";
this.queryParams.areaCode = "";
- console.log(res);
this.arealists = res.data;
});
},
@@ -712,19 +591,15 @@ export default {
// this.value3 = "";
this.form.communityInfoList[index].area = "";
this.form.communityInfoList[index].areaCode = "";
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
this.arealists = res.data;
});
},
// 修改
clickcity3(item) {
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
+ SecondaryLevelInfo(item.id).then(res => {
this.form.area = "";
- this.form.code = "";
- console.log(res);
+ this.form.code = "";
this.arealists = res.data;
});
},
@@ -733,9 +608,7 @@ export default {
this.queryParams.areaCode = "";
// this.queryParams.areaCode = "";
// this.value3 = "";
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
this.streetlist = res.data;
});
},
@@ -745,64 +618,51 @@ export default {
// this.value3 = "";
this.form.communityInfoList[index].areaCode = "";
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
this.streetlist = res.data;
});
},
clickarea3(item) {
- this.form.code = "";
+ this.form.code = "";
// this.queryParams.areaCode = "";
// this.value3 = "";
- console.log(item);
- SecondaryLevelInfo(item.id).then((res) => {
- console.log(res);
+ SecondaryLevelInfo(item.id).then(res => {
this.streetlist = res.data;
});
},
//点击街道
clickstreet(item) {
this.form.areaCode = item.areaCode;
- console.log(this.form);
},
// clickstreet3(item) {
// this.form.areaCode = item.areaCode;
- // // console.log(this.queryParams);
// },
// 所属省下拉框
loadMore() {
- console.log("1");
var a = Math.ceil(this.total2 / 10);
- console.log(this.arealist.length);
if (this.arealist.length + 1 >= this.total2) {
} else {
if (this.getProvincequeryParams.pageNum >= a) {
} else {
this.getProvincequeryParams.pageNum++;
- FirstLevels(this.getProvincequeryParams).then((res) => {
- console.log(res);
- res.rows.forEach((e) => {
+ FirstLevels(this.getProvincequeryParams).then(res => {
+ res.rows.forEach(e => {
this.arealist.push(e);
- console.log(this.arealist);
});
});
}
}
},
Provincelist() {
- FirstLevels(this.getProvincequeryParams).then((res) => {
- console.log(res);
+ FirstLevels(this.getProvincequeryParams).then(res => {
this.arealist = res.data;
this.total2 = res.total;
- console.log(this.arealist);
});
},
//删除delcommunity
delcommunity(index) {
this.form.communityInfoList.splice(index, 1);
- console.log(this.form.communityInfoList);
},
//添加addcommunity
addcommunity() {
@@ -811,7 +671,7 @@ export default {
communityCode: "",
communityName: "",
communityLongitude: "",
- communityLatitude: "",
+ communityLatitude: ""
// diseaseName: "",
// description: "",
// sort: "",
@@ -852,16 +712,16 @@ export default {
communityCode: "",
communityName: "",
communityLongitude: "",
- communityLatitude: "",
- },
- ],
+ communityLatitude: ""
+ }
+ ]
};
this.resetForm("form");
},
/** 搜索按钮操作 */
liststationinfo() {
- listCommunityInfo(this.queryParams).then((response) => {
- response.rows.forEach((e) => {
+ listCommunityInfo(this.queryParams).then(response => {
+ response.rows.forEach(e => {
if (e.sysAreaVOList == []) {
} else if (e.sysAreaVOList == null) {
} else if (!e.sysAreaVOList) {
@@ -924,13 +784,13 @@ export default {
area: null,
areaCode: null,
areaName: null,
- areaLevel: null,
+ areaLevel: null
};
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
- this.ids = selection.map((item) => item.id);
+ this.ids = selection.map(item => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
@@ -944,16 +804,13 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
- console.log(row);
const id = row.id || this.ids;
- getCommunityInfo(id).then((response) => {
+ getCommunityInfo(id).then(response => {
this.form = response.data;
this.title = "修改居住社区信息";
this.form.code = null;
- console.log(1);
- SubordinateRegions(response.data.areaCode).then((res) => {
- console.log(res);
+ SubordinateRegions(response.data.areaCode).then(res => {
if (res.data !== null) {
this.form.province = String(res.data.provinceCode);
// this.form.province = res.data.provinceCode;
@@ -961,7 +818,6 @@ export default {
this.form.area = res.data.regionName;
// this.form.areaCode = res.data.streetName;
this.form.code = res.data.streetName;
- console.log(this.form);
this.open = true;
}
});
@@ -969,21 +825,21 @@ export default {
},
/** 提交按钮 */
submitForm() {
- this.$refs["form"].validate((valid) => {
+ this.$refs["form"].validate(valid => {
if (valid) {
// let newStr = JSON.stringify(this.form.areaCode);
// let newObj = JSON.parse(newStr);
if (this.form.id != null) {
- updateCommunityInfo(this.form).then((response) => {
+ updateCommunityInfo(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
- this.open2 = false;
+ this.open2 = false;
this.open = false;
-
+
this.getList();
});
} else {
- addCommunityInfo(this.form).then((response) => {
+ addCommunityInfo(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.open2 = false;
@@ -998,7 +854,7 @@ export default {
const ids = row.id || this.ids;
this.$modal
.confirm("是否确认删除居住社区信息的数据项?")
- .then(function () {
+ .then(function() {
return delCommunityInfo(ids);
})
.then(() => {
@@ -1012,11 +868,11 @@ export default {
this.download(
"system/communityInfo/export",
{
- ...this.queryParams,
+ ...this.queryParams
},
`communityInfo_${new Date().getTime()}.xlsx`
);
- },
- },
+ }
+ }
};
diff --git a/src/views/system/diseaseInfo/index.vue b/src/views/system/diseaseInfo/index.vue
index 9fd0496..5219a43 100644
--- a/src/views/system/diseaseInfo/index.vue
+++ b/src/views/system/diseaseInfo/index.vue
@@ -321,7 +321,6 @@ export default {
//删除deldisease
deldisease(index) {
this.form.diseaseInfoList.splice(index, 1);
- console.log(this.form.diseaseInfoList);
},
//添加adddisease
adddisease() {
diff --git a/src/views/system/goodsCategory/index.vue b/src/views/system/goodsCategory/index.vue
index 1172895..f14bd90 100644
--- a/src/views/system/goodsCategory/index.vue
+++ b/src/views/system/goodsCategory/index.vue
@@ -12,7 +12,7 @@
prefix-icon="el-icon-search"
style="margin-bottom: 20px"
/>
-
-->
+ -->
- -->
+ -->
- 搜索
- 重置
+ 搜索
+ 重置
@@ -78,8 +70,7 @@
size="mini"
@click="handleAdd"
v-hasPermi="['system:goodsCategory:add']"
- >新增
+ >新增
修改
+ >修改
删除
+ >删除
-
+ -->
+
-
+
-
+
修改
+ >修改
删除
+ >删除
@@ -192,12 +168,7 @@
:before-close="cancel"
>
-
+
-
+ >
+ />-->
-
+
+ -->
-->
-
+
{
- getStationCategoryList(id).then((res) => {
+ getStationCategoryList(id).then(res => {
// 接口请求
- res.data.forEach((e) => {
+ res.data.forEach(e => {
e.value = e.id;
e.label = e.goodsCategoryName;
});
resolve(
- res.data.map((item) => {
+ res.data.map(item => {
return {
- ...item,
+ ...item
};
})
);
});
}, 300);
- },
+ }
},
imgone: "",
baseurl: "",
@@ -333,35 +295,33 @@ export default {
categoryRemark: null,
sort: null,
parentId: 0,
- parentName: "",
+ parentName: ""
},
// 表单参数
form: {},
// 表单校验
rules: {
goodsCategoryName: [
- { required: true, message: "商品分类名称不能为空", trigger: "blur" },
+ { required: true, message: "商品分类名称不能为空", trigger: "blur" }
],
goodsCategoryCode: [
- { required: true, message: "商品分类编码不能为空", trigger: "blur" },
+ { required: true, message: "商品分类编码不能为空", trigger: "blur" }
],
goodsCategoryPicture: [
- { required: true, message: "商品分类图片不能为空", trigger: "blur" },
+ { required: true, message: "商品分类图片不能为空", trigger: "blur" }
],
categoryRemark: [
- { required: true, message: "分类概述不能为空", trigger: "blur" },
- ],
- sort: [
- { required: true, message: "显示顺序不能为空", trigger: "blur" },
+ { required: true, message: "分类概述不能为空", trigger: "blur" }
],
+ sort: [{ required: true, message: "显示顺序不能为空", trigger: "blur" }]
},
// 树选项
deptOptions: undefined,
categoryLevel: null,
defaultProps: {
children: "children",
- label: "goodsCategoryName",
- },
+ label: "goodsCategoryName"
+ }
};
},
@@ -383,12 +343,12 @@ export default {
this.queryParams.parentName = data.goodsCategoryName;
// this.categoryLevel = data.categoryLevel;
this.handleQuery();
- getStationCategoryList(data.id).then((res) => {
- res.data.forEach((e) => {
+ getStationCategoryList(data.id).then(res => {
+ res.data.forEach(e => {
e.children = [
{
- goodsCategoryName: "",
- },
+ goodsCategoryName: ""
+ }
];
});
this.loading = false;
@@ -398,20 +358,20 @@ export default {
/** 查询商品分类信息列表 */
info() {
this.loading = true;
- getStationCategoryList(0).then((res) => {
- res.data.forEach((e) => {
+ getStationCategoryList(0).then(res => {
+ res.data.forEach(e => {
e.children = [
{
- goodsCategoryName: "",
- },
+ goodsCategoryName: ""
+ }
];
});
var obj = [
{
goodsCategoryName: "商品分类名称",
children: res.data,
- id: 0,
- },
+ id: 0
+ }
];
this.deptOptions = obj;
this.loading = false;
@@ -419,7 +379,7 @@ export default {
},
getList() {
this.loading = true;
- listGoodsCategory(this.queryParams).then((response) => {
+ listGoodsCategory(this.queryParams).then(response => {
this.goodsCategoryList = response.rows;
this.total = response.total;
this.loading = false;
@@ -433,7 +393,7 @@ export default {
obj.pictureUrlList.push(this.form.goodsCategoryPicture);
}
if (obj.pictureUrlList.length > 0) {
- updatePicture(obj).then((res) => {});
+ updatePicture(obj).then(res => {});
}
this.open = false;
this.reset();
@@ -452,7 +412,7 @@ export default {
updateBy: null,
updateTime: null,
parentId: null,
- parentName: null,
+ parentName: null
};
this.resetForm("form");
},
@@ -466,14 +426,14 @@ export default {
this.queryParams = {
pageNum: 1,
pageSize: 10,
- parentId: 0,
+ parentId: 0
};
this.resetForm("queryForm");
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
- this.ids = selection.map((item) => item.id);
+ this.ids = selection.map(item => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
@@ -482,7 +442,6 @@ export default {
this.reset();
this.open = true;
this.title = "添加商品分类信息";
- console.log(this.queryParams);
// if (this.queryParams.parentId != 0) {
this.form.parentId = this.queryParams.parentId;
// }
@@ -493,26 +452,25 @@ export default {
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
- getGoodsCategory(id).then((response) => {
+ getGoodsCategory(id).then(response => {
this.form = response.data;
this.imgone = this.form.goodsCategoryPicture;
this.open = true;
this.title = "修改商品分类信息";
- console.log(this.form);
});
},
/** 提交按钮 */
submitForm() {
- this.$refs["form"].validate((valid) => {
+ this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
- updateGoodsCategory(this.form).then((response) => {
+ updateGoodsCategory(this.form).then(response => {
var obj = { pictureUrlList: [] };
if (this.imgone != this.form.goodsCategoryPicture) {
obj.pictureUrlList.push(this.imgone);
}
if (obj.pictureUrlList.length > 0) {
- updatePicture(obj).then((res) => {});
+ updatePicture(obj).then(res => {});
}
this.$modal.msgSuccess("修改成功");
++this.isResouceShow;
@@ -521,7 +479,7 @@ export default {
this.info();
});
} else {
- addGoodsCategory(this.form).then((response) => {
+ addGoodsCategory(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
++this.isResouceShow;
this.open = false;
@@ -534,20 +492,17 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- console.log(row);
const ids = row.id || this.ids;
this.$modal
.confirm("是否确认删除?")
- .then(function () {
+ .then(function() {
return delGoodsCategory(ids);
})
.then(() => {
var obj = { pictureUrlList: [] };
obj.pictureUrlList.push(row.goodsCategoryPicture);
if (obj.pictureUrlList.length > 0) {
- updatePicture(obj).then((res) => {
- console.log(res);
- });
+ updatePicture(obj).then(res => {});
}
this.getList();
this.$modal.msgSuccess("删除成功");
@@ -559,15 +514,15 @@ export default {
this.download(
"system/goodsCategory/export",
{
- ...this.queryParams,
+ ...this.queryParams
},
`goodsCategory_${new Date().getTime()}.xlsx`
);
},
imgUrl(imgUrl) {
this.form.goodsCategoryPicture = imgUrl;
- },
- },
+ }
+ }
};