'添加第一批工具'
This commit is contained in:
parent
e2e984385b
commit
efd9632d5e
30
JS直接操作数据库.js
Normal file
30
JS直接操作数据库.js
Normal 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));
|
||||||
|
}
|
20
JS通过字段属性中的SQL查询数据库.js
Normal file
20
JS通过字段属性中的SQL查询数据库.js
Normal 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
17
查询表头优化.css
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
查询表头居中
|
||||||
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
.react-resizable {
|
||||||
|
text-align: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
查询表头自动换行
|
||||||
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
.react-resizable .ant-table-column-sorterN.text-elli {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user