Merge branch 'clickCopyv1.4' of https://codeup.aliyun.com/5f9118049cffa29cfdd3be1c/marketing/frontend into clickCopyv1.4
This commit is contained in:
commit
56f13879aa
|
@ -46,8 +46,8 @@
|
|||
|
||||
.flex {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 50%);
|
||||
|
||||
grid-template-columns: repeat(1, 100%);
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: Wind
|
||||
* @Date: 2022-06-06 14:53:58
|
||||
* @LastEditors: Wind
|
||||
* @LastEditTime: 2022-08-15 10:23:22
|
||||
* @LastEditTime: 2022-08-15 14:18:35
|
||||
* @Description:
|
||||
* @FilePath: \frontend\src\components\knockGold\mobileCmponent.jsx
|
||||
*/
|
||||
|
@ -17,11 +17,7 @@ export default ({ data }) => {
|
|||
setNewWeek(sortWeeks(data.ruleWeek))
|
||||
}, [data.ruleWeek])
|
||||
|
||||
function createElement(type) {
|
||||
{
|
||||
/* irregularDate: [[]], //不规则日期
|
||||
irregularTime: [[]], //不规则时间 */
|
||||
}
|
||||
function createElement() {
|
||||
if (data.usable_time === 'week') {
|
||||
return (
|
||||
<div className='available_time'>
|
||||
|
@ -49,12 +45,12 @@ export default ({ data }) => {
|
|||
<h3>可用时间</h3>
|
||||
<ul className='timeList flex'>
|
||||
{data.irregularDate?.map((item) => (
|
||||
<li style={{ textAlign: 'center' }}>
|
||||
<li>
|
||||
{item.join(' 至 ')}
|
||||
{data.irregularTime.map((item1) => {
|
||||
if (item1[1])
|
||||
return (
|
||||
<p style={{ textAlign: 'center', marginTop: '5px' }}>
|
||||
<p style={{ marginTop: '5px' }}>
|
||||
{item1[0]}~{item1[1]}
|
||||
</p>
|
||||
)
|
||||
|
|
|
@ -884,7 +884,7 @@ export default class acclist extends React.Component {
|
|||
/*计划已完结6,未通过2,已作废8 不可复制
|
||||
key创建中1,未通过2 不可复制
|
||||
*/
|
||||
if ([1, 6, 7].includes(rowData.status)) {
|
||||
if ([6, 7].includes(rowData.status)) {
|
||||
str = (
|
||||
<span>
|
||||
<a className='grid-link disabled'>编辑</a>
|
||||
|
@ -948,8 +948,7 @@ export default class acclist extends React.Component {
|
|||
}>
|
||||
<DropdownClickTrigger>
|
||||
<div className='linkmore'>
|
||||
{' '}
|
||||
更多 <Icon type={'down'} />{' '}
|
||||
更多 <Icon type={'down'} />
|
||||
</div>
|
||||
</DropdownClickTrigger>
|
||||
<DropdownContent>
|
||||
|
@ -994,36 +993,50 @@ export default class acclist extends React.Component {
|
|||
</a>
|
||||
)}
|
||||
<span className='grid-link disabled'>撤销审批</span>
|
||||
|
||||
<Dropdown
|
||||
position={DropdownPosition.RightTop}
|
||||
visible={this.state.menuVisible}
|
||||
onVisibleChange={(v) =>
|
||||
this.setState({ visible: v })
|
||||
}>
|
||||
<DropdownClickTrigger>
|
||||
<div className='linkmore'>
|
||||
{' '}
|
||||
更多 <Icon type={'down'} />{' '}
|
||||
</div>
|
||||
</DropdownClickTrigger>
|
||||
<DropdownContent>
|
||||
<Menu
|
||||
onClick={(e, key) =>
|
||||
this.menuItemClick(key, rowData)
|
||||
}>
|
||||
<MenuItem key='1'>发送密码及压缩包</MenuItem>
|
||||
<MenuItem key='2' disabled>
|
||||
日志
|
||||
</MenuItem>
|
||||
<MenuItem key='5'>作废</MenuItem>
|
||||
</Menu>
|
||||
</DropdownContent>
|
||||
</Dropdown>
|
||||
{/* 创建中 置灰更多按钮 */}
|
||||
{rowData.status === 1 ? (
|
||||
<Dropdown
|
||||
position={DropdownPosition.RightTop}
|
||||
visible={this.state.menuVisible}
|
||||
onVisibleChange={(v) =>
|
||||
this.setState({ visible: v })
|
||||
}>
|
||||
<DropdownClickTrigger>
|
||||
<div className='linkmore disabled'>
|
||||
更多 <Icon type={'down'} />{' '}
|
||||
</div>
|
||||
</DropdownClickTrigger>
|
||||
<DropdownContent></DropdownContent>
|
||||
</Dropdown>
|
||||
) : (
|
||||
<Dropdown
|
||||
position={DropdownPosition.RightTop}
|
||||
visible={this.state.menuVisible}
|
||||
onVisibleChange={(v) =>
|
||||
this.setState({ visible: v })
|
||||
}>
|
||||
<DropdownClickTrigger>
|
||||
<div className='linkmore'>
|
||||
更多 <Icon type={'down'} />
|
||||
</div>
|
||||
</DropdownClickTrigger>
|
||||
<DropdownContent>
|
||||
<Menu
|
||||
onClick={(e, key) =>
|
||||
this.menuItemClick(key, rowData)
|
||||
}>
|
||||
<MenuItem key='1'>发送密码及压缩包</MenuItem>
|
||||
<MenuItem key='2' disabled>
|
||||
日志
|
||||
</MenuItem>
|
||||
<MenuItem key='5'>作废</MenuItem>
|
||||
</Menu>
|
||||
</DropdownContent>
|
||||
</Dropdown>
|
||||
)}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
return str
|
||||
}
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue