Răsfoiți Sursa

Merge remote-tracking branch 'origin/v0.1.0' into v0.1.0

xujie 1 an în urmă
părinte
comite
80d3bba7b1

+ 22 - 4
src/views/resumption/plan/dialog.detail.vue

@@ -11,7 +11,7 @@
         <el-descriptions-item label="任务周期">{{
           getLabel(dict.type.resumption_plan_cycle, formData.planCycle)
         }}</el-descriptions-item>
-        <el-descriptions-item label="任务时">{{
+        <el-descriptions-item label="任务时">{{
           getLabel(dict.type.resumption_plan_exec, formData.planExec)
         }}</el-descriptions-item>
         <el-descriptions-item label="机构类型">{{
@@ -34,9 +34,19 @@
         <el-descriptions-item label="开始时间" v-if="formData.planCycle == 0">{{
           dayjs(formData.endDate).format("YYYY年MM月DD日")
         }}</el-descriptions-item>
-        <el-descriptions-item label="履职机构" :span="4">{{
+<!--        <el-descriptions-item label="履职机构" :span="4">
+          {{
           formData.orgs ? formData.orgs.map((o) => o.name).join("、") : ""
-        }}</el-descriptions-item>
+          }}
+        </el-descriptions-item>-->
+        <el-descriptions-item label="履职机构" :span="4">
+          <el-tooltip class="item" effect="dark" :content='formData.orgs ? formData.orgs.map((o) => o.name).join("、") : ""' placement="top">
+            <div class="ellipsis-tooltip">{{ formData.orgs ? formData.orgs.map((o) => o.name).join("、") : "" }}</div>
+          </el-tooltip>
+        </el-descriptions-item>
+
+
+
         <el-descriptions-item label="备注" :span="4">{{
           formData.note
         }}</el-descriptions-item>
@@ -137,4 +147,12 @@ export default {
 };
 </script>
 
-<style></style>
+
+<style scoped>
+.ellipsis-tooltip {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  max-width: 1000px;
+}
+</style>

+ 13 - 13
src/views/resumption/plan/dialog.edit.vue

@@ -25,8 +25,8 @@
                   :maxlength="50"
                   name="planName"
                   placeholder="请输入任务名称"
-                  clearable   
-                  style="width: 100%"               
+                  clearable
+                  style="width: 100%"
                 />
               </el-form-item>
             </el-col>
@@ -80,12 +80,12 @@
               </el-form-item>
             </el-col>
             <el-col :span="6">
-              <el-form-item prop="planExec" label="任务时:">
+              <el-form-item prop="planExec" label="任务时:">
                 <el-select
                   :disabled="cannotEdit()"
-                  label="任务时"
+                  label="任务时"
                   v-model="formData.planExec"
-                  placeholder="请选择任务时"
+                  placeholder="请选择任务时"
                   clearable
                   style="width: 100%"
                 >
@@ -198,17 +198,17 @@
                   v-model="formData.orgList"
                   class="org-selector"
                   :queryData="parseInt(formData.execOrgType)"
-                  :disable="true"             
+                  :disable="true"
                 :checkShow="true"
                 >
                 </org-tree-select> -->
-                <org-select ref="orgTreeSelect" 
+                <org-select ref="orgTreeSelect"
                 v-model="formData.orgList"
-                :limitOrgType="String(formData.execOrgType?formData.execOrgType:'')"                
+                :limitOrgType="String(formData.execOrgType?formData.execOrgType:'')"
                 :disabled="cannotEdit()"
               >
             </org-select>
-                
+
               </el-form-item>
             </el-col>
             <el-col :span="12">
@@ -218,7 +218,7 @@
                   v-model="formData.note"
                   :maxlength="255"
                   clearable
-                  placeholder="请输入备注"                  
+                  placeholder="请输入备注"
                 />
               </el-form-item>
             </el-col>
@@ -250,7 +250,7 @@
                   style="width:calc(100% - 17px)"
                 />
               </el-form-item> -->
-            
+
         </el-form>
         <div style="margin-bottom: 10px">
           <el-button
@@ -461,7 +461,7 @@ export default {
         roleList: [
           { required: true, message: "请选择履职人员", trigger: "change" },
         ],
-        planExec: [{ required: true, message: "请选择任务时" }],
+        planExec: [{ required: true, message: "请选择任务时" }],
         count: [{ required: true, message: "请选择任务次数" }],
         startDate: [{ required: true, message: "请选择开始时间" }],
         endDate: [{ required: true, message: "请选择结束时间" }],
@@ -1028,4 +1028,4 @@ export default {
     max-height: 33px !important;
   }
 }
-</style>
+</style>

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

@@ -253,7 +253,7 @@
 
             <el-table-column
               prop="planExec"
-              label="任务时"
+              label="任务时"
               align="center"
               width="180px"
               v-if="columns[8].visible"
@@ -850,4 +850,4 @@ export default {
 <style lang="scss" scoped>
 .brand {
 }
-</style>
+</style>

+ 56 - 55
src/views/safetycheck/plan/dialog.detail.vue

@@ -1,57 +1,64 @@
 <template>
   <div class="rule-type">
-    <DialogCom title="检查任务详情" :visible.sync="isShow" width="1500px" >
+    <DialogCom title="检查任务详情" :visible.sync="isShow" width="1500px">
       <el-descriptions :column="4" border :label-style="labelStyle" :contentStyle="content_style">
         <el-descriptions-item label="任务名称">{{
-          formData.planName
-        }}</el-descriptions-item>
+            formData.planName
+          }}
+        </el-descriptions-item>
         <el-descriptions-item label="任务类型">{{
-          getLabel(dict.type.check_type, formData.checkType)
-        }}</el-descriptions-item>
+            getLabel(dict.type.check_type, formData.checkType)
+          }}
+        </el-descriptions-item>
         <el-descriptions-item label="任务周期">{{
-          getLabel(dict.type.check_cycle, formData.planCycle)
-        }}</el-descriptions-item>
+            getLabel(dict.type.check_cycle, formData.planCycle)
+          }}
+        </el-descriptions-item>
         <el-descriptions-item label="开始时间" v-if="formData.planCycle == 6">{{
-          dayjs(formData.startDate).format("YYYY年MM月DD日")
-        }}</el-descriptions-item>
+            dayjs(formData.startDate).format("YYYY年MM月DD日")
+          }}
+        </el-descriptions-item>
         <el-descriptions-item label="结束时间" v-if="formData.planCycle == 6">{{
-          dayjs(formData.endDate).format("YYYY年MM月DD日")
-        }}</el-descriptions-item>
+            dayjs(formData.endDate).format("YYYY年MM月DD日")
+          }}
+        </el-descriptions-item>
         <el-descriptions-item label="机构主体类型">{{
-          getLabel(orgTypeOptions, formData.execOrgType)
-        }}</el-descriptions-item>
+            getLabel(orgTypeOptions, formData.execOrgType)
+          }}
+        </el-descriptions-item>
         <el-descriptions-item label="检查人员">
           {{
-            formData.roleList .map((r) => r.roleName).join("、") 
+            formData.roleList.map((r) => r.roleName).join("、")
           }}
         </el-descriptions-item>
         <el-descriptions-item label="受检机构类型">{{
-          formData.checkOrgTypeList
-            .map((t) => getLabel(orgTypeOptions, t.typeId))
-            .join("、")
-        }}</el-descriptions-item>
+            formData.checkOrgTypeList
+              .map((t) => getLabel(orgTypeOptions, t.typeId))
+              .join("、")
+          }}
+        </el-descriptions-item>
         <el-descriptions-item label="任务次数" :span="formData.planCycle!=6 ?2:1">{{
-          formData.count
-        }}</el-descriptions-item>
+            formData.count
+          }}
+        </el-descriptions-item>
         <el-descriptions-item
           label="检查主体"
           :span="4"
           v-if="formData.execOrgList && formData.execOrgList.length > 0"
