zxr před 3 roky
rodič
revize
3ab9d8aa17

+ 48 - 43
src/views/bdglregular/regularcountinfo/index.vue

@@ -116,20 +116,25 @@ import {
   pendingacceptance,
   completeproportion,
   unitproportion,
-  getRegularinfo,
+  getRegularinfo
 } from "@/api/bdglregular/regularcountinfo";
 import * as echarts from "echarts";
+import Cookies from "js-cookie";
 export default {
   data() {
     return {
       peopleList: [],
       peopleList2: [],
-      peopleList3: [],
+      peopleList3: []
     };
   },
   created() {
     this.getlist();
     this.getlist2();
+    if (Cookies.get("shuaxin") != "true") {
+      window.location.reload();
+    }
+    Cookies.set("shuaxin", "true");
   },
   mounted() {
     this.getlist3();
@@ -137,21 +142,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")
@@ -160,11 +165,11 @@ 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"],
             legend: {
@@ -173,9 +178,9 @@ export default {
               top: "10%",
               itemGap: 20,
               textStyle: {
-                color: "#fff",
+                color: "#fff"
               },
-              data: ["待处理", "待验收", "未通过", "已通过"],
+              data: ["待处理", "待验收", "未通过", "已通过"]
             },
             series: [
               {
@@ -190,9 +195,9 @@ export default {
                     textStyle: {
                       fontWeight: 300,
                       fontSize: 16,
-                      color: "#fff",
-                    },
-                  },
+                      color: "#fff"
+                    }
+                  }
                 },
                 data: [
                   {
@@ -200,35 +205,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);
         }
@@ -236,7 +241,7 @@ export default {
     },
     getlist4() {},
     echarfun() {
-      unitproportion().then((res) => {
+      unitproportion().then(res => {
         if (res.code == 200) {
           this.peopleList3 = res.data;
           console.log(res.data);
@@ -255,13 +260,13 @@ export default {
                   color: "#ffff",
                   // fontSize: 12,
                   fontStyle: "normal",
-                  fontWeight: "normal",
-                },
+                  fontWeight: "normal"
+                }
               },
               color: ["#5470c6", "#fac858", "#ee6666", "#91cc75"],
               tooltip: {
                 trigger: "item",
-                formatter: "{a} <br/>{b} : {c} ({d}%)",
+                formatter: "{a} <br/>{b} : {c} ({d}%)"
               },
               // legend: {
               //   orient: "vertical",
@@ -287,9 +292,9 @@ export default {
                       textStyle: {
                         fontWeight: 300,
                         fontSize: 16,
-                        color: "#fff",
-                      },
-                    },
+                        color: "#fff"
+                      }
+                    }
                   },
                   data: [
                     {
@@ -298,7 +303,7 @@ export default {
                           ? null
                           : this.peopleList3[i].daiyanshou,
                       name: "待验收",
-                      id: this.peopleList3[i].deptId,
+                      id: this.peopleList3[i].deptId
                     },
                     {
                       value:
@@ -306,7 +311,7 @@ export default {
                           ? null
                           : this.peopleList3[i].daichuli,
                       name: "待处理",
-                      id: this.peopleList3[i].deptId,
+                      id: this.peopleList3[i].deptId
                     },
                     {
                       value:
@@ -314,7 +319,7 @@ export default {
                           ? null
                           : this.peopleList3[i].weitongguo,
                       name: "未通过",
-                      id: this.peopleList3[i].deptId,
+                      id: this.peopleList3[i].deptId
                     },
                     {
                       value:
@@ -322,18 +327,18 @@ export default {
                           ? null
                           : this.peopleList3[i].yitongguo,
                       name: "已通过",
-                      id: this.peopleList3[i].deptId,
-                    },
+                      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);
 
@@ -347,7 +352,7 @@ export default {
       this.$router
         .push({
           path: "/bdglregular/regularinfo",
-          query: { id: row.inspectedUnitId },
+          query: { id: row.inspectedUnitId }
         })
         .catch(() => {});
     },
@@ -357,11 +362,11 @@ export default {
       this.$router
         .push({
           path: "/bdglregular/regularinfo",
-          query: { obj: param.data },
+          query: { obj: param.data }
         })
         .catch(() => {});
-    },
-  },
+    }
+  }
 };
 </script>
 

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 257 - 259
src/views/combatduty/RateOfTen/index.vue


+ 32 - 29
src/views/doormanManage/bdglVisit/index.vue

@@ -41,9 +41,7 @@
           @click="handleQuery"
           >搜索</el-button
         > -->
-        <el-button  size="btr" @click="resetQuery"
-          >重置</el-button
-        >
+        <el-button size="btr" @click="resetQuery">重置</el-button>
       </el-form-item>
     </el-form>
 
@@ -274,12 +272,13 @@ import {
   addBdglVisit,
   updateBdglVisit,
   exportBdglVisit,
-  deptUser,
+  deptUser
 } from "@/api/doormanManage/bdglVisit";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import { getDept2 } from "@/api/grassrootsregistration/bdglmeeting";
 import { allUser } from "@/api/workingArrangements/workTask";
+import Cookies from "js-cookie";
 
 export default {
   name: "BdglVisit",
@@ -322,40 +321,44 @@ export default {
         updatetime: null,
         numberPlate: null,
         unitName: null,
-        peopleName: null,
+        peopleName: null
       },
       // 表单参数
       form: {},
       // 表单校验
       rules: {
         unitId: [
-          { required: true, message: "到访单位不能为空", trigger: "blur" },
+          { required: true, message: "到访单位不能为空", trigger: "blur" }
         ],
         // peopleId: [{ required: true, message: "接待人不能为空", trigger: "blur" }],
         name: [
-          { required: true, message: "到访人员姓名不能为空", trigger: "blur" },
+          { required: true, message: "到访人员姓名不能为空", trigger: "blur" }
         ],
         arriveTime: [
-          { required: true, message: "到访时间不能为空", trigger: "blur" },
+          { required: true, message: "到访时间不能为空", trigger: "blur" }
         ],
         endTime: [
-          { required: true, message: "离队时间不能为空", trigger: "blur" },
+          { required: true, message: "离队时间不能为空", trigger: "blur" }
         ],
         numberPlate: [
-          { required: true, message: "到访车牌号不能为空", trigger: "blur" },
-        ],
+          { required: true, message: "到访车牌号不能为空", trigger: "blur" }
+        ]
       },
       // 执行单位列表
       users: [],
       // 接待人
       executor: [],
       // 人员列表
-      rylist: [],
+      rylist: []
     };
   },
   created() {
+    if (Cookies.get("shuaxin") != "true") {
+      window.location.reload();
+    }
+    Cookies.set("shuaxin", "true");
     this.getList();
-    allUser().then((res) => {
+    allUser().then(res => {
       this.rylist = res.rows;
     });
     this.selectPeo1();
@@ -370,7 +373,7 @@ export default {
         "d+": date.getDate().toString(), // 日
         "H+": date.getHours().toString(), // 时
         "M+": date.getMinutes().toString(), // 分
-        "S+": date.getSeconds().toString(), // 秒
+        "S+": date.getSeconds().toString() // 秒
         // 有其他格式化字符需求可以继续添加,必须转化成字符串
       };
       for (let k in opt) {
@@ -400,7 +403,7 @@ export default {
     // 获取执行人
     getZhuChi(id) {
       // console.log(id)
-      deptUser(id).then((res) => {
+      deptUser(id).then(res => {
         this.executor = res.data;
         // console.log(this.executor)
         // this.form.unitName=this.executor
@@ -420,7 +423,7 @@ export default {
       //  this.getDept2()
       // this.handleAdd()
       // 获取执行单位列表
-      getDept2().then((res) => {
+      getDept2().then(res => {
         // console.log(res,2)
         this.users = res.data;
         console.log(this.users);
@@ -434,7 +437,7 @@ export default {
     /** 查询人员来访登记列表 */
     getList() {
       this.loading = true;
-      listBdglVisit(this.queryParams).then((response) => {
+      listBdglVisit(this.queryParams).then(response => {
         // console.log(response)
         this.bdglVisitList = response.rows;
         console.log(this.bdglVisitList);
@@ -462,7 +465,7 @@ export default {
         updatetime: null,
         numberPlate: null,
         unitName: null,
-        peopleName: null,
+        peopleName: null
       };
       this.resetForm("form");
     },
@@ -481,7 +484,7 @@ export default {
     },
     // 多选框选中数据
     handleSelectionChange(selection) {
-      this.ids = selection.map((item) => item.id);
+      this.ids = selection.map(item => item.id);
       this.single = selection.length !== 1;
       this.multiple = !selection.length;
     },
@@ -491,7 +494,7 @@ export default {
       this.open = true;
       this.title = "添加人员来访登记";
       // 获取执行单位列表
-      getDept2().then((res) => {
+      getDept2().then(res => {
         // console.log(res,2)
         this.users = res.data;
         console.log(this.users);
@@ -500,7 +503,7 @@ export default {
     /** 修改按钮操作 */
     handleUpdate(row) {
       this.reset();
-      getDept2().then((res) => {
+      getDept2().then(res => {
         // console.log(res)
         // console.log(res,2)
         this.users = res.data;
@@ -508,7 +511,7 @@ export default {
       });
       const id = row.id || this.ids;
       // console.log(row)
-      getBdglVisit(id).then((response) => {
+      getBdglVisit(id).then(response => {
         console.log(response.data);
         this.form = response.data;
         this.open = true;
@@ -518,17 +521,17 @@ export default {
     /** 提交按钮 */
     submitForm() {
       console.log(this.form);
-      this.$refs["form"].validate((valid) => {
+      this.$refs["form"].validate(valid => {
         if (valid) {
           if (this.form.id != null) {
             console.log(this.form);
-            updateBdglVisit(this.form).then((response) => {
+            updateBdglVisit(this.form).then(response => {
               this.$modal.msgSuccess("修改成功");
               this.open = false;
               this.getList();
             });
           } else {
-            addBdglVisit(this.form).then((response) => {
+            addBdglVisit(this.form).then(response => {
               this.$modal.msgSuccess("新增成功");
               this.open = false;
               this.getList();
@@ -542,7 +545,7 @@ export default {
       const ids = row.id || this.ids;
       this.$modal
         .confirm("是否确认删除人员来访登记的数据项?")
-        .then(function () {
+        .then(function() {
           return delBdglVisit(ids);
         })
         .then(() => {
@@ -560,13 +563,13 @@ export default {
           this.exportLoading = true;
           return exportBdglVisit(queryParams);
         })
-        .then((response) => {
+        .then(response => {
           this.$download.name(response.msg);
           this.exportLoading = false;
         })
         .catch(() => {});
-    },
-  },
+    }
+  }
 };
 </script>
 <style scoped>

+ 42 - 33
src/views/peopleChuRu/leaveOne/index.vue

@@ -319,9 +319,7 @@
         <!-- <el-button type="primary" size="btn" @click="handleQuery"
           >搜索</el-button
         > -->
-        <el-button  size="btr" @click="resetQuery"
-          >重置</el-button
-        >
+        <el-button size="btr" @click="resetQuery">重置</el-button>
       </el-form-item>
     </el-form>
 
@@ -516,7 +514,13 @@
     />
 
     <!-- 添加或修改人员请假对话框 -->
-    <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="500px" append-to-body>
+    <el-dialog
+      :title="title"
+      :visible.sync="open"
+      :close-on-click-modal="false"
+      width="500px"
+      append-to-body
+    >
       <el-form
         ref="form"
         :model="form"
@@ -726,16 +730,17 @@ import {
 import {
   getUser,
   getDept,
-  getQuanBu,
+  getQuanBu
 } from "@/api/grassrootsregistration/bdglmeeting";
 // 导入树形结构
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+import Cookies from "js-cookie";
 
 export default {
   name: "LeaveOne",
   components: {
-    Treeselect,
+    Treeselect
   },
   dicts: ["people_state"],
   data() {
@@ -797,7 +802,7 @@ export default {
         peopleName4: null,
         reasons: null,
         specialApproval: null,
-        actualreturntime: null,
+        actualreturntime: null
       },
       // 表单参数
       form: {},
@@ -806,33 +811,37 @@ export default {
       // 树形结构列表
       deptOptions: [],
       renYuan: [],
-      unitlist:[]
+      unitlist: []
     };
   },
   created() {
     this.getList();
     // 获取单位树形
     this.getBuMeng();
+    if (Cookies.get("shuaxin") != "true") {
+      window.location.reload();
+    }
+    Cookies.set("shuaxin", "true");
   },
-  mounted(){
-     getDept2().then(res=>{
-         this.unitlist=res.data;
-     })
+  mounted() {
+    getDept2().then(res => {
+      this.unitlist = res.data;
+    });
   },
   methods: {
     unit3Format(row, column) {
       var deptName = "";
-        this.unitlist.map((item) => {
-          if (item.deptId == row.unitId) {
-            deptName = item.deptName;
-          }
-        });
-      
+      this.unitlist.map(item => {
+        if (item.deptId == row.unitId) {
+          deptName = item.deptName;
+        }
+      });
+
       return deptName;
     },
     // 获取部门列表
     getBuMeng() {
-      getDept().then((res) => {
+      getDept().then(res => {
         this.deptOptions = res.data;
       });
     },
@@ -853,13 +862,13 @@ export default {
     },
     // 获取用户列表
     getYong(id) {
-      getUser(id).then((res) => {
+      getUser(id).then(res => {
         this.yongHu = res.data;
       });
     },
     // 获取人员
     getRen(id, num) {
-      getQuanBu(id, num).then((response) => {
+      getQuanBu(id, num).then(response => {
         this.renYuan = response.data;
       });
     },
@@ -878,7 +887,7 @@ export default {
     /** 查询人员请假列表 */
     getList() {
       this.loading = true;
-      listLeaveOne(this.queryParams).then((response) => {
+      listLeaveOne(this.queryParams).then(response => {
         // 获取单位树形
         this.getBuMeng();
         this.leaveOneList = response.rows;
@@ -928,7 +937,7 @@ export default {
         peopleName4: null,
         reasons: null,
         specialApproval: null,
-        actualreturntime: null,
+        actualreturntime: null
       };
       this.resetForm("form");
     },
@@ -944,7 +953,7 @@ export default {
     },
     // 多选框选中数据
     handleSelectionChange(selection) {
-      this.ids = selection.map((item) => item.id);
+      this.ids = selection.map(item => item.id);
       this.single = selection.length !== 1;
       this.multiple = !selection.length;
     },
@@ -960,7 +969,7 @@ export default {
     handleUpdate(row) {
       this.reset();
       const id = row.id || this.ids;
-      getLeaveOne(id).then((response) => {
+      getLeaveOne(id).then(response => {
         this.form = response.data;
         // 获取单位树形
         this.getBuMeng();
@@ -971,16 +980,16 @@ export default {
     },
     /** 提交按钮 */
     submitForm() {
-      this.$refs["form"].validate((valid) => {
+      this.$refs["form"].validate(valid => {
         if (valid) {
           if (this.form.id != null) {
-            updateLeaveOne(this.form).then((response) => {
+            updateLeaveOne(this.form).then(response => {
               this.$modal.msgSuccess("修改成功");
               this.open = false;
               this.getList();
             });
           } else {
-            addLeaveOne(this.form).then((response) => {
+            addLeaveOne(this.form).then(response => {
               this.$modal.msgSuccess("新增成功");
               this.open = false;
               this.getList();
@@ -994,7 +1003,7 @@ export default {
       const ids = row.id || this.ids;
       this.$modal
         .confirm('是否确认删除人员请假编号为"' + ids + '"的数据项?')
-        .then(function () {
+        .then(function() {
           return delLeaveOne(ids);
         })
         .then(() => {
@@ -1012,13 +1021,13 @@ export default {
           this.exportLoading = true;
           return exportLeaveOne(queryParams);
         })
-        .then((response) => {
+        .then(response => {
           this.$download.name(response.msg);
           this.exportLoading = false;
         })
         .catch(() => {});
-    },
-  },
+    }
+  }
 };
 </script>
 <style scoped>
@@ -1181,7 +1190,7 @@ export default {
 ::v-deep .el-table__fixed-right {
   height: 100% !important;
 }
-::v-deep .vue-treeselect__control{
+::v-deep .vue-treeselect__control {
   background-color: transparent !important;
 }
 </style>

+ 8 - 5
src/views/peopleManage/people/index.vue

@@ -8,8 +8,8 @@
         </div>
         <div class="tree">
           <el-tree
-        class="userAgrees"
-         style = "height:700px;overflow:auto;"
+            class="userAgrees"
+            style="height:700px;overflow:auto;"
             :data="deptOptions"
             :props="defaultProps"
             @node-click="handleNodeClick"
@@ -1264,6 +1264,7 @@ import {
   listDept,
   treeselect
 } from "@/api/peopleManage/people";
+import Cookies from "js-cookie";
 
 export default {
   name: "People",
@@ -1441,9 +1442,7 @@ export default {
         authorizedStrength: [
           { required: true, message: "是否编制不能为空", trigger: "change" }
         ],
-        deptId: [
-          { required: true, message: "单位不能为空", trigger: "change" }
-        ],
+        deptId: [{ required: true, message: "单位不能为空", trigger: "change" }]
         // name: [{ required: true, message: "亲属姓名不能为空", trigger: "blur" }]
         // jtname:[{ validator: jtnameblur, trigger: "blur" }],
         // characterRelationship: [
@@ -1506,6 +1505,10 @@ export default {
     };
   },
   created() {
+    if (Cookies.get("shuaxin") != "true") {
+      window.location.reload();
+    }
+    Cookies.set("shuaxin", "true");
     this.getList();
     //性别
     this.getDicts("sys_user_sex").then(response => {

+ 6 - 0
src/views/system/cookcategory/index.vue

@@ -222,6 +222,7 @@ import {
   updateCookcategory,
   exportCookcategory,
 } from "@/api/system/cookcategory";
+import Cookies from "js-cookie";
 
 export default {
   name: "Cookcategory",
@@ -281,7 +282,12 @@ export default {
     };
   },
   created() {
+    if (Cookies.get("shuaxin") != "true") {
+      window.location.reload();
+    }
+    Cookies.set("shuaxin", "true");
     this.getList();
+       
   },
   methods: {
     /** 查询食品分类列表 */

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů