From c4355a18506cf0e8f63469a8a38f2e8d5e67d6f9 Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期六, 09 九月 2023 14:53:39 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/components/view/technical.vue |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/src/components/view/technical.vue b/src/components/view/technical.vue
index 8ec3eb3..5b5a65b 100644
--- a/src/components/view/technical.vue
+++ b/src/components/view/technical.vue
@@ -74,20 +74,22 @@
             label="浜よ揣鏃ユ湡">
           </el-table-column>
           <el-table-column
-            prop="type"
             label="鐘舵��"
             width="85"
             >
             <template slot-scope="scope">
-              {{scope.state==0?'寰呯紪鍒�':'宸茬紪鍒�'}}
+              <span  :style="{'color': scope.row.type==0 ? 'red':'green'}">
+                {{scope.row.type==0?'寰呯紪鍒�':'宸茬紪鍒�'}}
+              </span>
             </template>
           </el-table-column>
           <el-table-column
               label="鎿嶄綔"
               width="194">
               <template slot-scope="scope">
-                <el-button type="text" size="small" @click="showDetails(scope.row)">鏌ョ湅璇︽儏</el-button>
-                <el-button type="text" size="small">缂栬緫闄勪欢</el-button>
+                <!-- <el-button type="text" size="small" @click="showDetails(scope.row)">鏌ョ湅璇︽儏</el-button>
+                <el-button type="text" size="small">缂栬緫闄勪欢</el-button> -->
+                <el-button type="text" size="small" @click="authorizedstrength(scope.row)">缂栧埗</el-button>
               </template>
             </el-table-column>
       </el-table>
@@ -222,6 +224,7 @@
         id:'',
         date:''
        },
+       compiledata:{},
        technicalTable: [],
        showDetail: false,
        selectedRow: {},
@@ -236,6 +239,22 @@
     this.getTechnicalTableData()
   },
   methods: {
+      authorizedstrength(row) {
+        this.compiledata = row
+        this.compile()
+        // let ccc = row
+        // console.log(row);
+      },
+      //缂栧埗
+      compile() {
+        console.log();
+        this.$axios.post(this.$api.url.compile,{
+              id:this.compiledata.id
+        }).then( res =>{
+        this.$message.success('缂栧埗瀹屾垚')
+      })
+        this.getTechnicalTableData()
+      },
       async showDetails(row){
         this.showDetail = true
         const res = await this.$axios.get(this.$api.url.selectOrderById,{params:{id:row.id}})

--
Gitblit v1.9.3