Commit 40304810 authored by yht15023815643's avatar yht15023815643

修改

parent 52efbe38
...@@ -1210,7 +1210,7 @@ ...@@ -1210,7 +1210,7 @@
} }
.el-table__fixed { .el-table__fixed {
height: auto !important; // height: auto !important;
bottom: 17px !important; bottom: 17px !important;
//box-shadow: 4px 0 9px -5px rgba(0, 0, 0, 0.12); //box-shadow: 4px 0 9px -5px rgba(0, 0, 0, 0.12);
//-webkit-box-shadow: 4px 0 9px -5px rgba(0, 0, 0, 0.12); //-webkit-box-shadow: 4px 0 9px -5px rgba(0, 0, 0, 0.12);
......
...@@ -280,6 +280,7 @@ export default { ...@@ -280,6 +280,7 @@ export default {
} }
} }
} }
this.defaultRoute = JSON.parse(JSON.stringify(this.sideRoute))
} }
} }
}, },
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</div> </div>
</div> </div>
<div class="company-menu"> <div class="company-menu">
<el-button v-if="companyInfo.claimStatus==1" @click="cancelClaimClick()" class="hasClaim"><i class="el-ico-claim" alt="已认领" title="已认领"></i> 已认领</el-button> <el-button v-if="companyInfo.claimStatus==0" @click="cancelClaimClick()" class="hasClaim"><i class="el-ico-claim" alt="已认领" title="已认领"></i> 已认领</el-button>
<el-button @click="handleClaim" v-else class="claim" v-loading="claimLoading"><i class="el-ico-claim" alt="认领客户" title="认领客户"></i> 认领客户</el-button> <el-button @click="handleClaim" v-else class="claim" v-loading="claimLoading"><i class="el-ico-claim" alt="认领客户" title="认领客户"></i> 认领客户</el-button>
</div> </div>
...@@ -231,7 +231,7 @@ export default { ...@@ -231,7 +231,7 @@ export default {
this.claimLoading = false this.claimLoading = false
if(res.code==200){ if(res.code==200){
this.dialogVisible=true this.dialogVisible=true
this.companyInfo.claimStatus = 1 this.companyInfo.claimStatus = 0
this.customerId = res.data.customerId this.customerId = res.data.customerId
} }
}else{ }else{
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
let res = await api.historyClaim(this.companyInfo.companyName) let res = await api.historyClaim(this.companyInfo.companyName)
if(res.code==200){ if(res.code==200){
this.dialogVisible2 = false; this.dialogVisible2 = false;
this.companyInfo.claimStatus = 1 this.companyInfo.claimStatus = 0
}else{ }else{
this.$message.error(res.msg) this.$message.error(res.msg)
} }
...@@ -261,7 +261,7 @@ export default { ...@@ -261,7 +261,7 @@ export default {
let res = await api.cancelClaim(this.companyInfo.companyName) let res = await api.cancelClaim(this.companyInfo.companyName)
if(res.code==200){ if(res.code==200){
this.dialogVisible1 = false; this.dialogVisible1 = false;
this.companyInfo.claimStatus = 0 this.companyInfo.claimStatus = 1
}else{ }else{
this.$message.error(res.msg) this.$message.error(res.msg)
} }
......
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
<skeleton style="margin-left:16px;" v-if="isSkeleton"></skeleton> <skeleton style="margin-left:16px;" v-if="isSkeleton"></skeleton>
<div class=" table-item-jf" v-if="!isSkeleton&&tableData.length>0"> <div class=" table-item-jf" v-if="!isSkeleton&&tableData.length>0">
<el-table :data="tableData" :header-cell-style="{ background:'#f0f3fa',color: 'rgba(35,35,35,0.8)'}" class="table-item1 fixed-table" border highlight-current-row> <el-table :data="tableData" :header-cell-style="{ background:'#f0f3fa',color: 'rgba(35,35,35,0.8)'}" max-height="640" class="table-item1 fixed-table" border highlight-current-row>
<el-table-column type="index" label="序号" fixed width="60"> <el-table-column type="index" label="序号" fixed width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{(pageNum - 1) *20 + scope.$index + 1}}</span> <span>{{(pageNum - 1) *20 + scope.$index + 1}}</span>
...@@ -156,13 +156,13 @@ ...@@ -156,13 +156,13 @@
<div class="renling"> <div class="renling">
<router-link :to="`/enterprise/${encodeStr(scope.row.companyId)}`" tag="a" class="list-titel-a" v-html="scope.row.companyName" ></router-link> <router-link :to="`/enterprise/${encodeStr(scope.row.companyId)}`" tag="a" class="list-titel-a" v-html="scope.row.companyName" ></router-link>
<div class="renling-btn" @click="claimbtn(scope.row)" > <div class="renling-btn" @click="claimbtn(scope.row)" >
<p v-if="scope.row.claimStatus" class="renling-img-true"> <p v-if="scope.row.claimStatus==0" class="renling-img-true">
</p> </p>
<p v-else class="renling-img-false"> <p v-else class="renling-img-false">
</p> </p>
<span v-if="scope.row.claimStatus" @click="cancelClaim(scope.row.companyName)" class="renling-hui"> <span v-if="scope.row.claimStatus==0" @click="cancelClaim(scope.row.companyName)" class="renling-hui">
已认领 已认领
</span> </span>
<span v-else class="renling-hei"> <span v-else class="renling-hei">
...@@ -480,6 +480,13 @@ ...@@ -480,6 +480,13 @@
<span class="dialog-footer-btn2" @click="dialogVisible1 = false">关闭</span> <span class="dialog-footer-btn2" @click="dialogVisible1 = false">关闭</span>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :visible.sync="dialogVisible2" custom-class='dialog-renlin' title="重新认领" width="260px" :show-close="false">
<div>再次认领将会恢复客户数据</div>
<div slot="footer" class="dialog-footer">
<span class="dialog-footer-btn1" type="primary" @click="handleHistoryClaim()">确认</span>
<span class="dialog-footer-btn2" @click="dialogVisible2 = false">关闭</span>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -504,6 +511,7 @@ export default { ...@@ -504,6 +511,7 @@ export default {
value: "id", value: "id",
}, },
pageSize: 20, pageSize: 20,
dialogVisible2:false,
jskBidQueryDto: { jskBidQueryDto: {
provinceIds: [], provinceIds: [],
cityIds: [], cityIds: [],
...@@ -796,9 +804,18 @@ export default { ...@@ -796,9 +804,18 @@ export default {
this.pageFlag = true; this.pageFlag = true;
}); });
}, },
async handleHistoryClaim(){
let res = await api.historyClaim(this.companyName)
if(res.code==200){
this.dialogVisible2 = false;
this.search();
}else{
this.$message.error(res.msg)
}
},
claimbtn(item){ claimbtn(item){
if(item.claimStatus){ if(item.claimStatus==1){
return ; return this.dialogVisible2=true;
} }
this.companyId=item.companyId; this.companyId=item.companyId;
var info={}; var info={};
......
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