luowei 2 年之前
父节点
当前提交
8462b14b77
共有 36 个文件被更改,包括 207 次插入149 次删除
  1. 2 2
      .env.development
  2. 20 0
      src/api/safetycheck/checkRegister.js
  3. 1 1
      src/components/orgTree/index.vue
  4. 1 1
      src/components/orgTree/orgDropDown.vue
  5. 13 1
      src/router/index.js
  6. 2 2
      src/views/check/index.vue
  7. 8 15
      src/views/check/task/index.vue
  8. 1 1
      src/views/core/drill/drillDictionary/index.vue
  9. 1 1
      src/views/core/drill/plan/index.vue
  10. 1 1
      src/views/core/drill/task/index.vue
  11. 7 7
      src/views/core/edu/plan/index.vue
  12. 8 7
      src/views/core/edu/task/dialog.perform.vue
  13. 1 1
      src/views/core/edu/task/index.vue
  14. 1 1
      src/views/core/materials/index.vue
  15. 8 6
      src/views/evaluationRule/index.vue
  16. 2 2
      src/views/resumption/plan/index.vue
  17. 6 6
      src/views/resumption/protection/dialog.edit.vue
  18. 12 8
      src/views/resumption/protection/dialog.history.vue
  19. 10 2
      src/views/resumption/rule/dialog.edit.vue
  20. 1 1
      src/views/resumption/ruleManager/dialog.editItem.vue
  21. 1 1
      src/views/resumption/ruleManager/dialog.editPoint.vue
  22. 9 9
      src/views/resumption/ruleManager/dialog.select.point.vue
  23. 1 1
      src/views/resumption/taskManager/index.vue
  24. 9 6
      src/views/resumptionEvaluate/evaluate/index.vue
  25. 11 7
      src/views/resumptionEvaluate/evaluatePlan/index.vue
  26. 16 8
      src/views/safetycheck/rule/dialog.edit.vue
  27. 13 5
      src/views/safetycheck/ruleManager/dialog.editItem.vue
  28. 1 1
      src/views/safetycheck/ruleManager/dialog.editPoint.vue
  29. 1 1
      src/views/safetycheck/ruleManager/dialog.select.point.vue
  30. 2 0
      src/views/safetycheck/ruleManager/index.vue
  31. 9 7
      src/views/safetycheck/taskManager/components/checkRegister.vue
  32. 0 0
      src/views/safetycheck/taskManager/components/dialog.temporarytask.vue
  33. 7 1
      src/views/scorestatistics/index.vue
  34. 2 6
      src/views/system/dept/index.vue
  35. 14 17
      src/views/system/device/index.vue
  36. 5 13
      src/views/system/user/index.vue

+ 2 - 2
.env.development

@@ -14,8 +14,8 @@ ENV = 'development'
 #高雄
 #VUE_APP_BASE_API = 'http://10.87.11.94:8080'
 #景远超
-# VUE_APP_BASE_API = 'http://10.87.11.173:8080'
-VUE_APP_BASE_API = 'http://localhost:8080'
+VUE_APP_BASE_API = 'http://10.87.11.173:8080'
+# VUE_APP_BASE_API = 'http://localhost:8080'
 # 55环境
 # VUE_APP_BASE_API = 'http://10.87.10.55:8080'
 

+ 20 - 0
src/api/safetycheck/checkRegister.js

@@ -0,0 +1,20 @@
+import request from "@/utils/request";
+
+// 登记信息
+export function tempSubmit(data) {
+  return request({
+    url: "/core/safetycheck/register/webtempsubmit",
+    method: "POST",
+    showLoading: true,
+    data,
+  });
+}
+
+// 获取机构可用的角色列表
+// export function rolesByOrgId(orgId) {
+//   return request({
+//     url: "/system/role//getnamesbyorgid/" + orgId,
+//     method: "get",
+//     showLoading: true,
+//   });
+// } 

+ 1 - 1
src/components/orgTree/index.vue

