提交 7e292289 authored 作者: 钟是志's avatar 钟是志

22558 【重要】一站式移动端审核样式调整

上级 be15b2c1
...@@ -38,6 +38,7 @@ export default class IsNewTable extends Component { ...@@ -38,6 +38,7 @@ export default class IsNewTable extends Component {
getCurrentFormTitle, getCurrentFormTitle,
} = this.props; } = this.props;
if (!isEdit) { if (!isEdit) {
// console.log(items);
// 展示栏 暂不做处理 // 展示栏 暂不做处理
return ( return (
<> <>
......
...@@ -28,7 +28,7 @@ import QRCode from 'qrcode.react'; ...@@ -28,7 +28,7 @@ import QRCode from 'qrcode.react';
import { Editor } from 'draft-js'; import { Editor } from 'draft-js';
import MyBlockRenderer from '../App/MyBlockRender'; import MyBlockRenderer from '../App/MyBlockRender';
import CronEditor from 'antd-cron-editor'; import CronEditor from 'antd-cron-editor';
import { Card, Flex, List as MobileList, Switch as MobileSwitch } from 'antd-mobile'; import { Card, Flex, List as MobileList, Switch as MobileSwitch, List } from 'antd-mobile';
import ReactEcharts from 'echarts-for-react'; import ReactEcharts from 'echarts-for-react';
import ZdyTable from '../Table/index'; import ZdyTable from '../Table/index';
import { connect } from 'dva'; import { connect } from 'dva';
...@@ -1322,7 +1322,9 @@ export default class tableCom extends Component { ...@@ -1322,7 +1322,9 @@ export default class tableCom extends Component {
const { getFieldDecorator, getFieldError, getFieldProps } = this.props.form; const { getFieldDecorator, getFieldError, getFieldProps } = this.props.form;
const disabled = json != null ? json.disabled : false; const disabled = json != null ? json.disabled : false;
const permRank = json != null ? (json.permRank != null ? json.permRank : 0) : 0; const permRank = json != null ? (json.permRank != null ? json.permRank : 0) : 0;
// console.log(json.comName); if(json?.label === '账号'){
console.log(json);
}
if (json == null) { if (json == null) {
return <></>; return <></>;
} }
...@@ -1445,8 +1447,8 @@ export default class tableCom extends Component { ...@@ -1445,8 +1447,8 @@ export default class tableCom extends Component {
})(<Input type="hidden" />)} })(<Input type="hidden" />)}
<span <span
style={{ style={{
fontWeight: get == 'mobile' ? 'bold' : '', fontWeight: get === 'mobile' ? 'bold' : '',
marginRight: get == 'mobile' ? 12 : '', marginRight: get === 'mobile' ? 12 : '',
}} }}
{...json.props} {...json.props}
> >
...@@ -1458,7 +1460,7 @@ export default class tableCom extends Component { ...@@ -1458,7 +1460,7 @@ export default class tableCom extends Component {
} }
} }
if (json.comName == 'Description') { if (json.comName === 'Description') {
const key = json.sqls[json.sqls.length - 1]; const key = json.sqls[json.sqls.length - 1];
var cm = ''; var cm = '';
var value; var value;
...@@ -1472,6 +1474,7 @@ export default class tableCom extends Component { ...@@ -1472,6 +1474,7 @@ export default class tableCom extends Component {
} else if (defaultValues) { } else if (defaultValues) {
value = defaultValues[key]; value = defaultValues[key];
} }
switch (json.viewName) { switch (json.viewName) {
case 'TextArea': case 'TextArea':
cm = ( cm = (
...@@ -1491,10 +1494,11 @@ export default class tableCom extends Component { ...@@ -1491,10 +1494,11 @@ export default class tableCom extends Component {
break; break;
case 'Input': case 'Input':
console.log(value);
cm = ( cm = (
<span style={{ paddingRight: get === 'mobile' ? 8 : '' }}> <span style={{ paddingRight: get === 'mobile' ? 8 : '' }}>
{value} {value}
{get === 'mobile' ? <br /> : ''} {get === 'mobile' ? '' : ''}
</span> </span>
); );
...@@ -2259,7 +2263,8 @@ export default class tableCom extends Component { ...@@ -2259,7 +2263,8 @@ export default class tableCom extends Component {
); );
break; break;
} }
} else { }
else {
//编辑模式 //编辑模式
if (json.vlds && json.vlds.length > 0) { if (json.vlds && json.vlds.length > 0) {
for (let i in json.vlds) { for (let i in json.vlds) {
...@@ -3166,7 +3171,7 @@ export default class tableCom extends Component { ...@@ -3166,7 +3171,7 @@ export default class tableCom extends Component {
if (json.isLabel) { if (json.isLabel) {
if (get === 'mobile' && !this.props.isEdit) { if (get === 'mobile' && !this.props.isEdit) {
return ( return (
<Card style={{ margin: 5, border: '1px solid #ccc' }}> <List style={{ margin: 5, border: '1px solid #ccc' }} className={styles.mobileList}>
{modalCode ? ( {modalCode ? (
<FormModal <FormModal
{...modalProps} {...modalProps}
...@@ -3198,9 +3203,11 @@ export default class tableCom extends Component { ...@@ -3198,9 +3203,11 @@ export default class tableCom extends Component {
) : ( ) : (
'' ''
)} )}
<Card.Header title={<span style={{ fontSize: 14 }}>{title}:</span>} /> <List.Item extra={cm} multipleLine={true}>{title}</List.Item>
<Card.Body>{cm}</Card.Body> {/*<Card.Header title={<span style={{ fontSize: 14 }}>{title}: {cm}</span>} />*/}
</Card> {/*移动端只读模式 组件修改*/}
{/*<Card.Body>{cm}</Card.Body>*/}
</List>
); );
} }
if (get === 'web') { if (get === 'web') {
......
...@@ -228,3 +228,14 @@ ...@@ -228,3 +228,14 @@
font-weight: bold; font-weight: bold;
font-family: PingFang-SC-Regular; font-family: PingFang-SC-Regular;
} }
.mobileList{
:global{
.am-list-item .am-list-line .am-list-extra{
white-space: normal;
ul{
padding-inline-start: 0;
}
}
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论