Explorar el Código

云端工作字段补充

zweizhao hace 7 años
padre
commit
e94fd17632
Se han modificado 1 ficheros con 30 adiciones y 28 borrados
  1. 30 28
      src/module/main/components/cloud-job.vue

+ 30 - 28
src/module/main/components/cloud-job.vue

@@ -17,8 +17,7 @@
           </span>
           <span v-else>{{scope.row[prop]}}</span>
         </template>
-      </el-table-column>
-    </el-table>
+      </el-table-column>    </el-table>
     <el-pagination
       @current-change="getTableData"
       :current-page.sync="currentPage"
@@ -31,30 +30,30 @@
 
 <script>
 const tableHeaders = [
-  '用户ID',
-  '真实姓名',
-  '提现金额',
-  '到账金额',
-  '账户余额',
-  '到账账户',
-  '提现时间',
-  '到账时间',
-  '订单号',
-  '支付方式',
-  '状态'
+  '企业方',
+  '名',
+  '地点',
+  '简介',
+  '核定价格/预算区间',
+  '已完成月数',
+  '用户来源',
+  '审核人员',
+  '创建时间',
+  '状态',
+  '操作'
 ]
 const tableProps = [
-  'uid',
-  'real_name',
-  'amount',
-  'true_amount',
-  'after_amount',
-  'account',
-  'created_atShow',
-  'taken_atShow',
-  'order_no',
-  'channel',
-  'statusShow'
+  'nickname',
+  'title',
+  'address',
+  'description',
+  'salary',
+  'work_hours',
+  'remark_user_from',
+  'remark_checked_user',
+  'create_time',
+  'status',
+  'detail'
 ]
 
 export default {
@@ -75,6 +74,9 @@ export default {
     this.getTableData()
   },
   methods: {
+    // 适配状态到文字
+    getStatusShow(status) {
+    },
     // 点击重试
     async clickRetry(id) {
       const res = await this.$form('/api/admin/payment/redoDraw', { id })
@@ -95,9 +97,8 @@ export default {
     formatTableData(data) {
       return data.map(i => ({
         ...i,
-        statusShow: i.status === '1' ? '到账' : '失败',
-        created_atShow: new Date(Number(i.created_at) * 1000).toLocaleString(),
-        taken_atShow: new Date(Number(i.taken_at) * 1000).toLocaleString(),
+        nickname: i.companyUser.nickname,
+        detail: '详情',
       }))
     },
     // 获取列表数据
@@ -105,7 +106,8 @@ export default {
       const res = await this.$form('/api/admin/job/jobs', { page })
       console.log(res)
       const data = res.data
-      this.tableData = this.formatTableData(res.data.list)
+      const list = data.list
+      this.tableData = this.formatTableData(list)
       // console.log(this.tableData)
       this.totalCount = Number(data.total)
       this.totalPage = data.totalPage