导出Excel
config 连本地
This commit is contained in:
		
							parent
							
								
									91ab6b5c20
								
							
						
					
					
						commit
						cc096c14af
					
				@ -24,7 +24,7 @@ const config = {
 | 
				
			|||||||
    flowServiceHost: "http://120.25.146.51:7188/",
 | 
					    flowServiceHost: "http://120.25.146.51:7188/",
 | 
				
			||||||
    hmiUrl: "http://localhost:8060/",
 | 
					    hmiUrl: "http://localhost:8060/",
 | 
				
			||||||
    webSocketHost: 'ws://localhost:7140/',
 | 
					    webSocketHost: 'ws://localhost:7140/',
 | 
				
			||||||
    picServerHost: 'http://47.122.43.22:7199',
 | 
					    picServerHost: 'http://localhost:7199',
 | 
				
			||||||
    dataVUrl: "http://localhost:8062/home",
 | 
					    dataVUrl: "http://localhost:8062/home",
 | 
				
			||||||
    version: version,
 | 
					    version: version,
 | 
				
			||||||
    guideSeverHost: "http://47.122.43.22/lmapk/",
 | 
					    guideSeverHost: "http://47.122.43.22/lmapk/",
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										41
									
								
								src/files/list/BS033.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								src/files/list/BS033.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,41 @@
 | 
				
			|||||||
 | 
					import { message } from "antd/lib/index";
 | 
				
			||||||
 | 
					import { getPropertyData, extendInclude, extendRule, getDataFieldValue, setDataFieldValue, initFilter, empty, downLoad } from "../../utils/common";
 | 
				
			||||||
 | 
					import { connect } from 'dva';
 | 
				
			||||||
 | 
					import config from "../../config.js";
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * @return {string}
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					// 编辑  安全检查库
 | 
				
			||||||
 | 
					export default {
 | 
				
			||||||
 | 
					  // onBeforeEdit: ({ data, setFieldValueByBatch }) => {
 | 
				
			||||||
 | 
					  //   let temps = [];
 | 
				
			||||||
 | 
					  //   temps.push({ field: "columnMs", value: 1 });
 | 
				
			||||||
 | 
					  //   temps.push({ field: "columnLevel", value: 5 });
 | 
				
			||||||
 | 
					  //   temps.push({ field: "columnDeal", value: 10 });
 | 
				
			||||||
 | 
					  //   setFieldValueByBatch(temps);
 | 
				
			||||||
 | 
					  // },
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  btnSearchDownLoad(params) {
 | 
				
			||||||
 | 
					    var selectEd = params.getSelectedRecords()
 | 
				
			||||||
 | 
					    if (selectEd == null || selectEd.length == 0) {
 | 
				
			||||||
 | 
					      message.error("请选择要导出的数据!");
 | 
				
			||||||
 | 
					      return false;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    var listID = ""
 | 
				
			||||||
 | 
					    selectEd.forEach(element => {
 | 
				
			||||||
 | 
					      listID += element.ID + ","
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					    let json = initFilter(params.login.OrgId, listID);
 | 
				
			||||||
 | 
					    params.dispatch({
 | 
				
			||||||
 | 
					      type: 'app/getDataByPost',
 | 
				
			||||||
 | 
					      payload: json,
 | 
				
			||||||
 | 
					      url: 'BS/BSSafeCheck/GetOutPutDataLM',
 | 
				
			||||||
 | 
					      onComplete: (ret) => {
 | 
				
			||||||
 | 
					        if (ret) {
 | 
				
			||||||
 | 
					          downLoad(config.picServerHost, ret)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user