Explorar o código

集中文印检查督导

ltao %!s(int64=3) %!d(string=hai) anos
pai
achega
9cf5a2df65

+ 27 - 8
src/views/PrintsManage/manage/index.vue

@@ -859,6 +859,7 @@ export default {
       open44: false,
       // 确定按钮
       printshow: false,
+      printManage:{}
     };
   },
   created() {
@@ -1214,10 +1215,11 @@ export default {
                       href = window.URL.createObjectURL(blob); //创建下载的链接
                     }
                     downloadElement.href = href;
-                    downloadElement.download =
-                      // tagFileName +
-                      //下载后文件名
-                      document.body.appendChild(downloadElement);
+                    console.log(that.dyform.printName);
+                    downloadElement.download = that.dyform.printName;
+                    // tagFileName +
+                    //下载后文件名
+                    document.body.appendChild(downloadElement);
                     downloadElement.click(); //点击下载
                     document.body.removeChild(downloadElement); //下载完成移除元素
                     if (typeof blob != "string") {
@@ -1229,10 +1231,15 @@ export default {
                 this.dyopen = false;
                 this.getList();
               } else {
-                location.href =
+                let downloadElement = document.createElement("a");
+                downloadElement.href =
                   process.env.VUE_APP_BASE_API +
                   "/profile/print/" +
                   res.printFileName;
+                downloadElement.download = this.dyform.printName;
+                document.body.appendChild(downloadElement);
+                downloadElement.click(); //点击下载
+                document.body.removeChild(downloadElement);
                 this.dyopen = false;
                 this.printshow = true;
                 this.getList();
@@ -1248,9 +1255,21 @@ export default {
       // window.open( `https://view.officeapps.live.com/op/view.aspx?src=http://192.168.5.188:8080/profile/print/202203211428.docx`, "_blank");
     },
     // 确定
-    handleok() {
-      console.log(this.dyform);
-      tkbox(this.dyform).then((res) => {
+    handleok(row) {
+      // this.dyform.printName = row.name;
+      // this.dyform.explainInfo = row.explainInfo;
+      // this.dyform.printId = row.id;
+      // this.dyform.file = row.file;
+      // this.dyform.statusG = 0;
+      // this.dyform.printfileName = row.sendName;
+      // this.dyform.printNumber = row.printNumber;
+      // this.dyform.printRoom = row.printRoom;
+      // this.dyform.type = row.type;
+      // console.log(this.dyform);
+      // console.log(row)
+      this.printManage=row
+      // console.log(this.dyform)
+      tkbox(this.printManage).then((res) => {
         console.log(res);
         this.printshow = false;
         this.getList();

+ 10 - 0
src/views/bdglregular/regularcountinfo/index.vue

@@ -145,6 +145,16 @@ export default {
       unitrank().then((res) => {
         if (res.code == 200) {
           this.peopleList = res.data;
+          // console.log(this.peopleList)
+          this.peopleList.forEach((item)=>{
+            // console.log(item.zongfen)
+            return item.zongfen = item.zongfen.split(".")[0]
+          })
+           this.peopleList.forEach((item)=>{
+            // console.log(item.zongfen)
+            return item.subscore = item.subscore.split(".")[0]
+          })
+          // console.log(this.peopleList)
         }
       });
     },

+ 27 - 9
src/views/bdglregular/regularinfo/index.vue

@@ -252,7 +252,7 @@
       </el-table-column>
       <!-- <el-table-column label="单位检查_id" align="center" prop="unitCheckId" /> -->
       <el-table-column label="检查单位" align="center" prop="unitCheck" />
-      <el-table-column label="检查时间" align="center" prop="inspectionTime" />
+      <el-table-column label="检查时间" align="center" prop="inspectionTime" width="150px" />
       <el-table-column label="检查地点" align="center" prop="inspectionSite" />
       <el-table-column
         label="分值"
@@ -312,6 +312,7 @@
         prop="rectificationTime"
         :key="Math.random()"
         v-if="queryParams.caoZuoType == 0"
+        width="150px"
       />
       <!-- <el-table-column label="创建人ID" align="center" prop="createUserId" />
       <el-table-column label="创建人" align="center" prop="createUser" />
@@ -349,16 +350,15 @@
             "
             >审批</el-button
           >
-          <!-- <el-button
+          <el-button
             size="btu"
             type="text"
             @click="handleAdds(scope.row)"
-           
             >修改</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>
@@ -393,7 +393,7 @@
             @change="unitCheckIdfun"
             clearable
             placeholder="请选择受检单位"
-            :disabled="disabled"
+            :disabled="disabled || this.isdisabled==true"
           >
             <el-option
               v-for="dict in unitId"
@@ -409,7 +409,7 @@
             @change="inspectedUnitfun"
             clearable
             placeholder="请选择受检单位"
-            :disabled="disabled"
+            :disabled="disabled || this.isdisabled==true"
           >
             <el-option
               v-for="dict in unitId"
@@ -466,7 +466,7 @@
             default-time="00:00:00"
             value-format="yyyy-MM-dd HH:mm:ss"
             placeholder="选择检查时间"
-            :disabled="disabled"
+            :disabled="disabled || this.isdisabled==true"
           ></el-date-picker>
         </el-form-item>
         <el-form-item label="检查地点" prop="inspectionSite">
@@ -719,6 +719,7 @@ export default {
       disabled: false,
       currentState: null,
       curr: null,
+      isdisabled:false,
     };
   },
   created() {
@@ -944,6 +945,23 @@ export default {
         }
       });
     },
+    // 修改按钮
+    handleAdds(row){
+      this.isdisabled=true
+       this.reset();
+      const id = row.id || this.ids;
+      getRegularinfo(id).then((response) => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改经常性检查";
+        this.jiannum = 1;
+        this.btnnum = null;
+        if (this.form.currentState == "未通过") {
+          this.currentState = 1;
+          this.curr = true;
+        }
+      });
+    },
     /** 审批按钮操作 */
     shenpifun(row) {
       this.reset();

+ 29 - 5
src/views/bdglregular/specialinfo/index.vue

@@ -337,9 +337,12 @@
             "
             >审批</el-button
           >
-          <!-- <el-button size="btd" @click="handleDelete(scope.row)"
+          <el-button size="btu" type="text" @click="handleAdds(scope.row)"
+            >修改</el-button
+          >
+          <el-button size="btd" @click="handleDelete(scope.row)"
             >删除</el-button
-          > -->
+          >
         </template>
       </el-table-column>
     </el-table>
@@ -374,7 +377,7 @@
             @change="inspectedUnitfun"
             clearable
             placeholder="请选择受检单位"
-            :disabled="disabled"
+            :disabled="disabled || this.isdisabled==true"
           >
             <el-option
               v-for="dict in unitId"
@@ -402,7 +405,7 @@
             type="datetime"
             value-format="yyyy-MM-dd HH:mm:ss"
             placeholder="选择检查时间"
-            :disabled="disabled"
+            :disabled="disabled || this.isdisabled==true"
           ></el-date-picker>
         </el-form-item>
         <el-form-item label="分值" prop="score" v-if="jiannum == 0">
@@ -621,6 +624,8 @@ export default {
       disabled: false,
       currentState: null,
       curr: null,
+      // 是否禁用
+      isdisabled:false
     };
   },
   created() {
@@ -803,7 +808,8 @@ export default {
       if (s < 10) {
         s = "0" + s;
       }
-      this.form.inspectionTime = y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s;
+      this.form.inspectionTime =
+        y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s;
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
@@ -822,6 +828,24 @@ export default {
         }
       });
     },
+    // 修改按钮
+    handleAdds(row) {
+      this.isdisabled=true
+      this.reset();
+      const id = row.id || this.ids;
+      getSpecialinfo(id).then((response) => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改专项检查";
+        this.jiannum = 1;
+        this.btnnum = null;
+        this.disabled = false;
+        if (this.form.currentState == "未通过") {
+          this.currentState = 1;
+          this.curr = true;
+        }
+      });
+    },
     /** 审批按钮操作 */
     shenpifun(row) {
       this.reset();

+ 4 - 2
src/views/regulations/fileinfo/index.vue

@@ -132,7 +132,7 @@
             </el-button>
             <el-button size="read" type="text" @click="handleupLoad(scope.row)">
               <span class="chakan1">
-                <a :href="downurl + scope.row.parentDirName" download>下载</a>
+                <a :href="downurl + scope.row.parentDirName" :download="scope.row.fileName">下载</a>
               </span>
             </el-button>
             <el-button size="dels" type="text" @click="handledels(scope.row)">
@@ -1198,7 +1198,9 @@ export default {
       // window.open("www.baidu.com","_self");
     },
     // 下载按钮操作
-    handleupLoad() {},
+    handleupLoad(row) {
+      console.log(row)
+    },
   },
 };
 </script>

+ 6 - 2
src/views/thought/getready/index.vue

@@ -23,7 +23,7 @@
         <div class="tree">
           <el-tree
             class="userAgrees"
-            style="height: 700px; overflow: auto"
+            style="height: calc(100vh - 170px); overflow: auto"
             :data="deptOptions"
             :props="defaultProps"
             @node-click="handleNodeClick"
@@ -649,7 +649,7 @@
             <span class="filename">{{ form1.fileName }}</span>
             <a
               :href="form1.filePath"
-              download
+              :download="form1.fileName"
               title="下载"
               style="color: white; margin-left: 10px"
               class="downloadfile"
@@ -1397,4 +1397,8 @@ export default {
 ::v-deep .el-form-item__content .el-textarea .el-textarea__inner {
   color: white !important;
 }
+/* 卡片样式 */
+.app-container{
+ height: calc(100vh - 108px) !important;
+}
 </style>

+ 1 - 1
src/views/thought/parliament/index.vue

@@ -614,7 +614,7 @@
           <span class="filename">{{ form1.fileName }}</span>
           <a
             :href="form1.filePath"
-            download
+            :download="form1.fileName"
             title="下载"
             style="color: white; margin-left: 10px"
             class="downloadfile"

+ 6 - 2
src/views/thought/talk/index.vue

@@ -39,7 +39,7 @@
         <div class="tree">
           <el-tree
             class="userAgrees"
-            style="height: 700px; overflow: auto"
+            style="height:calc(100vh - 170px); overflow: auto"
             :data="deptOptions"
             :props="defaultProps"
             @node-click="handleNodeClick"
@@ -584,7 +584,7 @@
           <span class="filename">{{ form1.fileName }}</span>
           <a
             :href="form1.filePath"
-            download
+            :download="form1.fileName"
             title="下载"
             style="color: white; margin-left: 10px"
             class="downloadfile"
@@ -1324,4 +1324,8 @@ export default {
   color: white;
   text-indent: 0.5em;
 }
+/* 卡片样式 */
+.app-container{
+ height: calc(100vh - 108px) !important;
+}
 </style>

+ 1 - 1
src/views/thought/teacherFile/index.vue

@@ -132,7 +132,7 @@
             </el-button>
             <el-button size="read" type="text" @click="handleupLoad(scope.row)">
               <span class="chakan1">
-                <a :href="downurl + scope.row.parentDirName" download>下载</a>
+                <a :href="downurl + scope.row.parentDirName" :download="scope.row.fileName">下载</a>
               </span>
             </el-button>
             <el-button size="dels" type="text" @click="handledels(scope.row)">

+ 5 - 1
src/views/thought/weekjob/index.vue

@@ -23,7 +23,7 @@
         <div class="tree">
           <el-tree
             class="userAgrees"
-            style="height: 700px; overflow: auto"
+            style="height: calc(100vh - 170px); overflow: auto"
             :data="deptOptions"
             :props="defaultProps"
             @node-click="handleNodeClick"
@@ -1604,4 +1604,8 @@ export default {
   background-size: 100% 100%;
   background-repeat: no-repeat;
 }
+/* 卡片样式 */
+.app-container{
+ height: calc(100vh - 108px) !important;
+}
 </style>

+ 5 - 2
src/views/workingArrangements/planTask/index.vue

@@ -529,7 +529,7 @@
           <!-- <div>{{singleTableb.fileName}}</div> -->
           <a
             :href="singleTable.file"
-            download
+            :download="singleTable.fileName"
             title="下载"
             style="color: white; margin-left: 10px"
             class="downloadfile"
@@ -630,7 +630,7 @@
           <!-- <div>{{singleTableb.fileName}}</div> -->
           <a
             :href="moreTable.file"
-            download
+            :download="moreTable.fileName"
             title="下载"
             style="color: white; margin-left: 10px"
             class="downloadfile"
@@ -1613,4 +1613,7 @@ export default {
 .vue-treeselect__menu {
   color: #606266;
 }
+.el-scrollbar li:hover{
+  color: black;
+}
 </style>

+ 9 - 2
src/views/workingArrangements/workTask/index.vue

@@ -536,7 +536,7 @@
           <!-- <div>{{singleTableb.fileName}}</div> -->
           <a
             :href="singleTable.file"
-            download
+            :download="singleTable.fileName"
             title="下载"
             style="color: white; margin-left: 10px"
             class="downloadfile"
@@ -644,7 +644,7 @@
           <!-- <div>{{singleTableb.fileName}}</div> -->
           <a
             :href="moreTable.file"
-            download
+            :download="moreTable.fileName"
             title="下载"
             style="color: white; margin-left: 10px"
             class="downloadfile"
@@ -1796,4 +1796,11 @@ export default {
 .vue-treeselect__menu {
   color: #606266;
 }
+/* 日历样式 */
+.el-date-picker__editor-wrap .el-input .el-input__inner{
+  width:100px !important;
+}
+.el-date-picker__time-header{
+  border-bottom: none;
+}
 </style>