瀏覽代碼

Merge branch 'V0.0.2' of http://10.87.10.227:4000/jzyd_yyds/soc_web into V0.0.2

jiawuxian 2 年之前
父節點
當前提交
145e59cb2a

+ 12 - 8
src/views/check/index.vue

@@ -100,7 +100,7 @@
             />
           </el-form-item>
           <el-form-item prop="planStatus" label="计划状态">
-            <!-- <el-select
+            <el-select
               prop="planStatus"
               label="计划状态"
               v-model="queryParams.planStatus"
@@ -114,8 +114,8 @@
                 :value="item.value"
               >
               </el-option>
-            </el-select> -->
-            <el-switch v-model="queryParams.planStatus" active-value="1" inactive-value="2"></el-switch>
+            </el-select>
+            <!-- <el-switch v-model="queryParams.planStatus" active-value="1" inactive-value="2"></el-switch> -->
           </el-form-item>
           <el-form-item>
             <el-button
@@ -152,6 +152,7 @@
         </el-row>
 
         <el-table
+        
           v-loading="loading"
           :data="pageData"
           @selection-change="handleSelectionChange"
@@ -159,7 +160,7 @@
           :tree-props="{ children: 'children' }"
         >
           <el-table-column
-            prop="index"
+          type = 'index'
             label="序号"
             width="80px"
             v-if="columns[0].visible"            
@@ -407,12 +408,15 @@ export default {
     ...mapMutations([]),
         //已完成下发的计划不显示下发按钮
     checkCanPublish(row) {
-      console.log(row.planOfOrgType,"row.planOfOrgType")
-      console.log(row.planOfOrgType == "1"&& row.children.length == 0,"row.children.length")
-      if (row.planOfOrgType == "1"&& row.children.length == 0) {
-        console.log("1111")
+      // console.log(row.planOfOrgType,"row.planOfOrgType")
+      // console.log(row.planOfOrgType == "1"&& row.children.length == 0,"row.children.length")
+  
+      
+      if (row.planOfOrgType == "1"&& (row.children==null||row.children.length == 0)) {
+        // console.log("1111")
         return true
       }
+    
       return false;
     },
     splitRoleNames(val) {

+ 8 - 5
src/views/core/accessPlan/index.vue

@@ -3,9 +3,8 @@
     <el-row :gutter="20">
       <!--机构数据-->
       <el-col :span="4" :xs="24">
-
-        <org-tree v-model="queryParams.orgId" @defaultKey="getDefaultKey" @checkChange="checkChange"
-                  @click="clickTreeNode" businessTree></org-tree>
+                  <org-tree v-model="queryParams.orgId" @defaultKey="getDefaultKey" @defaultOrg="getDefaultOrg" @checkChange="checkChange"
+                    @click="clickTreeNode"></org-tree>
       </el-col>
       <!--搜索栏-->
 
@@ -106,7 +105,10 @@
           </el-table-column>
         </el-table>
 
-        <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
+        <!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
+                    :limit.sync="queryParams.pageSize"
+                    @pagination="getList"/> -->
+                    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
                     :limit.sync="queryParams.pageSize"
                     @pagination="getList"/>
       </el-col>
@@ -235,6 +237,7 @@
           description: null,
           isDeleted: null,
           isDistribute: null,
+          checkSub: true
         },
         // 表单参数
         form: {},
@@ -281,7 +284,7 @@
         listPlan(this.queryParams).then(response => {
           this.planList = response.data.rows;
           this.check=response.check;
-          this.total = response.total;
+          this.total = response.data.total;
           this.loading = false;
         });
       },

+ 18 - 9
src/views/resumption/plan/dialog.edit.vue

@@ -388,15 +388,24 @@ export default {
           break;
 
         case "5":
-          // 获取下个季度的第一天日期
-          const nextQuarterFirstDay = dayjs()
-          .add(1, "quarter")
-            .startOf("quarter");
-          // 格式化日期为你想要的格式
-          const formattedNextQuarterFirstDay =
-            nextQuarterFirstDay.format("YYYY-MM-DD");
-            console.log(formattedNextQuarterFirstDay,"formattedNextQuarterFirstDay")
-            this.buildTime = formattedNextQuarterFirstDay;
+        const year2 = dateObj.getFullYear(); // 获取年份
+          const month2 = String(dateObj.getMonth() + 1).padStart(2, "0"); // 获取月份,并补齐两位数
+          const day2 = String(dateObj.getDate()).padStart(2, "0"); // 获取日期,并补齐两位数
+          var month3=month2;
+          month3++;
+          for(var i=0;i<12;i++)
+          {
+            if(month3==1||month3==4||month3==7||month3==10){
+              continue;
+            }
+            if(month3==13){
+              month3=1;
+            }
+            month3++;
+          }
+          this.buildTime = `${year2}-${month3}-${day2}`; 
+        
+         
           break;
       }
     },

+ 3 - 3
src/views/resumption/plan/index.vue

