From ce57a3d25cda427d90e590838c491dd387887b11 Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123456 <zxx19900626>
Date: 星期三, 20 四月 2022 08:18:14 +0800
Subject: [PATCH] 对接口
---
src/pages/components/jiuyeQingkuang/chengzhenXinzengJiuye.vue | 219 ++++++++++++++++++++++++++++++++++++-------
src/pages/show/jiuyeAndChuangye/jiuyeChildren/jiuyeQingkuang.vue | 58 +++++++++--
src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue | 2
src/api/jiuyeAndChuangye.js | 5 +
4 files changed, 234 insertions(+), 50 deletions(-)
diff --git a/src/api/jiuyeAndChuangye.js b/src/api/jiuyeAndChuangye.js
index 8586563..fae3047 100644
--- a/src/api/jiuyeAndChuangye.js
+++ b/src/api/jiuyeAndChuangye.js
@@ -19,3 +19,8 @@
export const getParkTable = (params) => {
return postRequest('/ybg/webservice/app/employment/getParkTable.do',params)
}
+
+//6.鏌ヨ灏变笟鎯呭喌缁熻琛ㄦ暟鎹帴鍙�
+export const getEmployTable = (params) => {
+ return postRequest('/ybg/webservice/app/employment/getEmployTable.do', params)
+}
diff --git a/src/pages/components/jiuyeQingkuang/chengzhenXinzengJiuye.vue b/src/pages/components/jiuyeQingkuang/chengzhenXinzengJiuye.vue
index 14145db..69634c8 100644
--- a/src/pages/components/jiuyeQingkuang/chengzhenXinzengJiuye.vue
+++ b/src/pages/components/jiuyeQingkuang/chengzhenXinzengJiuye.vue
@@ -6,102 +6,210 @@
:header-cell-style="handleheader"
style="width: 100%">
<el-table-column
- prop="shiqu"
+ prop="area"
label="鍘匡紙甯傘�佸尯锛�"
align="center"
width="220">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <div class="cell-content-box">{{scope.row.area}}</div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="name"
+ width="280"
+ prop="january"
label="1鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <div class="cell-content-box">{{scope.row.january.val}}</div>
+ <div class="paiming-box red-sanjiao"
+ :class="scope.row.january.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.january.order != 0">
+ <div>{{scope.row.january.order}}</div>
+ </div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="address"
+ width="280"
+ prop="february"
label="2鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <div>{{scope.row.february.val}}</div>
+ <div class="paiming-box"
+ :class="scope.row.february.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.february.order != 0">
+ <div>{{scope.row.february.order}}</div>
+ </div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="name"
+ width="280"
+ prop="march"
label="3鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <div>{{scope.row.march.val}}</div>
+ <div class="paiming-box"
+ :class="scope.row.march.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.march.order != 0">{{scope.row.march.order}}</div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="address"
+ width="280"
+ prop="april"
label="4鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <span>{{scope.row.april.val}}</span>
+ <div class="paiming-box"
+ :class="scope.row.april.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.april.order != 0">{{scope.row.april.order}}</div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="name"
+ width="280"
+ prop="may"
label="5鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <span>{{scope.row.may.val}}</span>
+ <div class="paiming-box"
+ :class="scope.row.may.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.may.order != 0">{{scope.row.may.order}}</div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="address"
+ width="280"
+ prop="june"
label="6鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <span>{{scope.row.june.val}}</span>
+ <div class="paiming-box"
+ :class="scope.row.june.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.june.order != 0">{{scope.row.june.order}}</div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="name"
+ width="280"
+ prop="july"
label="7鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <span>{{scope.row.july.val}}</span>
+ <div class="paiming-box"
+ :class="scope.row.july.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.july.order != 0">{{scope.row.july.order}}</div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="address"
+ width="280"
+ prop="august"
label="8鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <span>{{scope.row.august.val}}</span>
+ <div class="paiming-box"
+ :class="scope.row.august.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.august.order != 0">{{scope.row.august.order}}</div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="name"
+ width="280"
+ prop="september"
label="9鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <span>{{scope.row.september.val}}</span>
+ <div class="paiming-box"
+ :class="scope.row.september.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.september.order != 0">{{scope.row.september.order}}</div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="address"
+ width="280"
+ prop="october"
label="10鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <span>{{scope.row.october.val}}</span>
+ <div class="paiming-box"
+ :class="scope.row.october.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.october.order != 0">{{scope.row.october.order}}</div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="name"
+ width="280"
+ prop="november"
label="11鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <span>{{scope.row.november.val}}</span>
+ <div class="paiming-box"
+ :class="scope.row.november.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.november.order != 0">{{scope.row.november.order}}</div>
+ </div>
+ </template>
</el-table-column>
<el-table-column
- prop="address"
+ width="280"
+ prop="december"
label="12鏈�"
align="center">
+ <template slot-scope="scope">
+ <div class="sanjiao-box">
+ <span>{{scope.row.december.val}}</span>
+ <div class="paiming-box"
+ :class="scope.row.december.order > 0 ? 'red-sanjiao' : 'green-sanjiao'"
+ v-if="scope.row.december.order != 0">{{scope.row.december.order}}</div>
+ </div>
+ </template>
</el-table-column>
</el-table>
</div>
</template>
<script>
+
export default {
name: "chengzhenXinzengJiuye",
+ props: {
+ tableData: {
+ type: Array,
+ default: () => {
+ return []
+ }
+ }
+ },
data() {
return {
- tableData: [{
- shiqu:'鍏ㄥ競',
- date: '233322',
- name: '4432',
- address: '122'
- }, {
- shiqu:'闀垮畨鍖�',
- date: '23322',
- name: '12222',
- address: '4445'
- }, {
- shiqu:'妗ヨタ鍖�',
- date: '4432',
- name: '455',
- address: '5999'
- }, {
- shiqu:'鏂板崕鍖�',
- date: '5632',
- name: '145',
- address: '624'
- }]
+
}
+ },
+ mounted() {
},
methods: {
handleheader(data) {
@@ -122,7 +230,6 @@
background-color:$color-blue;
}
.el-table .el-table__body-wrapper tr{
- height: 0.265625rem /* 68/256 */;
}
.el-table tr:nth-child(odd){
background-color: #CEF2FF;
@@ -143,7 +250,9 @@
font-size: $fontSize-28;
color: $color-darkGrey;
font-weight: 300;
- line-height: 1;
+ line-height: 0.265625rem /* 68/256 */;
+ height: 0.265625rem /* 68/256 */;
+ padding-left: 0;
}
.el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf{
border-bottom:1Px solid $color-grey; /*no*/
@@ -151,8 +260,42 @@
.el-table--border .el-table__cell, .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed{
border-right:1Px solid $color-grey; /*no*/
}
+ .el-table .el-table__cell{
+ padding:0;
+ }
}
</style>
-<style scoped>
-
+<style lang="scss" scoped>
+ @import "../../../assets/css/base";
+ .sanjiao-box{
+ line-height: 0.265625rem /* 68/256 */;
+ position: relative;
+ .paiming-box{
+ display: block;
+ color: $color-white;
+ position: absolute;
+ width: 0;
+ height: 0;
+ top: 0;
+ left: 0;
+ div{
+ position: relative;
+ left: 0px;
+ top: -0.3125rem /* -80/256 */;
+ color: #fff;
+ width: 0.1328125rem /* 34/256 */;
+ }
+ }
+ .red-sanjiao{
+ border-top: 0.265625rem /* 68/256 */ solid #FF0000;
+ border-right: 0.265625rem /* 68/256 */ solid transparent;
+ }
+ .green-sanjiao{
+ border-top: 0.265625rem /* 68/256 */ solid #3ABF21;
+ border-right: 0.265625rem /* 68/256 */ solid transparent;
+ }
+ .content{
+ /*line-height: 0.265625rem !* 68/256 *!;*/
+ }
+ }
</style>
diff --git a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue
index c0214dd..4ad47eb 100644
--- a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue
+++ b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue
@@ -180,7 +180,7 @@
},
mounted() {
this.getLoanTable()
- this.getParkTable()
+ this.getParkTable()
},
methods: {
getLoanTable() {
diff --git a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/jiuyeQingkuang.vue b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/jiuyeQingkuang.vue
index 7a6dc2a..3413fe8 100644
--- a/src/pages/show/jiuyeAndChuangye/jiuyeChildren/jiuyeQingkuang.vue
+++ b/src/pages/show/jiuyeAndChuangye/jiuyeChildren/jiuyeQingkuang.vue
@@ -1,24 +1,28 @@
<template>
<div class="jiuyeQingkuang-wrap">
<h1>鍚勫幙锛堝競銆佸尯锛�2021骞村氨涓氭儏鍐电粺璁¤〃</h1>
- <el-tabs v-model="activeName">
- <el-tab-pane label="鍩庨晣鏂板灏变笟" name="first">
- <chengzhenXinzengJiuye></chengzhenXinzengJiuye>
+ <el-tabs v-model="activeName" @tab-click="tabHandleClick">
+ <el-tab-pane
+ v-for="(item,index) in tabMenuList"
+ :label="item.name"
+ :name="item.id + ''">
+ <chengzhenXinzengJiuye ref="chengzhenXinzengJiuye" :tableData="tableData"></chengzhenXinzengJiuye>
</el-tab-pane>
- <el-tab-pane label="澶变笟鍐嶅氨涓�" name="second">
- <chengzhenXinzengJiuye></chengzhenXinzengJiuye>
+ <!--<el-tab-pane label="澶变笟鍐嶅氨涓�" name="2">
+ <chengzhenXinzengJiuye ref="chengzhenXinzengJiuye"></chengzhenXinzengJiuye>
</el-tab-pane>
- <el-tab-pane label="灏变笟鍥伴毦浜哄憳鍐嶅氨涓�" name="third">
- <chengzhenXinzengJiuye></chengzhenXinzengJiuye>
+ <el-tab-pane label="灏变笟鍥伴毦浜哄憳鍐嶅氨涓�" name="3">
+ <chengzhenXinzengJiuye ref="chengzhenXinzengJiuye"></chengzhenXinzengJiuye>
</el-tab-pane>
- <el-tab-pane label="鐧昏澶变笟鐜�" name="fourth">
- <chengzhenXinzengJiuye></chengzhenXinzengJiuye>
- </el-tab-pane>
+ <el-tab-pane label="鐧昏澶变笟鐜�" name="4">
+ <chengzhenXinzengJiuye ref="chengzhenXinzengJiuye"></chengzhenXinzengJiuye>
+ </el-tab-pane>-->
</el-tabs>
</div>
</template>
<script>
+ import {getEmployTable} from '@/api/jiuyeAndChuangye'
import chengzhenXinzengJiuye from "../../../components/jiuyeQingkuang/chengzhenXinzengJiuye";
export default {
name: "jiuyeQingkuang",
@@ -27,7 +31,39 @@
},
data() {
return {
- activeName: 'first'
+ activeName: '1',
+ type: '1',
+ tableData: [],
+ //'鍩庨晣鏂板灏变笟','澶变笟鍐嶅氨涓�','灏变笟鍥伴毦浜哄憳鍐嶅氨涓�','鐧昏澶变笟鐜�'
+ tabMenuList: [{
+ name: '鍩庨晣鏂板灏变笟',
+ id: 1
+ },{
+ name: '澶变笟鍐嶅氨涓�',
+ id: 2
+ },{
+ name: '灏变笟鍥伴毦浜哄憳鍐嶅氨涓�',
+ id: 3
+ },{
+ name: '鐧昏澶变笟鐜�',
+ id: 4
+ }]
+ }
+ },
+ mounted() {
+ this.getEmployTable()
+ },
+ methods: {
+ getEmployTable() {
+ getEmployTable({type: this.type}).then(res => {
+ if(res.code == 1000) {
+ this.tableData = res.list
+ }
+ })
+ },
+ tabHandleClick(tab, event) {
+ this.type = tab.name
+ this.getEmployTable()
}
}
}
--
Gitblit v1.9.1