-          >{{
+        >{{
             formData.execOrgList.map((org) => org.shortName).join("、")
-          }}</el-descriptions-item
-        >
-        <el-descriptions-item
-          label="受检机构"
-          :span="4"
-          v-if="formData.checkOrgList && formData.checkOrgList.length > 0"
-          >{{
-            formData.checkOrgList.map((org) => org.shortName).join("、")
-          }}</el-descriptions-item
+          }}
+        </el-descriptions-item
         >
+        <el-descriptions-item label="受检机构" :span="4" v-if="formData.checkOrgList && formData.checkOrgList.length > 0">
+          <el-tooltip class="item" effect="dark" :content="formData.checkOrgList.map((org) => org.shortName).join('、')" placement="top">
+            <div class="ellipsis-tooltip">{{ formData.checkOrgList.map((org) => org.shortName).join("、") }}</div>
+          </el-tooltip>
+        </el-descriptions-item>
         <el-descriptions-item label="备注" :span="formData.planCycle!=6">{{
-          formData.note
-        }}</el-descriptions-item>
+            formData.note
+          }}
+        </el-descriptions-item>
       </el-descriptions>
       <el-table :data="tableData" style="width: 100%" height="400px">
         <el-table-column label="是否扫描">
@@ -64,14 +71,14 @@
             {{ row.required ? "是" : "否" }}
           </template>
         </el-table-column>