@@ -74,7 +74,7 @@
             </el-select>
           </el-form-item>
           <el-form-item prop="planStatus" label="计划状态">
-            <!-- <el-select
+            <el-select
               prop="planStatus"
               label="任务状态"
               v-model="queryParams.planStatus"
@@ -88,8 +88,8 @@
                 :value="item.value"
               >
               </el-option>
-            </el-select> -->
-            <el-switch v-model="queryParams.planStatus" active-value="1" inactive-value="0"></el-switch>
+            </el-select>
+            <!-- <el-switch v-model="queryParams.planStatus" active-value="1" inactive-value="0"></el-switch> -->
           </el-form-item>
           <el-form-item prop="planName" label="计划名称">
             <el-input

+ 37 - 50
src/views/system/dept/extend.vue

@@ -735,9 +735,7 @@
         >取消</el-button
       >
     </div>
-
-
-
+    <!-- 添加或编辑业务库物防建设对话框 -->
     <DialogCom
       :title="Businesstitle"
       :visible.sync="Businessopen"
@@ -822,7 +820,7 @@
         <el-button @click="Businesscancel">取 消</el-button>
       </div>
     </DialogCom>
-
+    <!-- 添加或编辑银行物防建设对话框 -->
     <DialogCom
       :title="Banktitle"
       :visible.sync="Bankopen"
@@ -989,7 +987,7 @@
         <el-button @click="orgcancel">取 消</el-button>
       </div>
     </DialogCom>
-
+    <!-- 添加或编辑离行物防建设对话框 -->
     <DialogCom
       :title="detachedtitle"
       :visible.sync="detachedopen"
@@ -998,7 +996,7 @@
     >
       <el-form
         ref="detachedform"
-        :model="formData"
+        :model="detachedform"
         label-width="80px"
         :rules="rules"
       >
@@ -1007,7 +1005,7 @@
           <el-select
             prop="planType"
             label="标准"
-            v-model="formData.standard"
+            v-model="detachedform.standard"
             placeholder="请选择标准"
             clearable
           >
@@ -1022,7 +1020,7 @@
         <el-form-item label="达标日期" prop="dateOfCompliance">
           <el-date-picker
             clearable
-            v-model="formData.dateOfCompliance"
+            v-model="detachedform.dateOfCompliance"
             type="date"
             value-format="yyyy-MM-dd HH:mm:ss"
             placeholder="请选择达标日期"
@@ -1035,17 +1033,16 @@
             placeholder="请输入证书佐证"
           /> -->
           <el-switch
-            v-model="certificate"
+            v-model="detachedform.certificateEvidence"
             active-text
             :active-value="1"
             :inactive-value="0"
           ></el-switch>
         </el-form-item>
         <el-form-item
-          v-if="certificate"
+          v-if="detachedform.certificateEvidence"
           label="证书"
-          required
-          prop="certificateImgs"
+          prop="certificate"
         >
           <!-- <el-input
             v-if="false"
@@ -1055,14 +1052,15 @@
           <div
             class="image-container"
             style="margin-left: 20px"
-            v-if="certificate"
+            v-if="detachedform.certificateEvidence"
           >
-<!--            <p style="font-size: 12px; color: #999">上传证书</p>-->
-            <img-upload
+            <p style="font-size: 12px; color: #999">上传证书</p>
+            <image-upload
               :limit="5"
               :fileSize="2"
-              v-model="formData.certificateImgs"
-            ></img-upload>
+              :value="detachedform.certificate"
+              @input="uploaddetachedSuccess"
+            ></image-upload>
           </div>
         </el-form-item>
         <el-form-item v-if="false" label="佐证" prop="evidence">
@@ -1085,7 +1083,6 @@ import uploadpng from "@/assets/images/upload.png";
 import uplpng from "@/assets/images/upl.png";
 import request from "@/utils/request";
 import { statusOptions, getLabel } from "./../../commonOption";
