diff --git a/src/assets/img/icon-del.png b/src/assets/img/icon-del.png
new file mode 100644
index 00000000..e7900056
Binary files /dev/null and b/src/assets/img/icon-del.png differ
diff --git a/src/views/modules/communityService/policy/addPolicy.vue b/src/views/modules/communityService/policy/addPolicy.vue
index 8719b65e..befe4152 100644
--- a/src/views/modules/communityService/policy/addPolicy.vue
+++ b/src/views/modules/communityService/policy/addPolicy.vue
@@ -289,6 +289,10 @@ export default {
this.formData = data
+ if (data.attachmentList) {
+ this.fileList = data.attachmentList
+ }
+
this.$nextTick(() => {
data.ruleList.forEach((element, index) => {
@@ -375,7 +379,7 @@ export default {
// }
let refObj = this.$refs['ref_rule' + index][0]
- refObj.getRule()
+ refObj.getRule(true, true, true)
if (refObj.okflag) {
oneRule.resiRuleList = refObj.resiRuleList
oneRule.resiRuleList.forEach(element => {
@@ -464,6 +468,7 @@ export default {
async addFuwu () {
console.log(this.formData)
+ this.formData.attachmentList = [...this.fileList]
let url = '/heart/policy/add'
if (this.formType === 'add') {
@@ -663,7 +668,7 @@ export default {
@import "@/assets/scss/modules/management/form-main.scss";
.btn-add-rule {
- margin-left: 70px;
+ margin-left: 150px;
display: flex;
justify-content: flex-start;
margin-bottom: 20px;
diff --git a/src/views/modules/communityService/policy/personListItem.vue b/src/views/modules/communityService/policy/personListItem.vue
index 1693a099..a7c60e49 100644
--- a/src/views/modules/communityService/policy/personListItem.vue
+++ b/src/views/modules/communityService/policy/personListItem.vue
@@ -7,20 +7,15 @@
ref="ref_searchform"
:label-width="'90px'">
-
-
-
-
-
+
@@ -226,13 +221,16 @@ export default {
],
formData: {
+ gridId: '',
+ agencyId: '',
+ orgId: '',
+ orgType: '',
ruleId: '',
ruleList: {},
name: '',
mobile: '',
idCard: '',
- remark: '',
- reason: '',
+
neighborHoodId: '',
buildingId: '',
unitId: '',
@@ -243,9 +241,18 @@ export default {
optionsH: [],
optionsD: [],
optionsG: [],
-
+ orgOptions: [],
+ agencyIdArray: [],
tableData: [],
+ orgOptionProps: {
+ multiple: false,
+ value: 'agencyId',
+ label: 'agencyName',
+ children: 'subAgencyList',
+ checkStrictly: true
+ }
+
}
},
components: {
@@ -259,7 +266,7 @@ export default {
},
async mounted () {
- this.getGridList()
+ this.getOrgTreeList()
await this.loadTable()
@@ -296,14 +303,38 @@ export default {
this.tableLoading = false
},
- handleChangeGrid (val) {
- console.log('val', val)
+
+ handleChangeAgency (val) {
+ let obj = this.$refs["myCascader"].getCheckedNodes()[0].data
+ if (obj) {
+ if (obj.level === 'grid') {
+ this.formData.orgId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
+ this.formData.orgType = 'grid'
+ this.formData.gridId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
+ this.formData.agencyId = ''
+
+
+ } else {
+ this.formData.orgId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
+ this.formData.orgType = 'agency'
+ this.formData.agencyId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
+ this.formData.gridId = ''
+ }
+
+ } else {
+ this.formData.orgId = ''
+ this.formData.orgType = ''
+ this.formData.agencyId = ''
+ this.formData.gridId = ''
+ }
+
this.formData.neighborHoodId = ''
this.formData.buildingId = ''
this.formData.unitId = ''
this.formData.houseId = ''
this.getValiheList()
},
+
handleChangeV (val) {
console.log('val', val)
this.formData.buildingId = ''
@@ -324,16 +355,17 @@ export default {
this.formData.houseId = ''
this.getHouseList()
},
- getGridList () {
+ getOrgTreeList () {
const { user } = this.$store.state
this.$http
- .post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId, purpose: 'query' })
+ .post('/gov/org/customeragency/agencygridtree', {})
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
- console.log('获取查询详情成功', res.data)
- this.optionsG = res.data
+ console.log('获取组织树成功', res.data)
+ this.orgOptions = []
+ this.orgOptions.push(res.data)
}
})
.catch(() => {
@@ -343,7 +375,7 @@ export default {
getValiheList () {
const { user } = this.$store.state
this.$http
- .post('/gov/org/icneighborhood/neighborhoodoption', { orgId: this.formData.GRID_ID, agencyId: user.agencyId })
+ .post('/gov/org/icneighborhood/neighborhoodoption', { gridId: this.formData.gridId, agencyId: this.formData.agencyId })
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
@@ -405,15 +437,16 @@ export default {
//重置搜索条件
resetSearch () {
+ this.agencyIdArray = []
this.formData = {
-
+ orgId: '',
+ orgType: '',
ruleId: '',
ruleList: {},
name: '',
mobile: '',
idCard: '',
- remark: '',
- reason: '',
+
neighborHoodId: '',
buildingId: '',
unitId: '',
diff --git a/src/views/modules/communityService/policy/rule.vue b/src/views/modules/communityService/policy/rule.vue
index adc11360..2d477936 100644
--- a/src/views/modules/communityService/policy/rule.vue
+++ b/src/views/modules/communityService/policy/rule.vue
@@ -107,10 +107,9 @@
-
+
@@ -198,10 +197,13 @@
-