Commit 36c434a1 authored by TZW's avatar TZW

11

parent c69946df
...@@ -5,6 +5,7 @@ import DetailPro from '../DetailPro'; ...@@ -5,6 +5,7 @@ import DetailPro from '../DetailPro';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
function DrawerPro(props) { function DrawerPro(props) {
let pushSettingFlag = props.pushSettingFlag;
let newProps = { ...props }; let newProps = { ...props };
delete newProps.children; delete newProps.children;
const detailprops = { const detailprops = {
...@@ -30,6 +31,16 @@ function DrawerPro(props) { ...@@ -30,6 +31,16 @@ function DrawerPro(props) {
) : ( ) : (
<InitForm {...newProps} /> <InitForm {...newProps} />
)} )}
{pushSettingFlag ? (
<a
id="pushSettingBtn"
onClick={() => {
props.checkVariableOpen();
}}
>
查看变量
</a>
) : null}
</Drawer> </Drawer>
); );
} }
......
...@@ -485,4 +485,11 @@ ol { ...@@ -485,4 +485,11 @@ ol {
aside { aside {
z-index: 998; z-index: 998;
} }
}
#pushSettingBtn {
position: relative;
top: -162px;
left: 74px;
color: #1890ff;
} }
\ No newline at end of file
function getcolumns(setdrawer) { function getcolumns(setdrawer) {
return { return {
"columns": [ columns: [
{ {
"title": "推送场景", title: '推送场景',
"dataIndex": "businessMsgSceneId", dataIndex: 'msgSceneName',
"key": "businessMsgSceneId" key: 'businessMsgSceneId',
}, valueType: 'select',
{ options: {
"title": "推送方式", path: '/base/paBusinessMsgScene/queryAllForSelect',
"dataIndex": "sendMethodType", params: {},
"key": "sendMethodType" },
}, },
{ {
"title": "适用类型", title: '推送方式',
"dataIndex": "fitField", dataIndex: 'sendMethodName',
"key": "fitField", key: 'sendMethodType',
"valueType": "select", valueType: 'select',
"mode": "radio", options: [
"options": [ {
{ value: '4',
"label": "全部", label: '邮件',
"value": "1" },
],
},
{
title: '适用类型',
dataIndex: 'fitFieldName',
key: 'fitField',
valueType: 'select',
mode: 'radio',
options: [
{
label: '全部',
value: '1',
},
{
label: '公司',
value: '2',
},
{
label: '部门',
value: '3',
},
{
label: '工厂',
value: '4',
},
{
label: '车间',
value: '5',
},
{
label: '工段',
value: '6',
},
{
label: '产线',
value: '7',
},
],
},
{
title: '类型名称',
dataIndex: 'fieldName',
key: 'fieldId',
},
{
title: '推送内容',
dataIndex: 'sendContent',
key: 'sendContent',
valueType: 'textarea',
},
],
pathconfig: {
enableadd: true,
enableedit: true,
enabledelete: true,
enabledetail: true,
add: '',
edit: '',
list: '/base/paBusinessMsgOption/queryList',
delete: '/base/paBusinessMsgOption/deleteById',
detail: '',
}, },
{ };
"label": "公司", }
"value": "2" export default getcolumns;
},
{
"label": "部门",
"value": "3"
},
{
"label": "工厂",
"value": "4"
},
{
"label": "车间",
"value": "5"
},
{
"label": "工段",
"value": "6"
},
{
"label": "产线",
"value": "7"
}
]
},
{
"title": "适用选择",
"dataIndex": "fieldId",
"key": "fieldId"
},
{
"title": "推送标题",
"dataIndex": "sendTitle",
"key": "sendTitle"
},
{
"title": "推送内容",
"dataIndex": "sendContent",
"key": "sendContent"
}
],
"pathconfig": {
"enableadd": false,
"enableedit": false,
"enabledelete": false,
"enabledetail": false,
"add": "",
"edit": "",
"list": "/repair/umRepairOrder/queryRepairOrderList",
"delete": "",
"detail": ""
}
};
}
export default getcolumns;
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment