Commit b0d648b3 authored by danfuman's avatar danfuman

修改

parent 761f7de9
...@@ -387,14 +387,14 @@ ...@@ -387,14 +387,14 @@
} }
} }
if(key === '2'){ if(key === '2'){
this.queryParams.maxStockPercent=''
// this.paramsData.maxStockPercent=''
if(name === this.cgblName){ if(name === this.cgblName){
this.cgblName='' this.cgblName=''
this.queryParams.minStockPercent=''
this.queryParams.maxStockPercent=''
}else { }else {
this.cgblName=name; this.cgblName=name;
}
this.queryParams.maxStockPercent=''
this.paramsData.maxStockPercent=''
if(this.cgblName){
if(name === '100%'){ if(name === '100%'){
this.queryParams.minStockPercent=1 this.queryParams.minStockPercent=1
} }
...@@ -411,14 +411,11 @@ ...@@ -411,14 +411,11 @@
this.queryParams.minStockPercent=0.01 this.queryParams.minStockPercent=0.01
this.queryParams.maxStockPercent=0.05 this.queryParams.maxStockPercent=0.05
} }
}else {
this.queryParams.minStockPercent=''
this.queryParams.maxStockPercent=''
} }
if(this.paramsData){ if(this.paramsData){
if(!this.paramsData.combineId){ // if(!this.paramsData.combineId){
this.paramsData=this.queryParams this.paramsData=this.queryParams
} // }
this.paramsData.pageNum =1 this.paramsData.pageNum =1
this.queryParams.pageNum =1 this.queryParams.pageNum =1
} }
......
...@@ -289,15 +289,16 @@ ...@@ -289,15 +289,16 @@
queryParams1: { queryParams1: {
combineId: this.customerId, combineId: this.customerId,
}, },
yearValue:'',
formData: [ formData: [
{ type: 4, fieldName: 'type', value: '', placeholder: '项目类型', options: [], uid: this.getUid()}, { type: 4, fieldName: 'type', value: '', placeholder: '项目类型', options: [], uid: this.getUid()},
{ type: 1, fieldName: 'cgbl', value: '', placeholder: '持股比例', options: [],width:110, uid: this.getUid()}, { type: 1, fieldName: 'cgbl', value: '', placeholder: '持股比例', options: [],width:110, uid: this.getUid()},
{ type: 1, fieldName: 'year', value: '2023年', placeholder: '选择年份', options: [],width:100, uid: this.getUid()}, { type: 1, fieldName: 'year', value:'', placeholder: '选择年份', options: [],width:100, uid: this.getUid()},
], ],
formData1: [ formData1: [
{ type: 4, fieldName: 'type', value: '', placeholder: '项目类型', options: [], uid: this.getUid()}, { type: 4, fieldName: 'type', value: '', placeholder: '项目类型', options: [], uid: this.getUid()},
{ type: 1, fieldName: 'cgbl', value: '', placeholder: '持股比例', options: [],width:110, uid: this.getUid()}, { type: 1, fieldName: 'cgbl', value: '', placeholder: '持股比例', options: [],width:110, uid: this.getUid()},
{ type: 1, fieldName: 'year', value: '2023年', placeholder: '选择年份', options: [],width:100, uid: this.getUid()}, { type: 1, fieldName: 'year', value: '', placeholder: '选择年份', options: [],width:100, uid: this.getUid()},
], ],
cgblList: [ cgblList: [
{name:'100%',value:'100%'}, {name:'100%',value:'100%'},
...@@ -313,9 +314,9 @@ ...@@ -313,9 +314,9 @@
peojectTopData:[], peojectTopData:[],
ndzbList:[], ndzbList:[],
yearOptions:[], yearOptions:[],
year1:'2023年', year1:'',
year2:'2023年', year2:'',
year3:'2023年', year3:'',
isSkeleton:true, isSkeleton:true,
isSkeleton2:true, isSkeleton2:true,
isSkeleton3:true, isSkeleton3:true,
...@@ -325,9 +326,10 @@ ...@@ -325,9 +326,10 @@
} }
}, },
created() { created() {
this.yearsData()
this.formData[1].options=this.cgblList; this.formData[1].options=this.cgblList;
this.formData1[1].options=this.cgblList; this.formData1[1].options=this.cgblList;
this.yearsData()
//项目类型 //项目类型
getDictType('project_type_new').then(result=>{ getDictType('project_type_new').then(result=>{
let data = result.code == 200 ? result.data:[]; let data = result.code == 200 ? result.data:[];
...@@ -380,8 +382,18 @@ ...@@ -380,8 +382,18 @@
}) })
} }
this.yearOptions=Years.reverse() this.yearOptions=Years.reverse()
this.formData[2].value=this.yearOptions[0].value;
this.formData1[2].value=this.yearOptions[0].value;
this.year1=this.yearOptions[0].value
this.year2=this.yearOptions[0].value
this.year3=this.yearOptions[0].value
this.formData[2].options=Years this.formData[2].options=Years
this.formData1[2].options=Years this.formData1[2].options=Years
this.$forceUpdate()
}, },
handleQuery(params){ handleQuery(params){
// this.isSkeleton = true // this.isSkeleton = true
...@@ -483,7 +495,6 @@ ...@@ -483,7 +495,6 @@
}) })
}, },
getPeojectTop(params){ getPeojectTop(params){
console.log(params)
let data = params || this.queryParams1; let data = params || this.queryParams1;
if(data.cgbl){ if(data.cgbl){
if(data.cgbl === '100%'){ if(data.cgbl === '100%'){
......
...@@ -213,7 +213,9 @@ export default { ...@@ -213,7 +213,9 @@ export default {
statisticObj: { statisticObj: {
handler(val) { handler(val) {
this.sideRoute = JSON.parse(JSON.stringify(this.defaultRoute)); this.sideRoute = JSON.parse(JSON.stringify(this.defaultRoute));
console.log(this.sideRoute)
let arr = JSON.parse(JSON.stringify(val)); let arr = JSON.parse(JSON.stringify(val));
console.log(arr,"||||||||")
for (var i in arr) { for (var i in arr) {
for (var j in arr[i]) { for (var j in arr[i]) {
switch (j) { switch (j) {
......
...@@ -60,12 +60,12 @@ ...@@ -60,12 +60,12 @@
</div> </div>
</div> </div>
</div> </div>
<div class="company-menu"> <!--<div class="company-menu">-->
<el-button v-if="companyInfo.claimStatus==0" @click="cancelClaimClick()" class="hasClaim"><i class="el-ico-claim" alt="已认领" title="已认领"></i> <!--<el-button v-if="companyInfo.claimStatus==0" @click="cancelClaimClick()" class="hasClaim"><i class="el-ico-claim" alt="已认领" title="已认领"></i>-->
已认领</el-button> <!--已认领</el-button>-->
<el-button @click="handleClaim" v-else class="claim" v-loading="claimLoading"><i class="el-ico-claim" alt="认领客户" title="认领客户"></i> <!--<el-button @click="handleClaim" v-else class="claim" v-loading="claimLoading"><i class="el-ico-claim" alt="认领客户" title="认领客户"></i>-->
认领客户</el-button> <!--认领客户</el-button>-->
</div> <!--</div>-->
<div class="company-info"> <div class="company-info">
<div class="info-item flex-box"> <div class="info-item flex-box">
......
...@@ -155,12 +155,12 @@ ...@@ -155,12 +155,12 @@
<p v-else class="renling-img-false"> <p v-else class="renling-img-false">
</p> </p>
<span v-if="scope.row.claimStatus==0" @click="cancelClaim(scope.row.companyName,scope.$index)" class="renling-hui"> <!--<span v-if="scope.row.claimStatus==0" @click="cancelClaim(scope.row.companyName,scope.$index)" class="renling-hui">-->
已认领 <!--已认领-->
</span> <!--</span>-->
<span v-else class="renling-hei"> <!--<span v-else class="renling-hei">-->
认领 <!--认领-->
</span> <!--</span>-->
</div> </div>
</div> </div>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div class="app-container enterprise_contatiner"> <div class="app-container enterprise_contatiner">
<div class="title_wrap"> <div class="title_wrap">
<div class="enterprise_title"> <div class="enterprise_title">
查企业 竞争对手查询
<img style="position: relative;top:-10px;width:80px;height:16px;" src="@/assets/images/owner/tip.png" alt=""> <!--<img style="position: relative;top:-10px;width:80px;height:16px;" src="@/assets/images/owner/tip.png" alt="">-->
</div> </div>
</div> </div>
...@@ -574,7 +574,7 @@ ...@@ -574,7 +574,7 @@
</div> </div>
</li> </li>
</ul> </ul>
<div class="pagination clearfix" v-show="total>0"> <div class="pagination clearfix" v-show="show_page && total>0">
<el-pagination background :page-size="limit" :current-page="page" @current-change="handleCurrentChange" layout="prev, pager, next" <el-pagination background :page-size="limit" :current-page="page" @current-change="handleCurrentChange" layout="prev, pager, next"
:total="total"> :total="total">
</el-pagination> </el-pagination>
...@@ -617,6 +617,8 @@ export default { ...@@ -617,6 +617,8 @@ export default {
encodeStr, encodeStr,
ename: '', ename: '',
isSkeleton: true, isSkeleton: true,
show_page:true,
MaxPage:500,
enameQueryTypeList: [ enameQueryTypeList: [
{ {
key: 'and', key: 'and',
...@@ -2725,7 +2727,16 @@ export default { ...@@ -2725,7 +2727,16 @@ export default {
}, },
handleCurrentChange(page) { handleCurrentChange(page) {
this.page = page; this.page = page;
this.search(page, this.limit); if(this.MaxPage<page){
this.show_page = false
this.$nextTick(() => {
this.page = 1
this.$message.warning(`对不起,最多只能访问${this.MaxPage}页`)
this.show_page = true
})
}else {
this.search(page, this.limit);
}
}, },
// 空白点击 // 空白点击
outClick(e) { outClick(e) {
......
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