Commit 05983dd8 authored by caixingbing's avatar caixingbing

*

parent fe471c57
...@@ -4,13 +4,15 @@ ...@@ -4,13 +4,15 @@
placeholder="搜索" placeholder="搜索"
class="side-input" class="side-input"
v-model="searchText" v-model="searchText"
@keyup.enter.native="handleSearch"> clearable
<i slot="prefix" class="el-input__icon el-icon-search" @click="handleSearch"></i> @input="handleSearch(true)"
@keyup.enter.native="handleSearch()">
<i slot="prefix" class="el-input__icon el-icon-search" @click="handleSearch()"></i>
</el-input> </el-input>
<el-menu <el-menu
ref="sideMenu" ref="sideMenu"
:unique-opened="true" :unique-opened="true"
:default-active="routeIndex" :default-active="searchIndex?searchIndex:routeIndex"
class="detail-menu" class="detail-menu"
@open="handleOpen"> @open="handleOpen">
<template v-for="(item, index) in sideRoute"> <template v-for="(item, index) in sideRoute">
...@@ -96,6 +98,7 @@ export default { ...@@ -96,6 +98,7 @@ export default {
{title: '决策链条', pathName: 'decisionMaking'}, {title: '决策链条', pathName: 'decisionMaking'},
{title: '跟进记录', pathName: 'gjjl'} {title: '跟进记录', pathName: 'gjjl'}
], ],
defaultRoute: [],
customer:[ customer:[
'business', 'business',
'preference', 'preference',
...@@ -103,6 +106,7 @@ export default { ...@@ -103,6 +106,7 @@ export default {
'decisionMaking', 'decisionMaking',
'gjjl' 'gjjl'
], ],
searchIndex: ''
} }
}, },
computed: { computed: {
...@@ -121,25 +125,35 @@ export default { ...@@ -121,25 +125,35 @@ export default {
} }
}, },
created() { created() {
this.defaultRoute = JSON.parse(JSON.stringify(this.sideRoute))
}, },
methods: { methods: {
handleOpen(key, keyPath) { handleOpen(key, keyPath) {
console.log(key, keyPath)
}, },
handleItem(item){ handleItem(item){
this.$emit("currentPath", item) this.$emit("currentPath", item)
}, },
handleSearch(){ handleSearch(flag){
if(this.searchText){ if((this.searchText&&!flag) || (!this.searchText&&flag)){
let idx = this.getRouteIdx(this.searchText) let idx = this.getRouteIdx(this.searchText)
if(idx&&idx.includes('-')){ if(idx){
let openIdx = idx.slice(0, 1) if(idx.includes('-')){
this.$refs.sideMenu.open(openIdx) let openIdx = idx.slice(0, 1)
this.sideRoute = [this.defaultRoute[openIdx]]
this.$refs.sideMenu.open(openIdx)
}else{
this.sideRoute = [this.defaultRoute[idx]]
}
this.searchIndex = '-1'
}else{
this.sideRoute = this.defaultRoute
this.searchIndex = ''
} }
} }
}, },
getRouteIdx(pathTitle, pathName){ getRouteIdx(pathTitle, pathName){
let idx = '', sideArr = this.sideRoute let idx = '', sideArr = this.sideRoute==this.defaultRoute?this.sideRoute:this.defaultRoute
for(let i=0; i < sideArr.length; i++){ for(let i=0; i < sideArr.length; i++){
if(sideArr[i].title == pathTitle || sideArr[i].pathName == pathName){ if(sideArr[i].title == pathTitle || sideArr[i].pathName == pathName){
idx = i.toString() idx = i.toString()
......
...@@ -180,9 +180,6 @@ export default { ...@@ -180,9 +180,6 @@ export default {
this.currentPath.pathName = this.$route.query.path this.currentPath.pathName = this.$route.query.path
} }
}, },
mounted() {
console.log('进入了mounted')
},
methods: { methods: {
showPartPage(e){ showPartPage(e){
this.currentPath = e this.currentPath = e
......
...@@ -179,7 +179,19 @@ export default { ...@@ -179,7 +179,19 @@ export default {
async handleClaim(){ async handleClaim(){
if(this.companyInfo.uipId){ if(this.companyInfo.uipId){
this.claimLoading = true this.claimLoading = true
let param = {companyId:this.companyId, uipId:this.companyInfo.uipId, companyName:this.companyInfo.companyName} let param = {
companyId:this.companyId,
uipId:this.companyInfo.uipId,
companyName:this.companyInfo.companyName,
creditLevel:this.companyInfo.bratingSubjectLevel || '',
legalPerson:this.companyInfo.corporatePerson || '',
registerCapital:this.companyInfo.regCapital || '',
provinceId:this.companyInfo.provinceId || '',
cityId:this.companyInfo.cityId || '',
districtId:this.companyInfo.districtCode || '',
registerAddress:this.companyInfo.provinceName+this.companyInfo.provinceName?'-'+this.companyInfo.provinceName:''+this.companyInfo.districtName?'-'+this.companyInfo.districtName:'',
creditCode:this.companyInfo.creditCode
}
let res = await claim(param) let res = await claim(param)
this.claimLoading = false this.claimLoading = false
if(res.code==200){ if(res.code==200){
......
...@@ -107,6 +107,14 @@ export default { ...@@ -107,6 +107,14 @@ export default {
tz:'', tz:'',
bl:'' bl:''
}, },
{
name:'失信被执行人',
value:'',
category:'credit',
field:'dishonestExecutor',
tz:'',
bl:''
},
{ {
name:'行政处罚', name:'行政处罚',
value:'', value:'',
......
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