This commit is contained in:
zhangds 2022-08-15 14:33:12 +08:00
commit 56f13879aa
3 changed files with 49 additions and 40 deletions

View File

@ -46,8 +46,8 @@
.flex {
display: grid;
grid-template-columns: repeat(2, 50%);
grid-template-columns: repeat(1, 100%);
text-align: left;
}
}

View File

@ -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>
)

View File

@ -884,7 +884,7 @@ export default class acclist extends React.Component {
/*628
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,7 +993,22 @@ export default class acclist extends React.Component {
</a>
)}
<span className='grid-link disabled'>撤销审批</span>
{/* 创建中 置灰更多按钮 */}
{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}
@ -1003,8 +1017,7 @@ export default class acclist extends React.Component {
}>
<DropdownClickTrigger>
<div className='linkmore'>
{' '}
更多 <Icon type={'down'} />{' '}
更多 <Icon type={'down'} />
</div>
</DropdownClickTrigger>
<DropdownContent>
@ -1020,10 +1033,10 @@ export default class acclist extends React.Component {
</Menu>
</DropdownContent>
</Dropdown>
)}
</span>
)
}
return str
}
}}