luowei 1 жил өмнө
parent
commit
3c3a7db529

+ 10 - 0
src/views/core/accessPlan/index.vue

@@ -442,6 +442,13 @@
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
+        <el-button
+                  icon="el-icon-document-copy"
+                  type="text"
+                  v-if="r.row.pdfUrl"
+                  @click="onDown(r.row.pdfUrl)"
+                  >登记簿
+                </el-button>
       </div>
     </DialogCom>
     <DialogThreeState ref="DialogThreeState"> </DialogThreeState>
@@ -578,6 +585,9 @@ export default {
       if (value <= this.initNum) this.form.planFrequency = this.initNum;
       //value = parseInt(value);
     },
+    async onDown(pdfUrl) {
+      window.open(pdfUrl);
+    },
     getPageIndex($index) {
       //表格序号
       return (

+ 1 - 1
src/views/system/dept/index.vue

@@ -216,7 +216,7 @@
             ></el-table-column>
             <el-table-column
               label="操作"
-              align="left"
+              align="center"
               width="280"
               class-name="small-padding fixed-width"
             >

+ 1 - 1
src/views/system/device/index.vue

@@ -153,7 +153,7 @@
             <!--    <el-table-column label="保修期限" align="center" prop="maintenanceTerm" /> -->
             <el-table-column
               label="操作"
-              align="left"
+              align="center"
               class-name="small-padding fixed-width"
             >
               <template slot-scope="scope">