Browse Source

111

feature
jiangyy 3 years ago
parent
commit
cf205ebc65
  1. 1
      src/views/modules/communityParty/orgActivity/activivityList/addActivity.vue
  2. 13
      src/views/modules/communityParty/orgActivity/activivityList/addRule.vue

1
src/views/modules/communityParty/orgActivity/activivityList/addActivity.vue

@ -286,6 +286,7 @@ export default {
handleChangeScope (value) { handleChangeScope (value) {
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data let obj = this.$refs["myCascader"].getCheckedNodes()[0].data
debugger
if (obj) { if (obj) {
this.formData.publishPartyOrgId = obj.id//id this.formData.publishPartyOrgId = obj.id//id
this.formData.publishPartyOrgName = obj.partyOrgName// this.formData.publishPartyOrgName = obj.partyOrgName//

13
src/views/modules/communityParty/orgActivity/activivityList/addRule.vue

@ -134,7 +134,7 @@
:options="joinOptions" :options="joinOptions"
:props="joinOptionProps" :props="joinOptionProps"
:show-all-levels="false" :show-all-levels="false"
@change="handleChangeJoinOrg(scope.$index)"></el-cascader> @change="((value)=>{handleChangeJoinOrg(value,scope.$index)})"></el-cascader>
</template> </template>
</el-table-column> </el-table-column>
@ -294,8 +294,9 @@ export default {
handleChangeScope (index) { handleChangeScope (index) {
let onePublish = this.publishOptions[index] let onePublish = this.publishOptions[index]
debugger
let obj = this.$refs["myCascader" + index].getCheckedNodes()[0].data let obj = this.$refs["myCascader" + index].getCheckedNodes()[0].data
console.log('obj', obj)
if (obj) { if (obj) {
onePublish.publishPartyOrgId = obj.id//id onePublish.publishPartyOrgId = obj.id//id
onePublish.publishPartyOrgName = obj.partyOrgName// onePublish.publishPartyOrgName = obj.partyOrgName//
@ -311,15 +312,17 @@ export default {
} }
}, },
handleChangeJoinOrg (index) { handleChangeJoinOrg (value, index) {
this.tableData[index].joinOrgList = [] this.tableData[index].joinOrgList = []
let selArray = this.$refs["myCascader_join" + index].getCheckedNodes() let selArray = this.$refs["myCascader_join" + index].getCheckedNodes()
console.log('value', value)
console.log('index', index) console.log('index', index)
console.log('selArray', selArray) console.log('selArray', selArray)
selArray.forEach((element, index) => { selArray.forEach(element => {
let obj = { let obj = {
joinOrgId: element.data.id, joinOrgId: element.data.id,
@ -501,7 +504,7 @@ export default {
// publichIdArray: this.defaultPublishParty.defaultPartyOrgPath.split(':'), // publichIdArray: this.defaultPublishParty.defaultPartyOrgPath.split(':'),
publichIdArray: ['1536584227130798081'], publichIdArray: ['1536584227130798081'],
joinIdArray: ['1536584227130798081'], joinIdArray: [],
isAutoInformShow: true isAutoInformShow: true
} }

Loading…
Cancel
Save