|
@@ -16,6 +16,7 @@ const UpdateSeal = props => {
|
16
|
16
|
// 查询列表
|
17
|
17
|
function getSealData() {
|
18
|
18
|
request({ ...apis.seal.taSealById, urlData: { id: sealId } }).then((data) => {
|
|
19
|
+ console.log(data, 'datadata')
|
19
|
20
|
setSealData(data)
|
20
|
21
|
}).catch((err) => {
|
21
|
22
|
message.error(err.msg || err.message)
|
|
@@ -86,30 +87,35 @@ const UpdateSeal = props => {
|
86
|
87
|
|
87
|
88
|
return (
|
88
|
89
|
<Modal footer={null} title="修改印章" visible={props.visible} onCancel={() => close({visable:false, companyId:companyId, sealId:''})} width={800}>
|
89
|
|
- <Form labelCol={{ span: 7 }} wrapperCol={{ span: 12 }} onSubmit={handleSubmit}>
|
90
|
|
- <Form.Item label="印章名称">
|
91
|
|
- {getFieldDecorator('sealName',{initialValue:sealData.sealName,
|
92
|
|
- rules: [
|
93
|
|
- {
|
94
|
|
- required: true,
|
95
|
|
- message: '请填写印章名称',
|
96
|
|
- },
|
97
|
|
- ],
|
98
|
|
- })(<Input maxLength={10}/>)}
|
99
|
|
- </Form.Item>
|
100
|
|
- <Form.Item label="印章图" help="166*166 像素,PNG格式透明底 ">
|
101
|
|
- {getFieldDecorator('sealImg', {initialValue:sealData.sealImg,
|
102
|
|
- rules: [{ required: true, message: '请选择印章图' }],
|
103
|
|
- })(
|
104
|
|
- <ImageUpload beforeUpload={handleBeforeUpload} />,
|
105
|
|
- )}
|
106
|
|
- </Form.Item>
|
107
|
|
- <Form.Item style={{ width: '400px', margin: 'auto', display: 'flex', justifyContent: 'space-between' }}>
|
108
|
|
- <Button type="primary" htmlType="submit">确定</Button>
|
109
|
|
-
|
110
|
|
- <Button onClick={() => close({visable:false, companyId: companyId, sealId:''})}>取消</Button>
|
111
|
|
- </Form.Item>
|
112
|
|
- </Form>
|
|
90
|
+ {
|
|
91
|
+ sealData && sealData.sealId &&
|
|
92
|
+ (
|
|
93
|
+ <Form labelCol={{ span: 7 }} wrapperCol={{ span: 12 }} onSubmit={handleSubmit}>
|
|
94
|
+ <Form.Item label="印章名称">
|
|
95
|
+ {getFieldDecorator('sealName',{initialValue:sealData.sealName,
|
|
96
|
+ rules: [
|
|
97
|
+ {
|
|
98
|
+ required: true,
|
|
99
|
+ message: '请填写印章名称',
|
|
100
|
+ },
|
|
101
|
+ ],
|
|
102
|
+ })(<Input maxLength={10}/>)}
|
|
103
|
+ </Form.Item>
|
|
104
|
+ <Form.Item label="印章图" help="166*166 像素,PNG格式透明底 ">
|
|
105
|
+ {getFieldDecorator('sealImg', {initialValue:sealData.sealImg,
|
|
106
|
+ rules: [{ required: true, message: '请选择印章图' }],
|
|
107
|
+ })(
|
|
108
|
+ <ImageUpload beforeUpload={handleBeforeUpload} />,
|
|
109
|
+ )}
|
|
110
|
+ </Form.Item>
|
|
111
|
+ <Form.Item style={{ width: '400px', margin: 'auto', display: 'flex', justifyContent: 'space-between' }}>
|
|
112
|
+ <Button type="primary" htmlType="submit">确定</Button>
|
|
113
|
+
|
|
114
|
+ <Button onClick={() => close({visable:false, companyId: companyId, sealId:''})}>取消</Button>
|
|
115
|
+ </Form.Item>
|
|
116
|
+ </Form>
|
|
117
|
+ )
|
|
118
|
+ }
|
113
|
119
|
</Modal>
|
114
|
120
|
);
|
115
|
121
|
}
|