@@ -110,7 +110,7 @@ export default {
     this.getDeptTree();
   },
   computed:{
-    ...mapGetters(["orgTree"]),
+    ...mapGetters(["businessTree"]),
   },
   mounted() {
     this.getHeight();

+ 1 - 1
src/components/orgTree/orgDropDown.vue

@@ -47,7 +47,7 @@ export default {
   methods: {
     /** 查询机构下拉树结构 */
     getDeptTree() {
-      this.deptOptions = this.$store.getters.wholeTree;
+      this.deptOptions = this.$store.getters.businessTree;
       if (this.deptOptions && this.deptOptions.length > 0) {
         if (this.val) {
           this.currentNode = this.findNodeInOptions(this.val);

+ 13 - 1
src/router/index.js

@@ -123,14 +123,26 @@ export const constantRoutes = [
     children:[{
       path:'add',
       name:'addRegister',
-      component: () => import('@/views/safetycheck/taskManager/components/checkRegister.vue'),
+      component: () => import('@/views/safetycheck/taskManager/components/register.vue'),
       meta:{title:'检查登记'}
     }]
+  },{
+    path: '/safetycheck/tempregister',
+    component: Layout,    
+    hidden: true,
+    permissions: ['core:safetycheck:register'],
+    children:[{
+      path:'add',
+      name:'tempRegister',
+      component: () => import('@/views/safetycheck/taskManager/components/checkRegister.vue'),
+      meta:{title:'临时登记'}
+    }]
   },
   {
     path: '/board',
     component: Layout,    
     hidden: true,
+    permissions: ['core:cockpit'],
     children:[{
       path:'',
       name:'board',

+ 2 - 2
src/views/check/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="app-container">
-    <el-row :gutter="20">
+    <el-row :gutter="10">
       <!--机构数据-->
       <el-col :span="4" :xs="24">
         <org-tree
@@ -171,7 +171,7 @@
 
         <el-table
           border
-          height="600"
+          height="646"
           size="small"
           v-loading="loading"
           :data="pageData"

+ 8 - 15
src/views/check/task/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="app-container">
-    <el-row :gutter="20">
+    <el-row :gutter="10">
       <!--机构数据-->
       <el-col :span="4" :xs="24">
         <org-tree
@@ -139,11 +139,7 @@
               <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
                 >重置</el-button
               >
-              <el-button
-                type="primary"
-                icon="el-icon-plus"
-                size="mini"
-                @click="handleAdd"
+              <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['core:safetycheck:tempregister']"
                 >临时登记</el-button
               >
             </el-form-item>
@@ -153,7 +149,7 @@
        
         <el-table
           border
-          height="600"
+          height="646"
           size="small"
           v-loading="loading"
           :data="pageData"
@@ -315,10 +311,7 @@
     <!-- 详情 -->
     <dialog-detail ref="detaildialog"></dialog-detail>
     <dialog-scan-record ref="scanrecorddialog"></dialog-scan-record>
-    <dialog-temporary-task
-      ref="dialogtemporarytask"
-      @success="getList"
-    ></dialog-temporary-task>
+
   </div>
 </template>
 
@@ -334,7 +327,6 @@ import { getLabel } from "@/views/commonOption.js";
 import OrgTreeSelect from "@/components/orgTreeSelect";
 import { checkPermi } from "@/utils/permission.js";
 import dayjs from "dayjs";
-import DialogTemporaryTask from "@/views/safetycheck/taskManager/components/dialog.temporarytask.vue";
 export default {
   name: "checkTaskList",
   dicts: ["resumption_plan_cycle", "resumption_status", "safety_check_status"],
@@ -344,7 +336,7 @@ export default {
     DataRangePicker,
     OrgTreeSelect,
     OrgTree,
-    DialogTemporaryTask,
+    
   },
   data() {
     return {
@@ -482,8 +474,9 @@ export default {
       this.resetForm("queryParams");
       this.getList();
     },
-    handleAdd() {
-      this.$refs["dialogtemporarytask"].show();
+    handleAdd(){
+      let path = "/safetycheck/tempregister/add";
+      this.$router.push(path);
     },
     async getList() {
       console.log(this.queryParams, "this.queryParams");

+ 1 - 1
src/views/core/drill/drillDictionary/index.vue

@@ -64,7 +64,7 @@
           <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
         </el-row>
           </div>
-        <el-table border height="650px" v-loading="loading" :data="drillDictionaryList" @selection-change="handleSelectionChange">
+        <el-table border height="646" v-loading="loading" :data="drillDictionaryList" @selection-change="handleSelectionChange">
           <el-table-column label="序号" type="index" align="center" width="60"/>
           <el-table-column label="机构名称" align="left" header-align="center" width="250" prop="orgName" />
 

+ 1 - 1
src/views/core/drill/plan/index.vue

@@ -63,7 +63,7 @@
           <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
         </el-row>
         </div>
-        <el-table height="650px" border :data="planList" @selection-change="handleSelectionChange"
+        <el-table height="646" border :data="planList" @selection-change="handleSelectionChange"
                   row-key="id"
                   :tree-props="{ children: 'children' }">
           <el-table-column label="序号" align="center" width="60" prop="no"/>

+ 1 - 1
src/views/core/drill/task/index.vue

@@ -72,7 +72,7 @@
           <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
         </el-row>
           </div>
-        <el-table border height="650px" v-loading="loading" :data="eduTaskList" @selection-change="handleSelectionChange">
+        <el-table border height="646" v-loading="loading" :data="eduTaskList" @selection-change="handleSelectionChange">
           <el-table-column label="序号" type="index" align="center" width="60"/>
           <el-table-column label="任务名称" width="250" align="left" header-align="center" prop="title"/>
           <el-table-column label="演练机构" width="200" align="left" header-align="center" prop="orgName"/>

+ 7 - 7
src/views/core/edu/plan/index.vue

@@ -12,7 +12,7 @@
           <div class="main-search-box">
         <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
 
-          <el-form-item label="培训主题" prop="planName">
+          <el-form-item label="任务名称" prop="planName">
             <el-input v-model="queryParams.planName" placeholder="请输入关键字" clearable
                       maxlength="50"
                       @keyup.enter.native="handleQuery"/>
@@ -89,11 +89,11 @@
           </div>
         <el-table
           border
-          height="650"
+          height="646"
           size="small" :data="planList" @selection-change="handleSelectionChange" row-key="id">
           <!-- :tree-props="{ children: 'children' }" -->
           <el-table-column label="序号" align="center" prop="no" width="60"/>
-          <el-table-column label="培训主题" align="left" header-align="center" width="240" prop="planName"/>
+          <el-table-column label="任务名称" align="left" header-align="center" width="240" prop="planName"/>
           <el-table-column label="创建机构" align="left" header-align="center" width="240" prop="createOrgName"/>
           <el-table-column label="行社名称" align="left" header-align="center" width="240" prop="belongOrgName"/>
           <!-- <el-table-column label="所属机构" align="left" width="180" prop="belongOrgName"/> -->
@@ -156,11 +156,11 @@
     <!-- 添加或修改教育培训计划对话框 -->
     <DialogCom :title="title" :visible.sync="open" :before-close="closeDialog" @close="cancel" width="850px"
                height="800px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="110px">
+      <el-form ref="form" :model="form" :rules="rules" label-width="120px">
         <el-row>
           <el-col :span="24">
-            <el-form-item label="培训主题" prop="planName" class="endItem">
-              <el-input v-model="form.planName" maxlength="50" placeholder="请输入培训主题"/>
+            <el-form-item label="任务名称" prop="planName" class="endItem">
+              <el-input v-model="form.planName" maxlength="50" placeholder="请输入任务名称"/>
             </el-form-item>
           </el-col>
         </el-row>
@@ -358,7 +358,7 @@ export default {
       // 表单校验
       rules: {
         planName: [
-          {required: true, message: "培训主题不能为空", trigger: "blur"}
+          {required: true, message: "培训名称不能为空", trigger: "blur"}
         ],
         planCycle: [
           {required: true, message: "计划周期不能为空", trigger: "blur"}

+ 8 - 7
src/views/core/edu/task/dialog.perform.vue

@@ -7,7 +7,7 @@
           <el-row>
             <!-- 培训主题 -->
             <el-col :span="24">
-              <el-form-item prop="title" label="培训主题">
+              <el-form-item prop="title" label="任务名称">
                 <!-- <el-input
                         v-model="formData.title"
                         :maxlength="32"
@@ -83,6 +83,12 @@
                 </k-select>
               </el-form-item>
             </el-col>
+            <el-col :span="24">
+              <el-form-item prop="imageList" label="培训图片">
+                <imgUpload ref="uploadimage" type="more" :value="formData.imageList"
+                           @input="imageListChanged"></imgUpload>
+              </el-form-item>
+            </el-col>
             <el-col :span="12">
               <el-form-item label="培训资料" prop="fileList">
                 <K-file-upload ref="upload"
@@ -95,12 +101,7 @@
                 <el-button type="primary" @click="showSelectFile">选取知识库文件</el-button>
               </el-form-item>
             </el-col>
-            <el-col :span="24">
-              <el-form-item prop="imageList" label="培训图片">
-                <imgUpload ref="uploadimage" type="more" :value="formData.imageList"
-                           @input="imageListChanged"></imgUpload>
-              </el-form-item>
-            </el-col>
+            
           </el-row>
         </el-form>
       </div>

+ 1 - 1
src/views/core/edu/task/index.vue

@@ -102,7 +102,7 @@
           </div>
         <el-table
           border
-          height="650"
+          height="646"
           size="small" v-loading="loading" :data="eduTaskList" @selection-change="handleSelectionChange">
           <el-table-column label="序号" align="center" width="70" prop="no"/>
           <el-table-column label="任务名称" width="315" align="left" header-align="center" prop="title"/>

+ 1 - 1
src/views/core/materials/index.vue

@@ -66,7 +66,7 @@
         <!-- 表格数据 -->
         <el-table
           border
-          height="650"
+          height="646"
           size="small"
           v-loading="loading" :data="materialsList" @selection-change="handleSelectionChange">
           <el-table-column label="序号" type="index" align="center" width="68"/>

+ 8 - 6
src/views/evaluationRule/index.vue

@@ -80,6 +80,13 @@
                 />
               </el-select>
             </el-form-item>
+            
+          </el-form-item>
+        </el-form>
+
+        <!--    按纽    -->
+        <el-row :gutter="10" class="mb8">
+          <el-col :span="1.5">
             <el-button
               type="primary"
               icon="el-icon-search"
@@ -90,12 +97,6 @@
             <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
               >重置</el-button
             >
-          </el-form-item>
-        </el-form>
-
-        <!--    按纽    -->
-        <el-row :gutter="10" class="mb8">
-          <el-col :span="1.5">
             <el-button
               type="primary"
               plain
@@ -139,6 +140,7 @@
             label="操作"
             width="180"
             fixed="right"
+        
             class-name="small-padding fixed-width"
           >
             <template slot-scope="{ row }">

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

@@ -1,6 +1,6 @@
 <template>
   <div class="app-container">
-    <el-row :gutter="20">
+    <el-row :gutter="10">
       <!--机构数据-->
       <el-col :span="4" :xs="24">
         <org-tree
@@ -142,7 +142,7 @@
 
         <el-table
           border
-          height="600"
+          height="646"
           size="small"
           v-loading="loading"
           :data="pageData"

+ 6 - 6
src/views/resumption/protection/dialog.edit.vue

@@ -29,7 +29,7 @@
               v-model="formData.alarmHostId"
               placeholder="请选择报警主机"
               clearable
-              style="width:330px"
+              style="width: 330px"
             >
               <el-option
                 v-for="host in alarmHostOptions"
@@ -61,8 +61,8 @@
       </div>
 
       <div slot="footer" class="dialog-footer">
-        <el-button @click="isShow = false">取消</el-button>
         <el-button type="primary" @click="onSubmit">确定</el-button>
+        <el-button @click="isShow = false">取消</el-button>
       </div>
     </DialogCom>
   </div>
@@ -104,7 +104,7 @@ export default {
     reset() {
       return {
         id: null,
-        orgId:null,
+        orgId: null,
         orgPath: null,
         orgName: null,
         name: null,
@@ -140,9 +140,9 @@ export default {
       this.formData.orgName = node.shortName;
       listIdName({ orgId: node.id, deviceType: 1, assetType: 2 }).then((d) => {
         this.alarmHostOptions = d.data;
-        if(!d.data.find(i=>i.id==this.formData.alarmHostId)){
-          this.formData.alarmHostId  = null;
-        }       
+        if (!d.data.find((i) => i.id == this.formData.alarmHostId)) {
+          this.formData.alarmHostId = null;
+        }
       });
     },
   },

+ 12 - 8
src/views/resumption/protection/dialog.history.vue

@@ -60,8 +60,8 @@
       </div>
 
       <div slot="footer" class="dialog-footer">
-        <!-- <el-button @click="onHide">取消</el-button>
-          <el-button type="primary" @click="onSubmit">确定</el-button> -->
+        <el-button @click="onHide">关闭</el-button>
+        <!--<el-button type="primary" @click="onSubmit">确定</el-button> -->
       </div>
     </DialogCom>
   </div>
@@ -89,12 +89,12 @@ export default {
     },
   },
   watch: {
-    "queryParams.updateTime":{
-      deep:true,
-      handler(v){
+    "queryParams.updateTime": {
+      deep: true,
+      handler(v) {
         this.refresh();
-      }
-    }
+      },
+    },
   },
   computed: {},
   methods: {
@@ -109,6 +109,9 @@ export default {
         this.total = v.total;
       });
     },
+    onHide() {
+      this.isShow = false;
+    },
     close() {
       this.queryParams = this.resetSearch();
       this.tableData = [];
@@ -142,7 +145,8 @@ export default {
   },
   created() {},
   mounted() {},
-  components: {DataRangePicker
+  components: {
+    DataRangePicker,
     // EditAttribute,
   },
 };

+ 10 - 2
src/views/resumption/rule/dialog.edit.vue

@@ -63,14 +63,22 @@
             </el-select>
           </el-form-item>
           <el-form-item prop="remark" label="备注">
-            <el-input v-model="formData.remark" :maxlength="255" clearable  style="width:280px;" type="textarea" :rows="3" placeholder="请输入备注"/>
+            <el-input
+              v-model="formData.remark"
+              :maxlength="255"
+              clearable
+              style="width: 280px"
+              type="textarea"
+              :rows="3"
+              placeholder="请输入备注"
+            />
           </el-form-item>
         </el-form>
       </div>
 
       <div slot="footer" class="dialog-footer">
-        <el-button @click="isShow = false">取消</el-button>
         <el-button type="primary" @click="onSubmit">确定</el-button>
+        <el-button @click="isShow = false">取消</el-button>
       </div>
     </DialogCom>
   </div>

+ 1 - 1
src/views/resumption/ruleManager/dialog.editItem.vue

@@ -70,8 +70,8 @@
       </div>
 
       <div slot="footer" class="dialog-footer">
-        <el-button  @click="dialogVisible = false">取 消</el-button>
         <el-button type="primary" @click="onSubmit()">保 存</el-button>
+        <el-button @click="dialogVisible = false">取 消</el-button>
       </div>
     </DialogCom>
     <EditPoint

+ 1 - 1
src/views/resumption/ruleManager/dialog.editPoint.vue

@@ -45,10 +45,10 @@
         </el-form>
       </div>
       <div slot="footer" class="dialog-footer">
-        <el-button @click="dataVisible = false">取 消</el-button>
         <el-button type="primary" @click="onSubmit()">{{
           index >= 0 ? "保 存" : "添 加"
         }}</el-button>
+        <el-button @click="dataVisible = false">取 消</el-button>        
       </div>
     </DialogCom>
   </div>

+ 9 - 9
src/views/resumption/ruleManager/dialog.select.point.vue

@@ -24,6 +24,13 @@
       >
         <!-- 搜索 -->
         <template slot="searchs">
+          <el-form-item prop="key" label="关键字">
+            <el-input
+              v-model="search.key"
+              maxlength="50"
+              placeholder="请输入履职项或履职内容"
+            ></el-input>
+          </el-form-item>
           <el-form-item prop="ruleId" label="履职内容库">
             <el-select v-model="search.ruleId">
               <el-option
@@ -33,14 +40,7 @@
                 :label="item.name"
               ></el-option>
             </el-select>
-          </el-form-item>
-          <el-form-item prop="key" label="关键字">
-            <el-input
-              v-model="search.key"
-              maxlength="50"
-              placeholder="请输入履职项或履职内容"
-            ></el-input>
-          </el-form-item>
+          </el-form-item>          
         </template>
 
         <!-- 表格 -->
@@ -73,8 +73,8 @@
     </div>
 
     <div slot="footer" class="dialog-footer">
-      <el-button @click="onHide">关闭</el-button>
       <el-button type="primary" @click="onSubmit">确定</el-button>
+      <el-button @click="onHide">关闭</el-button>
     </div>
   </DialogCom>
 </template>

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

@@ -205,7 +205,7 @@
                 >
                 <el-button
                   type="text"
-                  icon="el-icon-document-copy"
+                  icon="el-icon-tickets"
                   @click="showscanRecord(r.row)"
                   v-show="r.row.status == 2 || r.row.status == 3"
                   v-hasPermi="['resumption:taskManager:query']"

+ 9 - 6
src/views/resumptionEvaluate/evaluate/index.vue

@@ -83,6 +83,13 @@
                     </el-option>
                   </el-select>
                 </el-form-item>
+                
+              </el-form-item>
+            </el-form>
+
+            <!--    按纽    -->
+            <el-row :gutter="10" class="mb8">
+              <el-col :span="1.5">
                 <el-button
                   type="primary"
                   icon="el-icon-search"
@@ -96,12 +103,6 @@
                   @click="resetQuery"
                   >重置</el-button
                 >
-              </el-form-item>
-            </el-form>
-
-            <!--    按纽    -->
-            <el-row :gutter="10" class="mb8">
-              <el-col :span="1.5">
                 <el-button
                   type="primary"
                   icon="el-icon-plus"
@@ -110,6 +111,7 @@
                   v-hasPermi="['system:user:add']"
                   >新增</el-button
                 >
+               
               </el-col>
             </el-row>
           </div>
@@ -154,6 +156,7 @@
               label="操作"
               width="200"
               fixed="right"
+           
               class-name="small-padding fixed-width"
             >
               <template slot-scope="{ row }">

+ 11 - 7
src/views/resumptionEvaluate/evaluatePlan/index.vue

@@ -23,7 +23,7 @@
               v-show="showSearch"
               label-width="100px"
             >
-              <el-form-item label="外包评价名称" prop="evaluateName">
+              <el-form-item label="外包评价名称1" prop="evaluateName">
                 <el-input
                   :maxlength="20"
                   v-model="queryParams.evaluateName"
@@ -60,6 +60,12 @@
                   >
                   </el-date-picker>
                 </el-form-item>
+                
+              </el-form-item>
+            </el-form>
+            <el-row :gutter="10" class="mb8">
+              <el-col :span="1.5">
+                
                 <el-button
                   type="primary"
                   icon="el-icon-search"
@@ -73,8 +79,8 @@
                   @click="resetQuery"
                   >重置</el-button
                 >
-              </el-form-item>
-            </el-form>
+              </el-col>
+            </el-row>
           </div>
 
           <!--用户数据-->
@@ -111,6 +117,7 @@
               label="操作"
               width="180"
               fixed="right"
+         
               class-name="small-padding fixed-width"
             >
               <template slot-scope="{ row }">
@@ -122,10 +129,7 @@
                   icon="el-icon-plus"
                   >评价</el-button
                 >
-                <span
-                  v-else
-                  style="display: inline-block; width: 70px; height: 20px"
-                ></span>
+               
                 <el-button
                   size="mini"
                   @click="editHandler(row)"

+ 16 - 8
src/views/safetycheck/rule/dialog.edit.vue

@@ -22,7 +22,7 @@
               :maxlength="50"
               placeholder="请输入检查内容库名称"
               clearable
-              style="width:280px;"
+              style="width: 280px"
             />
           </el-form-item>
           <el-form-item prop="orgType" label="受检机构类型:">
@@ -32,7 +32,7 @@
               v-model="formData.orgType"
               placeholder="请选择受检机构类型"
               clearable
-              style="width:280px;"
+              style="width: 280px"
             >
               <el-option
                 v-for="item in orgTypeOptions"
@@ -51,7 +51,7 @@
               v-model="formData.status"
               placeholder="请选择状态"
               clearable
-              style="width:280px;"
+              style="width: 280px"
             >
               <el-option
                 v-for="item in statusOptions"
@@ -63,14 +63,22 @@
             </el-select>
           </el-form-item>
           <el-form-item prop="remark" label="备注">
-            <el-input type="textarea" v-model="formData.remark" :maxlength="255" clearable  style="width:280px;" :rows="3"  placeholder="请输入备注"/>
+            <el-input
+              type="textarea"
+              v-model="formData.remark"
+              :maxlength="255"
+              clearable
+              style="width: 280px"
+              :rows="3"
+              placeholder="请输入备注"
+            />
           </el-form-item>
         </el-form>
       </div>
 
       <div slot="footer" class="dialog-footer">
-        <el-button @click="isShow=false">取消</el-button>
         <el-button type="primary" @click="onSubmit">确定</el-button>
+        <el-button @click="isShow = false">取消</el-button>
       </div>
     </DialogCom>
   </div>
@@ -131,9 +139,9 @@ export default {
     },
 
     // 事件
-    onHide() {   
-      this.formData=this.reset();
-      this.$refs.form.resetFields(); 
+    onHide() {
+      this.formData = this.reset();
+      this.$refs.form.resetFields();
     },
     onSubmit() {
       this.$refs.form.validate(async (isValidate) => {

+ 13 - 5
src/views/safetycheck/ruleManager/dialog.editItem.vue

@@ -49,8 +49,14 @@
                   @click="onEdit(scope.$index, scope.row)"
                   >编辑</el-button
                 >
-                <el-popconfirm title="是否删除检查内容" @confirm="delitem(scope.$index)" style="margin-left: 20px;">
-                  <el-button slot="reference" type="text" size="small">删除</el-button>
+                <el-popconfirm
+                  title="是否删除检查内容"
+                  @confirm="delitem(scope.$index)"
+                  style="margin-left: 20px"
+                >
+                  <el-button slot="reference" type="text" size="small"
+                    >删除</el-button
+                  >
                 </el-popconfirm>
               </template>
             </el-table-column>
@@ -59,8 +65,8 @@
       </div>
 
       <div slot="footer" class="dialog-footer">
-        <el-button @click="dialogVisible = false">取 消</el-button>
         <el-button type="primary" @click="onSubmit()">保 存</el-button>
+        <el-button @click="dialogVisible = false">取 消</el-button>
       </div>
     </DialogCom>
     <EditPoint
@@ -122,7 +128,10 @@ export default {
         if (!isValidate) {
           return;
         }
-        if(!this.formData.pointDtoList || this.formData.pointDtoList.length==0){
+        if (
+          !this.formData.pointDtoList ||
+          this.formData.pointDtoList.length == 0
+        ) {
           MessageEx.info("检查内容不能为空!");
           return;
         }
@@ -156,7 +165,6 @@ export default {
 </script>
 
 <style lang="scss">
-
 .box {
   margin-bottom: 20px;
 }

+ 1 - 1
src/views/safetycheck/ruleManager/dialog.editPoint.vue

@@ -81,10 +81,10 @@
         </el-form>
       </div>
       <div slot="footer" class="dialog-footer">
-        <el-button @click="dataVisible = false">取 消</el-button>
         <el-button type="primary" @click="onSubmit()">{{
           index >= 0 ? "保 存" : "添 加"
         }}</el-button>
+        <el-button @click="dataVisible = false">取 消</el-button>
       </div>
     </DialogCom>
   </div>

+ 1 - 1
src/views/safetycheck/ruleManager/dialog.select.point.vue

@@ -68,8 +68,8 @@
     </div>
 
     <div slot="footer" class="dialog-footer">
-      <el-button @click="onHide">关闭</el-button>
       <el-button type="primary" @click="onSubmit">确定</el-button>
+      <el-button @click="onHide">关闭</el-button>
     </div>
   </DialogCom>
 </template>

+ 2 - 0
src/views/safetycheck/ruleManager/index.vue

@@ -71,6 +71,7 @@
                 <el-button
                   type="primary"
                   size="mini"
+                  icon="el-icon-plus"
                   @click="onAddItem()"
                   :disabled="rule ? false : true"
                   v-hasPermi="['safetycheck:ruleManager:add']"
@@ -84,6 +85,7 @@
               > -->
                 <el-button
                   type="primary"
+                  :icon="expandAll ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
                   @click="dakai"
                   size="mini"
                   :disabled="rule ? false : true"

+ 9 - 7
src/views/safetycheck/taskManager/components/checkRegister.vue

@@ -56,6 +56,7 @@
               style="width: 100%"
               placeHolder="请输入检查组成员"
               v-model="info.checkTeam"
+              maxlength="255"
             ></el-input> </el-form-item
         ></el-col>
         <el-col :span="6">
@@ -74,7 +75,7 @@
     <div>
       <span style="margin-right: 20px">巡检区域</span>
       <el-button type="primary" size="mini" @click="onAddPoint()"
-        >新增检查内容</el-button
+        >选择检查内容</el-button
       >
     </div>
     <div class="content">
@@ -156,7 +157,7 @@
       <el-button
         type="primary"
         @click="onSubmit()"
-        v-hasPermi="['safetycheck:register:add']"
+        v-hasPermi="['core:safetycheck:tempregister']"
         >提交</el-button
       >
     </div>
@@ -169,7 +170,7 @@
 </template>
 <script>
 import { mapGetters } from "vuex";
-import * as api from "@/api/safetycheck/register.js";
+import * as api from "@/api/safetycheck/checkRegister.js";
 import dayjs from "dayjs";
 import SelectPoint from "../../ruleManager/dialog.select.point.vue";
 import imgUpload from "@/components/ImageUpload/index.vue";
@@ -186,7 +187,7 @@ export default {
         checkRoleId: null,
         beCheckedOrgId: null,
         beCheckOrgType: null,
-        planStartTime: null,
+        planStartTime: new Date(),
         checkTeam: null,
         checkList: [],
       },
@@ -221,13 +222,14 @@ export default {
         return;
       }
 
+      this.info.checkRoleId=null;
       getNamesByOrgId(node.id).then((r) => {
         this.roleOptions = r.data;
         this.prevCheckOrgType = node.type;
       });
     },
     onBecheckOrgSelect(node) {
-      this.info.beCheckOrgType = node.type;
+      this.info.beCheckOrgType=node.type;
     },
     onAddPoint() {
       if (!this.info.beCheckedOrgId) {
@@ -324,7 +326,7 @@ export default {
 
     onSave() {
       this.info.isSubmit = 0;
-      api.submit(this.info).then((r) => {
+      api.tempSubmit(this.info).then((r) => {
         this.$message.info("保存成功");
       });
     },
@@ -343,7 +345,7 @@ export default {
       }
       if (isOk) {
         this.info.isSubmit = 1;
-        api.submit(this.info).then((r) => {
+        api.tempSubmit(this.info).then((r) => {
           this.$message.info("提交成功");
         });
       }

+ 0 - 0
src/views/safetycheck/taskManager/components/dialog.temporarytask.vue


+ 7 - 1
src/views/scorestatistics/index.vue

@@ -36,7 +36,9 @@
             >
             </el-date-picker>
           </el-form-item>
-          <el-button
+          <el-row :gutter="10" class="mb8">
+              <el-col :span="1.5">
+                <el-button
             type="primary"
             icon="el-icon-search"
             size="mini"
@@ -46,7 +48,10 @@
           <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
             >重置</el-button
           >
+              </el-col>
+            </el-row>
         </el-form>
+        
         </div>
        
 
@@ -99,6 +104,7 @@
                 class="el-icon-edit-outline"
                 >重新计算</el-button
               >
+              
             </template>
           </el-table-column>
         </el-table>

+ 2 - 6
src/views/system/dept/index.vue

@@ -117,7 +117,7 @@
            </div>
            <el-table
              border
-             height="650"
+             height="646"
              size="small"
              v-loading="loading"
              :data="deptList">
@@ -209,17 +209,13 @@
                    @click="handleReplenish(scope.row.id)"
                  >补充信息</el-button
                  >
-                 <span v-else style="display: inline-block;width: 85px;height: 20px;"></span>
-                 <!-- </router-link> -->
-                 <el-divider direction="vertical"></el-divider>
                  <el-button
                    size="mini"
                    type="text"
                    icon="el-icon-edit-outline"
                    @click="handleUpdate(scope.row)"
                    v-hasPermi="['system:dept:edit']"
-                 >编辑</el-button
-                 ><el-divider direction="vertical"></el-divider>
+                 >编辑</el-button>
                  <el-button
                    v-if="!scope.row.source"
                    size="mini"

+ 14 - 17
src/views/system/device/index.vue

@@ -14,9 +14,8 @@
       <el-col :span="20" :xs="24">
         <div class="main-right-box">
           <div class="main-search-box">
-              <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
-                       label-width="68px">
-                <el-form-item label="设备名称" prop="deviceName" label-width="80">
+              <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
+                <el-form-item label="设备名称" prop="deviceName">
                   <el-input v-model="queryParams.deviceName" placeholder="请输入关键字" maxlength="50"
                             @keyup.enter.native="handleQuery" />
                 </el-form-item>
@@ -36,21 +35,22 @@
                                :value="item.dictValue"></el-option>
                   </el-select>
                 </el-form-item>
-
-                <el-form-item>
-                  <!-- <el-button
+              </el-form>
+              <el-row :gutter="10">
+                <el-col :span="1.5">
+                  <el-button
                     type="primary"
                     icon="el-icon-search"
                     size="mini"
                     @click="handleQuery"
                   >搜索</el-button
                   >
-                  <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+                </el-col>
+                <el-col :span="1.5">
+                  <el-button    type="primary" icon="el-icon-refresh" size="mini" @click="resetQuery"
                   >重置</el-button
-                  > -->
-                </el-form-item>
-              </el-form>
-              <el-row :gutter="10">
+                  >
+                </el-col>
                 <el-col :span="1.5">
                   <el-button
                     type="primary"
@@ -167,7 +167,7 @@
             <!--    <el-table-column label="保修期限" align="center" prop="maintenanceTerm" /> -->
             <el-table-column
               label="操作"
-              align="center"
+              align="left"
               class-name="small-padding fixed-width"
             >
               <template slot-scope="scope">
@@ -177,17 +177,14 @@
                   icon="el-icon-edit-outline"
                   @click="handleUpdate(scope.row)"
                   v-hasPermi="['system:device:edit']"
-                  >编辑</el-button
-                >
-                <el-divider direction="vertical"></el-divider>
+                  >编辑</el-button>
                 <el-button
                   size="mini"
                   type="text"
                   icon="el-icon-delete"
                   @click="handleDelete(scope.row)"
                   v-hasPermi="['system:device:remove']"
-                  >删除</el-button
-                >
+                  >删除</el-button>
               </template>
             </el-table-column>
           </el-table>

+ 5 - 13
src/views/system/user/index.vue

@@ -302,19 +302,14 @@
                   icon="el-icon-plus"
                   @click="handleExtend(scope.row)"
                   v-hasPermi="['system:user:extend']"
-                >补充信息</el-button
-                >
-                <!-- <span v-else style="display: inline-block;width: 70px;height: 20px;"></span> -->
-                <!-- <el-divider direction="vertical"></el-divider> -->
+                >补充信息</el-button>
                 <el-button
                   size="mini"
                   type="text"
                   icon="el-icon-edit-outline"
                   @click="handleUpdate(scope.row)"
                   v-hasPermi="['system:user:edit']"
-                >编辑</el-button
-                >
-
+                >编辑</el-button>
                 <el-button
                   size="mini"
                   type="text"
@@ -322,9 +317,7 @@
                   v-if="scope.row.source==0"
                   @click="handleDelete(scope.row)"
                   v-hasPermi="['system:user:remove']"
-                >删除</el-button
-                >
-
+                >删除</el-button>
                 <el-button
                   size="mini"
                   type="text"
@@ -332,8 +325,7 @@
                   v-if="scope.row.source==0"
                   @click="handleResetPwd(scope.row)"
                   v-hasPermi="['system:user:resetPwd']"
-                >重置密码</el-button
-                >
+                >重置密码</el-button>
                 <!-- <el-divider direction="vertical"></el-divider> -->
                 <!-- <el-dropdown
                   size="mini"
@@ -654,7 +646,7 @@ export default {
       // 查询参数
       queryParams: {
         pageNum: 1,
-        pageSize: 20,
+        pageSize: 10,
         username: null,
         phone: null,
         status: null,