From d2d8982a787bf7267612c19983798d7aaa0c37fe Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期三, 14 六月 2023 16:22:37 +0800
Subject: [PATCH] 新增页面和配置,对接口

---
 src/views/Admin/history.vue |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/views/Admin/history.vue b/src/views/Admin/history.vue
index 5b64b67..1e91970 100644
--- a/src/views/Admin/history.vue
+++ b/src/views/Admin/history.vue
@@ -63,23 +63,19 @@
           </a-tag>
         </template>
         <template #operation="text, record, index">
-          <a-button type="primary">叫应列表</a-button>
+          <a-button type="primary" @click="openList(record.id)">叫应列表</a-button>
           <a-button type="link" @click="openMod('view',record)">查看详情</a-button>
         </template>
       </a-table>
       <msg-edit-mod ref="msgEdit" @refresh="getData"></msg-edit-mod>
+      <call-list-mod ref="callList" @refresh="getData"></call-list-mod>
     </div>
-    <!-- 对话框 -->
-    <a-modal title="查看叫应详情"
-             okText="确认"
-             cancelText="关闭"
-             :visible="visible" :confirm-loading="confirmLoading" @ok="handleOk" @cancel="handleOk">
-    </a-modal>
   </div>
 </template>
 <script>
 import {getHistoryRecord, getMsgRecord, getPublishRecord} from "@/api/list";
 import msgEditMod from "@/views/Admin/components/msgEditMod";
+import callListMod from "@/views/Admin/components/callListMod";
 import {getReviewDetailByWorker} from "@/api/review";
 const columns = [{
   title: '序号',
@@ -149,7 +145,7 @@
 ];
 export default {
   name: 'release',
-  components: { msgEditMod },
+  components: { msgEditMod, callListMod },
   data() {
     return {
       search:{
@@ -207,6 +203,11 @@
       }
     },
 
+    openList(id){
+      const t = this
+      t.$refs.callList.openMod(id)
+    },
+
     openMod(type,data){
       const t = this
       getReviewDetailByWorker(data.id).then(res=>{

--
Gitblit v1.9.2