| | |
| | | style="max-height: 460px;overflow-x:hidden;overflow-y: auto;padding-right: 20px;"> |
| | | <div style="display: flex;flex-wrap: wrap"> |
| | | <div style="width: 170px;" class="overclassipt"> |
| | | <Select ref="tworef" id="twoid" transfer @on-open-change="opencloseColor" allow-create class="overclass" :max-tag-count="1" @on-select="selectYJLevelSy" multiple filterable :value="offSiteCheckModel.Name" style="width: 200px;white-space: nowrap;" label="预警等级" size="large"> |
| | | <Select ref="tworef" id="twoid" transfer @on-open-change="opencloseColorSy" allow-create class="overclass" :max-tag-count="1" @on-select="selectYJLevelSy" multiple filterable :value="offSiteCheckModel.NameRisk" style="width: 200px;white-space: nowrap;" label="预警等级" size="large"> |
| | | <Option v-for="item in yujinColor" :value="item.value" @click.native="gogogoYJLevel" :label="item.label" :key="item.label">{{item.label}}</Option> |
| | | </Select> |
| | | </div> |
| | |
| | | </div> |
| | | </TabPane> |
| | | <TabPane label="租赁登记明细" name="tab4"> |
| | | <div style="margin-top: 0;padding-top: 0px;font-weight:800;" > |
| | | {{`承租人:${detailName}`}} |
| | | </div> |
| | | <div v-if="detailTab == 'tab4'" class="noPadding"> |
| | | <rentMarket componentsType="noTitle" :companyName="detailName" :topInput="leaseShowNum"></rentMarket> |
| | | </div> |
| | |
| | | }, |
| | | data () { |
| | | return { |
| | | paramsRow:{}, |
| | | leaseShowNum:"1", |
| | | offSiteCheckListBackup:[],//备份 |
| | | ReportId:-1,//公司详情参数ID:getNewList |
| | |
| | | isnotZhixing:false, |
| | | offSiteCheckModel:{ |
| | | Name: ['0'], |
| | | NameRisk:['0'], |
| | | startTime: '', |
| | | endTime: '', |
| | | companyName: ['all'], |
| | | type:['999999'] |
| | | }, |
| | | |
| | | |
| | | yujinColor: [ |
| | | { |
| | |
| | | }) |
| | | }, |
| | | //颜色选择 |
| | | opencloseColor(data){ |
| | | //近三年 |
| | | opencloseColorSy(data){ |
| | | let tworef=this.$refs.tworef |
| | | if(data){ |
| | | // this.cloneColor=this.offSiteCheckModel.Name |
| | | // this.offSiteCheckModel.Name=[] |
| | | $('#twoid .ivu-icon-ios-arrow-down').css({'opacity':'0'}) |
| | | }else if(data==false){ |
| | | if(this.offSiteCheckModel.NameRisk.length===0){ |
| | | this.offSiteCheckModel.NameRisk=['0'] |
| | | } |
| | | // tworef.query="" |
| | | $('#twoid .ivu-icon-ios-arrow-down').css({'opacity':'1'}) |
| | | $('#twoid .ivu-select-input').css({'width':'0'}) |
| | | } |
| | | }, |
| | | //风险 |
| | | opencloseColor(data){ |
| | | let tworef=this.$refs.tworef |
| | | if(data){ |
| | | // this.cloneColor=this.offSiteCheckModel.Name |
| | |
| | | this.changePageIndex(1) |
| | | let list = [] |
| | | if (row.value === '0') { //选择全部预警等级 |
| | | this.offSiteCheckModel.Name = ['0'] |
| | | } else if (this.offSiteCheckModel.Name.indexOf('0') > -1) { |
| | | this.offSiteCheckModel.Name = [row.value] |
| | | this.offSiteCheckModel.NameRisk = ['0'] |
| | | } else if (this.offSiteCheckModel.NameRisk.indexOf('0') > -1) { |
| | | this.offSiteCheckModel.NameRisk = [row.value] |
| | | } else { |
| | | console.log(this.offSiteCheckModel.Name, row.value) |
| | | let index = this.offSiteCheckModel.Name.indexOf(row.value) |
| | | console.log(this.offSiteCheckModel.NameRisk, row.value) |
| | | let index = this.offSiteCheckModel.NameRisk.indexOf(row.value) |
| | | if (index == -1) { |
| | | this.offSiteCheckModel.Name.push(row.value) |
| | | this.offSiteCheckModel.NameRisk.push(row.value) |
| | | } else { |
| | | this.offSiteCheckModel.Name.splice(index, 1) |
| | | this.offSiteCheckModel.NameRisk.splice(index, 1) |
| | | } |
| | | } |
| | | this.offSiteCheckModel.Name = JSON.parse(JSON.stringify(this.offSiteCheckModel.Name)) |
| | | this.offSiteCheckModel.NameRisk = JSON.parse(JSON.stringify(this.offSiteCheckModel.NameRisk)) |
| | | for (let i = 0, item; item = this.offSiteCheckList[i]; i++) { |
| | | if (this.offSiteCheckModel.Name.indexOf('0') > -1 || this.offSiteCheckModel.Name.indexOf(item.WarnLevel.toString()) > -1) { |
| | | if (this.offSiteCheckModel.NameRisk.indexOf('0') > -1 || this.offSiteCheckModel.NameRisk.indexOf(item.WarnLevel.toString()) > -1) { |
| | | list.push(JSON.parse(JSON.stringify(item))) |
| | | } |
| | | } |
| | |
| | | this.offSiteCheckModel.Name = ['0'] |
| | | } else if (this.offSiteCheckModel.Name.indexOf('0') > -1) { |
| | | this.offSiteCheckModel.Name = [row.value] |
| | | console.log(this.offSiteCheckModel.Name); |
| | | } else { |
| | | console.log(this.offSiteCheckModel.Name, row.value) |
| | | let index = this.offSiteCheckModel.Name.indexOf(row.value) |
| | | if (index == -1) { |
| | | console.log(111111) |
| | | this.offSiteCheckModel.Name.push(row.value) |
| | | } else { |
| | | console.log(222222) |
| | | this.offSiteCheckModel.Name.splice(index, 1) |
| | | } |
| | | } |
| | | console.log(this.detailMessage); |
| | | this.offSiteCheckModel.Name = JSON.parse(JSON.stringify(this.offSiteCheckModel.Name)) |
| | | for (let i = 0, item; item = this.detailMessage.czrfxTable[i]; i++) { |
| | | if (this.offSiteCheckModel.Name.indexOf('0') > -1 || this.offSiteCheckModel.Name.indexOf(item.zgyj) > -1) { |
| | |
| | | * @param row |
| | | */ |
| | | showDetail (row) { |
| | | this.detailName = row.CompanyName |
| | | this.ReportId=row.Id |
| | | this.offSiteCheckModel.Name=['0'] |
| | | this.offSiteCheckModel.NameRisk=['0'] |
| | | this.paramsRow=row |
| | | this.detailName = row.CompanyName |
| | | this.ReportId=row.Id |
| | | this.nowCompanyName=[row.CompanyName] |
| | | this.detailLoading = true |
| | | this.getNewList() |
| | | let data = { |
| | | reportId: row.Id |
| | | reportId: this.ReportId |
| | | } |
| | | axios.request({ |
| | | url: '/MkFinanceLease/GetReport', |
| | |
| | | let data = { |
| | | ReportId:this.ReportId, |
| | | ComPanyName:this.nowCompanyName, |
| | | WarnLevel:this.offSiteCheckModel.Name, |
| | | WarnLevel:this.offSiteCheckModel.NameRisk, |
| | | StartAndEndTime:this.financialTime, |
| | | PageSize: 15, |
| | | PageIndex: this.pageIndex, |
| | |
| | | } |
| | | this.offSiteCheckList = JSON.parse( JSON.stringify(res.data.Data.Data)) |
| | | this.offSiteCheckListBackup=this.offSiteCheckList |
| | | console.log(this.offSiteCheckList); |
| | | |
| | | this.loading2 = false |
| | | } else { |
| | | this.loading2 = false |
| | |
| | | if (name == 'tab2') { |
| | | this.initEcharts() |
| | | } |
| | | |
| | | }, |
| | | /** |
| | | * 点击查看报告 |
| | |
| | | } |
| | | } |
| | | }, |
| | | watch:{ |
| | | detailTab(newValue,old){ |
| | | console.log(newValue,old); |
| | | } |
| | | }, |
| | | // watch:{ |
| | | // detailTab(newValue,old){ |
| | | // console.log(newValue,old); |
| | | // } |
| | | // }, |
| | | computed: { |
| | | offSiteCheckCol(){ |
| | | let columns=[] |