diff --git a/src/views/manage/servicewaycontent/index.vue b/src/views/manage/servicewaycontent/index.vue index 71f70a0..23e6798 100644 --- a/src/views/manage/servicewaycontent/index.vue +++ b/src/views/manage/servicewaycontent/index.vue @@ -225,32 +225,10 @@ label="服务频次" align="center" prop="serviceWayFrequencyList" - :key="keyTable" + > - + + --> - + +
+ {{ scope.row.serviceFrequencyStart }}~{{ + scope.row.serviceFrequencyEnd }}
-
- {{ item.serviceFrequencyText }} +
+ {{ scope.row.serviceFrequencyText }}
-
- --> + + { - this.servicewaycontentList = response.rows; - // this.serviceFrequencyText= this.servicewaycontentList[0].serviceFrequencyText - console.log(this.servicewaycontentList, "****"); - // if(e.serviceWayFrequencyList[0].serviceFrequencyType == 'TEXT'){ - this.servicewaycontentList.forEach((e) => { - e.valuePlusMax = e.serviceWayFrequencyList[0].id; + // this.servicewaycontentList = response.rows; + response.rows.forEach((e) => { + e.serviceWayFrequencyList.forEach((el) => { + el.serviceContent = e.serviceContent; + this.servicewaycontentList.push(el) + console.log(this.servicewaycontentList, "this.servicewaycontentList"); + + }); }); // } @@ -740,8 +720,8 @@ export default { /** 新增按钮操作 */ handleAdd() { this.reset(); - this.disableedit=false - this.disabledcontent=false + this.disableedit = false; + this.disabledcontent = false; console.log(this.itemname, "itemname"); if (this.itemname) { this.form.serviceWayName = this.serviceWayName; @@ -757,11 +737,11 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - this.disableedit=true - this.disabledcontent=true + this.disableedit = true; + this.disabledcontent = true; console.log(row, "99999"); this.reset(); - getServicewaycontent(row.valuePlusMax).then((response) => { + getServicewaycontent(row.id).then((response) => { this.form = response.data; // this.form.serviceWayId=row.serviceWayId this.form.id = response.data.serviceFrequencyId; @@ -788,6 +768,10 @@ export default { }); // ----------- }, + changeDIGIT(item) { + console.log(item, "changeTEXT"); + }, + changeTEXT(item) {}, /** 提交按钮 */ submitForm() { this.$refs["form"].validate((valid) => { @@ -881,10 +865,10 @@ export default { /** 删除按钮操作 */ handleDelete(row) { console.log(row); - row.serviceWayFrequencyList.forEach((e) => { - this.id = e.id; - }); - const id = this.id; + // row.serviceWayFrequencyList.forEach((e) => { + // this.id = e.id; + // }); + const id = row.id; this.$modal .confirm("是否确认删除此该数据项?") @@ -945,6 +929,10 @@ export default { } } } +.changeTEXT :hover { + color: red; + border-bottom: solid 1px red; +} .button { display: inline-block; position: relative; diff --git a/src/views/system/agency/index.vue b/src/views/system/agency/index.vue index c61e987..e40fb5b 100644 --- a/src/views/system/agency/index.vue +++ b/src/views/system/agency/index.vue @@ -291,19 +291,23 @@ /> --> - + - + - + - + - - 启用 - 禁用 - - + + 启用 + 禁用 + + @@ -642,7 +654,8 @@ export default { agencyName: [ { required: true, message: "机构名称能为空", trigger: "blur" }, ], - areaCode:[{ required: true, message: "行政区划不能为空", trigger: "blur" }, + areaCode: [ + { required: true, message: "行政区划不能为空", trigger: "blur" }, ], }, treeOptionsagencyCategoryId: [], @@ -747,7 +760,9 @@ export default { //点击街道 clickstreet(item) { - this.form.communityName ='' + this.form.communityCode = ""; + this.form.communityName = ""; + getSecondaryLevelInfo(item.id).then((res) => { this.streetlists = res.data; }); @@ -758,10 +773,13 @@ export default { }, //点击区县城 clickarea(item) { - this.form.areaCode = ""; + this.form.areaName = ""; this.form.streetCode = ""; - // this.form.streetName='' - this.form.communityCode ='' + this.form.streetName = ""; + this.form.streetCode = ""; + + this.form.communityCode = ""; + this.form.communityName = ""; getSecondaryLevelInfo(item.id).then((res) => { this.streetlist = res.data; @@ -770,12 +788,12 @@ export default { //点击市 clickcity(item) { this.form.regionName = ""; - this.form.areaCode = ""; + this.form.areaName = ""; this.form.streetCode = ""; this.form.streetName = ""; - this.form.communityCode ='' + this.form.communityCode = ""; + this.form.communityName = ""; - getSecondaryLevelInfo(item.id).then((res) => { this.arealist = res.data; }); @@ -791,14 +809,15 @@ export default { this.form.cityName = ""; // this.form.streeName = ""; // this.form.communityCode ='' - + this.form.streetCode = ""; + this.form.streetName = ""; this.form.areaName = ""; this.form.communityName = ""; - + this.form.communityCode = ""; this.form.regionName = ""; - this.form.areaCode = ""; - this.form.streetCode = ""; + // this.form.areaCode = ""; + // this.form.streetCode = ""; getSecondaryLevelInfo(item.id).then((res) => { this.citylist = res.data; }); @@ -843,11 +862,9 @@ export default { console.log(e, "78"); // console.log(this.$refs.cascader) // this.form.parentId = e; - if(e){ + if (e) { this.form.parentId = e[e.length - 1]; - } - }, changeagencyCategoryId(e) { this.form.agencyCategoryId = e[e.length - 1]; @@ -987,6 +1004,9 @@ export default { /** 提交按钮 */ submitForm() { + if (this.form.provinceCode && !this.form.communityCode) { + this.$message("请选择到社区"); + } this.$refs["form"].validate((valid) => { if (valid) { if (this.form.id != null) {