src/tabviews/custom/components/card/balcony/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/tabviews/zshare/mutilform/mkSelect/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/templates/sharecomponent/actioncomponent/dragaction/card.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/templates/sharecomponent/actioncomponent/index.scss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/appmanage/submutilform/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/design/header/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/login/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/mobdesign/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/tabviews/custom/components/card/balcony/index.jsx
@@ -100,7 +100,7 @@ config: _config, arr_field: _config.columns.map(col => col.field).join(','), }, () => { if (_config.wrap.datatype !== 'static' && _config.setting && _config.setting.sync !== 'true' && _config.setting.onload === 'true') { if (_config.wrap.datatype !== 'static' && _config.setting && _config.setting.sync !== 'true') { this.loadData() } }) src/tabviews/zshare/mutilform/mkSelect/index.jsx
@@ -17,6 +17,19 @@ } else { value = [] } } else if (value) { let option = null if (config.setAll === 'true') { option= config.oriOptions[1] } else { option= config.oriOptions[0] } if (typeof(value) === 'string' && option && typeof(option.value) === 'number') { value = +value if (isNaN(value)) { value = config.initval } } } this.state = { @@ -40,7 +53,7 @@ } UNSAFE_componentWillReceiveProps (nextProps) { const { config } = this.state const { config, value } = this.state if (!is(fromJS(config.oriOptions), fromJS(nextProps.config.oriOptions))) { this.setState({ @@ -52,6 +65,21 @@ this.setState({ value: nextProps.config.initval, }) } else { let option = null if (config.setAll === 'true') { option= nextProps.config.oriOptions[1] } else { option= nextProps.config.oriOptions[0] } if (option && typeof(option.value) === 'number') { let val = +value if (!isNaN(val)) { this.setState({ value: val }) } } } } } src/templates/sharecomponent/actioncomponent/dragaction/card.jsx
@@ -28,10 +28,17 @@ const opacity = isDragging ? 0 : 1 let hasProfile = false let forbidSql = false if (['pop', 'prompt', 'exec'].includes(card.OpenType)) { hasProfile = true if (card.verify && card.verify.default === 'false') { forbidSql = true } } else if (card.OpenType === 'excelIn' || card.OpenType === 'excelOut') { hasProfile = true if (card.verify && card.verify.default === 'false') { forbidSql = true } } else if (card.funcType === 'print') { hasProfile = true } @@ -53,7 +60,7 @@ key={card.uuid} onDoubleClick={() => doubleClickCard(id)} > {card.label}{card.position === 'grid' && <Icon type="table" />} {card.label}{card.position === 'grid' && <Icon type="table" />}{forbidSql && <Icon type="disconnect" />} </Button> </div> </div> src/templates/sharecomponent/actioncomponent/index.scss
@@ -23,6 +23,12 @@ right: 1px; bottom: 0px; } .anticon-disconnect { font-size: 10px; position: absolute; right: 1px; top: 0px; } } } } src/views/appmanage/submutilform/index.jsx
@@ -158,7 +158,7 @@ </Col> {typename !== 'pc' ? <Col span={12}> <Form.Item label={ <Tooltip placement="topLeft" title="使用公众号授权登录时,是否需要绑定用户。"> <Tooltip placement="topLeft" title="使用公众号授权登录或使用小程序时,是否需要绑定用户。"> <QuestionCircleOutlined className="mk-form-tip" /> 用户绑定 </Tooltip> src/views/design/header/index.jsx
@@ -241,34 +241,36 @@ componentDidMount () { if (window.GLOB.systemType !== 'production') { Api.getSystemConfig({func: 'sPC_Get_Roles_sModular'}).then(res => { if (res.status) { let _permFuncField = [] let _sysRoles = [] if (res.Roles && res.Roles.length > 0) { _sysRoles = res.Roles.map(role => { return { uuid: Utils.getuuid(), value: role.RoleID, text: role.RoleName } }) setTimeout(() => { Api.getSystemConfig({func: 'sPC_Get_Roles_sModular'}).then(res => { if (res.status) { let _permFuncField = [] let _sysRoles = [] if (res.Roles && res.Roles.length > 0) { _sysRoles = res.Roles.map(role => { return { uuid: Utils.getuuid(), value: role.RoleID, text: role.RoleName } }) } if (res.sModular && res.sModular.length > 0) { res.sModular.forEach(field => { if (field.ModularNo) { _permFuncField.push(field.ModularNo) } }) _permFuncField = _permFuncField.sort() } sessionStorage.setItem('sysRoles', JSON.stringify(_sysRoles)) sessionStorage.setItem('permFuncField', JSON.stringify(_permFuncField)) } if (res.sModular && res.sModular.length > 0) { res.sModular.forEach(field => { if (field.ModularNo) { _permFuncField.push(field.ModularNo) } }) _permFuncField = _permFuncField.sort() } sessionStorage.setItem('sysRoles', JSON.stringify(_sysRoles)) sessionStorage.setItem('permFuncField', JSON.stringify(_permFuncField)) } }) }) }, 50) } else if (window.GLOB.systemType === 'production') { this.props.resetEditLevel('HS') this.props.modifyMainMenu({ src/views/login/index.jsx
@@ -390,6 +390,13 @@ this.setState({ auth: true }) if (res.warning_day && res.warning_day < 20) { Modal.warning({ title: `距离授权到期还剩${res.warning_day}天,请联系管理员。`, okText: '知道了' }) } } else { localStorage.removeItem(_authUrl) this.setState({ src/views/mobdesign/index.jsx
@@ -734,14 +734,6 @@ title: cell.label, }) }) card.backElements && card.backElements.forEach(cell => { if (cell.eleType !== 'button') return this.checkBtn(cell) m.children.push({ key: cell.uuid, title: cell.label, }) }) }) } else if (item.type === 'carousel' || item.type === 'timeline') { item.subcards.forEach(card => { @@ -835,10 +827,86 @@ } getMiniStyle = (config) => { console.log(config) config.miniStyle = this.transferStyle(config.style) let traversal = (components) => { return components.map(item => { if (item.style) { item.miniStyle = this.transferStyle(item.style) } if (item.headerStyle) { item.miniHeaderStyle = this.transferStyle(item.headerStyle) } if (item.action && item.action.length > 0) { item.action = item.action.map(btn => { btn.miniStyle = this.transferStyle(btn.style) return btn }) } if (item.type === 'tabs') { item.subtabs.forEach(tab => { tab.components = traversal(tab.components) }) } else if (item.type === 'group') { item.components = traversal(item.components) } else if (['card', 'carousel', 'timeline'].includes(item.type) || (item.type === 'table' && item.subtype === 'tablecard')) { item.subcards.forEach(card => { card.miniStyle = this.transferStyle(card.style) card.elements = card.elements.map(cell => { cell.miniStyle = this.transferStyle(cell.style) return cell }) }) } else if (item.type === 'balcony') { item.elements && item.elements.forEach(cell => { cell.miniStyle = this.transferStyle(cell.style) }) } else if (item.type === 'menubar') { item.subMenus = item.subMenus.map(menu => { menu.miniStyle = this.transferStyle(menu.style) return menu }) } else if (item.type === 'table' && item.subtype === 'normaltable') { let getCols = (cols) => { return cols.map(col => { if (col.type === 'colspan') { col.subcols = getCols(col.subcols || []) } else if (col.type === 'custom' || col.type === 'action') { col.elements = col.elements.map(cell => { cell.miniStyle = this.transferStyle(cell.style) return cell }) } return col }) } item.cols = getCols(item.cols) } return item }) } config.components = traversal(config.components) return config } transferStyle = (style = {}) => { let _style = '' Object.keys(style).forEach(key => { if (['hShadow', 'vShadow', 'shadowBlur', 'shadowColor'].includes(key)) return if (!style[key]) return _style += `${key.replace(/[A-Z]/g, m => '-' + m.toLowerCase())}:${style[key]};` }) return _style } submitConfig = () => { let config = fromJS(this.state.config).toJS()