Commit 2dc880b0 authored by huangjie's avatar huangjie

*

parent 1f4fc125
...@@ -15848,7 +15848,7 @@ ...@@ -15848,7 +15848,7 @@
"label": "澳门特别行政区" "label": "澳门特别行政区"
}, },
{ {
"value": "830100", "id": 900000,
"lable": "钓鱼岛" "label": "钓鱼岛"
} }
] ]
\ No newline at end of file
...@@ -72,7 +72,6 @@ export default { ...@@ -72,7 +72,6 @@ export default {
data: params, data: params,
headers: { 'Authorization': 'Bearer ' + getToken() } headers: { 'Authorization': 'Bearer ' + getToken() }
}).then(res => { }).then(res => {
console.log(res)
const blob = new Blob([res.data], { type: 'application/octet-stream/pdf/doc/xlsx/xls/docx' }) const blob = new Blob([res.data], { type: 'application/octet-stream/pdf/doc/xlsx/xls/docx' })
this.saveAs(blob, decodeURI(res.headers['download-filename'])) this.saveAs(blob, decodeURI(res.headers['download-filename']))
}) })
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<div class="wordprimary ps2" @click="toDetail(scope.row,'')">{{scope.row.companyName}}</div> <div class="wordprimary ps2" @click="toDetail(scope.row,'')">{{scope.row.companyName}}</div>
<div class="ps3"> <div class="ps3">
<div @click="toDetail(scope.row,'gjjl')">写跟进<img src="@/assets/images/project/edit_1.png"></div> <div @click="toDetail(scope.row,'gjjl')">写跟进<img src="@/assets/images/project/edit_1.png"></div>
<div @click="toDetail(scope.row,'preference')">编辑信息<img src="@/assets/images/project/edit_2.png"></div> <div @click="toDetail(scope.row,'business')">编辑信息<img src="@/assets/images/project/edit_2.png"></div>
</div> </div>
</div> </div>
</template> </template>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
prop="isMajor" prop="isMajor"
label="局级大客户" width="88"> label="局级大客户" width="88">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.isMajor"> <span v-if="scope.row.isMajor != null">
{{scope.row.isMajor == 1?"是":"否"}} {{scope.row.isMajor == 1?"是":"否"}}
</span> </span>
<span v-else>--</span> <span v-else>--</span>
...@@ -154,18 +154,22 @@ ...@@ -154,18 +154,22 @@
<div class="wordprimary">{{scope.row.superCompany || '--'}}</div> <div class="wordprimary">{{scope.row.superCompany || '--'}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column :key="keys"
prop="mainBusiness" prop="mainBusiness"
label="主营业务" width="120"> label="主营业务" width="400">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.mainBusiness || '--'}} <div v-if="scope.row.mainBusiness == null || scope.row.mainBusiness == ''">--</div>
<div class="box" v-else-if="scope.row.sq1==true">{{scope.row.mainBusiness1}}...<span @click="sq1(scope.row,false)">更多</span></div>
<div class="box" v-else>{{scope.row.mainBusiness}}<span @click="sq1(scope.row,true)">收起</span></div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="companyAttribute" prop="companyAttribute" :key="keys+2"
label="发包属性" width="120"> label="发包属性" width="400">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.companyAttribute || '--'}} <div v-if="scope.row.companyAttribute == null || scope.row.companyAttribute == ''">--</div>
<div class="box" v-else-if="scope.row.sq2==true">{{scope.row.companyAttribute1}}...<span @click="sq2(scope.row,false)">更多</span></div>
<div class="box" v-else>{{scope.row.companyAttribute}}<span @click="sq2(scope.row,true)">收起</span></div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -292,6 +296,7 @@ export default { ...@@ -292,6 +296,7 @@ export default {
}, },
// isNew:true, // isNew:true,
showlist:false, showlist:false,
keys:1,
} }
}, },
created() { created() {
...@@ -300,6 +305,18 @@ export default { ...@@ -300,6 +305,18 @@ export default {
this.prvinceTree() this.prvinceTree()
}, },
methods:{ methods:{
sq1(item,sq){
this.$nextTick(()=>{
item.sq1 = sq
this.keys++ ;
})
},
sq2(item,sq){
this.$nextTick(()=>{
item.sq2 = sq
this.keys++ ;
})
},
handleALL(event){ handleALL(event){
var one = document.getElementById("box"); var one = document.getElementById("box");
if(one){ if(one){
...@@ -327,6 +344,20 @@ export default { ...@@ -327,6 +344,20 @@ export default {
getCustomerList(){ getCustomerList(){
getCustomerList(this.searchParam).then(result=>{ getCustomerList(this.searchParam).then(result=>{
this.tableData = result this.tableData = result
this.tableData.rows.forEach(item=>{
if(item.mainBusiness != "" && item.mainBusiness != null && item.mainBusiness.length>84){
item.mainBusiness1 = item.mainBusiness.substring(0,81)
item.sq1 = true
}else{
item.sq1 = false
}
if(item.companyAttribute != "" && item.companyAttribute != null && item.companyAttribute.length>84){
item.companyAttribute1 = item.companyAttribute.substring(0,81)
item.sq2 = true
}else{
item.sq2 = false
}
})
}) })
}, },
//跳转到客户详情 //跳转到客户详情
...@@ -385,7 +416,6 @@ export default { ...@@ -385,7 +416,6 @@ export default {
} }
}, },
selCompany(item){ selCompany(item){
console.log(item)
this.queryParam.companyId = item.jskEid this.queryParam.companyId = item.jskEid
this.queryParam.companyName = item.name.replace(/<[^>]+>/g, '') this.queryParam.companyName = item.name.replace(/<[^>]+>/g, '')
this.queryParam.legalPerson = item.legalPerson this.queryParam.legalPerson = item.legalPerson
...@@ -507,7 +537,19 @@ export default { ...@@ -507,7 +537,19 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.box{
position: relative;
>span{
position: absolute;
right: 10px;
bottom: 0;
color: #0081FF;
cursor: pointer;
&:hover{
color: #006AD1;
}
}
}
.dc{ .dc{
font-size: 12px; font-size: 12px;
color: #3D3D3D; color: #3D3D3D;
...@@ -539,6 +581,7 @@ export default { ...@@ -539,6 +581,7 @@ export default {
.tables{ .tables{
position: relative; position: relative;
height: calc(100vh - 134px); height: calc(100vh - 134px);
overflow: auto;
.empty{ .empty{
position: absolute; position: absolute;
top: 50%; top: 50%;
......
...@@ -325,8 +325,8 @@ ...@@ -325,8 +325,8 @@
}, },
deltip(item){ deltip(item){
let param={ let param={
businessId:this.id, // businessId:this.id,
id:item.id labelId:item.id
} }
removeLabel(JSON.stringify(param)).then(res=>{ removeLabel(JSON.stringify(param)).then(res=>{
if (res.code == 200){ if (res.code == 200){
......
...@@ -10,20 +10,19 @@ ...@@ -10,20 +10,19 @@
<div class="btn" @click="handleCurrentChange(1)">搜索</div> <div class="btn" @click="handleCurrentChange(1)">搜索</div>
</div> </div>
<!--<div class="btn btn_primary h32 b2" @click="getUP" v-if="fileDatas.total>0"><div class="img img2"></div>上传</div>--> <!--<div class="btn btn_primary h32 b2" @click="getUP" v-if="fileDatas.total>0"><div class="img img2"></div>上传</div>-->
<div class="btn btn_primary h32 b2" v-if="fileDatas.total>0"><div class="img img2"></div> <el-upload
<el-upload class="upload-demo"
class="upload-demo" :action="action"
:action="action" :on-change="handleFileListChange"
:on-change="handleFileListChange" :multiple="false"
:multiple="false" ref="upload"
ref="upload" :file-list="fileList"
:file-list="fileList" accept=".word,.pdf.excel,.xlsx,.doc,.docx"
accept=".word,.pdf.excel,.xlsx,.doc,.docx" :headers="headers"
:headers="headers" :show-file-list="false"
:show-file-list="false" :on-success="onSuccess">
:on-success="onSuccess"> <div class="btn btn_primary h32 b2" v-if="fileDatas.total>0"><div class="img img2"></div>上传</div>
上传 </el-upload>
</el-upload></div>
</div> </div>
<div class="filepath" v-if="filename"><font @click="getall">全部</font> / <span> <img class="img" src="@/assets/images/folder.png">{{filename}}</span></div> <div class="filepath" v-if="filename"><font @click="getall">全部</font> / <span> <img class="img" src="@/assets/images/folder.png">{{filename}}</span></div>
<div class="uploadbox" v-if="isupload"> <div class="uploadbox" v-if="isupload">
...@@ -259,6 +258,7 @@ ...@@ -259,6 +258,7 @@
let _this = this let _this = this
setTimeout(function() { setTimeout(function() {
_this.getList() _this.getList()
_this.$message.success('上传成功!')
_this.isupload = false _this.isupload = false
},3000) },3000)
...@@ -296,7 +296,9 @@ ...@@ -296,7 +296,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
v-deep.el-upload:focus{
color: #FFFFFF !important;
}
.delform{ .delform{
position: fixed; left:50%; top:50%; transform:translate(-50%,-50%) position: fixed; left:50%; top:50%; transform:translate(-50%,-50%)
} }
......
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