|
|
|
@ -31,10 +31,12 @@ |
|
|
|
<!--v-model="scope.row.bindedHouses"--> |
|
|
|
<el-cascader :options="bindingHouseOptions" |
|
|
|
clearable |
|
|
|
ref="houseTreeRef" |
|
|
|
style="width: 300px" |
|
|
|
placeholder="请选择" |
|
|
|
v-if="scope.row.isEdit" |
|
|
|
@change="" |
|
|
|
v-model="scope.row.allPathIdsOfPartyMember" |
|
|
|
:props="bindingProps"> |
|
|
|
</el-cascader> |
|
|
|
<div v-else>{{ scope.row.bindedHousesStr }}</div> |
|
|
|
@ -62,7 +64,7 @@ import { EpmetResultResolver } from '@/js/epmet-result-resolver' |
|
|
|
export default { |
|
|
|
mounted () { |
|
|
|
// 初始化结果解析器 |
|
|
|
this.epmetResultResolver = new EpmetResultResolver(this) |
|
|
|
this.epmetResultResolver = new EpmetResultResolver(this); |
|
|
|
}, |
|
|
|
data () { |
|
|
|
return { |
|
|
|
@ -281,16 +283,23 @@ export default { |
|
|
|
* 编辑按钮点击事件 |
|
|
|
*/ |
|
|
|
async handleEditBtnClicked (row) { |
|
|
|
console.log(">>>",this.$refs['houseTreeRef']); |
|
|
|
|
|
|
|
await this.loadHousesTree4Select(this.partyOrgId) |
|
|
|
await this.loadCenterMember4Selector(this.partyOrgId, 'edit')// 以编辑模式重新加载中心户下拉框 |
|
|
|
row.isEdit = true |
|
|
|
|
|
|
|
this.rowInEdit = row; |
|
|
|
|
|
|
|
// for (let house of row.bindedHouses) { |
|
|
|
// let pathIds = house.bindedHouses.pathIds; |
|
|
|
// // this.rescureLoadTree(pathIds, 0); |
|
|
|
// } |
|
|
|
let allPathIdsOfPartyMember = []; |
|
|
|
debugger |
|
|
|
for (let house of row.bindedHouses) { |
|
|
|
console.log(house) |
|
|
|
allPathIdsOfPartyMember.push(house.pathIds); |
|
|
|
// this.rescureLoadTree(pathIds, 0); |
|
|
|
} |
|
|
|
|
|
|
|
row.allPathIdsOfPartyMember = allPathIdsOfPartyMember; |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
|