徐桐章 4 年 前
コミット
224a941aa9

+ 15 - 17
src/views/candidateManage/candidateAll.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 10:17:25
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-03 10:38:18
+ * @LastEditTime: 2020-08-03 10:45:26
 -->
 <template>
   <div class="indexPage">
@@ -18,7 +18,7 @@
       @details="details"
     ></v-table>
     <v-pager @page="callPage" :total="totalrecords"></v-pager>
-    <resume :dialogFormVisible="dialogFormVisible" :close="close"></resume>
+    <resume :dialogFormVisible="dialogFormVisible" :close="close" :info="info"></resume>
   </div>
 </template>
 
@@ -33,6 +33,7 @@ export default {
       totalrecords: 0,
       pickList: [],
       form: {},
+      info: {},
       list: [
         {
           placeholder: '请输入关键字查询',
@@ -155,6 +156,7 @@ export default {
   methods: {
     queryData (form = {}) {
       let page = this.page
+      this.form = form
       let reqdata = form
       this.$api
         .post('/resumeInfo/queryResumeList', {
@@ -169,21 +171,17 @@ export default {
     search (form) {
       this.queryData(form)
     },
-    details (row) {
-      this.open()
-      this.querydetail(row.id)
-    },
-    querydetail (id) {
-      // this.$api
-      //   .post('', {
-      //     reqdata: {
-      //       id
-      //     }
-      //   })
-      //   .then((res) => {
-      //     let obj = res.object
-      //     this.form = obj
-      //   })
+    details ({ id }) {
+      this.$api
+        .post('', {
+          reqdata: {
+            id
+          }
+        })
+        .then((res) => {
+          this.open()
+          this.info = res.object
+        })
     },
     open () {
       this.dialogFormVisible = true

+ 5 - 5
src/views/candidateManage/mailManage.vue

@@ -4,7 +4,7 @@
  * @Autor: XuTongZhang
  * @Date: 2020-08-03 09:38:03
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-03 10:25:21
+ * @LastEditTime: 2020-08-03 10:50:07
 -->
 <template>
   <div class="mailManage">
@@ -72,11 +72,11 @@ export default {
         })
         .then((res) => {
           try {
-            this.form51 = res.list[0]
-            this.formzl = res.list[1]
-            this.form58 = res.list[2]
+            res.list.forEach((item, index) => {
+              this[index === 0 ? 'form51' : index === 1 ? 'formzl' : 'form58'] = item
+            })
           } catch (error) {
-
+            console.log(error)
           }
         })
     }

+ 3 - 3
src/views/candidateManage/resume.vue

@@ -4,11 +4,11 @@
  * @Autor: XuTongZhang
  * @Date: 2020-07-30 10:32:00
  * @LastEditors: XuTongZhang
- * @LastEditTime: 2020-08-03 10:34:57
+ * @LastEditTime: 2020-08-03 10:46:06
 -->
 <template>
     <div>
-        <el-dialog :visible.sync="dialogFormVisible" width="1500px" :before-close="close" :close-on-click-modal="false" :show-close="false">
+        <el-dialog :visible.sync="dialogFormVisible" width="1400px" :before-close="close" :close-on-click-modal="false">
             <div class="flex">
                 <div class="left">
                     <div class="top">
@@ -40,7 +40,7 @@
                     </div>
                 </div>
                 <div class="right">
-                    <iframe width="100%" height="100%" src="http://cdn.info666.com/yc1min/resume/resume.html"></iframe>
+                    <iframe width="100%" height="100%" :src="$img + '/yc1min/resume/resume.html'"></iframe>
                 </div>
             </div>
         </el-dialog>