|
|
@@ -25,7 +25,7 @@
|
|
|
name="planName"
|
|
|
placeholder="请输入任务名称"
|
|
|
clearable
|
|
|
- style="width:217px"
|
|
|
+ style="width: 217px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -491,24 +491,15 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
|
- //编辑内容判断
|
|
|
- // isChildren() {
|
|
|
- // // console.log(this.formData.distributePlanStatus,"distributePlanStatus")
|
|
|
- // //计划所属机构id等于当前机构id并且不存在已完成或者已逾期或者
|
|
|
- // //计划所属机构类型不等于行社并且不存在已完成或者已逾期或者
|
|
|
- // //新增
|
|
|
- // if (
|
|
|
- // (this.formData.planCreateOrgId == this.orgId &&
|
|
|
- // this.formData.hasEdit != 1) ||
|
|
|
- // (this.formData.planOfOrgType != 3 && this.formData.hasEdit != 1) ||
|
|
|
- // this.id == null
|
|
|
- // ) {
|
|
|
- // return false;
|
|
|
- // } else return true;
|
|
|
- // },
|
|
|
+
|
|
|
canEdit() {
|
|
|
//停用和使用中的任务,只能编辑名称和履职内容
|
|
|
- return !(this.formData.planStatus==null || this.formData.plansStatus==0);
|
|
|
+ // let f = this.formData;
|
|
|
+ //
|
|
|
+ let r= !(
|
|
|
+ this.formData.planStatus == null || this.formData.planStatus == "0"
|
|
|
+ )
|
|
|
+ return r;
|
|
|
},
|
|
|
//省联社履职内容不能删除
|
|
|
getshenglianshe(row) {
|
|
|
@@ -836,7 +827,7 @@ export default {
|
|
|
(state) => {
|
|
|
if (state == 0 || state == 1) {
|
|
|
this.update(this.formData, state == 1);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.loading = false;
|
|
|
}
|
|
|
}
|