Browse Source

云端结算完成

zweizhao 7 years ago
parent
commit
b7b9729186
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/module/main/components/cloud_balance.vue

+ 6 - 1
src/module/main/components/cloud_balance.vue

@@ -11,7 +11,8 @@
           :prop="prop"
           :label="tableHeaders[index]">
           <template slot-scope="scope">
-            <el-button type="text" v-if="prop === 'job_id'" @click="clickJobID(scope.row[prop])">{{scope.row[prop]}}</el-button>
+            <el-button type="text" v-if="prop === 'id'" @click="clickOrder(scope.row)">{{scope.row[prop]}}</el-button>
+            <el-button type="text" v-else-if="prop === 'job_id'" @click="clickJobID(scope.row[prop])">{{scope.row[prop]}}</el-button>
             <el-button type="text" v-else-if="prop === 'company'" @click="clickCompany(scope.row['uid'])">{{scope.row[prop]}}</el-button>
             <el-button type="text" v-else-if="prop === 'dev_realname'" @click="clickDev(scope.row['developer_uid'])">{{scope.row[prop]}}</el-button>
             <span v-else>{{scope.row[prop]}}</span>
@@ -87,6 +88,10 @@ export default {
     this.getTableData()
   },
   methods: {
+    // 点击账单
+    clickOrder(i) {
+      window.open(`/rooter/wagedetails?job_id=${i.job_id}&period_id=${i.id}`)
+    },
     // 点击开发者
     clickDev(uid) {
       window.open(`/rooter/user/${uid}`)