Commit 2a992152 authored by danfuman's avatar danfuman

修改

parent d1543330
...@@ -8,3 +8,35 @@ export function certPage(data) { ...@@ -8,3 +8,35 @@ export function certPage(data) {
data: data data: data
}) })
} }
// 备案地
export function recordArea(data) {
return request({
url: '/enterpriseCert/recordArea',
method: 'post',
data: data
})
}
// 资质变更
export function certChangePage(data) {
return request({
url: '/enterpriseCert/certChangePage',
method: 'post',
data: data
})
}
// 备案网站
export function recordWebSite(data) {
return request({
url: '/enterpriseCert/recordWebSite',
method: 'post',
data: data
})
}
// 安许证
export function lice(data) {
return request({
url: '/enterpriseCert/lice',
method: 'post',
data: data
})
}
...@@ -37,13 +37,13 @@ ...@@ -37,13 +37,13 @@
<script> <script>
import skeleton from '../component/skeleton'; import skeleton from '../component/skeleton';
import { statistic } from '@/api/detail/party-a/index'; import { statistic } from '@/api/detail/party-a/index';
import { certPage } from '@/api/detail/party-a/qualification'; import { certPage,certChangePage,recordArea,recordWebSite,lice } from '@/api/detail/party-a/qualification';
export default { export default {
name: "qualification", name: "qualification",
components: { components: {
skeleton, skeleton,
}, },
props: ['companyId'], // props: ['companyId'],
data() { data() {
return { return {
tableData:[], tableData:[],
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
pageNum:1, pageNum:1,
pageSize:10 pageSize:10
}, },
companyId:'6034',
stateColor:'', stateColor:'',
tableDataTotal: null, tableDataTotal: null,
show_page:true, show_page:true,
...@@ -86,8 +87,23 @@ ...@@ -86,8 +87,23 @@
this.statisticList = arr; this.statisticList = arr;
this.stateColor=this.statisticList[0].qualificationParamNameCn; this.stateColor=this.statisticList[0].qualificationParamNameCn;
this.getCertPage() this.getCertPage()
if(this.stateColor === '资质变更'){
this.getCertChangePage()
}
if(this.stateColor === '备案地'){
this.getRecordArea()
}
if(this.stateColor === '备案网站'){
this.getRecordWebSite()
}
if(this.stateColor === '安许证'){
this.getLice()
}
} }
}, },
async getCertPage(){ async getCertPage(){
this.isSkeleton = true this.isSkeleton = true
let params = { let params = {
...@@ -101,9 +117,69 @@ ...@@ -101,9 +117,69 @@
this.isSkeleton = false this.isSkeleton = false
} }
}, },
//资质变更
async getCertChangePage(){
this.isSkeleton = true
let params = {
...this.queryParams,
companyId: this.companyId,
};
let res = await certChangePage(params);
if (res.code == 200) {
this.tableData=res.rows;
this.isSkeleton = false
}
},
async getRecordArea(){
this.isSkeleton = true
let params = {
...this.queryParams,
companyId: this.companyId,
};
let res = await recordArea(params);
if (res.code == 200) {
this.tableData=res.rows;
this.isSkeleton = false
}
},
async getLice(){
this.isSkeleton = true
let params = {
...this.queryParams,
companyId: this.companyId,
};
let res = await lice(params);
if (res.code == 200) {
this.tableData=res.rows;
this.isSkeleton = false
}
},
async getRecordWebSite(){
this.isSkeleton = true
let params = {
...this.queryParams,
companyId: this.companyId,
};
let res = await recordWebSite(params);
if (res.code == 200) {
this.tableData=res.rows;
this.isSkeleton = false
}
},
handleColor(value){ handleColor(value){
this.queryParams.pageNum=1
this.stateColor=value; this.stateColor=value;
this.getCertPage() if(this.stateColor === '资质变更'){
this.getCertChangePage()
}else if(this.stateColor === '备案地'){
this.getRecordArea()
}else if(this.stateColor === '备案网站'){
this.getRecordWebSite()
}else if(this.stateColor === '安许证'){
this.getLice()
}else {
this.getCertPage()
}
}, },
// 重置页数 // 重置页数
handleSizeChange(val) { handleSizeChange(val) {
......
...@@ -131,8 +131,8 @@ ...@@ -131,8 +131,8 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<!--<span style="cursor: pointer;color:#0081FF;" @click="handleDetail(scope.row)">查看详情</span>--> <!--<span style="cursor: pointer;color:#0081FF;" @click="handleDetail(scope.row)">查看详情</span>-->
<span v-if="scope.row.hasdetail" style="cursor: pointer;color:#0081FF;" @click="handleDetail(scope.row)">查看详情</span> <span v-if="scope.row.details" style="cursor: pointer;color:#0081FF;" @click="handleDetail(scope.row)">查看详情</span>
<span v-else="scope.row.hasdetail" @click="handleDetail(scope.row)">查看详情</span> <span v-else="scope.row.details" @click="handleDetail(scope.row)">查看详情</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment