Browse Source

发布

master
jiangyy 4 years ago
parent
commit
b17ed1cfb7
  1. 16
      src/views/form/publish/index.vue

16
src/views/form/publish/index.vue

@ -33,6 +33,10 @@
@click="publishProject">
<i class="el-icon-document-checked el-icon--right">发布</i>
</el-button>
<el-button type="danger"
@click="resolveAgency">
禁用
</el-button>
</div>
</div>
@ -103,10 +107,7 @@
@click="stopPublishProject">
停止发布
</el-button>
<!-- <el-button type="danger"
@click="disableditem">
禁用
</el-button> -->
</el-col>
<!-- <el-col :span="12">
<el-button type="warning"
@ -233,8 +234,9 @@ export default {
//
resolveAgency () {
let selAll = this.$refs.tree.getCheckedNodes(false, false)
// console.log(selAll)
console.log(selAll)
this.selAgencyList = []
this.agencyArrayCopy = JSON.parse(JSON.stringify(this.treeData))
@ -253,6 +255,8 @@ export default {
let item = orgArray[i]
if (item && item.orgId === orgId) {
orgArray[i].orgIds = orgArray[i].orgPids
orgArray[i].subOrgList = []
this.selAgencyList.push(orgArray[i])
orgArray[i] = {}
@ -264,7 +268,7 @@ export default {
}
}
// console.log(this.agencyArrayCopy)
console.log(this.selAgencyList)
},

Loading…
Cancel
Save