|
|
@@ -428,7 +428,7 @@ export default {
|
|
|
//已完成下发的计划不显示下发按钮
|
|
|
checkCanPublish(row) {
|
|
|
// console.log(row.planOfOrgType,"row.planOfOrgType")
|
|
|
- if (row.planOfOrgType == "1" && row.distribute == null) {
|
|
|
+ if (row.planOfOrgType == "1" && (row.distribute == null||row.distribute == 2)) {
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
@@ -492,7 +492,17 @@ export default {
|
|
|
this.$refs.editDialog.show(id, other);
|
|
|
},
|
|
|
showDialogDistribute(row) {
|
|
|
- this.$refs.dialogDistribute.show(row);
|
|
|
+ api.cheHui(row.id).then((response) => {
|
|
|
+ console.log(response.data,"appPlanService.cheHui(id);")
|
|
|
+ if(response.data!=1){
|
|
|
+ this.$refs.dialogDistribute.show(row);
|
|
|
+ }else{
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
async onDel(id, name) {
|
|
|
this.$modal
|