Commit fa7b447e authored by Administrator's avatar Administrator

Merge remote-tracking branch 'origin/V20231129-中建一局二公司' into V20231129-中建一局二公司

parents 3637c20f f0cc39a8
import request from '@/utils/request'
export function zjyjAptitude (data) {
return request({
url: '/enterprise/zjyjAptitude',
method: 'post',
data
})
}
export function enterpriseAptitude (data) {
return request({
url: '/enterprise/zjyj/enterpriseAptitude',
method: 'post',
data
})
}
export function importTemplate (data) {
return request({
url: '/export/aptitude/importTemplate',
method: 'post',
responseType: "blob",
data
})
}
export function list (data) {
return request({
url: '/user/file/record/list',
method: 'get',
params:data
})
}
//资质标准
export function standard (data) {
return request({
url: '/enterprise/zjyj/cert/standard',
method: 'post',
data
})
}
This diff is collapsed.
<template> <template>
<div v-loading="loading" class="market-container"> <div v-loading="loading" class="advisoryOrgan-container">
<iframe id="companyIframe" class="market-iframe" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" width="100%" :src="src" /> <iframe id="companyIframe" class="advisoryOrgan-iframe" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" width="100%" :src="src" />
</div> </div>
</template> </template>
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
async iframeObserver() { async iframeObserver() {
try { try {
await this.$nextTick(); await this.$nextTick();
this.iframeIns = document.querySelector(".market-iframe"); this.iframeIns = document.querySelector(".advisoryOrgan-iframe");
} catch (error) { } catch (error) {
console.log(error); console.log(error);
} }
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
if (res.code == 200) { if (res.code == 200) {
this.timelongs = res.data.expire; this.timelongs = res.data.expire;
this.ak = res.data.accessToken; this.ak = res.data.accessToken;
this.src = `${this.domain}/search/market?ak=${this.ak}&initTime=${new Date().getTime()}&uid=${this.ak}&origin=${window.location.origin}`; this.src = `${this.domain}/search/advisoryOrgan?ak=${this.ak}&initTime=${new Date().getTime()}&uid=${this.ak}&origin=${window.location.origin}`;
this.refreshtoken(); this.refreshtoken();
} else { } else {
clearTimeout(this.tokentimer); clearTimeout(this.tokentimer);
...@@ -140,7 +140,7 @@ export default { ...@@ -140,7 +140,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.market-container { .advisoryOrgan-container {
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 16px 24px; padding: 16px 24px;
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
left: 0; left: 0;
top: 0; top: 0;
.market-iframe { .advisoryOrgan-iframe {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
......
...@@ -115,9 +115,9 @@ import Preference from "./preference"; //招标偏好 ...@@ -115,9 +115,9 @@ import Preference from "./preference"; //招标偏好
import Cooperate from "./cooperate"; //合作情况 import Cooperate from "./cooperate"; //合作情况
import DecisionMaking from "./decisionMaking"; //决策链条 import DecisionMaking from "./decisionMaking"; //决策链条
import Gjjl from "../../project/projectList/component/gjjl"; //跟进记录 import Gjjl from "../../project/projectList/component/gjjl"; //跟进记录
import { // import {
urbanInvestmentPage, // urbanInvestmentPage,
} from '@/api/detail/party-a/urbanLnvestment'; // } from '@/api/detail/party-a/urbanLnvestment';
export default { export default {
name: 'PartyA', name: 'PartyA',
components: { components: {
...@@ -290,14 +290,14 @@ export default { ...@@ -290,14 +290,14 @@ export default {
provinceIds: [this.companyInfo.provinceId], provinceIds: [this.companyInfo.provinceId],
cityIds: [this.companyInfo.cityId], cityIds: [this.companyInfo.cityId],
}; };
const result = await urbanInvestmentPage(data); // const result = await urbanInvestmentPage(data);
if (result.code == 200) { // if (result.code == 200) {
if (result.data.totalCount < 1) { // if (result.data.totalCount < 1) {
let arr = JSON.parse(JSON.stringify(this.$refs.sidebar.sideRoute)); // let arr = JSON.parse(JSON.stringify(this.$refs.sidebar.sideRoute));
arr[4].children[2].disabled = true; // arr[4].children[2].disabled = true;
this.$refs.sidebar.sideRoute = arr; // this.$refs.sidebar.sideRoute = arr;
} // }
} // }
if (this.companyInfo && this.companyInfo.companyName) { if (this.companyInfo && this.companyInfo.companyName) {
this.$nextTick(() => { this.$nextTick(() => {
document.getElementById('tagTitle').innerText = this.companyInfo.companyName; document.getElementById('tagTitle').innerText = this.companyInfo.companyName;
......
...@@ -13,10 +13,68 @@ ...@@ -13,10 +13,68 @@
<tables v-if="!isSkeleton" :indexFixed="true" :tableData="tableData" :forData="forData" :tableDataTotal="tableDataTotal" <tables v-if="!isSkeleton" :indexFixed="true" :tableData="tableData" :forData="forData" :tableDataTotal="tableDataTotal"
:queryParams="queryParams" @handle-current-change="handleCurrentChange"> :queryParams="queryParams" @handle-current-change="handleCurrentChange">
<!-- 冻结起止日期 -->
<template slot="freezeStartDate" slot-scope="scope">
<span v-if="scope.row.freezeStartDate || scope.row.freezeEndDate">
{{`${scope.row.freezeStartDate ? scope.row.freezeStartDate : "-"}至${scope.row.freezeEndDate ? scope.row.freezeEndDate : "-"}`}}
</span>
<span v-else>-</span>
</template>
<!-- 操作 -->
<template slot="operation-table" slot-scope="scope"> <template slot="operation-table" slot-scope="scope">
<span style="color: #0081FF;cursor: pointer;" @click="viewDetail(scope.row)">操作</span> <span style="color: #0081FF;cursor: pointer;" @click="viewDetail(scope.row)">操作</span>
</template> </template>
</tables> </tables>
<!-- 股权冻结详情 -->
<el-dialog title="股权冻结详情" :visible.sync="equityFreezingDetailDialog" width="720px" @close="dialogClose" class="equity-freezing-dialog-container"
custom-class="equity-freezing-dialog">
<div class="equity-freezing-dialog-inner">
<table>
<tr>
<td class="table-key">执行通知书文号</td>
<td colspan="3">{{detailTemp.number ? detailTemp.number : "-"}}</td>
</tr>
<tr>
<td class="table-key">执行裁定书文号</td>
<td>{{detailTemp.adjudicateNo ? detailTemp.adjudicateNo : "-"}}</td>
<td class="table-key">执行事项</td>
<td>{{detailTemp.assistItem ? detailTemp.assistItem : "-"}}</td>
</tr>
<tr>
<td class="table-key">被执行人</td>
<td>{{detailTemp.beExecutedPerson ? detailTemp.beExecutedPerson : "-"}}</td>
<td class="table-key">被执行人证件种类</td>
<td>{{detailTemp.assistIdentType ? detailTemp.assistIdentType : "-"}}</td>
</tr>
<tr>
<td class="table-key">被执行人证照号</td>
<td>{{detailTemp.assistIdentNo ? detailTemp.assistIdentNo : "-"}}</td>
<td class="table-key">冻结状态</td>
<td>{{detailTemp.status ? detailTemp.status : "-"}}</td>
</tr>
<tr>
<td class="table-key">被执行人持有股权、其他收益的数额</td>
<td>{{detailTemp.freezeAmount ? detailTemp.freezeAmount : "-"}}</td>
<td class="table-key">执行法院</td>
<td>{{detailTemp.executiveCourt ? detailTemp.executiveCourt : "-"}}</td>
</tr>
<tr>
<td class="table-key">冻结日期自</td>
<td>{{detailTemp.freezeStartDate ? detailTemp.freezeStartDate : "-"}}</td>
<td class="table-key">冻结日期至</td>
<td>{{detailTemp.freezeEndDate ? detailTemp.freezeEndDate : "-"}}</td>
</tr>
<tr>
<td class="table-key">冻结期限</td>
<td>{{detailTemp.freezeYearMonth ? detailTemp.freezeYearMonth : "-"}}</td>
<td class="table-key">公示日期</td>
<td>{{detailTemp.publicDate ? detailTemp.publicDate : "-"}}</td>
</tr>
</table>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -39,12 +97,12 @@ export default { ...@@ -39,12 +97,12 @@ export default {
type: "0" type: "0"
}, },
forData: [ forData: [
{ label: '执行通知书文号', prop: 'name', width: '164' }, { label: '执行通知书文号', prop: 'number', width: '164' },
{ label: '被执行人', prop: 'companyName', minWidth: '146' }, { label: '被执行人', prop: 'beExecutedPerson', minWidth: '146' },
{ label: '股权数额', prop: 'executionApplicant', width: '113' }, { label: '股权数额', prop: 'amount', width: '113' },
{ label: '执行法院', prop: 'court', minWidth: '146' }, { label: '执行法院', prop: 'executiveCourt', minWidth: '146' },
{ label: '状态', prop: 'releaseDate', width: '50' }, { label: '状态', prop: 'status', width: '50' },
{ label: '冻结起止日期', prop: 'source', width: '171' }, { label: '冻结起止日期', prop: 'freezeStartDate', width: '171', slot: true },
{ label: '公式时间', prop: 'source', width: '93' }, { label: '公式时间', prop: 'source', width: '93' },
{ label: '操作', prop: 'operation-table', width: '50', slot: true }, { label: '操作', prop: 'operation-table', width: '50', slot: true },
], ],
...@@ -56,8 +114,12 @@ export default { ...@@ -56,8 +114,12 @@ export default {
tableData: [], tableData: [],
tableDataTotal: 0, tableDataTotal: 0,
showList: [], showList: [],
isSkeleton: true, isSkeleton: false,
resetStatus: false resetStatus: false,
// 股权冻结详情
equityFreezingDetailDialog: false,
// 详情缓存
detailTemp: {}
}; };
}, },
//可访问data属性 //可访问data属性
...@@ -84,7 +146,7 @@ export default { ...@@ -84,7 +146,7 @@ export default {
}, },
async handleQuery(params) { async handleQuery(params) {
try { try {
let data = params ? params : this.queryParams; let data = params ? { ...params, type: parseInt(params.type) } : { ...this.queryParams, type: parseInt(this.queryParams.type) };
this.isSkeleton = true; this.isSkeleton = true;
const res = await getEquityFreezingApi(data); const res = await getEquityFreezingApi(data);
this.tableData = res.rows ? res.rows : []; this.tableData = res.rows ? res.rows : [];
...@@ -102,7 +164,11 @@ export default { ...@@ -102,7 +164,11 @@ export default {
}, },
// 查看详情 // 查看详情
viewDetail(row) { viewDetail(row) {
this.detailTemp = row;
this.equityFreezingDetailDialog = true;
},
dialogClose() {
this.detailTemp = {};
} }
}, },
} }
...@@ -159,5 +225,73 @@ export default { ...@@ -159,5 +225,73 @@ export default {
} }
} }
@import "@/assets/styles/search-common.scss"; @import "@/assets/styles/search-common.scss";
::v-deep .equity-freezing-dialog-container {
.equity-freezing-dialog {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 4px;
margin: 0px !important;
.el-dialog__header {
padding: 20px;
height: 56px;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
border-bottom: 1px solid #eeeeee;
.el-dialog__title {
color: #232323;
font-weight: bold;
line-height: 16px;
}
.el-dialog__headerbtn {
position: static;
width: 16px;
height: 16px;
}
}
.el-dialog__body {
padding: 24px 20px;
box-sizing: border-box;
.equity-freezing-dialog-inner {
width: 100%;
height: 100%;
& > table {
width: 100%;
border-spacing: 0;
border-collapse: collapse;
&,
th,
td {
border: 1px solid #e6eaf1;
box-sizing: border-box;
}
td {
padding: 9px 12px;
line-height: 22px;
color: #232323;
font-size: 12px;
}
.table-key {
width: 140px;
background: #f0f3fa;
color: rgba(35, 35, 35, 0.8);
}
}
}
}
}
}
} }
</style> </style>
...@@ -126,19 +126,21 @@ ...@@ -126,19 +126,21 @@
} }
rulesDetail({}).then(res => { rulesDetail({}).then(res => {
console.log(res) console.log(res)
let dimension=res.data.dimension.split(','); if(res.data){
this.queryParams={ let dimension=res.data.dimension.split(',');
pushFrequency:res.data.pushFrequency.toString(), this.queryParams={
receiveMode:res.data.receiveMode.toString(), pushFrequency:res.data.pushFrequency.toString(),
phones:res.data.phones receiveMode:res.data.receiveMode.toString(),
} phones:res.data.phones
this.startTime =res.data.timePeriodStart }
this.endTime = res.data.timePeriodEnd this.startTime =res.data.timePeriodStart
for(let item in dimension){ this.endTime = res.data.timePeriodEnd
if (this.arr.indexOf(dimension[item]) == -1) { for(let item in dimension){
this.gsfx.push(dimension[item]) if (this.arr.indexOf(dimension[item]) == -1) {
} else { this.gsfx.push(dimension[item])
this.sffx.push(dimension[item]) } else {
this.sffx.push(dimension[item])
}
} }
} }
}) })
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-tab-pane label="历史批量查询结果" name="third"></el-tab-pane> <el-tab-pane label="历史批量查询结果" name="third"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<SearchAptitude v-if="activeName === 'first'"></SearchAptitude> <SearchAptitude @changeActiveName="activeName = 'third'" v-if="activeName === 'first'"></SearchAptitude>
<AptitudeStandard v-if="activeName === 'second'"></AptitudeStandard> <AptitudeStandard v-if="activeName === 'second'"></AptitudeStandard>
<SearchResult v-if="activeName === 'third'"></SearchResult> <SearchResult v-if="activeName === 'third'"></SearchResult>
......
<template> <template>
<div> <div>
<div class="apt_stan_header"> <div class="apt_stan_header">
<span v-for="(item,index) in list" class="apt_stan_header_span" :class="activeIndex==index?'active_span':''" :key="index" @click="activeIndex=index">{{item}}</span> <span v-for="(item,index) in list" class="apt_stan_header_span" :class="activeIndex==index?'active_span':''" :key="index" @click="changeActiveIndex(index)">{{item.name}}</span>
</div> </div>
<div class="apt_stan_content"> <div class="apt_stan_content">
<div class="apt_stan_content_header"> <div class="apt_stan_content_header">
<el-select v-model="value" placeholder="请选择"> <el-select v-model="value" value-key="id" @change="selectChange" placeholder="请选择">
<el-option
v-for="item in list[activeIndex].list"
:key="item.id"
:label="item.name"
:value="item">
</el-option>
</el-select>
<el-select v-model="value1" @change="selectChange1" v-if="options.length>0" placeholder="请选择">
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.name"
:label="item.label" :label="item.name"
:value="item.value"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div style="padding:16px;"> <div style="padding:16px;">
<el-table :data="tableData" :header-cell-style="{ background:'#f0f3fa',color: 'rgba(35,35,35,0.8)'}" v-horizontal-scroll="'hover'" <el-table :data="info.list" :span-method="objectSpanMethod" :header-cell-style="{ background:'#f0f3fa',color: 'rgba(35,35,35,0.8)'}" v-horizontal-scroll="'hover'"
class="table-item1 fixed-table" border highlight-current-row> class="table-item1 fixed-table" border highlight-current-row>
<el-table-column label="资质名称" fixed > <el-table-column label="资质名称" fixed >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.province}} {{scope.row.name}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="等级" width="274"> <el-table-column label="等级" width="274">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.biddingCount||"--"}} {{scope.row.level||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="经营范围" > <el-table-column label="经营范围" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.landInfoCount||"--"}} {{scope.row.contractScope||"--"}}
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="apt_stan_content_text_box">·建筑工程是指各类结构形式的民用建筑工程、工业建筑工程、构筑物工程以及相配套的道路、通信、管网管线等设施工程。工程内容包括地基与基础、主体结构、建筑屋面、装修装饰、建筑幕墙、附建人防工程以及给水排水及供暖、通风与空调、电气、消防、智能化、防雷等配套工程;</div> <div class="apt_stan_content_text_box" v-html="info.remark||'--'"></div>
</div> </div>
</div> </div>
...@@ -44,33 +52,75 @@ ...@@ -44,33 +52,75 @@
</template> </template>
<script> <script>
import list from "@/assets/json/certs.json"
import {standard} from '@/api/supplier/assistant.js';
export default { export default {
data(){ data(){
return{ return{
tableData:[], list,
activeIndex:0, activeIndex:0,
list:['建筑业企业资质','工程监理','工程设计','工程勘察','工程造价咨询'], options: [],
options: [ value: '',
{ value1: '',
value: '选项1', info:"",
label: '黄金糕'
}, {
value: '选项2',
label: '双皮奶'
}, {
value: '选项3',
label: '蚵仔煎'
}, {
value: '选项4',
label: '龙须面'
}, {
value: '选项5',
label: '北京烤鸭'
}
],
value: ''
} }
}, },
methods:{
flitterData(arr) {
let spanOneArr = [];
let concatOne = 0;
arr.forEach((item, index) => {
if (index === 0) {
spanOneArr.push(1);
} else {
if (item.name === arr[index - 1].name) {
spanOneArr[concatOne] += 1;
spanOneArr.push(0);
} else {
spanOneArr.push(1);
concatOne = index;
}
}
});
return {
one: spanOneArr,
};
},
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) {
const _row = this.flitterData(this.info.list).one[rowIndex];
const _col = _row > 0 ? 1 : 0;
return {
rowspan: _row,
colspan: _col,
};
}
},
selectChange(){
if(this.value.list&&this.value.list.length>0){
this.options = this.value.list;
this.value1 = ""
}else{
this.options = []
standard({id:this.value.id}).then(res=>{
this.info = res.data
})
}
},
selectChange1(){
standard({id:this.value1}).then(res=>{
this.info = res.data
})
},
changeActiveIndex(index){
this.activeIndex=index;
this.value = '';
this.options = []
},
}
} }
</script> </script>
......
<template> <template>
<el-dialog title="批量查资质" custom-class="batch_import_dialog" :visible.sync="visible"> <el-dialog title="批量查资质" custom-class="batch_import_dialog" :visible.sync="visible">
<div class="upload" v-if="addfile==false"> <div class="upload" >
<div class="up_title">导入Excel文件,高效查询或导出企业信息;查询成功后可使用筛选项二次筛选</div> <div class="up_title">导入Excel文件,高效查询或导出企业信息;查询成功后可使用筛选项二次筛选</div>
<div> <div>
<div class="step_box" v-for="(item,index) in list" :key="index"> <div class="step_box" v-for="(item,index) in list" :key="index">
...@@ -34,28 +34,14 @@ ...@@ -34,28 +34,14 @@
<div class="btn btn_default fr" @click="importCancel">取消</div> <div class="btn btn_default fr" @click="importCancel">取消</div>
</div> </div>
</div> </div>
<div class="success" v-if="addfile==true">
<div v-if="addsuccess==false">
<img class="img" src="@/assets/images/project/clock.png">
<div class="p1">查询客户中...</div>
<div class="p2">请耐心等待,过程大概30秒</div>
</div>
<div v-if="addsuccess == true">
<div class="p3">
<img src="@/assets/images/project/success.png">查询成功
</div>
<div class="p2">{{messages}}</div>
<div class="btns">
<div class="btn btn_primary h32" @click="getmsg">查看</div>
</div>
</div>
</div>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
import "@/assets/styles/project.scss" import "@/assets/styles/project.scss"
import {importTemplate} from '@/api/supplier/assistant.js';
import {importData} from '@/api/custom/custom' import {importData} from '@/api/custom/custom'
export default { export default {
name: 'batchImport', name: 'batchImport',
...@@ -67,7 +53,6 @@ ...@@ -67,7 +53,6 @@
list:['下载模版','按要求在模板内填写企业全称名录','上传文件','查询结果'], list:['下载模版','按要求在模板内填写企业全称名录','上传文件','查询结果'],
visible:false, visible:false,
isUpload:false,//有上传的文件 isUpload:false,//有上传的文件
addfile:false,//已上传文件
addsuccess:false,//已成功加入数据 addsuccess:false,//已成功加入数据
//批量导入 //批量导入
action:"", action:"",
...@@ -76,19 +61,11 @@ ...@@ -76,19 +61,11 @@
Authorization: "Bearer " + getToken(), Authorization: "Bearer " + getToken(),
}, },
downloadhref:'',//样例地址 downloadhref:'',//样例地址
successCount:0,//成功条数
messages:'',
} }
}, },
created(){ created(){
if(this.importtype == 'project'){//项目管理 this.downloadhref = importTemplate
this.downloadhref = '/file/projectTemplate.xlsx' this.action = process.env.VUE_APP_BASE_API + '/export/aptitude/file'
this.action = process.env.VUE_APP_BASE_API + '/business/info/upload'
}
if(this.importtype == 'custom'){//客户管理
this.downloadhref = '/file/Template.xlsx'
this.action = process.env.VUE_APP_BASE_API + "/customer/importData"
}
}, },
methods:{ methods:{
getmsg(){ getmsg(){
...@@ -122,17 +99,10 @@ ...@@ -122,17 +99,10 @@
}, },
onSuccess(res, file, fileList) { onSuccess(res, file, fileList) {
if (res.code == 200) { if (res.code == 200) {
this.successCount = res.successCount this.addsuccess = true;
this.$emit("loadingFn",true);
if(this.importtype == 'project'){//项目管理 this.$refs["upload"].clearFiles();
this.messages = res.msg this.isUpload = false;
}
if(this.importtype == 'custom'){//客户管理
let num = res.data?res.data.length:0
let str = '成功导入客户条数'+res.successCount+',客户去重条数'+ num
this.messages = str
}
this.addsuccess = true
}else { }else {
this.importCancel() this.importCancel()
this.$message.error({ message: res.msg, showClose: true }) this.$message.error({ message: res.msg, showClose: true })
...@@ -140,24 +110,25 @@ ...@@ -140,24 +110,25 @@
}, },
downloadClick() { downloadClick() {
let a = document.createElement("a"); importTemplate().then(res=>{
a.setAttribute("href", this.downloadhref); const link = document.createElement('a')
a.setAttribute("download", "批量导入模版.xlsx"); const blob = new Blob([res])
document.body.appendChild(a); link.href = window.URL.createObjectURL(blob)
a.click(); link.download = '批量导入模版.xlsx'
a.remove(); link.click()
})
}, },
// 批量导入 // 批量导入
importConfirmClick() { importConfirmClick() {
if (this.fileList.length > 0) { if (this.fileList.length > 0) {
this.$refs["upload"].submit(); this.$refs["upload"].submit();
this.addfile = true this.visible = false
this.$emit("loadingFn")
} else { } else {
this.$message("请先选择文件"); this.$message("请先选择文件");
} }
}, },
importCancel(){ importCancel(){
this.addfile = false
this.isUpload = false this.isUpload = false
this.addsuccess = false this.addsuccess = false
this.fileList = [] this.fileList = []
......
...@@ -9,41 +9,61 @@ ...@@ -9,41 +9,61 @@
</el-table-column> </el-table-column>
<el-table-column label="表格名称" > <el-table-column label="表格名称" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.biddingCount||"--"}} {{scope.row.fileName||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="查询时间" width="189"> <el-table-column label="查询时间" width="189">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.landInfoCount||"--"}} {{scope.row.createTime||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="154"> <el-table-column label="操作" width="154">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.bondBalance||"--"}} <a class="download_span" :href="scope.row.url" v-if="scope.row.url">下载</a>
<span v-else >--</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination background :current-page="pageNum" @current-change="handleCurrentChange" layout="prev, pager, next" <el-pagination background v-if="total>0" :current-page="pageNum" @current-change="handleCurrentChange" layout="prev, pager, next"
:total="total"> :total="total">
</el-pagination> </el-pagination>
</div> </div>
</template> </template>
<script> <script>
import {list} from '@/api/supplier/assistant.js';
export default { export default {
data(){ data(){
return{ return{
tableData:[], tableData:[],
total: 0, total: 0,
pageNum: 1, pageNum: 1,
pageSize:10,
} }
}, },
created(){
this.getList()
},
methods:{ methods:{
handleCurrentChange(pageNum) { handleCurrentChange(pageNum) {
this.pageNum = pageNum; this.pageNum = pageNum;
this.getList()
},
getList(){
let params = {
pageNum:this.pageNum,
pageSize:this.pageSize,
}
list(params).then(res=>{
if(res.code==200){
this.tableData = res.rows
this.total = res.total
}
})
}, },
} }
} }
...@@ -60,6 +80,10 @@ export default { ...@@ -60,6 +80,10 @@ export default {
margin-right: -5px; margin-right: -5px;
margin-top: 16px; margin-top: 16px;
} }
.download_span{
color: #0081FF;
cursor: pointer;
}
} }
</style> </style>
\ No newline at end of file
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