Ver código fonte

工作 检查

liang 3 anos atrás
pai
commit
b4a14553c6

+ 1 - 1
src/api/bdglregular/regularcountinfo.js

@@ -27,7 +27,7 @@ export function completeproportion() {
 // 查询各营级及机关单位列表
 export function unitproportion() {
   return request({
-    url: "/bdglregular/regularcountinfo//unitproportion",
+    url: "/bdglregular/regularcountinfo/unitproportion",
     method: "get"
   });
 }

+ 8 - 0
src/api/bdglregular/regularinfo.js

@@ -105,3 +105,11 @@ export function bumenlist(id) {
   })
 }
 
+// 查询经常性检查列表
+export function listRegularinfos(query) {
+  return request({
+    url: '/bdglregular/regularinfo/lists',
+    method: 'get',
+    params: query
+  })
+}

+ 1 - 1
src/api/bdglregular/specialcountinfo.js

@@ -27,7 +27,7 @@ export function completeproportion() {
 // 查询各营级及机关单位列表
 export function unitproportion() {
     return request({
-      url: "/bdglregular/specialcountinfo//unitproportion",
+      url: "/bdglregular/specialcountinfo/unitproportion",
       method: "get"
     });
   }

+ 9 - 0
src/api/bdglregular/specialinfo.js

@@ -104,3 +104,12 @@ export function bumenlist(id) {
     method: 'get',
   })
 }
+
+// 查询专项检查列表
+export function listSpecialinfos(query) {
+  return request({
+    url: '/bdglregular/specialinfo/lists',
+    method: 'get',
+    params: query
+  })
+}

+ 5 - 5
src/components/FileUpload/index.vue

