| | |
| | | private createForm: any = null;
|
| | |
|
| | | private editRecord: any = {};
|
| | |
|
| | | private pagination: any = {
|
| | | total: 0,
|
| | | current: 1,
|
| | | pageSize: 5,
|
| | | showSizeChanger: false,
|
| | | showQuickJumper: false
|
| | | pageSize: 10,
|
| | | showSizeChanger: true,
|
| | | showQuickJumper: true,
|
| | | pageSizeOptions: ["10", "30", "60", "100"],
|
| | | showTotal: (total: number) => `共有 ${this.pagination.total} 条数据`, //分页中显示总的数据
|
| | | };
|
| | |
|
| | | private updateRecord1: any = {};
|
| | |
| | | // agehou:''
|
| | | // }
|
| | | ]
|
| | | |
| | |
|
| | | private rowSelectionChange(selectedRowKeys: string[], selectedRows: DataType[]){
|
| | | // console.log(selectedRows);
|
| | | this.selectedtable=selectedRows
|
| | |
| | | }
|
| | |
|
| | | private columns: any[] = [
|
| | | {
|
| | | title: "序号",
|
| | | dataIndex: "key",
|
| | | key: "key",
|
| | | align: "center",
|
| | | customRender: (text:any, record:any, index:any) => `${index + 1}`,
|
| | | width: 60,
|
| | | },
|
| | | {
|
| | | title: "名称",
|
| | | dataIndex: "name"
|
| | |
| | | private current: number = 1
|
| | | private handlerTableChange(pagination: any, filter: any, sorter: any): void {
|
| | | this.current = pagination.current
|
| | | this.pagination.current = pagination.current;
|
| | | this.pagination.pageSize = pagination.pageSize;
|
| | | this.pagination.total = pagination.total;
|
| | | this.loadRuleData(pagination.current)
|
| | | }
|
| | |
|
| | |
| | | console.log(21323);
|
| | | for(var i=0;i<this.datatable.length;i++){
|
| | | if(this.ceAQIvalue==='+'){
|
| | | this.datatable[i].cel=((this.datatable[i].cel-0) + (this.ceAQIvaluein-0)).toFixed(2) |
| | | this.datatable[i].cel=((this.datatable[i].cel-0) + (this.ceAQIvaluein-0)).toFixed(2)
|
| | | }else if(this.ceAQIvalue==='-'){
|
| | | 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+this.ceAQIvaluein).toFixed(2)
|
| | | // this.datatable[i].agehou='aqi*'+this.datatable[i].aqi+'+'+'ce1*'+this.datatable[i].cel
|
| | | if(this.AQIvalue1==='+'){
|
| | | this.datatable[i].aqi=((this.datatable[i].aqi-0) + (this.AQIvalue-0)).toFixed(2) |
| | | this.datatable[i].aqi=((this.datatable[i].aqi-0) + (this.AQIvalue-0)).toFixed(2)
|
| | | }else if(this.AQIvalue1==='-'){
|
| | | this.datatable[i].aqi=Number((this.datatable[i].aqi - this.AQIvalue)).toFixed(2)
|
| | | } else if(this.AQIvalue1==='*'){
|
| | | this.datatable[i].aqi=Number((this.datatable[i].aqi * this.AQIvalue)).toFixed(2)
|
| | | }else if(this.AQIvalue1==='/'){
|
| | | this.datatable[i].aqi=Number((this.datatable[i].aqi / this.AQIvalue).toFixed(3))
|
| | | } |
| | | }
|
| | | if(this.ceAQIvalue==='+'){
|
| | | this.datatable[i].cel=((this.datatable[i].cel-0) + (this.ceAQIvaluein-0)).toFixed(2) |
| | | this.datatable[i].cel=((this.datatable[i].cel-0) + (this.ceAQIvaluein-0)).toFixed(2)
|
| | | }else if(this.ceAQIvalue==='-'){
|
| | | this.datatable[i].cel=Number((this.datatable[i].cel - this.ceAQIvaluein)).toFixed(2)
|
| | | }else if(this.ceAQIvalue==='*'){
|
| | |
| | |
|
| | | // 存放查询的组织id
|
| | | private selectMt: any = null
|
| | | |
| | |
|
| | | private loading: boolean=false
|
| | | |
| | |
|
| | | private handleCancel(){
|
| | | |
| | |
|
| | | }
|
| | | //新建保存
|
| | | private handleCreateModalOk() {
|
| | |
| | | name: this.serch.name,
|
| | | mac: this.serch.name,
|
| | | page: pageSize,
|
| | | size: 8
|
| | | size: this.pagination.pageSize,
|
| | | })
|
| | | .then(res => {
|
| | | if(res.data.code === 0) {
|
| | |
| | | }
|
| | | // 接收新增经纬度点
|
| | | private receiveLomLat(lonLat: any) {
|
| | | |
| | |
|
| | | this.addLL = lonLat
|
| | | this.getTownData(lonLat)
|
| | | }
|
| | | |
| | |
|
| | | private getTownData(lonLat: any) {
|
| | | console.log(lonLat,'dsasa'); |
| | | console.log(lonLat,'dsasa');
|
| | | let self=this
|
| | | var geocoder = new AMap.Geocoder({
|
| | | // city 指定进行编码查询的城市,支持传入城市名、adcode 和 citycode
|
| | |
| | | // result为对应的地理位置详细信息
|
| | | }
|
| | | })
|
| | | |
| | |
|
| | | // jsonp('/proxy/reverse_geocoding/v3/', {
|
| | | // jsonp('https://api.map.baidu.com/reverse_geocoding/v3/', {
|
| | | // ak: 'e5ig9Z7AKFjv8wbkqDbuLkUMzBev0tgT',
|