-import ImgUpload from "@/components/ImgsUpload";
 import {
   listExtend,
   getExtend,
@@ -1114,7 +1111,6 @@ import {
 } from "@/api/system/OrgPhysicalDefenseConstruction";
 import { selectCityInfoVoList } from "@/api/core/weather";
 import TreeNodeDialogVue from "../../tool/build/TreeNodeDialog.vue";
-import {formatDate} from "@/utils";
 
 export default {
   dicts: [
@@ -1132,27 +1128,10 @@ export default {
     "property_situation",
   ],
   props: [],
-  components: {ImgUpload},
+  components: {},
   data() {
-     let formatRule = function(rule, value, callback) {
-      console.log(value,'value')
-      if (!value.length) {
-        callback(new Error("证书为必填项"));
-      } else {
-        callback();
-      }
-    };
     return {
-      //证书佐证
-      certificate:false,
       reqmsg: false,
-      formData:{
-      standard:null,
-      dateOfCompliance:null,
-      certificateEvidence:null,
-      certificate:null,  //回显时使用
-      certificateImgs:[],  //实际获取到的图片地址
-    },
       //表单验证
       rules: {
         standard: [{ required: true, message: "请输入标准", trigger: "blur" }],
@@ -1163,9 +1142,9 @@ export default {
             trigger: "blur",
           },
         ],
-        certificateImgs: [
-          { validator: formatRule, message: "请选择图片", trigger: "blur" },
-        ],
+        // certificate: [
+        //   { validator: this.isreq, message: "请选择图片", trigger: "blur" },
+        // ],
       },
 
       //基础信息key
@@ -1339,6 +1318,13 @@ export default {
   },
   mounted() {},
   methods: {
+    isreq(rule, value, callback) {
+      if (this.reqmsg) {
+        callback(new Error("证书为必填项"));
+      } else {
+        callback();
+      }
+    },
     // getImgUrl(fileList) {
     //   let matchResult = fileList.match(/\/statics(.*)/);
     //   if (matchResult) {
@@ -1379,7 +1365,7 @@ export default {
       this.orgimgs.push(img);
     },
     uploaddetachedSuccess(img) {
-      this.formData.certificateImgs.push(img);
+      this.detachedimgs.push(img);
     },
 
     handleInput() {
@@ -1553,7 +1539,7 @@ export default {
       if(this.Businessimgs.length>1){
         this.Businessform.certificate= this.Businessimgs[this.Businessimgs.length - 1].toString(",");
       }
-
+     
       this.$refs.Businessform.validate((valid) => {
         if (valid) {
           // 表单验证通过,提交数据或执行其他操作
@@ -1657,7 +1643,7 @@ export default {
         this.Bankform.certificate= this.Bankimgs[this.Bankimgs.length - 1].toString(",");
       }
 
-
+      
       this.$refs.Bankform.validate((valid) => {
         if (valid) {
           // 表单验证通过,提交数据或执行其他操作
@@ -1754,16 +1740,17 @@ export default {
     },
     /** 提交按钮 */
     submitdetachedForm() {
-      // if(this.detachedimgs.length>1){
-      //   this.detachedform.certificate= this.detachedimgs[this.detachedimgs.length - 1].toString(",");
-      // }
-      //
+      if(this.detachedimgs.length>1){
+        this.detachedform.certificate= this.detachedimgs[this.detachedimgs.length - 1].toString(",");
+      }
+
+     
       this.$refs.detachedform.validate((valid) => {
         if (valid) {
           // 表单验证通过,提交数据或执行其他操作
           this.detachedform.orgId = this.$route.params.id;
           this.detachedform.type = 4;
-
+ 
           if (this.detachedform.id != null) {
             updateOrgPhysicalDefenseConstruction(this.detachedform).then(
               (response) => {
@@ -1858,13 +1845,13 @@ export default {
       if(this.orgimgs.length>1){
         this.orgform.certificate= this.orgimgs[this.orgimgs.length - 1].toString(",");
       }
-
+      
       this.$refs.orgform.validate((valid) => {
         if (valid) {
           // 表单验证通过,提交数据或执行其他操作
           this.orgform.orgId = this.$route.params.id;
           this.orgform.type = 1;
-
+  
           if (this.orgform.id != null) {
             updateOrgPhysicalDefenseConstruction(this.orgform).then(
               (response) => {

+ 3 - 3
src/views/system/user/index.vue

@@ -108,7 +108,7 @@
             <el-table-column label="是否管理人员" align="center" key="isManager" prop="isManager" v-if="columns[5].visible"
               width="120">
               <template slot-scope="scope">
-                {{ scope.row.isManager > 0 ? "是" : "否" }}
+                {{ scope.row.isManage ==='Y'  ? "是" : "否" }}
               </template>
             </el-table-column>
             <el-table-column label="登录IP" align="center" key="lastIp" prop="lastIp" v-if="columns[6].visible"
@@ -118,7 +118,7 @@
             <el-table-column label="操作" align="center" width="300" fixed="right" class-name="small-padding fixed-width">
               <template slot-scope="scope">
                 <el-button size="mini" type="text" icon="el-icon-plus" @click="handleExtend(scope.row)"
-                  v-hasPermi="['system:user:extend']" v-if="check == true">补充信息</el-button>
+                  v-hasPermi="['system:user:extend']" v-if="scope.row.isManage == 'Y'">补充信息</el-button>
                 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
                   v-hasPermi="['system:user:edit']" >编辑</el-button>
                 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
@@ -208,7 +208,7 @@
 
           </el-col>
           <el-col :span="10">
-            <el-form-item label="是否管理人员">
+            <el-form-item label="是否管理人员" label-width="180">
               <el-radio-group v-model="form.isManage">
                 <el-radio v-for="dict in dict.type.sys_yes_no" :key="`${dict.value}`" :label="dict.value"
                   :disabled="form.source == 1">{{ dict.label }}</el-radio>