| | |
| | | label: '/',
|
| | | },
|
| | | ]
|
| | | |
| | | private changesen:number=0
|
| | | private handleChangevalue1(value: string){
|
| | | console.log(value);
|
| | | if(this.changesen===1){
|
| | | this.handleChange2(this.reskey);
|
| | | }
|
| | | this.changesen=1;
|
| | | }
|
| | | private AQIhandleChange(value: string){
|
| | | this.handleChange2(this.reskey);
|
| | |
| | | // agehou:''
|
| | | // }
|
| | | ]
|
| | | |
| | | private rowSelectionChange(selectedRowKeys: string[], selectedRows: DataType[]){
|
| | | // console.log(selectedRows);
|
| | | console.log(selectedRows);
|
| | | this.selectedtable=selectedRows
|
| | | }
|
| | | private selectedtable:any[]=[]
|
| | |
| | | if(this.selectvalue1==='a99054'){
|
| | | for(var i=0;i<this.datatable.length;i++){
|
| | | if(this.ceAQIvalue==='+'){
|
| | | this.datatable[i].cel=parseFloat(this.datatable[i].cel+Number(this.ceAQIvaluein)).toFixed(2)
|
| | | this.datatable[i].cel=Number((this.datatable[i].cel + this.ceAQIvaluein).toFixed(2))
|
| | | }else if(this.ceAQIvalue==='-'){
|
| | | this.datatable[i].cel=parseFloat(this.datatable[i].cel-Number(this.ceAQIvaluein)).toFixed(2)
|
| | | this.datatable[i].cel=Number((this.datatable[i].cel - this.ceAQIvaluein).toFixed(2))
|
| | | }else if(this.ceAQIvalue==='*'){
|
| | | this.datatable[i].cel=parseFloat(this.datatable[i].cel*Number(this.ceAQIvaluein)).toFixed(2)
|
| | | this.datatable[i].cel=Number((this.datatable[i].cel * this.ceAQIvaluein).toFixed(2))
|
| | | }else if(this.ceAQIvalue==='/'){
|
| | | this.datatable[i].cel=parseFloat(this.datatable[i].cel/Number(this.ceAQIvaluein)).toFixed(3)
|
| | | this.datatable[i].cel=Number((this.datatable[i].cel / this.ceAQIvaluein).toFixed(3))
|
| | | }
|
| | | this.datatable[i].agehou='ce1*'+this.datatable[i].cel
|
| | | }
|
| | |
| | | // this.datatable[i].agehou='aqi*'+this.datatable[i].aqi+'+'+'ce1*'+this.datatable[i].cel
|
| | | if(this.AQIvalue1==='+'){
|
| | | // console.log(this,'+++');
|
| | | this.datatable[i].aqi=parseFloat((this.datatable[i].aqi) + Number(this.AQIvalue)).toFixed(2)
|
| | | this.datatable[i].aqi=Number((this.datatable[i].aqi + this.AQIvalue).toFixed(2))
|
| | | }else if(this.AQIvalue1==='-'){
|
| | | this.datatable[i].aqi=parseFloat(this.datatable[i].aqi - Number(this.AQIvalue)).toFixed(2)
|
| | | this.datatable[i].aqi=Number((this.datatable[i].aqi - this.AQIvalue).toFixed(2))
|
| | | } else if(this.AQIvalue1==='*'){
|
| | | this.datatable[i].aqi=parseFloat(this.datatable[i].aqi * Number(this.AQIvalue)).toFixed(2)
|
| | | this.datatable[i].aqi=Number((this.datatable[i].aqi * this.AQIvalue).toFixed(2))
|
| | | }else if(this.AQIvalue1==='/'){
|
| | | this.datatable[i].aqi=parseFloat(this.datatable[i].aqi / Number(this.AQIvalue)).toFixed(3)
|
| | | this.datatable[i].aqi=Number((this.datatable[i].aqi / this.AQIvalue).toFixed(2))
|
| | | }
|
| | | if(this.ceAQIvalue==='+'){
|
| | | this.datatable[i].cel=parseFloat(this.datatable[i].cel + Number(this.ceAQIvaluein)).toFixed(2)
|
| | | this.datatable[i].cel=Number((this.datatable[i].cel + this.ceAQIvaluein).toFixed(2))
|
| | | }else if(this.ceAQIvalue==='-'){
|
| | | this.datatable[i].cel=parseFloat(this.datatable[i].cel - Number(this.ceAQIvaluein)).toFixed(2)
|
| | | this.datatable[i].cel=Number((this.datatable[i].cel - this.ceAQIvaluein).toFixed(2))
|
| | | }else if(this.ceAQIvalue==='*'){
|
| | | this.datatable[i].cel=parseFloat(this.datatable[i].cel * Number(this.ceAQIvaluein)).toFixed(2)
|
| | | this.datatable[i].cel=Number((this.datatable[i].cel * this.ceAQIvaluein).toFixed(2))
|
| | | }else if(this.ceAQIvalue==='/'){
|
| | | this.datatable[i].cel=parseFloat(this.datatable[i].cel / Number(this.ceAQIvaluein)).toFixed(3)
|
| | | this.datatable[i].cel=Number((this.datatable[i].cel / this.ceAQIvaluein).toFixed(3))
|
| | | }
|
| | | this.datatable[i].agehou='aqi*'+this.datatable[i].aqi+'+'+'ce1*'+this.datatable[i].cel
|
| | | }
|
| | |
| | | this.visibleCreateModal1=false;
|
| | | this.datatable=[]
|
| | | this.selectvalue1='请选择因子'
|
| | | this.changesen=0
|
| | | }
|
| | |
|
| | | private handlerSelectChange(arr1: any, arr2: any) {
|