Compare commits
34 Commits
971c7c4b6d
...
964e91389c
| Author | SHA1 | Date | |
|---|---|---|---|
| 964e91389c | |||
|
|
3941f7166e | ||
|
|
eaac4c61c8 | ||
|
|
c3763f02af | ||
| 5d22923101 | |||
|
|
da851b45fd | ||
|
|
62ea354a8f | ||
|
|
fc170fd97b | ||
|
|
a63a7e474d | ||
|
|
ac3195c293 | ||
|
|
064cfc0f9e | ||
|
|
3e8d875a0e | ||
|
|
ea8b90fdf2 | ||
|
|
1867e867e7 | ||
|
|
1dcebbee1c | ||
|
|
e6024ff358 | ||
|
|
2984e3f59d | ||
|
|
29515dab9d | ||
|
|
ea850a0ffc | ||
|
|
442fccbc36 | ||
|
|
d9186c6f7e | ||
|
|
0774b50dc2 | ||
|
|
826a6112ca | ||
|
|
7175b6c6db | ||
|
|
9763a60eed | ||
|
|
105d904e21 | ||
|
|
74fec213e5 | ||
| 39f2ff3d74 | |||
|
|
91c9be1abe | ||
|
|
5a6278a90f | ||
|
|
28fd0d1e77 | ||
| 55554fb6b8 | |||
|
|
d639c3b3e2 | ||
|
|
1bd93f502d |
151
package-lock.json
generated
151
package-lock.json
generated
@ -5,6 +5,9 @@
|
|||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
|
"name": "mh_jy_safe_web",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/icons": "^5.2.6",
|
"@ant-design/icons": "^5.2.6",
|
||||||
"@antv/data-set": "0.9.6",
|
"@antv/data-set": "0.9.6",
|
||||||
@ -15,6 +18,7 @@
|
|||||||
"autobind-decorator": "2.3.1",
|
"autobind-decorator": "2.3.1",
|
||||||
"babel-plugin-import": "1.11.0",
|
"babel-plugin-import": "1.11.0",
|
||||||
"bizcharts": "3.4.1",
|
"bizcharts": "3.4.1",
|
||||||
|
"braft-editor": "^2.3.9",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
"canvg": "^3.0.6",
|
"canvg": "^3.0.6",
|
||||||
"core-js": "^3.44.0",
|
"core-js": "^3.44.0",
|
||||||
@ -4188,6 +4192,82 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/braft-editor": {
|
||||||
|
"version": "2.3.9",
|
||||||
|
"resolved": "https://registry.npmmirror.com/braft-editor/-/braft-editor-2.3.9.tgz",
|
||||||
|
"integrity": "sha512-mqdPk/zI2dhFK8tW/A4Qj/AkkARLh5L/niNw+iif5wFqb6zh15rMlrShgz1nWO/QXyAKr8XtDgxiBbR0zWwtRg==",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": "^7.0.0",
|
||||||
|
"braft-convert": "^2.3.0",
|
||||||
|
"braft-finder": "^0.0.19",
|
||||||
|
"braft-utils": "^3.0.8",
|
||||||
|
"draft-convert": "^2.0.0",
|
||||||
|
"draft-js": "^0.10.3",
|
||||||
|
"draft-js-multidecorators": "^1.0.0",
|
||||||
|
"draftjs-utils": "^0.9.4",
|
||||||
|
"immutable": "~3.7.4"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "^15.0.2|| ^16.0.0-rc || ^16.0.0",
|
||||||
|
"react-dom": "^15.0.2|| ^16.0.0-rc || ^16.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/braft-editor/node_modules/braft-convert": {
|
||||||
|
"version": "2.3.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/braft-convert/-/braft-convert-2.3.0.tgz",
|
||||||
|
"integrity": "sha512-5km+dLHk8iYDv2iEYDrDQ2ld/ZoUx66QLql0qdm5PqZEcNXc8dBHGLORfzeu3iMw1jLeAiHxtdY5+ypuIhczVg==",
|
||||||
|
"dependencies": {
|
||||||
|
"draft-convert": "^2.0.0",
|
||||||
|
"draft-js": "^0.10.3"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "^16.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/braft-editor/node_modules/braft-finder": {
|
||||||
|
"version": "0.0.19",
|
||||||
|
"resolved": "https://registry.npmmirror.com/braft-finder/-/braft-finder-0.0.19.tgz",
|
||||||
|
"integrity": "sha512-0kzI6/KbomJJhYX1hpjn4edCKhblyUyWdUrsgBmOrwy0vrj+pPkm69+Uf8Uj6KGAULM6LF0ooC++p7fqUGgFHw==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "^16.4.1",
|
||||||
|
"react-dom": "^16.4.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/braft-editor/node_modules/braft-utils": {
|
||||||
|
"version": "3.0.13",
|
||||||
|
"resolved": "https://registry.npmmirror.com/braft-utils/-/braft-utils-3.0.13.tgz",
|
||||||
|
"integrity": "sha512-92YNlc5RW3mNMo0zbWhnqz8PWr21AAPPhnfn3ZUoXM9+wBIuJQe6UyvOas+MEG9UOGFrvTDPbq60P3fdEhyMQQ==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"braft-convert": "^2.1.4",
|
||||||
|
"draft-js": "^0.10.5",
|
||||||
|
"draftjs-utils": "^0.9.4",
|
||||||
|
"immutable": "~3.7.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/braft-editor/node_modules/draft-convert": {
|
||||||
|
"version": "2.1.13",
|
||||||
|
"resolved": "https://registry.npmmirror.com/draft-convert/-/draft-convert-2.1.13.tgz",
|
||||||
|
"integrity": "sha512-/h/n4JCfyO8aWby7wKBkccHdsuVbbDyHWXi/B3Zf2pN++lN1lDOIVt5ulXCcbH2Y5YJEFzMJw/YGfN+R0axxxg==",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": "^7.5.5",
|
||||||
|
"immutable": "~3.7.4",
|
||||||
|
"invariant": "^2.2.1"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"draft-js": ">=0.7.0",
|
||||||
|
"react": "^15.0.2 || ^16.0.0-rc || ^16.0.0 || ^17.0.0 || ^18.0.0",
|
||||||
|
"react-dom": "^15.0.2 || ^16.0.0-rc || ^16.0.0 || ^17.0.0 || ^18.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/braft-editor/node_modules/draftjs-utils": {
|
||||||
|
"version": "0.9.4",
|
||||||
|
"resolved": "https://registry.npmmirror.com/draftjs-utils/-/draftjs-utils-0.9.4.tgz",
|
||||||
|
"integrity": "sha512-KYjABSbGpJrwrwmxVj5UhfV37MF/p0QRxKIyL+/+QOaJ8J9z1FBKxkblThbpR0nJi9lxPQWGg+gh+v0dAsSCCg==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"draft-js": "^0.10.x",
|
||||||
|
"immutable": "3.x.x || 4.x.x"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/brorand": {
|
"node_modules/brorand": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmmirror.com/brorand/-/brorand-1.1.0.tgz",
|
"resolved": "https://registry.npmmirror.com/brorand/-/brorand-1.1.0.tgz",
|
||||||
@ -7242,6 +7322,14 @@
|
|||||||
"react-dom": "^0.14.0 || ^15.0.0-rc || ^16.0.0-rc || ^16.0.0"
|
"react-dom": "^0.14.0 || ^15.0.0-rc || ^16.0.0-rc || ^16.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/draft-js-multidecorators": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/draft-js-multidecorators/-/draft-js-multidecorators-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-7qdy+YQol5iq38AoEerhgSJWhCzxvZLn1x5ODfUlGfWlg0SrZ9AXJbaxHVIjdSIZNrbVIm+WANujNxMqCmDSZQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"immutable": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/duck": {
|
"node_modules/duck": {
|
||||||
"version": "0.1.12",
|
"version": "0.1.12",
|
||||||
"resolved": "https://registry.npmmirror.com/duck/-/duck-0.1.12.tgz",
|
"resolved": "https://registry.npmmirror.com/duck/-/duck-0.1.12.tgz",
|
||||||
@ -29824,6 +29912,61 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"braft-editor": {
|
||||||
|
"version": "2.3.9",
|
||||||
|
"resolved": "https://registry.npmmirror.com/braft-editor/-/braft-editor-2.3.9.tgz",
|
||||||
|
"integrity": "sha512-mqdPk/zI2dhFK8tW/A4Qj/AkkARLh5L/niNw+iif5wFqb6zh15rMlrShgz1nWO/QXyAKr8XtDgxiBbR0zWwtRg==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/runtime": "^7.0.0",
|
||||||
|
"braft-convert": "^2.3.0",
|
||||||
|
"braft-finder": "^0.0.19",
|
||||||
|
"braft-utils": "^3.0.8",
|
||||||
|
"draft-convert": "^2.0.0",
|
||||||
|
"draft-js": "^0.10.3",
|
||||||
|
"draft-js-multidecorators": "^1.0.0",
|
||||||
|
"draftjs-utils": "^0.9.4",
|
||||||
|
"immutable": "~3.7.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"braft-convert": {
|
||||||
|
"version": "2.3.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/braft-convert/-/braft-convert-2.3.0.tgz",
|
||||||
|
"integrity": "sha512-5km+dLHk8iYDv2iEYDrDQ2ld/ZoUx66QLql0qdm5PqZEcNXc8dBHGLORfzeu3iMw1jLeAiHxtdY5+ypuIhczVg==",
|
||||||
|
"requires": {
|
||||||
|
"draft-convert": "^2.0.0",
|
||||||
|
"draft-js": "^0.10.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"braft-finder": {
|
||||||
|
"version": "0.0.19",
|
||||||
|
"resolved": "https://registry.npmmirror.com/braft-finder/-/braft-finder-0.0.19.tgz",
|
||||||
|
"integrity": "sha512-0kzI6/KbomJJhYX1hpjn4edCKhblyUyWdUrsgBmOrwy0vrj+pPkm69+Uf8Uj6KGAULM6LF0ooC++p7fqUGgFHw==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
|
"braft-utils": {
|
||||||
|
"version": "3.0.13",
|
||||||
|
"resolved": "https://registry.npmmirror.com/braft-utils/-/braft-utils-3.0.13.tgz",
|
||||||
|
"integrity": "sha512-92YNlc5RW3mNMo0zbWhnqz8PWr21AAPPhnfn3ZUoXM9+wBIuJQe6UyvOas+MEG9UOGFrvTDPbq60P3fdEhyMQQ==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
|
"draft-convert": {
|
||||||
|
"version": "2.1.13",
|
||||||
|
"resolved": "https://registry.npmmirror.com/draft-convert/-/draft-convert-2.1.13.tgz",
|
||||||
|
"integrity": "sha512-/h/n4JCfyO8aWby7wKBkccHdsuVbbDyHWXi/B3Zf2pN++lN1lDOIVt5ulXCcbH2Y5YJEFzMJw/YGfN+R0axxxg==",
|
||||||
|
"requires": {
|
||||||
|
"@babel/runtime": "^7.5.5",
|
||||||
|
"immutable": "~3.7.4",
|
||||||
|
"invariant": "^2.2.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"draftjs-utils": {
|
||||||
|
"version": "0.9.4",
|
||||||
|
"resolved": "https://registry.npmmirror.com/draftjs-utils/-/draftjs-utils-0.9.4.tgz",
|
||||||
|
"integrity": "sha512-KYjABSbGpJrwrwmxVj5UhfV37MF/p0QRxKIyL+/+QOaJ8J9z1FBKxkblThbpR0nJi9lxPQWGg+gh+v0dAsSCCg==",
|
||||||
|
"requires": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"brorand": {
|
"brorand": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmmirror.com/brorand/-/brorand-1.1.0.tgz",
|
"resolved": "https://registry.npmmirror.com/brorand/-/brorand-1.1.0.tgz",
|
||||||
@ -32170,6 +32313,14 @@
|
|||||||
"object-assign": "^4.1.0"
|
"object-assign": "^4.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"draft-js-multidecorators": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/draft-js-multidecorators/-/draft-js-multidecorators-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-7qdy+YQol5iq38AoEerhgSJWhCzxvZLn1x5ODfUlGfWlg0SrZ9AXJbaxHVIjdSIZNrbVIm+WANujNxMqCmDSZQ==",
|
||||||
|
"requires": {
|
||||||
|
"immutable": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"duck": {
|
"duck": {
|
||||||
"version": "0.1.12",
|
"version": "0.1.12",
|
||||||
"resolved": "https://registry.npmmirror.com/duck/-/duck-0.1.12.tgz",
|
"resolved": "https://registry.npmmirror.com/duck/-/duck-0.1.12.tgz",
|
||||||
|
|||||||
@ -19,6 +19,7 @@
|
|||||||
"autobind-decorator": "2.3.1",
|
"autobind-decorator": "2.3.1",
|
||||||
"babel-plugin-import": "1.11.0",
|
"babel-plugin-import": "1.11.0",
|
||||||
"bizcharts": "3.4.1",
|
"bizcharts": "3.4.1",
|
||||||
|
"braft-editor": "^2.3.9",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
"canvg": "^3.0.6",
|
"canvg": "^3.0.6",
|
||||||
"core-js": "^3.44.0",
|
"core-js": "^3.44.0",
|
||||||
|
|||||||
@ -422,7 +422,6 @@ class TableBaseComponent extends ComponentBase {
|
|||||||
实际加载表数据
|
实际加载表数据
|
||||||
*/
|
*/
|
||||||
doLoadTableData = (loadParamJson, tableCode, onComplete, onLoadData) => {
|
doLoadTableData = (loadParamJson, tableCode, onComplete, onLoadData) => {
|
||||||
console.log('调用查询实际过程', 6)
|
|
||||||
const payloadJson = this.getLoadTableDataParams(loadParamJson, tableCode)
|
const payloadJson = this.getLoadTableDataParams(loadParamJson, tableCode)
|
||||||
if (!payloadJson) return
|
if (!payloadJson) return
|
||||||
|
|
||||||
@ -431,7 +430,6 @@ class TableBaseComponent extends ComponentBase {
|
|||||||
}
|
}
|
||||||
const tableConfig = this.getTableConfig({ tableCode });
|
const tableConfig = this.getTableConfig({ tableCode });
|
||||||
const { api } = tableConfig ? tableConfig : {};
|
const { api } = tableConfig ? tableConfig : {};
|
||||||
console.log('调用查询实际过程', 7, api)
|
|
||||||
|
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
type: 'listPage/getTableData',
|
type: 'listPage/getTableData',
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { connect } from 'dva'
|
import { connect } from 'dva'
|
||||||
import { initFilter, getCustomParams } from "../../utils/common"
|
import { initFilter, getCustomParams } from "../../utils/common"
|
||||||
import loadPage from '../../utils/customConfig'//便捷开发 请勿提交
|
//import loadPage from '../../utils/customConfig1'//便捷开发 请勿提交
|
||||||
//import loadPage from '../../utils/customConfig'
|
import loadPage from '../../utils/customConfig'
|
||||||
|
|
||||||
class CustomPage extends React.Component {
|
class CustomPage extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|||||||
@ -724,6 +724,21 @@ class RoleEditPage extends React.Component {
|
|||||||
}
|
}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
|
<Col span={12}>
|
||||||
|
<Form.Item label={'默认角色'} help={'若【是】导入用户时会默认添加此角色'}>
|
||||||
|
{
|
||||||
|
getFieldDecorator('ISDEFAULT', {
|
||||||
|
validateTrigger: 'onBlur',
|
||||||
|
initialValue: (this.state.data.ISDEFAULT ? this.state.data.ISDEFAULT.toString() : 'false'),
|
||||||
|
})(
|
||||||
|
<Select placeholder='数据类型'>
|
||||||
|
<Option value='false'>否</Option>
|
||||||
|
<Option value='true'>是</Option>
|
||||||
|
</Select>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Form.Item label={'备注'}>
|
<Form.Item label={'备注'}>
|
||||||
{
|
{
|
||||||
|
|||||||
@ -139,17 +139,20 @@ class SC022Import extends React.Component {
|
|||||||
</Button>
|
</Button>
|
||||||
</Upload>
|
</Upload>
|
||||||
</td>
|
</td>
|
||||||
|
<td colSpan={16}>
|
||||||
|
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{
|
{
|
||||||
isMsgShow ? (
|
isMsgShow ? (
|
||||||
isOk ? <tr >
|
isOk ? <tr >
|
||||||
<td colSpan={2}>
|
<td colSpan={18}>
|
||||||
{Msg}
|
{Msg}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
:
|
:
|
||||||
<tr style={{ color: 'red' }}>
|
<tr style={{ color: 'red' }}>
|
||||||
<td colSpan={2}>
|
<td colSpan={18}>
|
||||||
{Msg}
|
{Msg}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -279,7 +279,7 @@ class SE018EditPage extends React.Component {
|
|||||||
<td colSpan={4} rowSpan={1} className={styles.fontBold}>培训老师</td>
|
<td colSpan={4} rowSpan={1} className={styles.fontBold}>培训老师</td>
|
||||||
<td colSpan={4} rowSpan={1} >{data && data.Nav_Notify ? data.Nav_Notify.TRAIN_TEACHER : null}</td>
|
<td colSpan={4} rowSpan={1} >{data && data.Nav_Notify ? data.Nav_Notify.TRAIN_TEACHER : null}</td>
|
||||||
<td colSpan={4} rowSpan={1} className={styles.fontBold}>培训形式</td>
|
<td colSpan={4} rowSpan={1} className={styles.fontBold}>培训形式</td>
|
||||||
<td colSpan={4} rowSpan={1} >{data&& data.Nav_Notify && data.Nav_Notify.TRAINTYPE && enums.TrainType.enums[data.Nav_Notify.TRAINTYPE]}</td>
|
<td colSpan={4} rowSpan={1} >{data && data.Nav_Notify && data.Nav_Notify.TRAINTYPE && enums.TrainType.enums[data.Nav_Notify.TRAINTYPE]}</td>
|
||||||
<td colSpan={4} rowSpan={1} className={styles.fontBold}>考核方式</td>
|
<td colSpan={4} rowSpan={1} className={styles.fontBold}>考核方式</td>
|
||||||
{/* <td colSpan={4} rowSpan={1} >{data && data.Nav_Notify && data.Nav_Notify.Nav_TrainCheckType ? data.Nav_Notify.Nav_TrainCheckType.NAME : null}</td> */}
|
{/* <td colSpan={4} rowSpan={1} >{data && data.Nav_Notify && data.Nav_Notify.Nav_TrainCheckType ? data.Nav_Notify.Nav_TrainCheckType.NAME : null}</td> */}
|
||||||
<td colSpan={4} rowSpan={1} >{data && data.Nav_Notify && data.Nav_Notify.CHECKTYPE && enums.PlanCheckType.enums[data.Nav_Notify.CHECKTYPE]}</td>
|
<td colSpan={4} rowSpan={1} >{data && data.Nav_Notify && data.Nav_Notify.CHECKTYPE && enums.PlanCheckType.enums[data.Nav_Notify.CHECKTYPE]}</td>
|
||||||
@ -364,7 +364,7 @@ class SE018EditPage extends React.Component {
|
|||||||
<td colSpan={4} rowSpan={1} className={styles.fontBold}>姓名</td>
|
<td colSpan={4} rowSpan={1} className={styles.fontBold}>姓名</td>
|
||||||
<td colSpan={4} rowSpan={1} className={styles.fontBold}>岗位</td>
|
<td colSpan={4} rowSpan={1} className={styles.fontBold}>岗位</td>
|
||||||
{this.state.isExam && <td colSpan={4} rowSpan={1} className={styles.fontBold}>分数</td>}
|
{this.state.isExam && <td colSpan={4} rowSpan={1} className={styles.fontBold}>分数</td>}
|
||||||
<td colSpan={4} rowSpan={1} className={styles.fontBold} style={{ display: this.state.isShow }}>查看试卷</td>
|
{!signable && <td colSpan={4} rowSpan={1} className={styles.fontBold} style={{ display: this.state.isShow }}>查看试卷</td>}
|
||||||
<td colSpan={6} rowSpan={1} className={styles.fontBold}>电子签名</td>
|
<td colSpan={6} rowSpan={1} className={styles.fontBold}>电子签名</td>
|
||||||
</tr>
|
</tr>
|
||||||
{
|
{
|
||||||
@ -381,12 +381,13 @@ class SE018EditPage extends React.Component {
|
|||||||
{/* if (data.Nav_Notify.CHECKTYPE == 51 || data.Nav_Notify.CHECKTYPE == 56 || data.Nav_Notify.CHECKTYPE == 81) { */}
|
{/* if (data.Nav_Notify.CHECKTYPE == 51 || data.Nav_Notify.CHECKTYPE == 56 || data.Nav_Notify.CHECKTYPE == 81) { */}
|
||||||
{/* 线上考核 51 看试卷 56 81 看附件 */}
|
{/* 线上考核 51 看试卷 56 81 看附件 */}
|
||||||
{
|
{
|
||||||
this.state.isShow && data.Nav_Notify.CHECKTYPE ? (
|
!signable && (
|
||||||
data.Nav_Notify.CHECKTYPE == 51 ? <td colSpan={4} rowSpan={1} ><div onClick={() => this.showDetailModal(it.RECORD_ID, it.USER_ID)}><Icon type="eye" style={{ color: "#005b9b", cursor: "pointer" }} /></div></td>
|
this.state.isShow && data.Nav_Notify.CHECKTYPE ? (
|
||||||
: <td colSpan={4} rowSpan={1} > {showFiles(it?.Nav_Files, config.picServerHost, this, false)}</td>
|
data.Nav_Notify.CHECKTYPE == 51 ? <td colSpan={4} rowSpan={1} ><div onClick={() => this.showDetailModal(it.RECORD_ID, it.USER_ID)}><Icon type="eye" style={{ color: "#005b9b", cursor: "pointer" }} /></div></td>
|
||||||
)
|
: <td colSpan={4} rowSpan={1} > {showFiles(it?.Nav_Files, config.picServerHost, this, false)}</td>
|
||||||
: <td colSpan={4} rowSpan={1} style={{ display: this.state.isShow }}><div onClick={() => this.showDetailModal(it.RECORD_ID, it.USER_ID)}><Icon type="eye" style={{ color: "#005b9b", cursor: "pointer" }} /></div></td>
|
)
|
||||||
}
|
: <td colSpan={4} rowSpan={1} style={{ display: this.state.isShow }}><div onClick={() => this.showDetailModal(it.RECORD_ID, it.USER_ID)}><Icon type="eye" style={{ color: "#005b9b", cursor: "pointer" }} /></div></td>
|
||||||
|
)}
|
||||||
<td colSpan={6} rowSpan={1}>
|
<td colSpan={6} rowSpan={1}>
|
||||||
{
|
{
|
||||||
showUserSign(it.Nav_User, config.picServerHost)
|
showUserSign(it.Nav_User, config.picServerHost)
|
||||||
|
|||||||
@ -333,15 +333,15 @@ class SE018PaperPage extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.state.filepath.indexOf('/VIDEO/') > -1) {
|
if (this.state.filepath && this.state.filepath.length > 0 && this.state.filepath.indexOf('/VIDEO/') > -1) {
|
||||||
this.state.isViedo = true
|
this.state.isViedo = true
|
||||||
this.state.filepath = configc.videoServerHost + this.state.filepath
|
this.state.filepath = configc.videoServerHost + this.state.filepath
|
||||||
this.state.filepathf = []
|
this.state.filepathf = []
|
||||||
if (ISEND && VIEWSEC == 0) {
|
if (ISEND && VIEWSEC == 0) {
|
||||||
ISEND = false
|
ISEND = false
|
||||||
}
|
}
|
||||||
} else if (this.state.filepath.indexOf('.mp4') > -1 || this.state.filepath
|
} else if (this.state.filepath && this.state.filepath.length > 0 && (this.state.filepath.indexOf('.mp4') > -1 || this.state.filepath
|
||||||
.indexOf('.avi') > -1) {
|
.indexOf('.avi') > -1)) {
|
||||||
//暂时不应该进来
|
//暂时不应该进来
|
||||||
this.state.isViedo = true
|
this.state.isViedo = true
|
||||||
if (ISEND) {
|
if (ISEND) {
|
||||||
@ -354,7 +354,9 @@ class SE018PaperPage extends React.Component {
|
|||||||
this.state.isViedo = false
|
this.state.isViedo = false
|
||||||
// this.state.isVideoEnd = true
|
// this.state.isVideoEnd = true
|
||||||
this.state.filepath = this.state.filepath
|
this.state.filepath = this.state.filepath
|
||||||
this.state.filepathf = getFileShow(this.state.filepath)
|
if (this.state.filepath && this.state.filepath.length > 0) {
|
||||||
|
this.state.filepathf = getFileShow(this.state.filepath)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
indexCour: this.state.indexCour,
|
indexCour: this.state.indexCour,
|
||||||
@ -734,7 +736,7 @@ class SE018PaperPage extends React.Component {
|
|||||||
</tr> : null
|
</tr> : null
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
isCourEdit && !isViedo ? <tr >
|
isCourEdit && !isViedo && filepathf && filepathf.length > 0 ? <tr >
|
||||||
<td colSpan={4} rowSpan={1} className={styles.fontBold}>课件附件</td>
|
<td colSpan={4} rowSpan={1} className={styles.fontBold}>课件附件</td>
|
||||||
<td colSpan={20} rowSpan={1} className={styles.fontBold}>
|
<td colSpan={20} rowSpan={1} className={styles.fontBold}>
|
||||||
{
|
{
|
||||||
|
|||||||
@ -64,6 +64,7 @@ class SE071ShowPrint extends React.Component {
|
|||||||
extendInclude(json, 'Nav_ListPlanDetail.Nav_Department')
|
extendInclude(json, 'Nav_ListPlanDetail.Nav_Department')
|
||||||
extendInclude(json, 'Nav_ListPlanDetail.Nav_ListDetailDepartment.Nav_Department')
|
extendInclude(json, 'Nav_ListPlanDetail.Nav_ListDetailDepartment.Nav_Department')
|
||||||
extendInclude(json, 'Nav_ListPlanDetail.Nav_TrainTypeEnum')
|
extendInclude(json, 'Nav_ListPlanDetail.Nav_TrainTypeEnum')
|
||||||
|
extendInclude(json, 'Nav_ListPlanDetail.Nav_ApproveRole')
|
||||||
extendInclude(json, "Nav_Approve.Nav_ApproveDetails.Nav_ApproveUser");
|
extendInclude(json, "Nav_Approve.Nav_ApproveDetails.Nav_ApproveUser");
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
type: 'app/getDataByPost',
|
type: 'app/getDataByPost',
|
||||||
@ -121,10 +122,11 @@ class SE071ShowPrint extends React.Component {
|
|||||||
<table className={styles.PrintFormLight}>
|
<table className={styles.PrintFormLight}>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={10} className={styles.showPrintHead2}>年度培训计划详情</td>
|
<td colSpan={11} className={styles.showPrintHead2}>年度培训计划详情</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr className={styles.PrintFormLightTh}>
|
<tr className={styles.PrintFormLightTh}>
|
||||||
<td>月份</td>
|
<td>月份</td>
|
||||||
|
<td>触发日期</td>
|
||||||
<td>培训性质</td>
|
<td>培训性质</td>
|
||||||
<td>培训类型</td>
|
<td>培训类型</td>
|
||||||
<td>培训名称</td>
|
<td>培训名称</td>
|
||||||
@ -133,6 +135,7 @@ class SE071ShowPrint extends React.Component {
|
|||||||
<td>考核方式</td>
|
<td>考核方式</td>
|
||||||
<td>培训学时</td>
|
<td>培训学时</td>
|
||||||
<td>培训组织</td>
|
<td>培训组织</td>
|
||||||
|
<td>培训角色</td>
|
||||||
{/* <td>培训老师</td> */}
|
{/* <td>培训老师</td> */}
|
||||||
{
|
{
|
||||||
data.TYPE != 5 ?
|
data.TYPE != 5 ?
|
||||||
@ -143,6 +146,7 @@ class SE071ShowPrint extends React.Component {
|
|||||||
{data?.Nav_ListPlanDetail?.map((item, i) => {
|
{data?.Nav_ListPlanDetail?.map((item, i) => {
|
||||||
return <tr>
|
return <tr>
|
||||||
<td>{item.MONTH} </td>
|
<td>{item.MONTH} </td>
|
||||||
|
<td>{item.DATE_TRAIN?.split(' ')[0]} </td>
|
||||||
<td>{enums.TrainInOut.enums[item.IN_OUT]} </td>
|
<td>{enums.TrainInOut.enums[item.IN_OUT]} </td>
|
||||||
<td>{item.Nav_TrainTypeEnum.NAME} </td>
|
<td>{item.Nav_TrainTypeEnum.NAME} </td>
|
||||||
<td>{item.NAME} </td>
|
<td>{item.NAME} </td>
|
||||||
@ -151,6 +155,7 @@ class SE071ShowPrint extends React.Component {
|
|||||||
<td>{enums.PlanCheckType.enums[item.CHECKTYPE]} </td>
|
<td>{enums.PlanCheckType.enums[item.CHECKTYPE]} </td>
|
||||||
<td>{item.CLASSHOUR} </td>
|
<td>{item.CLASSHOUR} </td>
|
||||||
<td>{item.Nav_Department.NAME} </td>
|
<td>{item.Nav_Department.NAME} </td>
|
||||||
|
<td>{item.Nav_ApproveRole?.NAME} </td>
|
||||||
{
|
{
|
||||||
data.TYPE != 5 ?
|
data.TYPE != 5 ?
|
||||||
<td>{item.Nav_ListDetailDepartment?.map((itemtype, j) => { return (j > 0 ? ',' : '') + itemtype.Nav_Department.NAME })}</td>
|
<td>{item.Nav_ListDetailDepartment?.map((itemtype, j) => { return (j > 0 ? ',' : '') + itemtype.Nav_Department.NAME })}</td>
|
||||||
@ -163,7 +168,7 @@ class SE071ShowPrint extends React.Component {
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>审批详情</td> {/* 审核意见 如果已经审批 显示审批信息 */}
|
<td>审批详情</td> {/* 审核意见 如果已经审批 显示审批信息 */}
|
||||||
<td colSpan={9} style={{ textAlign: "left" }}>
|
<td colSpan={11} style={{ textAlign: "left" }}>
|
||||||
{
|
{
|
||||||
showApprove(data.Nav_Approve?.Nav_ApproveDetails, enums.NodeApproveStatus.enums, config.picServerHost, 200)
|
showApprove(data.Nav_Approve?.Nav_ApproveDetails, enums.NodeApproveStatus.enums, config.picServerHost, 200)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,6 +7,7 @@ import { connect } from 'dva';
|
|||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
||||||
class SEConfigPage extends React.Component {
|
class SEConfigPage extends React.Component {
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
@ -26,12 +27,16 @@ class SEConfigPage extends React.Component {
|
|||||||
DEP_TRAIN_PLAN_START_TIME: null,
|
DEP_TRAIN_PLAN_START_TIME: null,
|
||||||
DEP_TRAIN_PLAN_END_TIME: null,
|
DEP_TRAIN_PLAN_END_TIME: null,
|
||||||
TRAIN_SURVEY_TRIGGER_TIME: null,
|
TRAIN_SURVEY_TRIGGER_TIME: null,
|
||||||
|
APPROVAL_ROLE_ID: null,
|
||||||
|
optionsSelect: null
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.loadData();
|
this.ini();
|
||||||
|
// this.loadData();
|
||||||
}
|
}
|
||||||
BtnClose = () => {
|
BtnClose = () => {
|
||||||
if (typeof this.props.closeFn != "undefined")
|
if (typeof this.props.closeFn != "undefined")
|
||||||
@ -42,6 +47,24 @@ class SEConfigPage extends React.Component {
|
|||||||
this.props.onCancel();
|
this.props.onCancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ini = () => {
|
||||||
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
|
var that = this
|
||||||
|
this.props.dispatch({
|
||||||
|
type: 'app/getDataByPost',
|
||||||
|
payload: json,
|
||||||
|
url: 'PF/ApprovalRole/Entities',
|
||||||
|
onComplete: (ret) => {
|
||||||
|
if (ret && ret.length > 0) {
|
||||||
|
let data = this.state.data;
|
||||||
|
data.optionsSelect = ret;
|
||||||
|
this.setState(data)
|
||||||
|
this.loadData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
loadData = () => {
|
loadData = () => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
@ -51,6 +74,7 @@ class SEConfigPage extends React.Component {
|
|||||||
url: 'SE/SEConfig/Entities',
|
url: 'SE/SEConfig/Entities',
|
||||||
onComplete: (ret) => {
|
onComplete: (ret) => {
|
||||||
if (ret && ret.length > 0) {
|
if (ret && ret.length > 0) {
|
||||||
|
ret[0].optionsSelect = this.state.data.optionsSelect
|
||||||
this.setState({ data: ret[0] });
|
this.setState({ data: ret[0] });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -91,9 +115,11 @@ class SEConfigPage extends React.Component {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { data } = this.state;
|
const { data } = this.state;
|
||||||
const dateFormat = 'MM-DD';
|
const dateFormat = 'MM-DD';
|
||||||
|
const { Option } = Select;
|
||||||
return <>
|
return <>
|
||||||
<div style={{ padding: '10px' }}>
|
<div style={{ padding: '10px' }}>
|
||||||
<Button style={{ marginLeft: '8px' }} onClick={() => this.onSave()} icon="save" type="primary" loading={this.state.isLoading}>保存</Button>
|
<Button style={{ marginLeft: '8px' }} onClick={() => this.onSave()} icon="save" type="primary" loading={this.state.isLoading}>保存</Button>
|
||||||
@ -260,7 +286,7 @@ class SEConfigPage extends React.Component {
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={4} rowSpan={1} >公司培训计划触发时间</td>
|
<td colSpan={4} rowSpan={1} >公司培训计划触发时间</td>
|
||||||
<td colSpan={20} rowSpan={1} >
|
<td colSpan={8} rowSpan={1} >
|
||||||
<DatePicker
|
<DatePicker
|
||||||
format={dateFormat}
|
format={dateFormat}
|
||||||
value={data.DEP_TRAIN_PLAN_START_TIME ? moment(data.DEP_TRAIN_PLAN_START_TIME) : null}
|
value={data.DEP_TRAIN_PLAN_START_TIME ? moment(data.DEP_TRAIN_PLAN_START_TIME) : null}
|
||||||
@ -271,8 +297,41 @@ class SEConfigPage extends React.Component {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
|
<td colSpan={4} rowSpan={1} >接收角色</td>
|
||||||
|
<td colSpan={8} rowSpan={1} >
|
||||||
|
<Select
|
||||||
|
showSearch
|
||||||
|
style={{ width: 300 }}
|
||||||
|
placeholder="请选择接收角色"
|
||||||
|
value={data.APPROVAL_ROLE_ID}
|
||||||
|
onChange={(value) => {
|
||||||
|
data.APPROVAL_ROLE_ID = value;
|
||||||
|
this.setState(data)
|
||||||
|
}}
|
||||||
|
filterOption={(input, option) =>
|
||||||
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{data.optionsSelect?.map(item =>
|
||||||
|
(<Option key={item.ID} value={item.ID} label={item.NAME} >{item.NAME}</Option>)
|
||||||
|
)}
|
||||||
|
</Select>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
{/*
|
||||||
|
render: (text, record, index) => {
|
||||||
|
return <Select value={text != "-1" ? text : ""} optionFilterProp='name' onChange={(e) => this.onSelectChange(e, record, 'PLATFORM_TYPE', index)}>
|
||||||
|
{
|
||||||
|
enums && enums.CMEvaluateStatusEnum && enums.CMEvaluateStatusEnum.options ? enums.CMEvaluateStatusEnum.options.map(t => {
|
||||||
|
return <Option value={t.value}>{t.label}</Option>
|
||||||
|
}) : null
|
||||||
|
}
|
||||||
|
</Select>;
|
||||||
|
|
||||||
|
*/}
|
||||||
|
|
||||||
|
|
||||||
{/* <tr>
|
{/* <tr>
|
||||||
<td colSpan={4} rowSpan={1} >部门培训计划发起时间</td>
|
<td colSpan={4} rowSpan={1} >部门培训计划发起时间</td>
|
||||||
<td colSpan={20} rowSpan={1} >
|
<td colSpan={20} rowSpan={1} >
|
||||||
|
|||||||
@ -24,6 +24,7 @@ class SK004CheckListNew extends React.Component {
|
|||||||
production: {},
|
production: {},
|
||||||
productionId: null,
|
productionId: null,
|
||||||
checkType: {},
|
checkType: {},
|
||||||
|
checkTypeId:null,
|
||||||
data: {},
|
data: {},
|
||||||
dataList: [],
|
dataList: [],
|
||||||
MineType: 0,
|
MineType: 0,
|
||||||
@ -205,8 +206,8 @@ class SK004CheckListNew extends React.Component {
|
|||||||
if (this.state.inputText6) {
|
if (this.state.inputText6) {
|
||||||
temp = temp.filter(t => t.CheckCycle == this.state.inputText6);
|
temp = temp.filter(t => t.CheckCycle == this.state.inputText6);
|
||||||
}
|
}
|
||||||
if (this.state.inputText3) {
|
if (this.state.checkTypeId) {
|
||||||
temp = temp.filter(t => t.CheckType == this.state.inputText3);
|
temp = temp.filter(t => t.CHECK_TYPE_ID == this.state.checkTypeId);
|
||||||
}
|
}
|
||||||
if (this.state.inputText4) {
|
if (this.state.inputText4) {
|
||||||
temp = temp.filter(t => t.CheckDepart.includes(this.state.inputText4));
|
temp = temp.filter(t => t.CheckDepart.includes(this.state.inputText4));
|
||||||
@ -340,6 +341,7 @@ class SK004CheckListNew extends React.Component {
|
|||||||
ID: data[0],
|
ID: data[0],
|
||||||
NAME: record?.NAME,
|
NAME: record?.NAME,
|
||||||
},
|
},
|
||||||
|
checkTypeId:record?.ID,
|
||||||
inputText3: record?.NAME
|
inputText3: record?.NAME
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
@ -464,11 +466,11 @@ class SK004CheckListNew extends React.Component {
|
|||||||
onChange={this.handleSearch3}
|
onChange={this.handleSearch3}
|
||||||
style={{ width: "150px" }}
|
style={{ width: "150px" }}
|
||||||
></Input> */}
|
></Input> */}
|
||||||
<DropDownPagination inputDataApi={'SK/SKCheckType/OrderPagedNew'} fieldName={'NAME'}
|
<DropDownPagination inputDataApi={'SK/SKCheckType/OrderPaged'} fieldName={'NAME'} inputShowField={'Nav_ProductionUnit.NAME,NAME'}
|
||||||
data={this.state.checkType} onSelect={this.handleSearch3} onFilter={({ params }) => {
|
data={this.state.checkType} onSelect={this.handleSearch3} onFilter={({ params }) => {
|
||||||
params.OrderType = 1
|
params.OrderType = 1
|
||||||
params.OrgId = this.props.login.OrgId
|
params.OrgId = this.props.login.OrgId
|
||||||
params.Keyword = this.state.inputText
|
params.Keyword = this.state.productionId
|
||||||
}} />
|
}} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
|
|||||||
@ -46,6 +46,7 @@ class SK016ShowPrint extends React.Component {
|
|||||||
// extendRule(json, 'TASK_ID', 1, taskID);
|
// extendRule(json, 'TASK_ID', 1, taskID);
|
||||||
extendInclude(json, 'Nav_ApplyUser');
|
extendInclude(json, 'Nav_ApplyUser');
|
||||||
extendInclude(json, 'Nav_ApplyDepartment');
|
extendInclude(json, 'Nav_ApplyDepartment');
|
||||||
|
extendInclude(json, 'Nav_ProductionUnit');
|
||||||
extendInclude(json, 'Nav_RiskArea');
|
extendInclude(json, 'Nav_RiskArea');
|
||||||
extendInclude(json, 'Nav_ReportFiles');
|
extendInclude(json, 'Nav_ReportFiles');
|
||||||
extendInclude(json, 'Nav_ReportFiles.Nav_ImgFile');
|
extendInclude(json, 'Nav_ReportFiles.Nav_ImgFile');
|
||||||
|
|||||||
@ -63,6 +63,7 @@ class SK018ShowPrint extends React.Component {
|
|||||||
extendInclude(json, 'Nav_Report');
|
extendInclude(json, 'Nav_Report');
|
||||||
extendInclude(json, 'Nav_ApplyUser');
|
extendInclude(json, 'Nav_ApplyUser');
|
||||||
extendInclude(json, 'Nav_ApplyDepartment');
|
extendInclude(json, 'Nav_ApplyDepartment');
|
||||||
|
extendInclude(json, 'Nav_ProductionUnit');
|
||||||
extendInclude(json, 'Nav_RiskArea');
|
extendInclude(json, 'Nav_RiskArea');
|
||||||
extendInclude(json, 'Nav_Photos');
|
extendInclude(json, 'Nav_Photos');
|
||||||
extendInclude(json, 'Nav_Photos.Nav_ImgFile');
|
extendInclude(json, 'Nav_Photos.Nav_ImgFile');
|
||||||
|
|||||||
@ -155,7 +155,7 @@ class SK022ShowPrint extends React.Component {
|
|||||||
<Descriptions.Item label="整改部门">{data.Nav_RecitifyUser && data.Nav_RecitifyUser.Nav_Department ? data.Nav_RecitifyUser.Nav_Department.NAME : ''}</Descriptions.Item>
|
<Descriptions.Item label="整改部门">{data.Nav_RecitifyUser && data.Nav_RecitifyUser.Nav_Department ? data.Nav_RecitifyUser.Nav_Department.NAME : ''}</Descriptions.Item>
|
||||||
<Descriptions.Item label="整改责任人">{data.Nav_RecitifyUser ? data.Nav_RecitifyUser.NAME : ''}</Descriptions.Item>
|
<Descriptions.Item label="整改责任人">{data.Nav_RecitifyUser ? data.Nav_RecitifyUser.NAME : ''}</Descriptions.Item>
|
||||||
<Descriptions.Item label="整改落实人">{
|
<Descriptions.Item label="整改落实人">{
|
||||||
data.STATUS == 21 &&
|
(data.STATUS == 21 ||data.STATUS == 20 || data.STATUS == 10|| data.STATUS == 30)&&
|
||||||
data.Nav_ImplementUser && data.Nav_ImplementUser.FILE_PATH ?
|
data.Nav_ImplementUser && data.Nav_ImplementUser.FILE_PATH ?
|
||||||
showUserSign(data.Nav_ImplementUser, config.picServerHost)
|
showUserSign(data.Nav_ImplementUser, config.picServerHost)
|
||||||
: data.Nav_ImplementUser ? data.Nav_ImplementUser.NAME : ''}</Descriptions.Item>
|
: data.Nav_ImplementUser ? data.Nav_ImplementUser.NAME : ''}</Descriptions.Item>
|
||||||
@ -176,13 +176,13 @@ class SK022ShowPrint extends React.Component {
|
|||||||
<Descriptions.Item style={{ display: (data.STATUS == 20 || data.STATUS == 30) ? "inline" : "none" }} label="验收结论">{enums.SKAcceptResultEnum.enums[data.ACCEPT_RESULTE]}</Descriptions.Item>
|
<Descriptions.Item style={{ display: (data.STATUS == 20 || data.STATUS == 30) ? "inline" : "none" }} label="验收结论">{enums.SKAcceptResultEnum.enums[data.ACCEPT_RESULTE]}</Descriptions.Item>
|
||||||
<Descriptions.Item style={{ display: (data.STATUS == 20 || data.STATUS == 30) ? "inline" : "none" }} label="验收意见">{data.ACCEPT_OPINION}</Descriptions.Item>
|
<Descriptions.Item style={{ display: (data.STATUS == 20 || data.STATUS == 30) ? "inline" : "none" }} label="验收意见">{data.ACCEPT_OPINION}</Descriptions.Item>
|
||||||
<Descriptions.Item label="整改责任人签名">{
|
<Descriptions.Item label="整改责任人签名">{
|
||||||
data.Nav_RecitifyUser && data.Nav_RecitifyUser.FILE_PATH ?
|
(data.STATUS == 20 || data.STATUS == 10|| data.STATUS == 30) && data.Nav_RecitifyUser && data.Nav_RecitifyUser.FILE_PATH ?
|
||||||
showUserSign(data.Nav_RecitifyUser, config.picServerHost)
|
showUserSign(data.Nav_RecitifyUser, config.picServerHost)
|
||||||
: data.Nav_RecitifyUser ? data.Nav_RecitifyUser.NAME : ''
|
: data.Nav_RecitifyUser ? data.Nav_RecitifyUser.NAME : ''
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="验收人签名">{
|
<Descriptions.Item label="验收人签名">{
|
||||||
(data.STATUS == 20 || data.STATUS == 30) && data.Nav_AcceptUser && data.Nav_AcceptUser.FILE_PATH ?
|
(data.STATUS == 20 || data.STATUS == 30) && data.Nav_AcceptUser && data.Nav_AcceptUser.FILE_PATH ?
|
||||||
showUserSign(data.Nav_RecitifyUser, config.picServerHost)
|
showUserSign(data.Nav_AcceptUser, config.picServerHost)
|
||||||
: data.Nav_AcceptUser ? data.Nav_AcceptUser.NAME : ''
|
: data.Nav_AcceptUser ? data.Nav_AcceptUser.NAME : ''
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
</Descriptions>
|
</Descriptions>
|
||||||
|
|||||||
@ -105,7 +105,15 @@ class SK080ShowPrint extends React.Component {
|
|||||||
<Descriptions.Item label="发起部门">{data.Nav_ApplyDepartment ? data.Nav_ApplyDepartment.NAME : ''}</Descriptions.Item>
|
<Descriptions.Item label="发起部门">{data.Nav_ApplyDepartment ? data.Nav_ApplyDepartment.NAME : ''}</Descriptions.Item>
|
||||||
<Descriptions.Item label="发起人">{data.Nav_ApplyUser ? data.Nav_ApplyUser.NAME : ''}</Descriptions.Item>
|
<Descriptions.Item label="发起人">{data.Nav_ApplyUser ? data.Nav_ApplyUser.NAME : ''}</Descriptions.Item>
|
||||||
<Descriptions.Item label="整改记录单编号">{data.Nav_RectifyRecord?data.Nav_RectifyRecord?.CODE:''}</Descriptions.Item>
|
<Descriptions.Item label="整改记录单编号">{data.Nav_RectifyRecord?data.Nav_RectifyRecord?.CODE:''}</Descriptions.Item>
|
||||||
|
<Descriptions.Item label="生产单元">{data.Nav_RectifyRecord && data.Nav_RectifyRecord.Nav_ProductionUnit?data.Nav_RectifyRecord.Nav_ProductionUnit.NAME:''}</Descriptions.Item>
|
||||||
|
<Descriptions.Item label="检查区域">{data.Nav_RectifyRecord && data.Nav_RectifyRecord.Nav_RiskArea?data.Nav_RectifyRecord.Nav_RiskArea.NAME:''}</Descriptions.Item>
|
||||||
|
<Descriptions.Item label="隐患地点">{data.Nav_RectifyRecord?data.Nav_RectifyRecord.HIDDEN_PLACE:''}</Descriptions.Item>
|
||||||
|
<Descriptions.Item label="整改前照片">{
|
||||||
|
showFileImg(data.Nav_RectifyRecord && data.Nav_RectifyRecord.Nav_RectifyPhotoas ? data.Nav_RectifyRecord.Nav_RectifyPhotoas:null, config.picServerHost, this)
|
||||||
|
}</Descriptions.Item>
|
||||||
|
<Descriptions.Item label="整改前照片">{
|
||||||
|
showFileImg(data.Nav_RectifyRecord && data.Nav_RectifyRecord.Nav_RectifyPhotobs ? data.Nav_RectifyRecord.Nav_RectifyPhotobs:null, config.picServerHost, this)
|
||||||
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="重大事故隐患名称">{data.HIDDEN_DESCRIPTION}</Descriptions.Item>
|
<Descriptions.Item label="重大事故隐患名称">{data.HIDDEN_DESCRIPTION}</Descriptions.Item>
|
||||||
<Descriptions.Item label="重大事故隐患形成原因分析">{data.HIDDEN_REASON}</Descriptions.Item>
|
<Descriptions.Item label="重大事故隐患形成原因分析">{data.HIDDEN_REASON}</Descriptions.Item>
|
||||||
<Descriptions.Item label="实地复查负责人">{data.Nav_ChargeUser ? data.Nav_ChargeUser.NAME : ''}</Descriptions.Item>
|
<Descriptions.Item label="实地复查负责人">{data.Nav_ChargeUser ? data.Nav_ChargeUser.NAME : ''}</Descriptions.Item>
|
||||||
@ -117,7 +125,7 @@ class SK080ShowPrint extends React.Component {
|
|||||||
})
|
})
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="复查情况描述">{data.REVIEW_DESCRIPTION}</Descriptions.Item>
|
<Descriptions.Item label="复查情况描述">{data.REVIEW_DESCRIPTION}</Descriptions.Item>
|
||||||
<Descriptions.Item label="附件">{
|
<Descriptions.Item label="复查照片">{
|
||||||
showFileImg(data?.Nav_Files, config.picServerHost, this)
|
showFileImg(data?.Nav_Files, config.picServerHost, this)
|
||||||
}</Descriptions.Item>
|
}</Descriptions.Item>
|
||||||
<Descriptions.Item label="复查结论">{enums.SKReviewResultEnum.enums[data.REVIEW_RESULT]}</Descriptions.Item>
|
<Descriptions.Item label="复查结论">{enums.SKReviewResultEnum.enums[data.REVIEW_RESULT]}</Descriptions.Item>
|
||||||
|
|||||||
@ -19,13 +19,13 @@ const config = {
|
|||||||
local: {
|
local: {
|
||||||
serviceHost: api => {
|
serviceHost: api => {
|
||||||
const apis = getServiceHost(api)
|
const apis = getServiceHost(api)
|
||||||
return `http://localhost:${apis}`
|
return `http://121.41.2.71:${apis}`
|
||||||
},
|
},
|
||||||
cookieDomain: "",
|
cookieDomain: "",
|
||||||
flowServiceHost: "http://124.117.209.78:3188/",
|
flowServiceHost: "http://124.117.209.78:3188/",
|
||||||
hmiUrl: "http://localhost:8060/",
|
hmiUrl: "http://localhost:8060/",
|
||||||
webSocketHost: 'ws://localhost:3140/',
|
webSocketHost: 'ws://localhost:3140/',
|
||||||
picServerHost: 'http://localhost:5199',
|
picServerHost: 'http://localhost:5000/webImg',
|
||||||
videoServerHost: 'https://sps.cxtc.com:3199',
|
videoServerHost: 'https://sps.cxtc.com:3199',
|
||||||
dataVUrl: "http://localhost:8062/home",
|
dataVUrl: "http://localhost:8062/home",
|
||||||
version: version,
|
version: version,
|
||||||
@ -42,8 +42,8 @@ const config = {
|
|||||||
cookieDomain: "",
|
cookieDomain: "",
|
||||||
hmiUrl: "http://124.117.209.78:8098/",
|
hmiUrl: "http://124.117.209.78:8098/",
|
||||||
webSocketHost: 'ws://124.117.209.78:3140/',
|
webSocketHost: 'ws://124.117.209.78:3140/',
|
||||||
picServerHost: 'http://124.117.209.78:5199',
|
picServerHost: 'http://124.117.209.78:5000/webImg',
|
||||||
videoServerHost: 'http://124.117.209.78:5199',
|
videoServerHost: 'http://124.117.209.78:5000/webImg',
|
||||||
dataVUrl: "http://124.117.209.78:3167/home",
|
dataVUrl: "http://124.117.209.78:3167/home",
|
||||||
version: version,
|
version: version,
|
||||||
guideSeverHost: "http://124.117.209.78:5110/jyapk/",
|
guideSeverHost: "http://124.117.209.78:5110/jyapk/",
|
||||||
@ -59,8 +59,8 @@ const config = {
|
|||||||
cookieDomain: "",
|
cookieDomain: "",
|
||||||
hmiUrl: "http://121.41.2.71:8098/",
|
hmiUrl: "http://121.41.2.71:8098/",
|
||||||
webSocketHost: 'ws://121.41.2.71:3140/',
|
webSocketHost: 'ws://121.41.2.71:3140/',
|
||||||
picServerHost: 'http://121.41.2.71:5199',
|
picServerHost: 'http://121.41.2.71:5000/webImg',
|
||||||
videoServerHost: 'http://121.41.2.71:5199',
|
videoServerHost: 'https://sps.cxtc.com:3199',
|
||||||
dataVUrl: "http://121.41.2.71:3167/home",
|
dataVUrl: "http://121.41.2.71:3167/home",
|
||||||
version: version,
|
version: version,
|
||||||
guideSeverHost: "http://121.41.2.71/jyapk/",
|
guideSeverHost: "http://121.41.2.71/jyapk/",
|
||||||
|
|||||||
@ -297,7 +297,6 @@ class AdvanceSearch extends Component {
|
|||||||
*/
|
*/
|
||||||
handleSearch = (self = true) => {
|
handleSearch = (self = true) => {
|
||||||
if (this.setShareIns(self)) return
|
if (this.setShareIns(self)) return
|
||||||
console.log('调用查询开始', 1)
|
|
||||||
const { onSearch } = this.props
|
const { onSearch } = this.props
|
||||||
onSearch instanceof Function && onSearch()
|
onSearch instanceof Function && onSearch()
|
||||||
}
|
}
|
||||||
|
|||||||
32
src/files/edit/FO055.js
Normal file
32
src/files/edit/FO055.js
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
import { message } from "antd/lib/index";
|
||||||
|
import { getPropertyData, extendInclude, extendRule, getDataFieldValue, setDataFieldValue, initFilter, guid } from "../../utils/common";
|
||||||
|
import moment from 'moment';
|
||||||
|
/**
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
// 编辑
|
||||||
|
export default {
|
||||||
|
onBeforeSaveHandleRecord(params) {
|
||||||
|
params.record.TaskID = params.data.TaskID //TaskID传递消息表ID
|
||||||
|
params.record.PUBLISH = params.customParams;
|
||||||
|
},
|
||||||
|
onBeforeEdit: ({ isNew,login,record, dispatch,stateData,setRowFieldVisible, setFieldEditable,setFieldVisible,setFieldValue,setFieldValueByBatch }) => {
|
||||||
|
if (isNew) {
|
||||||
|
let json = initFilter(login.OrgId);
|
||||||
|
extendRule(json, "PARENT_ID", 1, null);
|
||||||
|
extendRule(json, "DEPARTMENT_TYPE", 1, 5);
|
||||||
|
dispatch({
|
||||||
|
type: 'app/getDataByPost',
|
||||||
|
url: 'FM/Department/Get',
|
||||||
|
payload: json,
|
||||||
|
onComplete: (ret) => {
|
||||||
|
if (ret) {
|
||||||
|
let temps = [];
|
||||||
|
temps.push({ field: 'COMPANY_NAME', value: ret.NAME })
|
||||||
|
setFieldValueByBatch(temps);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
46
src/files/edit/PF153.js
Normal file
46
src/files/edit/PF153.js
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
import React, { useState } from 'react';
|
||||||
|
import { Form } from 'antd'
|
||||||
|
import { extendInclude, extendRule, initFilter } from "../../utils/common";
|
||||||
|
import moment from 'moment'
|
||||||
|
import BraftEditor from 'braft-editor';
|
||||||
|
import 'braft-editor/dist/index.css';
|
||||||
|
/**
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
|
||||||
|
function ContentChange() {
|
||||||
|
var ccc = this;
|
||||||
|
debugger
|
||||||
|
}
|
||||||
|
export default {
|
||||||
|
onBeforeEdit: ({ isNew, setFieldValue, stateData, setFieldVisible }) => {
|
||||||
|
if (stateData.ORG_ID != "00300000-0000-0000-0000-000000000000") {
|
||||||
|
setFieldVisible('Nav_Orgs', false)
|
||||||
|
}
|
||||||
|
if (isNew) {
|
||||||
|
setFieldValue('START', moment(new Date()).format("YYYY-MM-DD"))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
handleRenderHeadControl(params) {
|
||||||
|
if (params.colConfig.field == 'CONTENT') {
|
||||||
|
const initialEditorState = BraftEditor.createEditorState(params.record.CONTENT || '');
|
||||||
|
return <>
|
||||||
|
{/* 自定义表单控件 */}
|
||||||
|
{/* <Form.Item> */}
|
||||||
|
<BraftEditor style={{ border: "2px solid red", width: "95%" }}
|
||||||
|
value={initialEditorState}
|
||||||
|
onBlur={(editorState) => {
|
||||||
|
const htmlContent = editorState.toHTML();
|
||||||
|
if (params.record.CONTENT != htmlContent) {
|
||||||
|
params.setFieldValue('CONTENT', htmlContent);
|
||||||
|
// params.setState('CONTENT', htmlContent);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
placeholder="请输入正文..."
|
||||||
|
/>
|
||||||
|
{/* </Form.Item> */}
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
@ -37,6 +37,12 @@ export default {
|
|||||||
setFieldVisible('ACCEPT_DATE', false);
|
setFieldVisible('ACCEPT_DATE', false);
|
||||||
setFieldVisible('ACCEPT_RESULTE', false);
|
setFieldVisible('ACCEPT_RESULTE', false);
|
||||||
setFieldVisible('ACCEPT_OPINION', false);
|
setFieldVisible('ACCEPT_OPINION', false);
|
||||||
|
}else if(stateData.STATUS === 10)
|
||||||
|
{
|
||||||
|
setFieldVisible("CONTEXT", false);
|
||||||
|
setFieldVisible('ACCEPT_DATE', false);
|
||||||
|
setFieldVisible('ACCEPT_RESULTE', true);
|
||||||
|
setFieldVisible('ACCEPT_OPINION', true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -86,3 +86,9 @@ app.router(require('./router').default);
|
|||||||
app.start('#root');
|
app.start('#root');
|
||||||
|
|
||||||
window.g_app = app;
|
window.g_app = app;
|
||||||
|
|
||||||
|
const { localStorage } = window
|
||||||
|
for (let i = 0; i < localStorage.length; i++) {
|
||||||
|
const key = localStorage.key(i)
|
||||||
|
key.indexOf('_requestKey') > -1 && localStorage.removeItem(key)
|
||||||
|
}
|
||||||
@ -22,11 +22,8 @@ export default {
|
|||||||
return ret
|
return ret
|
||||||
},
|
},
|
||||||
*getTableData ({ payload, url, onComplete }, { call, put }) {
|
*getTableData ({ payload, url, onComplete }, { call, put }) {
|
||||||
console.log('执行前',appService.getTableData)
|
|
||||||
const ret = yield call(appService.getTableData, { payload, url })
|
const ret = yield call(appService.getTableData, { payload, url })
|
||||||
console.log('执行后')
|
|
||||||
if (typeof onComplete === 'function') {
|
if (typeof onComplete === 'function') {
|
||||||
console.log('执行后',ret)
|
|
||||||
onComplete(ret)
|
onComplete(ret)
|
||||||
}
|
}
|
||||||
return ret
|
return ret
|
||||||
|
|||||||
@ -116,27 +116,27 @@ const SC052ShowPrint = createLoadableComponent(() => import('../components/Custo
|
|||||||
// const CM043ShowPrint = createLoadableComponent(() => import('../components/CustomPages/CM/CM043ShowPrint'))
|
// const CM043ShowPrint = createLoadableComponent(() => import('../components/CustomPages/CM/CM043ShowPrint'))
|
||||||
// const CM045ShowPrint = createLoadableComponent(() => import('../components/CustomPages/CM/CM045ShowPrint'))
|
// const CM045ShowPrint = createLoadableComponent(() => import('../components/CustomPages/CM/CM045ShowPrint'))
|
||||||
|
|
||||||
const SE001EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE001EditPage'))
|
// const SE001EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE001EditPage'))
|
||||||
const SEConfigPage = createLoadableComponent(() => import('../components/CustomPages/SE/SEConfigPage'))
|
// const SEConfigPage = createLoadableComponent(() => import('../components/CustomPages/SE/SEConfigPage'))
|
||||||
const SE005ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ShowPrint'))
|
// const SE005ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ShowPrint'))
|
||||||
const SESafeSurveyTest = createLoadableComponent(() => import('../components/CustomPages/SE/SESafeSurveyTest'))
|
// const SESafeSurveyTest = createLoadableComponent(() => import('../components/CustomPages/SE/SESafeSurveyTest'))
|
||||||
const SE005ReportEdit = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ReportEdit'))
|
// const SE005ReportEdit = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ReportEdit'))
|
||||||
const SE007AllView = createLoadableComponent(() => import('../components/CustomPages/SE/SE007AllView'))
|
// const SE007AllView = createLoadableComponent(() => import('../components/CustomPages/SE/SE007AllView'))
|
||||||
const SE009ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE009ShowPrint'))
|
// const SE009ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE009ShowPrint'))
|
||||||
const SE011ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE011ShowPrint'))
|
// const SE011ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE011ShowPrint'))
|
||||||
const SE013ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE013ShowPrint'))
|
// const SE013ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE013ShowPrint'))
|
||||||
const SE015ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE015ShowPrint'))
|
// const SE015ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE015ShowPrint'))
|
||||||
const SE018EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018EditPage'))
|
// const SE018EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018EditPage'))
|
||||||
const SE018PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018PaperPage'))
|
// const SE018PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018PaperPage'))
|
||||||
const SE019ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE019ShowPrint'))
|
// const SE019ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE019ShowPrint'))
|
||||||
const SE021ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE021ShowPrint'))
|
// const SE021ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE021ShowPrint'))
|
||||||
const SE061ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE061ShowPrint'))
|
// const SE061ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE061ShowPrint'))
|
||||||
const SE071ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE071ShowPrint'))
|
// const SE071ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE071ShowPrint'))
|
||||||
const SE061PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE061PaperPage'))
|
// const SE061PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE061PaperPage'))
|
||||||
const SE062ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE062ShowPrint'))
|
// const SE062ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE062ShowPrint'))
|
||||||
const SE063ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE063ShowPrint'))
|
// const SE063ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE063ShowPrint'))
|
||||||
const SE051ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE051ShowPrint'))
|
// const SE051ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE051ShowPrint'))
|
||||||
const SE007ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE007ShowPrint'))
|
// const SE007ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE007ShowPrint'))
|
||||||
|
|
||||||
// const BI001HomeDetail = createLoadableComponent(() => import('../components/CustomPages/BI/BI001HomeDetail'))
|
// const BI001HomeDetail = createLoadableComponent(() => import('../components/CustomPages/BI/BI001HomeDetail'))
|
||||||
// const BI002HomeDetail = createLoadableComponent(() => import('../components/CustomPages/BI/BI002HomeDetail'))
|
// const BI002HomeDetail = createLoadableComponent(() => import('../components/CustomPages/BI/BI002HomeDetail'))
|
||||||
@ -321,27 +321,27 @@ export default function (componentName, formId, formParam, data, formCode, formD
|
|||||||
RiskSubmit: <RiskSubmit formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
RiskSubmit: <RiskSubmit formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
CrucialLicenseJob: <CrucialLicenseJob formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
CrucialLicenseJob: <CrucialLicenseJob formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
|
|
||||||
SE001EditPage: <SE001EditPage formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE001EditPage: <SE001EditPage formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SEConfigPage: <SEConfigPage formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SEConfigPage: <SEConfigPage formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE005ShowPrint: <SE005ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE005ShowPrint: <SE005ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SESafeSurveyTest: <SESafeSurveyTest formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SESafeSurveyTest: <SESafeSurveyTest formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE005ReportEdit: <SE005ReportEdit formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE005ReportEdit: <SE005ReportEdit formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE007ShowPrint: <SE007ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE007ShowPrint: <SE007ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE007AllView: <SE007AllView formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE007AllView: <SE007AllView formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE009ShowPrint: <SE009ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE009ShowPrint: <SE009ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE011ShowPrint: <SE011ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE011ShowPrint: <SE011ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE013ShowPrint: <SE013ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE013ShowPrint: <SE013ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE015ShowPrint: <SE015ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE015ShowPrint: <SE015ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE018EditPage: <SE018EditPage formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE018EditPage: <SE018EditPage formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE018PaperPage: <SE018PaperPage formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE018PaperPage: <SE018PaperPage formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE019ShowPrint: <SE019ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE019ShowPrint: <SE019ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE021ShowPrint: <SE021ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE021ShowPrint: <SE021ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE061PaperPage: <SE061PaperPage formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE061PaperPage: <SE061PaperPage formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE061ShowPrint: <SE061ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE061ShowPrint: <SE061ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE071ShowPrint: <SE071ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE071ShowPrint: <SE071ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE062ShowPrint: <SE062ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE062ShowPrint: <SE062ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE063ShowPrint: <SE063ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE063ShowPrint: <SE063ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SE051ShowPrint: <SE051ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
// SE051ShowPrint: <SE051ShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
SCShowPrint: <SCShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
SCShowPrint: <SCShowPrint formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
|
|
||||||
PF136FormRunAnalysis: <PF136FormRunAnalysis formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
PF136FormRunAnalysis: <PF136FormRunAnalysis formId={formId} formParam={formParam} data={data} formCode={formCode} />,
|
||||||
|
|||||||
@ -109,6 +109,7 @@ export function getRequestHeaders(url, type = 'post', data, isIgnoreTenant) {
|
|||||||
if (Tenant && Tenant == '003' && data && data.Parameter22 && data.Parameter22.length > 20) {
|
if (Tenant && Tenant == '003' && data && data.Parameter22 && data.Parameter22.length > 20) {
|
||||||
//总公司 Parameter22 存入子公司的ORG_ID 自动切换数据库链接
|
//总公司 Parameter22 存入子公司的ORG_ID 自动切换数据库链接
|
||||||
headers.Tenant = data.Parameter22.substring(0, 3)
|
headers.Tenant = data.Parameter22.substring(0, 3)
|
||||||
|
data.IgnoreDataRule = true
|
||||||
}
|
}
|
||||||
|
|
||||||
return headers
|
return headers
|
||||||
@ -130,17 +131,20 @@ export function httpPost(url, data, onlyData = true, ignoreThrottle, onException
|
|||||||
// 与 isIgnoreTenant 相关配套的逻辑
|
// 与 isIgnoreTenant 相关配套的逻辑
|
||||||
const extraData = isIgnoreTenant ? { OrgId: '', IgnoreOrgRule: true } : {}
|
const extraData = isIgnoreTenant ? { OrgId: '', IgnoreOrgRule: true } : {}
|
||||||
//const dataStr = JSON.stringify(Object.assign({}, data, { DataRule, OrgRule, ...extraData }))
|
//const dataStr = JSON.stringify(Object.assign({}, data, { DataRule, OrgRule, ...extraData }))
|
||||||
|
var headers = getRequestHeaders(url, 'post', data, isIgnoreTenant)
|
||||||
|
if (headers.Tenant == '003') {
|
||||||
|
data.IgnoreDataRule = true
|
||||||
|
}
|
||||||
const dataStr = JSON.stringify(Object.assign({}, data, { OrgRule, ...extraData }))
|
const dataStr = JSON.stringify(Object.assign({}, data, { OrgRule, ...extraData }))
|
||||||
// 请求节流
|
// 请求节流
|
||||||
const requestKey = url + '_' + MD5(dataStr) + '_requestKey'
|
const requestKey = url + '_' + MD5(dataStr) + '_requestKey'
|
||||||
const loaded = storage('lacal').getItem(requestKey).val
|
const loaded = storage('lacal').getItem(requestKey).val
|
||||||
if (loaded && !ignoreThrottle) return null
|
if (loaded && !ignoreThrottle) return null
|
||||||
storage('lacal').setItem(requestKey, true)
|
storage('lacal').setItem(requestKey, true)
|
||||||
|
|
||||||
// 发起请求
|
// 发起请求
|
||||||
return request(url, {
|
return request(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: getRequestHeaders(url, 'post', data, isIgnoreTenant),
|
headers: headers,// getRequestHeaders(url, 'post', data, isIgnoreTenant),
|
||||||
body: dataStr,
|
body: dataStr,
|
||||||
}, onlyData, requestKey, onException)
|
}, onlyData, requestKey, onException)
|
||||||
}
|
}
|
||||||
@ -158,6 +162,10 @@ export function httpGet(url, data, onlyData = true, onException) {
|
|||||||
const searchMark = url.indexOf('?') !== -1
|
const searchMark = url.indexOf('?') !== -1
|
||||||
const formUrl = `${url}${searchMark ? '&' : '?'}${formParams}`
|
const formUrl = `${url}${searchMark ? '&' : '?'}${formParams}`
|
||||||
url = formParams ? formUrl : url
|
url = formParams ? formUrl : url
|
||||||
|
// var headers = getRequestHeaders(url, 'get', data)
|
||||||
|
// if (headers.Tenant == '003' && data) {
|
||||||
|
// data.IgnoreDataRule = true
|
||||||
|
// }
|
||||||
return request(url, {
|
return request(url, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: getRequestHeaders(url, 'get', data),
|
headers: getRequestHeaders(url, 'get', data),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user