'添加第一批工具'

This commit is contained in:
ForeverSmiYng 2024-06-22 17:43:37 +08:00
parent e2e984385b
commit efd9632d5e
4 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,30 @@
/*
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
前端执行SQL查询语句
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*/
function SelectByGSL() {
const getUrl = '/api/gSl/GSl/gsl';
const Query1 = `SELECT loginid as id,password as pw FROM hrmresource`;//编写SQL语句
const jiami = ecCom.WeaTools.Base64.encode(Query1);
const result1 = ecCom.WeaTools.Base64.encode("id,pw");//编写查询内容
const mynewJSON = `{
"expression": "${jiami}",
"result": "${result1}"
}`;
const result = await ecCom.WeaTools.callApi(getUrl, 'POST', JSON.parse(mynewJSON));
}
/*
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
前端执行SQL增改语句
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*/
function insertOrDeleteOrUpdateByGSL() {
const getUrl = '/api/gSl/GSl/setTable';
const Query1 = `update hrmresource set fieldname='123' where id='43' `;//编写SQL语句
const jiami = ecCom.WeaTools.Base64.encode(Query1);
const mynewJSON = `{
"expression": "${jiami}",
}`;
const result = await ecCom.WeaTools.callApi(getUrl, 'POST', JSON.parse(mynewJSON));
}

View File

@ -0,0 +1,20 @@
let myJSON = `{
"workflowid":"71025",
"nodeid": 109529,
"formid": -1130,
"isbill": 1,
"triSource": 1,
"showAI": 0,
"triFieldid_117552": 113864,
"rowIndexStr_117552": ${rowIndex},
"triTableMark_117552": "detail_1",
"field113864_${rowIndex}": ${rwdh2},
"field113969_${rowIndex}": "${jbrwdh2}",
"field113970_${rowIndex}": "${fhrwdh2}",
"field113971_${rowIndex}": "${shrwdh2}",
"field113972_${rowIndex}": "${scrwdh2}",
"linkageid": 117552,
"wfTestStr": ""
}`;
let postObj = JSON.parse(myJSON);
$.post("/api/workflow/linkage/reqFieldSqlResult", postObj);

17
查询表头优化.css Normal file
View File

@ -0,0 +1,17 @@
/*
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
查询表头居中
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*/
.react-resizable {
text-align: center !important;
}
/*
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
查询表头自动换行
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*/
.react-resizable .ant-table-column-sorterN.text-elli {
white-space: pre-wrap;
}

7
自制弹框.js Normal file
View File

@ -0,0 +1,7 @@
/*
说明
第一个参数是点击ok按钮触发的function第二个参数是关闭弹框触发的function允许为null
tips是弹框的抬头content是弹框内容ok是确认按钮显示的内容
content参数是array每一个array[i]代表单独一行
*/
window.opendiyModal(null, null, { tips: "XXXXXX", content: [`${tips}XXX XXX`, "XXX XXX"], ok: '了解' });