Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/V0.0.5' into V0.0.5

jingyuanchao 1 anno fa
parent
commit
94533dafb8

+ 2 - 2
src/api/safetycheck/plan.js

@@ -16,9 +16,9 @@ export function cheHui(id) {
   })
 }
 // 查询【请填写功能名称】详细
-export function distributeCheHui(id) {
+export function distributeHS(id) {
   return request({
-    url: '/core/checkplan/distributeCheHui/' + id,
+    url: '/core/checkplan/distributehs/' + id,
     method: 'get'
   })
 }

+ 4 - 0
src/views/resumption/plan/dialog.edit.vue

@@ -20,6 +20,7 @@
             <el-col :span="6">
               <el-form-item prop="planName" label="任务名称:">
                 <el-input
+                  :disabled="canEdit()"
                   v-model.trim="formData.planName"
                   :maxlength="50"
                   name="planName"
@@ -499,6 +500,9 @@ export default {
       let r = !(
         this.formData.planStatus == null || this.formData.planStatus == "0"
       );
+
+      //行社不能编辑省联社计划的名称;省联社也不能单独编辑子计划的名称
+      r &= (this.formData.planOfOrgId==this.orgId)
       return r;
     },
     //省联社履职内容不能删除

+ 77 - 92
src/views/resumption/plan/index.vue

@@ -112,40 +112,41 @@
                   clearable
                 />
               </el-form-item>
-              <el-row>
-                <el-button
-                  type="primary"
-                  icon="el-icon-search"
-                  size="mini"
-                  @click="getList"
-                  >搜索</el-button
-                >
-                <el-button
-                  type="primary"
-                  icon="el-icon-refresh"
-                  size="mini"
-                  @click="resetQuery"
-                  >重置</el-button
-                >
-                <el-button
-                  type="primary"
-                  icon="el-icon-plus"
-                  size="mini"
-                  @click="handleAdd()"
-                  v-hasPermi="['core:plan:edit']"
-                  >新增任务</el-button
-                >
-                <right-toolbar
-                  :showSearch.sync="showSearch"
-                  @queryTable="getList"
-                ></right-toolbar>
-              </el-row>
+
               <!-- <el-row :gutter="10" >
             <el-col :span="1.5"> </el-col>
 
 
           </el-row> -->
             </el-form>
+            <el-row>
+              <el-button
+                type="primary"
+                icon="el-icon-search"
+                size="mini"
+                @click="getList"
+                >搜索</el-button
+              >
+              <el-button
+                type="primary"
+                icon="el-icon-refresh"
+                size="mini"
+                @click="resetQuery"
+                >重置</el-button
+              >
+              <el-button
+                type="primary"
+                icon="el-icon-plus"
+                size="mini"
+                @click="handleAdd()"
+                v-hasPermi="['core:plan:edit']"
+                >新增任务</el-button
+              >
+              <right-toolbar
+                :showSearch.sync="showSearch"
+                @queryTable="getList"
+              ></right-toolbar>
+            </el-row>
           </div>
           <!--    按纽    -->
 
@@ -296,17 +297,6 @@
                   v-hasPermi="['core:plan:distribute']"
                   >下发</el-button
                 >
-
-                <!-- <el-button
-                  size="mini"
-                  type="text"
-                  icon="el-icon-arrow-down"
-                  v-if="newcheckCanPublish(r.row)"
-                  @click="newshowDialogDistribute(r.row)"
-                  v-hasPermi="['system:user:remove']"
-                  >下发</el-button
-                > -->
-
                 <el-button
                   size="mini"
                   type="text"
@@ -563,7 +553,7 @@ export default {
     sel(selectList, row) {
       let msg = "";
       if (row.planStatus == 0) {
-        msg = "请选择从当前轮次或周期开始生成任务?";
+        msg = "请选择立即生成或下个周期开始生成任务?";
         this.$refs["DialogThreeState"].show(
           msg,
           (state) => {
@@ -572,7 +562,7 @@ export default {
             }
           },
           {
-            yesText: "当前轮次",
+            yesText: "立即生成",
             noText: "下周期",
             cancelText: "取消下发",
           }
@@ -602,54 +592,11 @@ export default {
           this.loading = false;
         });
     },
-    async getRolesByOrg() {
-      await allRole().then((res) => {
-        // console.info(res);
-        this.resumptionRoles = res.data;
-      });
-    },
-    getList() {
-      this.loading = true;
-      this.queryParams.roleList = [];
-      if (
-        this.queryParams.resumptionRole != null &&
-        this.queryParams.resumptionRole != ""
-      ) {
-        this.queryParams.roleList.push(this.queryParams.resumptionRole);
-      }
+    
+    onHSPlanDistribute(row) {    
 
-      console.info(this.dict.type);
-      api
-        .list(this.queryParams)
-        .then((response) => {
-          this.pageData = response.rows;
-          this.total = response.total;
-          this.loading = false;
-        })
-        .catch(() => {
-          this.loading = false;
-        });
-    },
-    getDefaultKey(key) {
-      this.queryParams.orgId = key;
-      this.getList();
-    },
-    handleAdd(id, other = {}) {
-      this.$refs.editDialog.show(id, other);
-    },
-    onEdit(id, other = {}) {
-      this.$refs.editDialog.show(id, other);
-    },
-    onHSPlanDistribute(row) {
-      let msg = "";
       if (row.planStatus == 0) {
-        msg = "是否立即生成任务?";
-      } else {
-        msg = "本周期未完成任务应用最新任务内容";
-      }
-
-      if (row.planStatus == 0) {
-        msg = "请选择从当前轮次或周期开始生成任务?";
+        let   msg = "请选择下发后立即生成或下周期生成任务?";
         this.$refs["DialogThreeState"].show(
           msg,
           (state) => {
@@ -658,16 +605,16 @@ export default {
             }
           },
           {
-            yesText: "当前轮次",
+            yesText: "立即生成",
             noText: "下周期",
-            cancelText: "取消下发",
+            cancelText: "取消",
           }
         );
       } else if (row.planStatus == 2) {
         this.$modal
-          .confirm("因存在已完成任务,本次任务下发仅支持下周期生成任务", {
-            confirmButtonText: "下周期",
-            canelButtonText: "取消下发",
+          .confirm("因存在已完成任务,是否确定从下周期生成任务", {
+            confirmButtonText: "确定",
+            canelButtonText: "取消",
           })
           .then(() => {
             this.distributeHS(row.id, false);
@@ -721,6 +668,44 @@ export default {
       //     this.$refs.dialogDistribute.show(row);
       //   });
     },
+    async getRolesByOrg() {
+      await allRole().then((res) => {
+        // console.info(res);
+        this.resumptionRoles = res.data;
+      });
+    },
+    getList() {
+      this.loading = true;
+      this.queryParams.roleList = [];
+      if (
+        this.queryParams.resumptionRole != null &&
+        this.queryParams.resumptionRole != ""
+      ) {
+        this.queryParams.roleList.push(this.queryParams.resumptionRole);
+      }
+
+      console.info(this.dict.type);
+      api
+        .list(this.queryParams)
+        .then((response) => {
+          this.pageData = response.rows;
+          this.total = response.total;
+          this.loading = false;
+        })
+        .catch(() => {
+          this.loading = false;
+        });
+    },
+    getDefaultKey(key) {
+      this.queryParams.orgId = key;
+      this.getList();
+    },
+    handleAdd(id, other = {}) {
+      this.$refs.editDialog.show(id, other);
+    },
+    onEdit(id, other = {}) {
+      this.$refs.editDialog.show(id, other);
+    },
     async onDel(row) {
       let msg = "";
       if (row.planStatus == 0) {

+ 1 - 0
src/views/resumption/taskManager/index.vue

@@ -421,6 +421,7 @@ export default {
     },
     resetQuery() {
       this.resetForm("queryParams");
+      this.queryParams.range=[new Date(),new Date()]
       this.queryParams.orgId = this.orgId;
       this.selectedOrgName = this.orgName;
       this.queryParams.checkSub = true;

+ 56 - 46
src/views/check/dialog.edit.vue → src/views/safetycheck/plan/dialog.edit.vue

@@ -19,12 +19,13 @@
             <el-col :span="6">
               <el-form-item prop="planName" label="任务名称:">
                 <el-input
-                  :disabled="isChildren()"
+                  :disabled="canEdit()"
                   v-model.trim="formData.planName"
                   :maxlength="50"
                   name="planName"
-                  placeholder="请输入"
+                  placeholder="请输入任务名称"
                   clearable
+                  style="width: 217px"
                 />
               </el-form-item>
             </el-col>
@@ -32,7 +33,7 @@
               <el-form-item prop="checkType" label="任务类型:">
                 <el-select
                   @change="changeData"
-                  :disabled="isChildren()"
+                  :disabled="canEdit()"
                   label="任务类型"
                   v-model="formData.checkType"
                   placeholder="请选择任务类型"
@@ -51,7 +52,7 @@
             <el-col :span="6">
               <el-form-item prop="planCycle" label="任务周期:">
                 <el-select
-                  :disabled="isChildren()"
+                  :disabled="canEdit()"
                   prop="planCycle"
                   label="任务周期"
                   v-model="formData.planCycle"
@@ -91,7 +92,7 @@
                 v-if="formData.planCycle == 6"
               >
                 <el-date-picker
-                  :disabled="isChildren()"
+                  :disabled="canEdit()"
                   v-model="formData.startDate"
                   style="width: 240px"
                   value-format="yyyy-MM-dd 00:00:00"
@@ -109,7 +110,7 @@
                 v-if="formData.planCycle == 6"
               >
                 <el-date-picker
-                  :disabled="isChildren()"
+                  :disabled="canEdit()"
                   v-model="formData.endDate"
                   style="width: 240px"
                   value-format="yyyy-MM-dd 23:59:59"
@@ -123,7 +124,7 @@
             <el-col :span="6">
               <el-form-item prop="execOrgType" label="检查主体类型:">
                 <el-select
-                  :disabled="isChildren()"
+                  :disabled="canEdit()"
                   @change="cleanExecOrgList"
                   prop="execOrgType"
                   label="机构类型"
@@ -146,7 +147,7 @@
             <el-col :span="6">
               <el-form-item prop="roleIds" label="检查人员:">
                 <el-select
-                  :disabled="isChildren()"
+                  :disabled="canEdit()"
                   label="检查人员"
                   v-model="formData.roleIds"
                   placeholder="请选择用户角色"
@@ -167,7 +168,7 @@
             <el-col :span="6">
               <el-form-item prop="checkOrgTypes" label="受检机构类型:">
                 <el-select
-                  :disabled="isChildren()"
+                  :disabled="canEdit()"
                   @change="cleanCheckOrgList"
                   prop="checkOrgTypes"
                   label="受检机构类型"
@@ -203,7 +204,7 @@
             <el-col :span="6">
               <el-form-item :span="6" prop="execOrgIds" label="检查主体">
                 <org-tree-select
-                  :disabled="isChildren()"
+                  :disabled="canEdit()"
                   v-model="formData.execOrgIds"
                   :queryData="parseInt(formData.execOrgType)"
                   ref="execorgTreeSelect"
@@ -216,7 +217,7 @@
             <el-col :span="6">
               <el-form-item :span="6" prop="checkOrgIds" label="受检机构">
                 <org-tree-select
-                  :disabled="isChildren()"
+                  :disabled="canEdit()"
                   v-model="formData.checkOrgIds"
                   :queryData="parseInt(formData.checkOrgType)"
                   ref="checkorgTreeSelect"
@@ -252,7 +253,7 @@
           </el-row>
           <el-form-item :span="6" prop="description" label="备注">
             <el-input
-              :disabled="isChildren()"
+              :disabled="canEdit()"
               v-model="formData.description"
               :maxlength="255"
               clearable
@@ -561,19 +562,16 @@ export default {
       } else return false;
     },
     //编辑内容判断
-    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() {
+      //停用和使用中的任务,只能编辑名称和履职内容
+      // let f = this.formData;
+      //
+      let r = !(
+        this.formData.planStatus == null || this.formData.planStatus == "0"
+      );
+      //行社不能编辑省联社计划的名称;省联社也不能单独编辑子计划的名称
+      r &= (this.formData.planOfOrgId==this.orgId)
+      return r;
     },
     NowBuild() {
       //如果新增或者是草稿状态的立即生效的编辑
@@ -820,31 +818,43 @@ export default {
 
         this.formData.rulePointList =
           this.tableData == null ? [] : this.tableData;
-        let rols = this.formData.roleList;
-        let rolis = this.formData.roleIds;
-        this.formData.roleList = null;
-        this.formData.roleIds =
-          this.selectedValues.length == 0 ? null : this.selectedValues;
+        // let rols = this.formData.roleList;
+        // let rolis = this.formData.roleIds;
+        // this.formData.roleList = null;
+        // this.formData.roleIds =
+        //   this.selectedValues.length == 0 ? null : this.selectedValues;
+
+        // if (this.formData.planCycle == 6) {
+        //   this.formData.buildTaskNow = true;
+        // }
 
-        if (this.formData.planCycle == 6) {
-          this.formData.buildTaskNow = true;
+        if (this.formData.planStatus =="1" ) {
+          if (this.formData.taskHasCompleted == 1) {
+            this.update(this.formData, false);
+          } else {
+            this.update(this.formData, true);
+          }
+        } else if (this.formData.planStatus == "2") {
+          this.update(this.formData, false);
+        } else {
+          this.update(this.formData,false);
         }
-        await api
-          .add(this.formData)
-          .then((data) => {
-            this.loading = false;
-            this.$emit("success");
-            this.onHide();
-          })
-          .catch((err) => {
-            this.formData.roleList = rols;
-            this.formData.roleIds = rolis;
-            this.formData.planStatus = status;
-            this.loading = false;
-            // console.log(err,"err")
-          });
       });
     },
+    async update(data, immediateEffect) {
+      await api
+        .add(data, immediateEffect)
+        .then((data) => {
+          this.isSubmitting = false;
+          this.loading = false;
+          this.$emit("success");
+          this.onHide();
+        })
+        .catch((err) => {
+          this.loading = false;
+          // console.log(err,"err")
+        });
+    },
     handleRolesChange(val) {
       this.selectedValues = val.toString().split(",");
     },

+ 0 - 0
src/views/check/distribute.vue → src/views/safetycheck/plan/distribute.vue


+ 167 - 105
src/views/check/index.vue → src/views/safetycheck/plan/index.vue

@@ -347,25 +347,17 @@
                   type="text"
                   size="mini"
                   icon="el-icon-arrow-down"
-                  v-if="checkCanPublish(r.row)"
+                  v-if="showPublish(r.row)"
                   @click="showDialogDistribute(r.row)"
                   v-hasPermi="['core:checkplan:distribute']"
                   >下发</el-button
                 >
-                <el-button
-                  type="text"
-                  size="mini"
-                  icon="el-icon-arrow-down"
-                  v-if="newcheckCanPublish(r.row)"
-                  @click="newshowDialogDistribute(r.row)"
-                  v-hasPermi="['core:checkplan:distribute']"
-                  >下发</el-button
-                >
+
                 <el-button
                   type="text"
                   icon="el-icon-top-left"
                   size="mini"
-                  v-if="chehui(r.row)"
+                  v-if="showWithDraw(r.row)"
                   @click="chhuile(r.row)"
                   v-hasPermi="['core:checkplan:distribute']"
                   >撤回</el-button
@@ -380,7 +372,7 @@
                   >编辑</el-button
                 >
                 <el-button
-                  v-if="eqOrg2(r.row)"
+                  v-if="showDelete(r.row)"
                   size="mini"
                   type="text"
                   icon="el-icon-delete"
@@ -409,6 +401,7 @@
       :ruleTypeOptions="dict.type.rule_type"
     ></dialog-edit>
     <DialogDistribute ref="dialogDistribute" @select="sel"></DialogDistribute>
+    <DialogThreeState ref="DialogThreeState"> </DialogThreeState>
   </div>
 </template>
 
@@ -420,6 +413,7 @@ import DialogEdit from "./dialog.edit";
 import * as api from "@/api/safetycheck/plan";
 import { statusOptions, getLabel } from "@/views/commonOption";
 import { listRole } from "@/api/system/role";
+import DialogThreeState from "@/components/message/threeStateMessageBox.vue";
 export default {
   name: "resumptionplan",
   dicts: [
@@ -433,6 +427,7 @@ export default {
     DialogEdit,
     OrgTree,
     DialogDistribute,
+    DialogThreeState
   },
   data() {
     const { params, query } = this.$route;
@@ -504,78 +499,109 @@ export default {
         return true;
       }
       return false;
+    },    
+    showDialogDistribute(row) {
+      if (row.planOfOrgType == 3) {
+        this.onHSPlanDistribute(row);
+      } else {
+        this.$refs.dialogDistribute.show(row);
+      }
     },
-    eqOrg2(row) {
-      // console.log(row.planCreateOrgId,"row.planCreateOrgId");
-      // console.log(this.orgId,"this.orgId");
-      if (
-        row != null &&
-        row != undefined &&
-        row.planCreateOrgId == this.orgId &&
-        row.planOfOrgId == this.orgId
-      ) {
-        return true;
+
+    onHSPlanDistribute(row) {
+      let msg = "";
+      if (row.planStatus == 0) {
+        msg = "是否立即生成任务?";
+      } else {
+        msg = "本周期未完成任务应用最新任务内容";
+      }
+
+      if (row.planStatus == 0) {
+        msg = "请选择下发后立即生成或下周期生成任务?";
+        this.$refs["DialogThreeState"].show(
+          msg,
+          (state) => {
+            if (state == 0 || state == 1) {
+              this.distributeHS(row.id, state == 1);
+            }
+          },
+          {
+            yesText: "立即生成",
+            noText: "下周期",
+            cancelText: "取消",
+          }
+        );
+      } else if (row.planStatus == 2) {
+        this.$modal
+          .confirm("因存在已完成任务,是否确定从下周期生成任务", {
+            confirmButtonText: "确定",
+            canelButtonText: "取消",
+          })
+          .then(() => {
+            this.distributeHS(row.id, false);
+          });
+      } else {
+        this.distributeHS(row.id, false);
       }
-      return false;
     },
-    newcheckCanPublish(row) {
-      //如果计划所属机构类型为行社并且计划不为进行中并且计划创建机构为当前机构或者
-      //计划状态为停用并且不属于子计划并且计划所属机构类型为省联社
+    distributeHS(id, immediateEffect) {
+      this.loading = true;
+      api
+        .distributeHS(id, immediateEffect)
+        .then((response) => {
+          // console.log(response, "then");
+          if (response.data == 0) {
+            this.loading = false;
+          } else {
+            this.getList();
+            this.loading = false;
+          }
+        })
+        .catch((response) => {
+          // console.log(response, "catch");
+          this.getList();
+          this.loading = false;
+        });
+    },
+    showPublish(row) {
+      //可以下发:本机构创建+状态为草稿、停用的计划
       if (
-        (row.planOfOrgType == 3 &&
-          row.planStatus != 1 &&
-          row.planCreateOrgId == this.orgId) ||
-        (row.planStatus == 2 && row.parentId != -1 && row.planOfOrgType == 1) ||
-        (row.planStatus != 1 && (row.execOrgType == 1 || row.execOrgType == 2))
+        row.planCreateOrgId == this.orgId &&
+        (row.planStatus == 0 || row.planStatus == 2)
       ) {
         return true;
       }
+
+      // if (
+      //   row.planOfOrgId == this.orgId &&
+      //   row.planCreateOrgId != this.orgId &&
+      //   (row.planStatus == 0 || row.planStatus == 2) &&
+      //   row.distributePlanStatus == 0
+      // ) {
+      //   return true;
+      // }
+
       return false;
     },
-    newshowDialogDistribute(row) {
-      this.$modal
-        .confirm("是否下发!", "提示")
-        .then(() => {
-          // 用户点击了确认按钮
-          console.log("执行操作...");
-          this.loading = true;
-          api
-            .distributeCheHui(row.id)
-            .then((response) => {
-              // console.log(response, "then");
-              if (response.data == 0) {
-                this.loading = false;
-              } else {
-                this.getList();
-                this.loading = false;
-              }
-            })
-            .catch((response) => {
-              // console.log(response, "catch");
-              this.getList();
-              this.loading = false;
-            });
-        })
-        .catch(() => {
-          // 用户点击了取消按钮
-          console.log("取消操作...");
-        });
+    showDelete(row) {
+      //本机构创建的计划,才能删除
+      return row.planCreateOrgId == this.orgId;
     },
-    //已完成下发的计划不显示下发按钮
-    checkCanPublish(row) {
-      // console.log(row.planOfOrgType == "1","row.planOfOrgType")
-      // console.log(row.planOfOrgType == "1"&& row.distribute==null,"row.distribute")
-
-      //如果计划所属机构为省联社并且计划下发状态为0并且计划检查机构类型不为省联社和办事处(只有一个无法下发)
-      if (
-        row.planOfOrgType == "1" &&
-        row.distribute == 0 &&
-        row.execOrgType != "1" &&
-        row.execOrgType != "2"
-      ) {
+    showWithDraw(row) {
+      //本机构创建是自己+状态为使用中
+      if (row.planCreateOrgId == this.orgId && row.planStatus == 1) {
         return true;
       }
 
+      // if (
+      //   row.planOfOrgId == this.orgId &&
+      //   row.planCreateOrgId != this.orgId &&
+      //   row.planStatus == 1 &&
+      //   row.distributePlanStatus == 0
+      // ) {
+      //   return true;
+      // }
+
       return false;
     },
     splitRoleNames(val) {
@@ -586,13 +612,78 @@ export default {
       }
       // 使用逗号分割字符串,得到角色名称的数组
     },
-    sel(selectList) {
+    sel(selectList, row) {
+      let msg = "";
+      if (row.planStatus == 0) {
+        msg = "请选择立即生成或下个周期开始生成任务?";
+        this.$refs["DialogThreeState"].show(
+          msg,
+          (state) => {
+            if (state == 0 || state == 1) {
+              this.distributeInner(selectList, state == 1);
+            }
+          },
+          {
+            yesText: "立即生成",
+            noText: "下周期",
+            cancelText: "取消下发",
+          }
+        );
+      } else if (row.planStatus == 2) {
+        this.$modal
+          .confirm("因存在已完成任务,本次任务下发仅支持下周期生成任务", {
+            confirmButtonText: "下周期",
+            canelButtonText: "取消下发",
+          })
+          .then(() => {
+            this.distributeInner(selectList, false);
+          });
+      } else {
+        this.distributeInner(selectList, false);
+      }
+    },
+    distributeInner(selectList, imme) {
       this.loading = true;
-      api.distribute(selectList).then((response) => {
-        this.getList();
-        this.loading = false;
-      });
+      api
+        .distribute(selectList, imme)
+        .then((response) => {
+          this.getList();
+          this.loading = false;
+        })
+        .catch(() => {
+          this.loading = false;
+        });
+    },
+    
+    //开始撤回
+    chhuile(row) {
+      this.$modal
+        .confirm("确认撤回?", "提示")
+        .then(() => {
+          // 用户点击了确认按钮
+          // console.log("执行操作...");
+          this.loading = true;
+          api.cheHui(row.id).then((response) => {
+            this.getList();
+            this.loading = false;
+          });
+        })
+        .catch(() => {
+          // 用户点击了取消按钮
+          // console.log("取消操作...");
+        });
     },
+    // //已下发的显示撤回
+    // chehui(row) {
+    //   if (row.distribute == 1 && row.planCreateOrgId == this.orgId) {
+    //     return true;
+    //   }
+    //   return false;
+    // },
+    // showDialogDistribute(row) {
+    //   console.log(row, "qqq");
+    //   this.$refs.dialogDistribute.show(row);
+    // },
     getRolesByOrg() {
       let params = {
         // orgId:this.queryParams.orgId
@@ -627,35 +718,6 @@ export default {
     onEdit(id, other = {}) {
       this.$refs.editDialog.show(id, other);
     },
-    //开始撤回
-    chhuile(row) {
-      this.$modal
-        .confirm("确认撤回?", "提示")
-        .then(() => {
-          // 用户点击了确认按钮
-          // console.log("执行操作...");
-          this.loading = true;
-          api.cheHui(row.id).then((response) => {
-            this.getList();
-            this.loading = false;
-          });
-        })
-        .catch(() => {
-          // 用户点击了取消按钮
-          // console.log("取消操作...");
-        });
-    },
-    //已下发的显示撤回
-    chehui(row) {
-      if (row.distribute == 1 && row.planCreateOrgId == this.orgId) {
-        return true;
-      }
-      return false;
-    },
-    showDialogDistribute(row) {
-      console.log(row, "qqq");
-      this.$refs.dialogDistribute.show(row);
-    },
     async onDel(id, name) {
       this.$modal
         .confirm('是否确认删除名称为"' + name + '"的数据项?')