perf/export-docx
Lei OT 1 year ago
parent 3f4fcc3789
commit 4fb6273ed1

@ -422,14 +422,14 @@ const handleBatchImportOK = () => {
const editable = isEditing(record); const editable = isEditing(record);
return editable ? ( return editable ? (
<span> <span>
<a href="#!" onClick={() => handleSave(record.id)} style={{ marginRight: 8 }}>{t('products:save')}</a> <a href="#!" onClick={() => handleSave(record.id)} style={{ marginRight: 8 }}>{t('Save')}</a>
<Popconfirm title={t('products:sureCancel')} onConfirm={cancel}><a>{t('products:cancel')}</a></Popconfirm> <Popconfirm title={t('sureCancel')} onConfirm={cancel}><a>{t('Cancel')}</a></Popconfirm>
</span> </span>
) : ( ) : (
<span> <span>
<a disabled={editingid !== ''} onClick={() => edit(record)} style={{ marginRight: 8 }}>{t('products:edit')}</a> <a disabled={editingid !== ''} onClick={() => edit(record)} style={{ marginRight: 8 }}>{t('Edit')}</a>
<Popconfirm title={t('products:sureDelete')} onConfirm={() => handleDelete(record.id)}> <Popconfirm title={t('sureDelete')} onConfirm={() => handleDelete(record.id)}>
<a>{t('products:delete')}</a> <a>{t('Delete')}</a>
</Popconfirm> </Popconfirm>
</span> </span>
); );
@ -596,16 +596,16 @@ const handleBatchImportOK = () => {
style={{ width: "80%" }} style={{ width: "80%" }}
title={ title={
<Breadcrumb items={[ <Breadcrumb items={[
{ title: <Link to={'/'}>供应商</Link> }, // { title: <Link to={'/'}></Link> },
{ title: <Link to={'/products'}>综费</Link> }, { title: <Link to={'/products'}>综费</Link> },
{ title: '文章列表' } { title: '文章列表' }
]} /> ]} />
} }
> >
<h2>{t('products:productProject')}</h2> <h2>{t('products:EditComponents.info')}</h2>
<Row gutter={16}> <Row gutter={16}>
{selectedCategory.map((item, index) => ( {selectedCategory.map((item, index) => (
<Col span={8} id={index}> <Col span={8} key={item.code}>
<Form.Item name={['info', item.code]} label={item.name}> <Form.Item name={['info', item.code]} label={item.name}>
{item.code === "duration" ? ( {item.code === "duration" ? (
<Input suffix="H"/> <Input suffix="H"/>
@ -621,6 +621,7 @@ const handleBatchImportOK = () => {
<div> <div>
{tags.map(tag => ( {tags.map(tag => (
<Tag <Tag
key={tag}
id={tag} id={tag}
onClick={() => handleTagClick(tag)} onClick={() => handleTagClick(tag)}
color={tag === selectedTag ? 'blue' : undefined} color={tag === selectedTag ? 'blue' : undefined}
@ -692,7 +693,7 @@ const handleBatchImportOK = () => {
<Button type="primary" htmlType="submit" style={{ marginTop: 16, float: "right", marginRight: "20%" }}> <Button type="primary" htmlType="submit" style={{ marginTop: 16, float: "right", marginRight: "20%" }}>
{t('products:save')} {t('Save')}
</Button> </Button>
<Button type="primary" htmlType="submit" style={{ marginTop: 16, float: "right", marginRight: "5%" }}> <Button type="primary" htmlType="submit" style={{ marginTop: 16, float: "right", marginRight: "5%" }}>
提交审核 提交审核

Loading…
Cancel
Save