@@ -54,13 +54,13 @@ export default {
     // 大小限制(MB)
     fileSize: {
       type: Number,
-      default: 5,
+      default: 50,
     },
     // 文件类型, 例如['png', 'jpg', 'jpeg']
-    fileType: {
-      type: Array,
-      default: () => ["doc", "xls", "ppt", "txt", "pdf"],
-    },
+    // fileType: {
+    //   type: Array,
+    //   default: () => ["doc", "xls", "ppt", "txt", "pdf"],
+    // },
     // 是否显示提示
     isShowTip: {
       type: Boolean,

+ 2 - 1
src/store/modules/user.js

@@ -53,7 +53,8 @@ const user = {
         getInfo().then(res => {
           const user = res.user;
           Cookies.set("nickName", res.user.nickName);
-          Cookies.set("userId", res.user.userId);
+          Cookies.set("userId", res.user.userId);  
+          Cookies.set("deptId", res.user.deptId);
           const avatar = user.avatar == "" ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar;
           if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组
             commit('SET_ROLES', res.roles)

+ 5 - 5
src/views/PrintsManage/manage/index.vue

@@ -578,13 +578,13 @@ export default {
     // 大小限制(MB)
     fileSize: {
       type: Number,
-      default: 5,
+      default: 50,
     },
     // 文件类型, 例如['png', 'jpg', 'jpeg']
-    fileType: {
-      type: Array,
-      default: () => ["doc", "xls", "ppt", "txt", "pdf"],
-    },
+    // fileType: {
+    //   type: Array,
+    //   default: () => ["doc", "xls", "ppt", "txt", "pdf"],
+    // },
     // 是否显示提示
     isShowTip: {
       type: Boolean,

+ 17 - 10
src/views/bdglSecret/secret/index.vue

@@ -16,10 +16,10 @@
           @change="secrecy"
         >
           <el-option
+            v-for="item in ziDian"
+            :key="item.dictValue"
             :label="item.dictLabel"
-            :value="item.dictLabel"
-            v-for="(item, i) in ziDian"
-            :key="i"
+            :value="item.dictValue"
             class="input_xiala"
           />
         </el-select>
@@ -112,7 +112,11 @@
         prop="unitId"
         :formatter="deptIdformatter"
       />
-      <el-table-column label="分类" align="center" prop="kind" />
+      <el-table-column label="种类" align="center" prop="kind"  >
+        <template slot-scope="scope">
+          <dict-tag :options="dict.type.electronic" :value="scope.row.kind" />
+        </template>
+      </el-table-column>
       <el-table-column label="编号" align="center" prop="number" />
       <el-table-column label="密级" align="center" prop="confidential" />
       <el-table-column label="责任人" align="center" prop="peopleName" />
@@ -220,10 +224,10 @@
             @change="zhongLei"
           >
             <el-option
-              v-for="(item, i) in ziDian"
-              :label="item.bb"
-              :key="i"
-              :value="item.dictLabel"
+              v-for="item in ziDian"
+              :key="item.dictValue"
+              :label="item.dictLabel"
+              :value="item.dictValue"
               class="input_xiala"
             >
             </el-option>
@@ -351,7 +355,7 @@ import {
   addSecret,
   updateSecret,
   exportSecret,
-  getDepts
+  getDepts,
 } from "@/api/bdglSecret/secret";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -363,6 +367,9 @@ import {
 export default {
   name: "Bdglsecrecy",
   components: { Treeselect, bdglsecrecy },
+  dicts: [
+    "electronic"
+  ],
   data() {
     return {
       //查看页面
@@ -449,7 +456,7 @@ export default {
         children: "children",
         label: "label",
       },
-      unitId:[]
+      unitId: [],
     };
   },
   created() {

+ 97 - 60
src/views/bdglregular/regularcountinfo/index.vue

@@ -8,7 +8,7 @@
         <el-table
           :data="peopleList"
           :header-cell-style="{ background: '#0c2c50', color: 'white' }"
-          style="width:98%;background:#0c2c50;margin-left:1%;"
+          style="width: 98%; background: #0c2c50; margin-left: 1%"
           height="88%"
         >
           <!-- <el-table-column type="selection" width="55" align="center" /> -->
@@ -17,12 +17,12 @@
           <el-table-column label="单位" align="center" prop="name" />
           <el-table-column label="加分" align="center" prop="addscore">
             <template slot-scope="scope">
-              <div style="color:rgb(2 255 2);">{{ scope.row.addscore }}</div>
+              <div style="color: rgb(2 255 2)">{{ scope.row.addscore }}</div>
             </template>
           </el-table-column>
           <el-table-column label="减分" align="center" prop="subscore">
             <template slot-scope="scope">
-              <div style="color:rgb(255 106 0)">{{ scope.row.subscore }}</div>
+              <div style="color: rgb(255 106 0)">{{ scope.row.subscore }}</div>
             </template>
           </el-table-column>
           <el-table-column label="总分" align="center" prop="zongfen" />
@@ -35,27 +35,47 @@
         <el-table
           :data="peopleList2"
           :header-cell-style="{ background: '#0c2c50', color: 'white' }"
-          style="width:98%;background:#0c2c50;margin-left:1%;"
+          style="width: 98%; background: #0c2c50; margin-left: 1%"
           height="88%"
           @row-click="rowclick"
         >
           <!-- <el-table-column type="selection" width="55" align="center" /> -->
           <el-table-column label="序号" align="center" type="index" />
-          <el-table-column label="受检单位" align="center" prop="inspectedUnit" />
-          <el-table-column label="检查单位" align="center" prop="unitCheck"></el-table-column>
-          <el-table-column label="状态" align="center" prop="currentState"></el-table-column>
+          <el-table-column
+            label="受检单位"
+            align="center"
+            prop="inspectedUnit"
+          />
+          <el-table-column
+            label="检查单位"
+            align="center"
+            prop="unitCheck"
+          ></el-table-column>
+          <el-table-column
+            label="状态"
+            align="center"
+            prop="currentState"
+          ></el-table-column>
           <el-table-column label="减分" align="center" prop="score">
             <template slot-scope="scope">
-              <div style="color:rgb(255 106 0);">{{ scope.row.score }}</div>
+              <div style="color: rgb(255 106 0)">{{ scope.row.score }}</div>
             </template>
           </el-table-column>
-          <el-table-column label="事由" show-overflow-tooltip align="center" prop="question" />
-          <el-table-column label="整改时间" align="center" prop="rectificationTime" width="180">
+          <el-table-column
+            label="事由"
+            show-overflow-tooltip
+            align="center"
+            prop="question"
+          />
+          <el-table-column
+            label="整改时间"
+            align="center"
+            prop="rectificationTime"
+            width="180"
+          >
             <template slot-scope="scope">
               <span>
-                {{
-                parseTime(scope.row.rectificationTime, "{y}-{m}-{d}")
-                }}
+                {{ parseTime(scope.row.rectificationTime, "{y}-{m}-{d}") }}
               </span>
             </template>
           </el-table-column>
@@ -96,7 +116,7 @@ import {
   pendingacceptance,
   completeproportion,
   unitproportion,
-  getRegularinfo
+  getRegularinfo,
 } from "@/api/bdglregular/regularcountinfo";
 import * as echarts from "echarts";
 export default {
@@ -104,7 +124,7 @@ export default {
     return {
       peopleList: [],
       peopleList2: [],
-      peopleList3: []
+      peopleList3: [],
     };
   },
   created() {
@@ -117,21 +137,21 @@ export default {
   },
   methods: {
     getlist() {
-      unitrank().then(res => {
+      unitrank().then((res) => {
         if (res.code == 200) {
           this.peopleList = res.data;
         }
       });
     },
     getlist2() {
-      pendingacceptance().then(res => {
+      pendingacceptance().then((res) => {
         if (res.code == 200) {
           this.peopleList2 = res.data;
         }
       });
     },
     getlist3() {
-      completeproportion().then(res => {
+      completeproportion().then((res) => {
         if (res.code == 200) {
           var myChart = echarts.init(
             document.getElementById("foot-left-content")
@@ -140,22 +160,22 @@ export default {
             title: {
               text: "",
               subtext: "",
-              left: ""
+              left: "",
             },
             tooltip: {
               trigger: "item",
-              formatter: "{a} <br/>{b} : {c} ({d}%)"
+              formatter: "{a} <br/>{b} : {c} ({d}%)",
             },
-            color: ["#5470c6","#fac858","#ee6666", "#91cc75"],
+            color: ["#5470c6", "#fac858", "#ee6666", "#91cc75"],
             legend: {
               orient: "vertical",
               right: "0",
               top: "10%",
               itemGap: 20,
               textStyle: {
-                color: "#fff"
+                color: "#fff",
               },
-              data: ["待处理", "待验收", "未通过", "已通过"]
+              data: ["待处理", "待验收", "未通过", "已通过"],
             },
             series: [
               {
@@ -170,9 +190,9 @@ export default {
                     textStyle: {
                       fontWeight: 300,
                       fontSize: 16,
-                      color: "#fff"
-                    }
-                  }
+                      color: "#fff",
+                    },
+                  },
                 },
                 data: [
                   {
@@ -180,35 +200,35 @@ export default {
                       res.data[0].daiyanshou == 0
                         ? null
                         : res.data[0].daiyanshou,
-                    name: "待验收"
+                    name: "待验收",
                   },
                   {
                     value:
                       res.data[0].daichuli == 0 ? null : res.data[0].daichuli,
-                    name: "待处理"
+                    name: "待处理",
                   },
                   {
                     value:
                       res.data[0].weitongguo == 0
                         ? null
                         : res.data[0].weitongguo,
-                    name: "未通过"
+                    name: "未通过",
                   },
                   {
                     value:
                       res.data[0].yitongguo == 0 ? null : res.data[0].yitongguo,
-                    name: "已通过"
-                  }
+                    name: "已通过",
+                  },
                 ],
                 emphasis: {
                   itemStyle: {
                     shadowBlur: 10,
                     shadowOffsetX: 0,
-                    shadowColor: "rgba(0, 0, 0, 0.5)"
-                  }
-                }
-              }
-            ]
+                    shadowColor: "rgba(0, 0, 0, 0.5)",
+                  },
+                },
+              },
+            ],
           };
           myChart.setOption(option);
         }
@@ -216,9 +236,10 @@ export default {
     },
     getlist4() {},
     echarfun() {
-      unitproportion().then(res => {
+      unitproportion().then((res) => {
         if (res.code == 200) {
           this.peopleList3 = res.data;
+          console.log(res.data);
           var roseCharts = document.getElementsByClassName("block");
           for (var i = 0; i < this.peopleList3.length; i++) {
             var myChart = echarts.init(roseCharts[i]);
@@ -234,13 +255,13 @@ export default {
                   color: "#ffff",
                   // fontSize: 12,
                   fontStyle: "normal",
-                  fontWeight: "normal"
-                }
+                  fontWeight: "normal",
+                },
               },
-              color: [ "#5470c6","#fac858", "#ee6666", "#91cc75"],
+              color: ["#5470c6", "#fac858", "#ee6666", "#91cc75"],
               tooltip: {
                 trigger: "item",
-                formatter: "{a} <br/>{b} : {c} ({d}%)"
+                formatter: "{a} <br/>{b} : {c} ({d}%)",
               },
               // legend: {
               //   orient: "vertical",
@@ -266,9 +287,9 @@ export default {
                       textStyle: {
                         fontWeight: 300,
                         fontSize: 16,
-                        color: "#fff"
-                      }
-                    }
+                        color: "#fff",
+                      },
+                    },
                   },
                   data: [
                     {
@@ -276,41 +297,47 @@ export default {
                         this.peopleList3[i].daiyanshou == 0
                           ? null
                           : this.peopleList3[i].daiyanshou,
-                      name: "待验收"
+                      name: "待验收",
+                      id: this.peopleList3[i].deptId,
                     },
                     {
                       value:
                         this.peopleList3[i].daichuli == 0
                           ? null
                           : this.peopleList3[i].daichuli,
-                      name: "待处理"
+                      name: "待处理",
+                      id: this.peopleList3[i].deptId,
                     },
                     {
                       value:
                         this.peopleList3[i].weitongguo == 0
                           ? null
                           : this.peopleList3[i].weitongguo,
-                      name: "未通过"
+                      name: "未通过",
+                      id: this.peopleList3[i].deptId,
                     },
                     {
                       value:
                         this.peopleList3[i].yitongguo == 0
                           ? null
                           : this.peopleList3[i].yitongguo,
-                      name: "已通过"
-                    }
+                      name: "已通过",
+                      id: this.peopleList3[i].deptId,
+                    },
                   ],
                   emphasis: {
                     itemStyle: {
                       shadowBlur: 10,
                       shadowOffsetX: 0,
-                      shadowColor: "rgba(0, 0, 0, 0.5)"
-                    }
-                  }
-                }
-              ]
+                      shadowColor: "rgba(0, 0, 0, 0.5)",
+                    },
+                  },
+                },
+              ],
             };
             myChart.setOption(option);
+
+            myChart.on("click", this.eConsole);
           }
         }
       });
@@ -320,11 +347,21 @@ export default {
       this.$router
         .push({
           path: "/bdglregular/regularinfo",
-          query: { id: row.inspectedUnitId }
+          query: { id: row.inspectedUnitId },
         })
         .catch(() => {});
-    }
-  }
+    },
+    //饼状图点击事件
+    eConsole(param) {
+      // console.log(param.data);
+      this.$router
+        .push({
+          path: "/bdglregular/regularinfo",
+          query: { obj: param.data },
+        })
+        .catch(() => {});
+    },
+  },
 };
 </script>
 
@@ -352,8 +389,8 @@ export default {
 .head-left {
   flex: 4;
   height: 44vh;
-  background-image: url("../../../assets/images/底 拷贝 3.png"); 
-  background-repeat: no-repeat; 
+  background-image: url("../../../assets/images/底 拷贝 3.png");
+  background-repeat: no-repeat;
   background-size: 100% 100%;
   margin-left: 10px;
   margin-right: 10px;
@@ -377,7 +414,7 @@ export default {
   margin-top: 9px;
   line-height: 30px;
   position: relative;
-  margin-left:1%;
+  margin-left: 1%;
 }
 .head-left-title span {
   position: absolute;

+ 52 - 21
src/views/bdglregular/regularinfo/index.vue

@@ -167,13 +167,12 @@
           v-model="queryParams.caoZuoType"
           @change="caoZuoTypefun"
         >
-          
           <el-radio-button label="1">加分</el-radio-button>
           <el-radio-button label="0">减分</el-radio-button>
         </el-radio-group>
       </el-col>
     </el-row>
-    <hr/>
+    <hr />
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
         <el-button
@@ -298,7 +297,7 @@
           </div>
           <div
             style="color: #909399"
-            v-if="scope.row.currentState == '过期未整改'"
+            v-if="scope.row.currentState == '已逾期'"
           >
             {{ scope.row.currentState }}
           </div>
@@ -353,9 +352,9 @@
             "
             >审批</el-button
           >
-          <el-button size="btd" type="text" @click="handleDelete(scope.row)"
+          <!-- <el-button size="btd" type="text" @click="handleDelete(scope.row)"
             >删除</el-button
-          >
+          > -->
         </template>
       </el-table-column>
     </el-table>
@@ -623,6 +622,7 @@ import {
   editissuccess,
   editisfalse,
   bumenlist,
+  listRegularinfos,
 } from "@/api/bdglregular/regularinfo";
 
 export default {
@@ -744,6 +744,37 @@ export default {
       this.getList();
     }
   },
+  watch: {
+    $route(to, from) {
+      if (to.query.id) {
+        bumenlist(to.query.id).then((res) => {
+          this.regularinfoList = res.rows;
+          this.total = res.total;
+          this.loading = false;
+        });
+      } else {
+        this.getList();
+      }
+      if (to.query.obj) {
+        this.queryParams.inspectedUnitId = to.query.obj.id + "";
+        this.queryParams.currentState = to.query.obj.name + "";
+
+        listRegularinfos(this.queryParams).then((res) => {
+          console.log(res);
+          this.regularinfoList = res.rows;
+          this.total = res.total;
+          this.loading = false;
+        });
+      } else {
+        this.getList();
+      }
+      // listRegularinfos
+      console.log(to.query.obj);
+    },
+  },
+  mounted() {
+    console.log(0);
+  },
   methods: {
     /** 查询经常性检查列表 */
     getList() {
@@ -1049,36 +1080,36 @@ export default {
   margin-right: 5px;
 }
 .isSubmit {
-   margin-left: 42% !important;  
+  margin-left: 42% !important;
 }
 .el-radio-button {
-width: 122px !important;
-height: 30px !important;
-line-height: 30px !important;
-border: none !important;
+  width: 122px !important;
+  height: 30px !important;
+  line-height: 30px !important;
+  border: none !important;
 }
-::v-deep .el-radio-button__inner{
+::v-deep .el-radio-button__inner {
   width: 120px !important;
-height: 30px !important;
+  height: 30px !important;
   line-height: 8px !important;
   background: #196299;
   border: none;
   color: #fff;
 }
-::v-deep .el-radio-button:first-child .el-radio-button__inner{
+::v-deep .el-radio-button:first-child .el-radio-button__inner {
   border-left: none !important;
 }
 ::v-deep .el-radio-button__orig-radio:checked + .el-radio-button__inner {
-    color: #FFFFFF;
-    background-color: #006cff !important;
-    border-color: #006cff !important;
-    -webkit-box-shadow: -1px 0 0 0 #006cff !important;
-    box-shadow: -1px 0 0 0 #006cff !important;
+  color: #ffffff;
+  background-color: #006cff !important;
+  border-color: #006cff !important;
+  -webkit-box-shadow: -1px 0 0 0 #006cff !important;
+  box-shadow: -1px 0 0 0 #006cff !important;
 }
 /* 将水平线设为红色: */
 hr {
- border: none;
- height: 1px;
- background-color: rgba(204, 204, 204, 0.5);
+  border: none;
+  height: 1px;
+  background-color: rgba(204, 204, 204, 0.5);
 }
 </style>

+ 19 - 4
src/views/bdglregular/specialcountinfo/index.vue

@@ -281,19 +281,23 @@ export default {
                   data: [
                     {
                       value: this.peopleList3[i].daiyanshou==0?null:this.peopleList3[i].daiyanshou,
-                      name: "待验收"
+                      name: "待验收",
+                      id: this.peopleList3[i].deptId,
                     },
                     {
                       value: this.peopleList3[i].daichuli==0?null:this.peopleList3[i].daichuli,
-                      name: "待处理"
+                      name: "待处理",
+                      id: this.peopleList3[i].deptId,
                     },
                     {
                       value: this.peopleList3[i].weitonguo==0?null:this.peopleList3[i].weitonguo,
-                      name: "未通过"
+                      name: "未通过",
+                      id: this.peopleList3[i].deptId,
                     },
                     {
                       value: this.peopleList3[i].yitongguo==0?null:this.peopleList3[i].yitongguo,
-                      name: "已通过"
+                      name: "已通过",
+                      id: this.peopleList3[i].deptId,
                     }
                   ],
                   emphasis: {
@@ -307,6 +311,7 @@ export default {
               ]
             };
             myChart.setOption(option);
+            myChart.on("click", this.eConsole);
           }
         }
       });
@@ -318,6 +323,16 @@ export default {
         .catch(() => {});
       
     },
+    //饼状图点击事件
+    eConsole(param) {
+      // console.log(param.data);
+      this.$router
+        .push({
+          path: "/bdglregular/specialinfo",
+          query: { obj: param.data },
+        })
+        .catch(() => {});
+    },
   }
 };
 </script>

+ 49 - 25
src/views/bdglregular/specialinfo/index.vue

@@ -122,16 +122,13 @@
     </el-form>
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5" class="isSubmit">
-        <el-radio-group
-          v-model="queryParams.caoZuoType"
-          @change="caoZuoTypefun"
-        ><el-radio-button label="1">加分</el-radio-button>
+        <el-radio-group v-model="queryParams.caoZuoType" @change="caoZuoTypefun"
+          ><el-radio-button label="1">加分</el-radio-button>
           <el-radio-button label="0">减分</el-radio-button>
-          
         </el-radio-group>
       </el-col>
     </el-row>
-    <hr/>
+    <hr />
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
         <el-button
@@ -294,7 +291,7 @@
           </div>
           <div
             style="color: #909399"
-            v-if="scope.row.currentState == '过期未整改'"
+            v-if="scope.row.currentState == '已逾期'"
           >
             {{ scope.row.currentState }}
           </div>
@@ -343,9 +340,9 @@
             "
             >审批</el-button
           >
-          <el-button size="btd" @click="handleDelete(scope.row)"
+          <!-- <el-button size="btd" @click="handleDelete(scope.row)"
             >删除</el-button
-          >
+          > -->
         </template>
       </el-table-column>
     </el-table>
@@ -552,6 +549,7 @@ import {
   editissuccess,
   editisfalse,
   bumenlist,
+  listSpecialinfos
 } from "@/api/bdglregular/specialinfo";
 
 export default {
@@ -651,6 +649,32 @@ export default {
       this.getList();
     }
   },
+  watch: {
+    $route(to, from) {
+      if (to.query.id) {
+        bumenlist(to.query.id).then((res) => {
+          this.specialinfoList = res.rows;
+          this.total = res.total;
+          this.loading = false;
+        });
+      } else {
+        this.getList();
+      }
+      if (to.query.obj) {
+        this.queryParams.inspectedUnitId = to.query.obj.id;
+        this.queryParams.currentState = to.query.obj.name + "";
+
+        listSpecialinfos(this.queryParams).then((res) => {
+          console.log(res);
+          this.specialinfoList = res.rows;
+          this.total = res.total;
+          this.loading = false;
+        });
+      } else {
+        this.getList();
+      }
+    },
+  },
   methods: {
     /** 查询专项检查列表 */
     getList() {
@@ -938,36 +962,36 @@ export default {
   margin-right: 5px;
 }
 .isSubmit {
-   margin-left: 42% !important;  
+  margin-left: 42% !important;
 }
 .el-radio-button {
-width: 122px !important;
-height: 30px !important;
-line-height: 30px !important;
-border: none !important;
+  width: 122px !important;
+  height: 30px !important;
+  line-height: 30px !important;
+  border: none !important;
 }
-::v-deep .el-radio-button__inner{
+::v-deep .el-radio-button__inner {
   width: 120px !important;
-height: 30px !important;
+  height: 30px !important;
   line-height: 8px !important;
   background: #196299;
   border: none;
   color: #fff;
 }
-::v-deep .el-radio-button:first-child .el-radio-button__inner{
+::v-deep .el-radio-button:first-child .el-radio-button__inner {
   border-left: none !important;
 }
 ::v-deep .el-radio-button__orig-radio:checked + .el-radio-button__inner {
-    color: #FFFFFF;
-    background-color: #006cff !important;
-    border-color: #006cff !important;
-    -webkit-box-shadow: -1px 0 0 0 #006cff !important;
-    box-shadow: -1px 0 0 0 #006cff !important;
+  color: #ffffff;
+  background-color: #006cff !important;
+  border-color: #006cff !important;
+  -webkit-box-shadow: -1px 0 0 0 #006cff !important;
+  box-shadow: -1px 0 0 0 #006cff !important;
 }
 /* 将水平线设为红色: */
 hr {
- border: none;
- height: 1px;
- background-color: rgba(204, 204, 204, 0.5);
+  border: none;
+  height: 1px;
+  background-color: rgba(204, 204, 204, 0.5);
 }
 </style>

+ 6 - 2
src/views/login.vue

@@ -8,7 +8,7 @@
     >
       <img src="../images/dibu1.png" alt="" class="img" />
       <!-- <h3 class="title">智能督察管理平台</h3> -->
-      <el-form-item prop="username">
+      <el-form-item prop="username" >
         <el-input
           v-model="loginForm.username"
           type="text"
@@ -22,7 +22,7 @@
           />
         </el-input>
       </el-form-item>
-      <el-form-item prop="password">
+      <el-form-item prop="password" >
         <el-input
           v-model="loginForm.password"
           type="password"
@@ -226,6 +226,10 @@ export default {
     margin-top:4px;
   }
 }
+.el-form-item__error{
+   margin-left: 58px;
+   margin-top:10px;
+}
 .login-tip {
   font-size: 13px;
   text-align: center;

+ 9 - 0
src/views/pt.vue

@@ -633,6 +633,15 @@ export default {
         var m = today.getMinutes();
         var s = today.getSeconds();
         var w = today.getDay();
+        if (M < 10) {
+          M = "0" + M;
+        }
+        if (d < 10) {
+          d = "0" + d;
+        }
+        if (h < 10) {
+          h = "0" + h;
+        }
         if (m < 10) {
           m = "0" + m;
         }

+ 14 - 5
src/views/taishi/index.vue

@@ -950,7 +950,7 @@
                 </div>
                 <div class="right3-r-main-item-r">
                   <div class="s1">移动载体</div>
-                  <div class="s2"><b style="color: #30fdff">{{smztlist[3].number}}</b>台</div>
+                  <div class="s2"><b style="color: #30fdff">{{smztlist[3]}}</b>台</div>
                 </div>
               </div>
               <div class="right3-r-main-item">
@@ -959,7 +959,7 @@
                 </div>
                 <div class="right3-r-main-item-r">
                   <div class="s1">手机</div>
-                  <div class="s2"><b style="color: #2bf1b2">{{smztlist[0].number}}</b>台</div>
+                  <div class="s2"><b style="color: #2bf1b2">{{smztlist[0]}}</b>台</div>
                 </div>
               </div>
               <div class="right3-r-main-item">
@@ -968,7 +968,7 @@
                 </div>
                 <div class="right3-r-main-item-r">
                   <div class="s1">电脑</div>
-                  <div class="s2"><b style="color: #30aaff">{{smztlist[1].number}}</b>台</div>
+                  <div class="s2"><b style="color: #30aaff">{{smztlist[1]}}</b>台</div>
                 </div>
               </div>
               <div class="right3-r-main-item">
@@ -977,7 +977,7 @@
                 </div>
                 <div class="right3-r-main-item-r">
                   <div class="s1">相机</div>
-                  <div class="s2"><b style="color: #9d83ff">{{smztlist[2].number}}</b>台</div>
+                  <div class="s2"><b style="color: #9d83ff">{{smztlist[2]}}</b>台</div>
                 </div>
               </div>
             </div>
@@ -1146,7 +1146,7 @@ export default {
     });
     //涉密移动载体
     getNumber().then((res) => {
-      console.log(res.data[0].number)
+      // console.log(res.data[0])
       this.smztlist=res.data;
     });
     this.startTime();
@@ -1878,6 +1878,15 @@ export default {
         var m = today.getMinutes();
         var s = today.getSeconds();
         var w = today.getDay();
+        if (M < 10) {
+          M = "0" + M;
+        }
+        if (d < 10) {
+          d = "0" + d;
+        }
+        if (h < 10) {
+          h = "0" + h;
+        }
         if (m < 10) {
           m = "0" + m;
         }

+ 153 - 95
src/views/workingArrangements/planTask/index.vue

@@ -7,7 +7,7 @@
       v-show="showSearch"
       label-width="120px"
     >
-      <el-form-item prop="type"  class="plantypes" label-width="80px">
+      <el-form-item prop="type" class="plantypes" label-width="80px">
         <el-select v-model="queryParams.types" placeholder="请选择计划类型">
           <el-option
             v-for="(item, i) in ziDian"
@@ -19,14 +19,14 @@
           </el-option>
         </el-select>
       </el-form-item>
-      <el-form-item prop="adminId"  class="plantypes" label-width="80px">
-          <treeselect
-            v-model="queryParams.adminId"
-            :options="users"
-            placeholder="请选择发布单位"
-            class="threeselects"
-            @select="selectPeo3"
-          />
+      <el-form-item prop="adminId" class="plantypes" label-width="80px">
+        <treeselect
+          v-model="queryParams.adminId"
+          :options="users"
+          placeholder="请选择发布单位"
+          class="threeselects"
+          @select="selectPeo3"
+        />
       </el-form-item>
 
       <el-form-item>
@@ -109,6 +109,11 @@
         prop="unitName"
         :formatter="unit3Format"
       />
+      <el-table-column
+        label="发布人"
+        align="center"
+        prop="username"
+      />
       <el-table-column
         label="计划类型"
         align="center"
@@ -227,7 +232,7 @@
         <div class="jiben">基本信息</div>
         <el-form-item label="计划名称" prop="name">
           <el-input
-          placeholder="请输入计划名册"
+            placeholder="请输入计划名册"
             label="计划名称"
             v-model="form.name"
             @click.native="planName"
@@ -235,7 +240,7 @@
         </el-form-item>
         <el-form-item label="任务编号" prop="number">
           <el-input
-          placeholder="请选择任务编号"
+            placeholder="请选择任务编号"
             label="任务编号"
             v-model="form.number"
             :disabled="true"
@@ -243,30 +248,14 @@
           >
           </el-input>
         </el-form-item>
-        <el-form-item label="计划类型" prop="type" class="change_plan_type">
-          <el-select
-            v-model="form.type"
-            placeholder="请选择计划类型"
-            ref="dict"
-            clearable
-            size="small"
-          >
-            <el-option
-            v-for="(item, i) in ziDian"
-            :key="i"
-            :label="item.dictLabel"
-            :value="parseInt(item.dictSort)"
-          >
-          </el-option>
-          </el-select>
-        </el-form-item>
-        <el-form-item label="发布单位" prop="adminId" >
+        <el-form-item label="发布单位" prop="adminId">
           <treeselect
-          placeholder="请选择发布单位"
+            placeholder="请选择发布单位"
             v-model="form.adminId"
             :options="part"
             @select="selectPeo"
             class="threeselects"
+            disabled
           />
         </el-form-item>
         <el-form-item label="执行单位" prop="unitId">
@@ -278,6 +267,32 @@
             @select="selectPeo1"
           />
         </el-form-item>
+        <el-form-item label="计划类型" prop="type" class="change_plan_type">
+          <el-select
+            v-model="form.type"
+            placeholder="请选择计划类型"
+            ref="dict"
+            clearable
+            size="small"
+          >
+            <el-option
+              v-for="(item, i) in ziDian"
+              :key="i"
+              :label="item.dictLabel"
+              :value="parseInt(item.dictSort)"
+            >
+            </el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="发布人" prop="username">
+          <el-input
+            placeholder="请输入发布人"
+            v-model="form.username"
+            :disabled="true"
+            class="ipt"
+          >
+          </el-input>
+        </el-form-item>
         <div>
           <el-form-item label="执行人" prop="peopleName" label-width="100px">
             <div>
@@ -305,9 +320,9 @@
             clearable
             size="small"
             v-model="form.startTime"
-            type="date"
-            value-format="yyyy-MM-dd"
-           placeholder="请选择开始时间"
+            type="datetime"
+            value-format="yyyy-MM-dd HH-mm-ss"
+            placeholder="请选择开始时间"
           >
           </el-date-picker>
         </el-form-item>
@@ -316,10 +331,11 @@
             clearable
             size="small"
             v-model="form.endTime"
-            type="date"
-            value-format="yyyy-MM-dd"
+            type="datetime"
+            value-format="yyyy-MM-dd HH-mm-ss"
             placeholder="请选择结束时间"
             style="width: 200px"
+            default-time="00:00:00"
           >
           </el-date-picker>
         </el-form-item>
@@ -670,6 +686,7 @@ import {
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import { getDept2 } from "@/api/grassrootsregistration/bdglmeeting";
+import Cookies from "js-cookie";
 
 export default {
   name: "PlanTask",
@@ -735,12 +752,28 @@ export default {
         peopleName: [
           { required: true, message: "执行人不能为空", trigger: "blur" },
         ],
-        name:[{ required: true, message: "不能为空", trigger: "blur" }],
-        adminId:{required:true,message:"发布单位不能为空",trigger:"blur"},
-        unitId:{required:true,message:"执行单位不能为空",trigger:"blur"},
-        type :{required:true,message:"计划类型不能为空",trigger:"blur"},
-        startTime :{required:true,message:"开始时间不能为空",trigger:"blur"},
-        endTime  :{required:true,message:"结束时间不能为空",trigger:"blur"},
+        name: [{ required: true, message: "不能为空", trigger: "blur" }],
+        adminId: {
+          required: true,
+          message: "发布单位不能为空",
+          trigger: "blur",
+        },
+        unitId: {
+          required: true,
+          message: "执行单位不能为空",
+          trigger: "blur",
+        },
+        type: { required: true, message: "计划类型不能为空", trigger: "blur" },
+        startTime: {
+          required: true,
+          message: "开始时间不能为空",
+          trigger: "blur",
+        },
+        endTime: {
+          required: true,
+          message: "结束时间不能为空",
+          trigger: "blur",
+        },
       },
       rules1: {
         // planProgress: [
@@ -799,19 +832,18 @@ export default {
     allUser().then((res) => {
       this.rylist = res.rows;
     });
-     getDept2().then((res) => {
-       console.log(res)
-        this.users = res.data;
-        // console.log(this.users)
-      });
-    
-    
+    getDept2().then((res) => {
+      console.log(res);
+      this.users = res.data;
+      // console.log(this.users)
+    });
+
     getDeptList().then((res) => {
       this.getdeptList = res.data;
     });
     this.getdict();
     this.chooseplan();
-    this.selectPeo3()
+    this.selectPeo3();
   },
   methods: {
     comPlan() {
@@ -831,15 +863,15 @@ export default {
         this.executor = res.data;
       });
     },
-     // 到访单位选中触发
+    // 到访单位选中触发
     selectPeo2(val) {
       // 获取执行单位列表
       getDept2().then((res) => {
         this.users = res.data;
       });
       this.queryParams.unitId = val.id;
-      this.queryParams.name=""
-      this.queryParams.unitName=val.label
+      this.queryParams.name = "";
+      this.queryParams.unitName = val.label;
       this.getZhuChi(this.queryParams.unitId);
     },
     // 发布单位选中触发
@@ -851,12 +883,11 @@ export default {
     selectPeo3(val) {
       getDept2().then((res) => {
         this.users = res.data;
-        console.log(this.users)
-        
+        console.log(this.users);
       });
       this.queryParams.adminId = val.id;
       this.getZhuChi(this.queryParams.adminId);
-      this.getList()
+      this.getList();
     },
     // 执行单位选中触发
     selectPeo1(val) {
@@ -914,7 +945,7 @@ export default {
         taskProgress: null,
         releaseUnit: null,
         executableUnit: null,
-        comstatus:null
+        comstatus: null,
       };
       this.Progress = {
         schedule: "",
@@ -926,16 +957,16 @@ export default {
     },
     /** 搜索按钮操作 */
     handleQuery() {
-      console.log(this.queryParams)
+      console.log(this.queryParams);
       this.queryParams.pageNum = 1;
       this.getList();
     },
     /** 重置按钮操作 */
     resetQuery() {
-      this.queryParams={}
+      this.queryParams = {};
       this.resetForm("queryForm");
       this.handleQuery();
-      this.getList()
+      this.getList();
     },
     // 多选框选中数据
     handleSelectionChange(selection) {
@@ -949,6 +980,33 @@ export default {
       this.reset();
       this.open = true;
       this.title = "添加工作计划";
+      this.form.adminId = Cookies.get("deptId");
+      this.form.username = Cookies.get("nickName");
+      this.form.userId = Cookies.get("userId");
+      var today = new Date();
+        var y = today.getFullYear();
+        var M = today.getMonth() + 1;
+        var d = today.getDate();
+        var h = today.getHours();
+        var m = today.getMinutes();
+        var s = today.getSeconds();
+        var w = today.getDay();
+        if (M < 10) {
+          M = "0" + M;
+        }
+        if (d < 10) {
+          d = "0" + d;
+        }
+        if (h < 10) {
+          h = "0" + h;
+        }
+        if (m < 10) {
+          m = "0" + m;
+        }
+        if (s < 10) {
+          s = "0" + s;
+        }
+        this.form.startTime = y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s;
       // 获取执行单位列表
       getDept2().then((res) => {
         // console.log(res,2)
@@ -978,7 +1036,7 @@ export default {
       this.title = "进度查看";
       // 获取当前行的id
       singProgress(row.id).then((res) => {
-        console.log(res)
+        console.log(res);
         this.singleTable = res.data;
         this.singleTable.planProgresses =
           this.singleTable.planProgress.schedule;
@@ -994,13 +1052,14 @@ export default {
       this.title = "进度查看";
       // 获取当前行的id
       // console.log(row.id)
-      
+
       moreProgress(row.id).then((res) => {
-        console.log(res)
-        this.comstatus=0
+        console.log(res);
+        this.comstatus = 0;
         this.moreTable = res.data;
         this.moreTable.planProgresses.forEach((item) => {
-          this.comstatus +=item.schedule / this.moreTable.planProgresses.length;
+          this.comstatus +=
+            item.schedule / this.moreTable.planProgresses.length;
         });
       });
     },
@@ -1015,7 +1074,7 @@ export default {
       const id = row.id || this.ids;
       getPlanTask(id).then((response) => {
         this.form = response.data;
-        this.form.type=parseInt(this.form.type)
+        this.form.type = parseInt(this.form.type);
         this.getZhuChi(this.form.unitId);
         // this.form.type=this.form.type+""
         this.form.peopleName = this.form.peopleName.split(",").map(Number);
@@ -1055,15 +1114,14 @@ export default {
       ) {
         this.getdeptList.map((item) => {
           if (item.deptId == row.adminId) {
-            console.log(item.deptName)
+            console.log(item.deptName);
             deptName = item.deptName;
           }
         });
       } else if (parseInt(this.planTaskList[0].common) == 0) {
         this.getdeptList.map((item) => {
-          console.log(item)
+          console.log(item);
           if (item.deptId == row.adminId) {
-            
             deptName = item.deptName;
           }
         });
@@ -1087,17 +1145,17 @@ export default {
       });
       return deptName;
     },
-    zidainType(item){
-      this.queryParams.type=item.dictValue
+    zidainType(item) {
+      this.queryParams.type = item.dictValue;
       this.getList();
       // console.log(item)
     },
     /** 提交按钮 */
     submitForm() {
-      console.log(this.form.file)
-      if(this.form.file){
-        this.form.fileName=this.form.file[0].name
-        this.form.file=this.form.file[0].url
+      console.log(this.form.file);
+      if (this.form.file) {
+        this.form.fileName = this.form.file[0].name;
+        this.form.file = this.form.file[0].url;
       }
       this.$refs["form"].validate((valid) => {
         if (valid) {
@@ -1126,15 +1184,15 @@ export default {
     },
     submitForm1() {
       if (this.Progress.file) {
-            this.Progress.fileName = this.Progress.file[0].name;
-            this.Progress.file = this.Progress.file[0].url;
-          }
+        this.Progress.fileName = this.Progress.file[0].name;
+        this.Progress.file = this.Progress.file[0].url;
+      }
       // this.Progress.fileName=this.Progress.file[0].name
       // this.Progress.file=this.Progress.file[0].url
       this.$refs["Progress"].validate((valid) => {
         if (valid) {
           this.Progress.schedule = this.Progress.planProgress;
-          console.log(this.Progress)
+          console.log(this.Progress);
           uploadProgress(this.Progress).then((res1) => {
             console.log(res1);
             this.$modal.msgSuccess("上传成功");
@@ -1155,7 +1213,7 @@ export default {
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal
-        .confirm('是否确认删除?')
+        .confirm("是否确认删除?")
         .then(function () {
           return delPlanTask(ids);
         })
@@ -1210,8 +1268,8 @@ export default {
     },
     // 选择计划
     chooseplan(item) {
-      console.log(item)
-      this.form.type=item.dictValue
+      console.log(item);
+      this.form.type = item.dictValue;
     },
   },
 };
@@ -1409,7 +1467,7 @@ export default {
   top: 5px;
 }
 /* 表格 */
- .tabless .el-table__row {
+.tabless .el-table__row {
   background-color: #004d86;
 }
 .tabless table {
@@ -1466,31 +1524,31 @@ export default {
   white-space: nowrap;
 }
 /* table表格 */
-::v-deep .el-table th.el-table__cell{
+::v-deep .el-table th.el-table__cell {
   background-color: pink !important;
 }
-.el-table__empty-block{
+.el-table__empty-block {
   border-bottom: 1px solid white;
 }
-.vue-treeselect__control{
+.vue-treeselect__control {
   background-color: transparent !important;
 }
-.threeselects .vue-treeselect__input{
+.threeselects .vue-treeselect__input {
   background-color: transparent !important;
 }
-.el-table__body-wrapper .el-table__empty-block{
+.el-table__body-wrapper .el-table__empty-block {
   border: none !important;
-} 
-.plantypes .el-form-item__label{
+}
+.plantypes .el-form-item__label {
   text-align: center;
 }
-.vue-treeselect__placeholder{
+.vue-treeselect__placeholder {
   color: #ccc;
 }
-.el-form-item__content{
+.el-form-item__content {
   border-bottom: none !important;
 }
-.jinduchakan .el-table__body-wrapper .el-table__empty-block{
+.jinduchakan .el-table__body-wrapper .el-table__empty-block {
   border-bottom: 2px solid white !important;
   border-left: 2px solid white !important;
   border-right: 2px solid white !important;
@@ -1498,10 +1556,10 @@ export default {
 /* 去除默认字体 */
 /* .el-select .el-input__inner */
 .el-select-dropdown__item.selected {
-    color: #000;
-    font-weight: bold;
+  color: #000;
+  font-weight: bold;
 }
-.vue-treeselect__menu{
+.vue-treeselect__menu {
   color: #606266;
 }
 </style>

+ 105 - 30
src/views/workingArrangements/workTask/index.vue

@@ -157,6 +157,7 @@
         prop="adminId"
         :formatter="unit3Format"
       />
+      <el-table-column label="发布人" align="center" prop="username" />
       <el-table-column
         label="任务类型"
         align="center"
@@ -177,7 +178,9 @@
         width="180"
       >
         <template slot-scope="scope">
-          <span>{{ parseTime(scope.row.startTime, "{y}-{m}-{d}") }}</span>
+          <span>{{
+            parseTime(scope.row.startTime, "{y}-{m}-{d} {h}-{m}-{s}")
+          }}</span>
         </template>
       </el-table-column>
       <el-table-column
@@ -187,7 +190,9 @@
         width="180"
       >
         <template slot-scope="scope">
-          <span>{{ parseTime(scope.row.endTime, "{y}-{m}-{d}") }}</span>
+          <span>{{
+            parseTime(scope.row.endTime, "{y}-{m}-{d} {h}-{m}-{s}")
+          }}</span>
         </template>
       </el-table-column>
       <el-table-column
@@ -287,29 +292,13 @@
           >
           </el-input>
         </el-form-item>
-        <el-form-item label="任务类型" prop="type">
-          <el-select
-            v-model="form.type"
-            style="width: 200px"
-            clearable
-            placeholder="请选择任务类型"
-            size="small"
-          >
-            <el-option
-              v-for="(item, i) in ziDian"
-              :key="i"
-              :label="item.dictLabel"
-              :value="parseInt(item.dictSort)"
-            >
-            </el-option>
-          </el-select>
-        </el-form-item>
         <el-form-item label="发布单位" prop="adminId">
           <treeselect
             v-model="form.adminId"
             :options="part"
             @select="selectPeo"
             class="threeselects"
+            disabled
             placeholder="请选择发布单位"
           />
         </el-form-item>
@@ -322,6 +311,32 @@
             placeholder="请选择执行单位"
           />
         </el-form-item>
+        <el-form-item label="任务类型" prop="type">
+          <el-select
+            v-model="form.type"
+            style="width: 200px"
+            clearable
+            placeholder="请选择任务类型"
+            size="small"
+          >
+            <el-option
+              v-for="(item, i) in ziDian"
+              :key="i"
+              :label="item.dictLabel"
+              :value="parseInt(item.dictSort)"
+            >
+            </el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="发布人" prop="username">
+          <el-input
+            placeholder="请输入发布人"
+            v-model="form.username"
+            :disabled="true"
+            class="ipt"
+          >
+          </el-input>
+        </el-form-item>
         <div>
           <el-form-item label="执行人" prop="peopleName" label-width="100px">
             <div>
@@ -350,8 +365,8 @@
             clearable
             size="small"
             v-model="form.startTime"
-            type="date"
-            value-format="yyyy-MM-dd"
+            type="datetime"
+            value-format="yyyy-MM-dd HH-mm-ss"
             style="width: 200px"
           >
           </el-date-picker>
@@ -362,8 +377,9 @@
             clearable
             size="small"
             v-model="form.endTime"
-            type="date"
-            value-format="yyyy-MM-dd"
+            type="datetime"
+            value-format="yyyy-MM-dd HH-mm-ss"
+            default-time="00:00:00"
           >
           </el-date-picker>
         </el-form-item>
@@ -650,6 +666,7 @@ import { getDicts } from "@/api/system/dict/data";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import { getDept2 } from "@/api/grassrootsregistration/bdglmeeting";
+import Cookies from "js-cookie";
 export default {
   name: "WorkTask",
   dicts: ["work_type"],
@@ -710,6 +727,9 @@ export default {
       form: {},
       // 表单校验
       rules: {
+        name: [
+          { required: true, message: "任务名称不能为空", trigger: "blur" },
+        ],
         number: [{ required: true, message: "编号不能为空", trigger: "blur" }],
         peopleName: [
           { required: true, message: "执行人不能为空", trigger: "blur" },
@@ -771,6 +791,7 @@ export default {
         taskId: "",
         id: "",
       },
+      defaultTime: null,
     };
   },
   created() {
@@ -785,8 +806,34 @@ export default {
     this.getdict();
     this.chooseplan();
     this.selectPeo3();
+    // this.defaultTime(){
+
+    // }
+    // this.startTime();
   },
   methods: {
+    // startTime() {
+    //   this.timer = setInterval(() => {
+    //     var today = new Date();
+    //     var y = today.getFullYear();
+    //     var M = today.getMonth() + 1;
+    //     var d = today.getDate();
+    //     var h = today.getHours();
+    //     var m = today.getMinutes();
+    //     var s = today.getSeconds();
+    //     var w = today.getDay();
+    //     if (h < 10) {
+    //       h = "0" + h;
+    //     }
+    //     if (m < 10) {
+    //       m = "0" + m;
+    //     }
+    //     if (s < 10) {
+    //       s = "0" + s;
+    //     }
+    //     this.defaultTime = h + ":" + m + ":" + s;
+    //   }, 500); /* 每500毫秒执行一次,实现动态显示时间效果 */
+    // },
     /** 进度录入按钮操作 */
     ViewProgress(row) {
       // this.reset();
@@ -886,7 +933,7 @@ export default {
     },
     zidainType(item) {
       this.queryParams.type = item.dictValue;
-       this.getList();
+      this.getList();
       // console.log(item)
     },
     // 发布单位选中触发
@@ -897,7 +944,7 @@ export default {
       });
       this.queryParams.adminId = val.id;
       this.getZhuChi(this.queryParams.adminId);
-      this.getList()
+      this.getList();
     },
     /** 搜索按钮操作 */
     handleQuery() {
@@ -948,10 +995,39 @@ export default {
       this.reset();
       this.open = true;
       this.title = "添加工作任务";
+      this.form.adminId = Cookies.get("deptId");
+      this.form.username = Cookies.get("nickName");
+      this.form.userId = Cookies.get("userId");
+      var today = new Date();
+      var y = today.getFullYear();
+      var M = today.getMonth() + 1;
+      var d = today.getDate();
+      var h = today.getHours();
+      var m = today.getMinutes();
+      var s = today.getSeconds();
+      var w = today.getDay();
+      if (M < 10) {
+        M = "0" + M;
+      }
+      if (d < 10) {
+        d = "0" + d;
+      }
+      if (h < 10) {
+        h = "0" + h;
+      }
+      if (m < 10) {
+        m = "0" + m;
+      }
+      if (s < 10) {
+        s = "0" + s;
+      }
+      this.form.startTime = y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s;
+
       // 获取执行单位列表
       getDept2().then((res) => {
         // console.log(res,2)
         this.users = res.data;
+
         console.log(this.users);
       });
     },
@@ -1036,7 +1112,6 @@ export default {
     },
     /** 提交按钮 */
     submitForm() {
-      console.log(this.form);
       if (this.form.file) {
         this.form.fileName = this.form.file[0].name;
         this.form.file = this.form.file[0].url;
@@ -1382,7 +1457,7 @@ export default {
 }
 .has-gutter {
   background-color: #004d86;
-} 
+}
 .el-dialog__body .el-table tr:nth-child(odd) {
   background-color: #004d86 !important;
 }
@@ -1450,10 +1525,10 @@ export default {
   border: 1px solid white !important;
 }
 .el-select-dropdown__item.selected {
-    color: #000;
-    font-weight: bold;
+  color: #000;
+  font-weight: bold;
 }
-.vue-treeselect__menu{
+.vue-treeselect__menu {
   color: #606266;
 }
 </style>