From cc096c14af68a9c4ee1464abaa2a90645da6baeb Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Tue, 8 Oct 2024 16:02:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BAExcel=20config=20=E8=BF=9E?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.js | 2 +- src/files/list/BS033.js | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/files/list/BS033.js diff --git a/src/config.js b/src/config.js index 27516a3..a6a96e6 100644 --- a/src/config.js +++ b/src/config.js @@ -24,7 +24,7 @@ const config = { flowServiceHost: "http://120.25.146.51:7188/", hmiUrl: "http://localhost:8060/", webSocketHost: 'ws://localhost:7140/', - picServerHost: 'http://47.122.43.22:7199', + picServerHost: 'http://localhost:7199', dataVUrl: "http://localhost:8062/home", version: version, guideSeverHost: "http://47.122.43.22/lmapk/", diff --git a/src/files/list/BS033.js b/src/files/list/BS033.js new file mode 100644 index 0000000..1962ab7 --- /dev/null +++ b/src/files/list/BS033.js @@ -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) + } + } + }); + + } +} \ No newline at end of file