-        <el-table-column prop="ruleName" label="检查手册"> </el-table-column>
-        <el-table-column prop="itemName" label="检查项"> </el-table-column>
+        <el-table-column prop="ruleName" label="检查手册"></el-table-column>
+        <el-table-column prop="itemName" label="检查项"></el-table-column>
         <el-table-column prop="pointName" label="检查内容" width="300px">
           <template slot-scope="scope">
             <pre>{{ scope.row.pointName }}</pre>
           </template>
         </el-table-column>
-        <el-table-column prop="areaName" label="检查区域"> </el-table-column>
+        <el-table-column prop="areaName" label="检查区域"></el-table-column>
       </el-table>
       <div slot="footer" class="dialog-footer" style="margin-top: 20px">
         <el-button @click="onHide">关闭</el-button>
@@ -81,10 +88,11 @@
 </template>
 
 <script>
-import { findAllRole } from "@/api/system/role";
+import {findAllRole} from "@/api/system/role";
 import * as api from "@/api/safetycheck/plan";
-import { getLabel } from "@/views/commonOption.js";
+import {getLabel} from "@/views/commonOption.js";
 import dayjs from 'dayjs';
+
 export default {
   dicts: ["check_type", "check_cycle", "check_status"],
   props: {
@@ -107,10 +115,10 @@ export default {
         height: "40px",
         "width": "150px",
         "word-break": "keep-all",
-      },content_style: {
+      }, content_style: {
         "text-align": "left",
-         "min-width": "150px",
-         "text-wrap":'no-wrap'
+        "min-width": "150px",
+        "text-wrap": 'no-wrap'
         // "word-break": "break-all",
       },
     };
@@ -124,22 +132,8 @@ export default {
         this.formData = r.data;
         this.tableData = r.data.rulePointList;
         this.isShow = true;
-        // if (this.formData.execOrgType) {
-        //   this.getRolesByOrg();
-        // }
       });
     },
-    // getRolesByOrg() {
-    //   if (this.formData.execOrgType != null) {
-    //     let params = {
-    //       orgType: this.formData.execOrgType,
-    //     };
-
-    //     findAllRole(params).then((res) => {
-    //       this.resumptionRoles = res.data;
-    //     });
-    //   }
-    // },
     onHide() {
       this.isShow = false;
     },
@@ -147,4 +141,11 @@ export default {
 };
 </script>
 
-<style></style>
+<style scoped>
+.ellipsis-tooltip {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  max-width: 1000px;
+}
+</style>