|
|
@@ -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}`)
|