@@ -412,7 +412,7 @@ export default {
// console.log(row.planOfOrgType == "1"&& row.children.length == 0,"row.children.length")
- if (row.planOfOrgType == "1"&& (row.children==null||row.children.length == 0)) {
+ if (row.planOfOrgType == "1"&& row.distribute==null) {
// console.log("1111")
return true
}
@@ -423,11 +423,11 @@ export default {
},
//已完成下发的计划不显示下发按钮
checkCanPublish(row) {
- return true
- // if (row.createOrgType == "1" && row.children.length == 0&&row.planStatus==1) {
- // return true;
- // }
- // return false;
+ // console.log(row.planOfOrgType,"row.planOfOrgType")
+ if (row.planOfOrgType == "1" && row.distribute==null) {
+ return true;
+ }
+ return false;
sel(selectList) {
this.loading = true;