Selaa lähdekoodia

来访情况跟踪 登记簿功能添加

jingyuanchao 1 vuosi sitten
vanhempi
commit
ec208d8b05
1 muutettua tiedostoa jossa 29 lisäystä ja 13 poistoa
  1. 29 13
      src/views/core/outIn/outInLog/index.vue

+ 29 - 13
src/views/core/outIn/outInLog/index.vue

@@ -78,7 +78,8 @@
                   icon="el-icon-search"
                   size="mini"
                   @click="handleQuery"
-                  >搜索</el-button
+                >搜索
+                </el-button
                 >
               </el-col>
               <el-col :span="1.5">
@@ -87,7 +88,8 @@
                   icon="el-icon-refresh"
                   size="mini"
                   @click="resetQuery"
-                  >重置</el-button
+                >重置
+                </el-button
                 >
               </el-col>
               <right-toolbar
@@ -166,7 +168,7 @@
             >
               <template slot-scope="scope">
                 <span
-                  >{{
+                >{{
                     dayjs(scope.row.arrivalTime).format(
                       "YYYY年MM月DD日HH时mm分"
                     )
@@ -174,10 +176,10 @@
                   ~
                 </span>
                 <span v-if="scope.row.departureTime">{{
-                  dayjs(scope.row.departureTime).format(
-                    "YYYY年MM月DD日HH时mm分"
-                  )
-                }}</span>
+                    dayjs(scope.row.departureTime).format(
+                      "YYYY年MM月DD日HH时mm分"
+                    )
+                  }}</span>
               </template>
             </el-table-column>
             <!-- <el-table-column label="核验结果" width="250" align="center" prop="checkImage">
@@ -198,7 +200,7 @@
               label="操作"
               header-align="center"
               align="center"
-              width="90"
+              width="200"
               fixed="right"
               class-name="small-padding fixed-width"
             >
@@ -209,9 +211,18 @@
                   icon="el-icon-view"
                   @click="handleDetailInfo(scope.row)"
                   v-hasPermi="['core:record:list']"
-                  >详情</el-button
-                >
+                >详情
+                </el-button>
+                <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-document"
+                  v-if="scope.row.pdfUrl"
+                  @click="onDown(scope.row.pdfUrl)"
+                >来访登记簿
+                </el-button>
               </template>
+
             </el-table-column>
           </el-table>
 
@@ -234,15 +245,16 @@
 </template>
 
 <script>
-import { outInRecordList } from "@/api/core/letter";
+import {outInRecordList} from "@/api/core/letter";
 import KFileUpload from "@/components/K-FileUpload/index.vue";
 import dayjs from "dayjs";
 import OrgTree from "@/components/orgTree/orgQuerySelector.vue";
 import DataRangePicker from "@/components/dateTime/daterange.picker.vue";
 import dialogOutInDetail from "./dialog.outIn.detail.vue";
-import { mapGetters } from "vuex";
+import {mapGetters} from "vuex";
+
 export default {
-  components: { OrgTree, KFileUpload, DataRangePicker, dialogOutInDetail },
+  components: {OrgTree, KFileUpload, DataRangePicker, dialogOutInDetail},
   dicts: ["letter_status", "out_in_type"],
   name: "outInLog",
   data() {
@@ -335,6 +347,10 @@ export default {
     handleDetailInfo(row) {
       this.$refs["dialogDetail"].show(row.id);
     },
+    async onDown(pdfUrl) {
+      // const data = await this.$api.eduTraining.predown(id);
+      window.open(pdfUrl);
+    },
   },
 };
 </script>