Commit e1c42e86029af7fd0132626d0b20f2eaf4600d0e
Merge branch 'main' of http://git.xlyprint.cn/zhangz/xlyUmi into main
Showing
9 changed files
with
131 additions
and
49 deletions
src/components/Common/CommonComponent/index.js
| @@ -432,6 +432,8 @@ export default class CommonComponent extends Component { | @@ -432,6 +432,8 @@ export default class CommonComponent extends Component { | ||
| 432 | } else if (this.props.onSaveState) { | 432 | } else if (this.props.onSaveState) { |
| 433 | this.props.onSaveState({ sCurrMemoProps }); | 433 | this.props.onSaveState({ sCurrMemoProps }); |
| 434 | } | 434 | } |
| 435 | + } else if (commonUtils.isNotEmptyObject(sMemo) && sMemo.indexOf('sName') > -1) { /* 计算方案 变量设置双击弹出 */ | ||
| 436 | + this.props.onFieldDoubleClick(this.props.record, this.state.dataValue, this.props.showConfig, this.props.name); | ||
| 435 | } else if (commonUtils.isNotEmptyObject(sMemo) && sMemo.indexOf('sValue') > -1) { /* 计算方案 变量设置双击弹出 */ | 437 | } else if (commonUtils.isNotEmptyObject(sMemo) && sMemo.indexOf('sValue') > -1) { /* 计算方案 变量设置双击弹出 */ |
| 436 | this.props.onFieldDoubleClick(this.props.record, this.state.dataValue, this.props.showConfig, this.props.name); | 438 | this.props.onFieldDoubleClick(this.props.record, this.state.dataValue, this.props.showConfig, this.props.name); |
| 437 | } else if (commonUtils.isNotEmptyObject(sMemo) && sMemo.indexOf('sAssignField') > -1) { /* 赋值字段 变量设置双击弹出 */ | 439 | } else if (commonUtils.isNotEmptyObject(sMemo) && sMemo.indexOf('sAssignField') > -1) { /* 赋值字段 变量设置双击弹出 */ |
src/components/Common/CommonViewTable/index.js
| @@ -400,6 +400,7 @@ export default class CommonViewTable extends Component { | @@ -400,6 +400,7 @@ export default class CommonViewTable extends Component { | ||
| 400 | <Col key={child.sId} span={iColValue} order={iOrder} style={{ display: sFormulaMemo, position: 'relative' }}> | 400 | <Col key={child.sId} span={iColValue} order={iOrder} style={{ display: sFormulaMemo, position: 'relative' }}> |
| 401 | <ShowType {...showTypeProps} /> | 401 | <ShowType {...showTypeProps} /> |
| 402 | {this.props.extraContent && this.props.extraContent(child)} | 402 | {this.props.extraContent && this.props.extraContent(child)} |
| 403 | + {this.props.extraContent2 && this.props.extraContent2(child)} | ||
| 403 | </Col> | 404 | </Col> |
| 404 | ); | 405 | ); |
| 405 | }) | 406 | }) |
src/components/Common/Feedback/Feedback.js
| @@ -229,7 +229,7 @@ const Feedback = props => { | @@ -229,7 +229,7 @@ const Feedback = props => { | ||
| 229 | // src={`http://localhost:8000/commonFeedback?iframeId=${ | 229 | // src={`http://localhost:8000/commonFeedback?iframeId=${ |
| 230 | // iframeId.current | 230 | // iframeId.current |
| 231 | // }`} | 231 | // }`} |
| 232 | - src={`https://project.xlyprint.cn/commonFeedback?iframeId=${ | 232 | + src={`http://project.xlyprint.cn/commonFeedback?iframeId=${ |
| 233 | iframeId.current | 233 | iframeId.current |
| 234 | }`} | 234 | }`} |
| 235 | title="问题反馈" | 235 | title="问题反馈" |
src/components/Common/PersonCenter/SwitchCompanyAndLanguage/index.js
| @@ -20,7 +20,7 @@ const SwitchCompanyAndLanguageEvent = props => { | @@ -20,7 +20,7 @@ const SwitchCompanyAndLanguageEvent = props => { | ||
| 20 | const dataUrl = `${commonConfig.server_host}brand/getBrand/${userinfo.sId}`; | 20 | const dataUrl = `${commonConfig.server_host}brand/getBrand/${userinfo.sId}`; |
| 21 | 21 | ||
| 22 | const dataReturn = (await commonServices.getService(token, dataUrl)).data; | 22 | const dataReturn = (await commonServices.getService(token, dataUrl)).data; |
| 23 | - if (dataReturn.code === 1) { | 23 | + if (dataReturn?.code === 1) { |
| 24 | const companyList = dataReturn.dataset.rows[0]; | 24 | const companyList = dataReturn.dataset.rows[0]; |
| 25 | setState(pre => ({ ...pre, companyList, companyData: companyList.find(item => item.sSubsidiaryId === userinfo.sSubsidiaryId) })); | 25 | setState(pre => ({ ...pre, companyList, companyData: companyList.find(item => item.sSubsidiaryId === userinfo.sSubsidiaryId) })); |
| 26 | setTimeout(() => { | 26 | setTimeout(() => { |
src/components/Common/ProblemFeedback/index.less
src/components/QuickQuote/index.jsx
| @@ -1291,15 +1291,21 @@ const BoxComponent = props => { | @@ -1291,15 +1291,21 @@ const BoxComponent = props => { | ||
| 1291 | const upViewProps20 = getUpViewPropsByITag(20); | 1291 | const upViewProps20 = getUpViewPropsByITag(20); |
| 1292 | 1292 | ||
| 1293 | const { sBackProcessData = [] } = slaveRowData; | 1293 | const { sBackProcessData = [] } = slaveRowData; |
| 1294 | + | ||
| 1295 | + const [downAbleConfigsNew, setDownAbleConfigsNew] = useState([]); | ||
| 1296 | + useEffect(() => { | ||
| 1297 | + setDownAbleConfigsNew(downAbleConfigs); | ||
| 1298 | + }, [selectedNode.showName, boxModel]); | ||
| 1299 | + | ||
| 1294 | // 获取sType为2的 | 1300 | // 获取sType为2的 |
| 1295 | const downViewProps = { | 1301 | const downViewProps = { |
| 1296 | ...props, | 1302 | ...props, |
| 1297 | - viewConfigs: downAbleConfigs.filter(item => item.sPartsName === boxModel || !item.sPartsName), | ||
| 1298 | - tableConfig: { ...slaveConfig, gdsconfigformslave: downAbleConfigs }, | 1303 | + viewConfigs: downAbleConfigsNew.filter(item => item.sPartsName === boxModel || !item.sPartsName), |
| 1304 | + tableConfig: { ...slaveConfig, gdsconfigformslave: downAbleConfigsNew }, | ||
| 1299 | iColValueView: 24, | 1305 | iColValueView: 24, |
| 1300 | viewRow: slaveRowData, | 1306 | viewRow: slaveRowData, |
| 1301 | getViewRow: config => { | 1307 | getViewRow: config => { |
| 1302 | - return sBackProcessData.find(item => item[config.sName]) || {}; | 1308 | + return sBackProcessData.find(item => item[config.sName0 || config.sName]) || {}; |
| 1303 | }, | 1309 | }, |
| 1304 | tableName: `slaveDown${boxModel}`, | 1310 | tableName: `slaveDown${boxModel}`, |
| 1305 | getSqlDropDownData: (...args) => { | 1311 | getSqlDropDownData: (...args) => { |
| @@ -1375,6 +1381,51 @@ const BoxComponent = props => { | @@ -1375,6 +1381,51 @@ const BoxComponent = props => { | ||
| 1375 | "" | 1381 | "" |
| 1376 | ); | 1382 | ); |
| 1377 | }, | 1383 | }, |
| 1384 | + extraContent2: child => { | ||
| 1385 | + return ( | ||
| 1386 | + <div className={styles.downOperations}> | ||
| 1387 | + {!child.sParentName ? ( | ||
| 1388 | + <Button | ||
| 1389 | + icon={<PlusOutlined />} | ||
| 1390 | + type="link" | ||
| 1391 | + onClick={() => { | ||
| 1392 | + setDownAbleConfigsNew(pre => { | ||
| 1393 | + const iIndex = pre.findIndex(item => item.sId === child.sId); | ||
| 1394 | + const childLen = pre.filter(item => item.sParentName === child.showName).length; | ||
| 1395 | + const newSId = commonUtils.createSid(); | ||
| 1396 | + const newConfig = { | ||
| 1397 | + ...child, | ||
| 1398 | + sId: newSId, | ||
| 1399 | + sParentName: child.showName, | ||
| 1400 | + sName: `${child.sName}_${newSId}`, | ||
| 1401 | + }; | ||
| 1402 | + return [...pre.slice(0, iIndex + childLen + 1), newConfig, ...pre.slice(iIndex + childLen + 1)]; | ||
| 1403 | + }); | ||
| 1404 | + }} | ||
| 1405 | + /> | ||
| 1406 | + ) : ( | ||
| 1407 | + <Button | ||
| 1408 | + icon={<MinusOutlined />} | ||
| 1409 | + type="link" | ||
| 1410 | + onClick={() => { | ||
| 1411 | + setDownAbleConfigsNew(pre => { | ||
| 1412 | + const iIndex = pre.findIndex(item => item.sId === child.sId); | ||
| 1413 | + return [...pre.slice(0, iIndex), ...pre.slice(iIndex + 1)]; | ||
| 1414 | + }); | ||
| 1415 | + | ||
| 1416 | + const slaveRowIndex = slaveData.findIndex(item => item.sId === slaveRowData.sId); | ||
| 1417 | + props.setState(pre => { | ||
| 1418 | + const { sBackProcessData = [] } = slaveData[slaveRowIndex]; | ||
| 1419 | + const iIndex = sBackProcessData.findIndex(item => item[child.sName]); | ||
| 1420 | + slaveData[slaveRowIndex].sBackProcessData.splice(iIndex, 1); | ||
| 1421 | + return { ...pre, slaveData }; | ||
| 1422 | + }); | ||
| 1423 | + }} | ||
| 1424 | + /> | ||
| 1425 | + )} | ||
| 1426 | + </div> | ||
| 1427 | + ); | ||
| 1428 | + }, | ||
| 1378 | }; | 1429 | }; |
| 1379 | 1430 | ||
| 1380 | // 获取sType为3的 | 1431 | // 获取sType为3的 |
| @@ -1728,7 +1779,7 @@ const BoxComponent = props => { | @@ -1728,7 +1779,7 @@ const BoxComponent = props => { | ||
| 1728 | <> | 1779 | <> |
| 1729 | {/* <Divider {...dividerProps}>后道参数</Divider> */} | 1780 | {/* <Divider {...dividerProps}>后道参数</Divider> */} |
| 1730 | <div className={styles.boxPart2}> | 1781 | <div className={styles.boxPart2}> |
| 1731 | - <div className={styles.viewTable}> | 1782 | + <div className={`${styles.viewTable} ${styles.viewTableDownView}`}> |
| 1732 | <CommonViewTable {...downViewProps} /> | 1783 | <CommonViewTable {...downViewProps} /> |
| 1733 | </div> | 1784 | </div> |
| 1734 | </div> | 1785 | </div> |
src/components/QuickQuote/index.less
| @@ -144,6 +144,14 @@ | @@ -144,6 +144,14 @@ | ||
| 144 | } | 144 | } |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | + .viewTableDownView { | ||
| 148 | + :global { | ||
| 149 | + .viewStyle { | ||
| 150 | + padding-right: 14px; | ||
| 151 | + } | ||
| 152 | + } | ||
| 153 | + } | ||
| 154 | + | ||
| 147 | .viewTable1 { | 155 | .viewTable1 { |
| 148 | padding: 0 20px 0 0; | 156 | padding: 0 20px 0 0; |
| 149 | } | 157 | } |
| @@ -413,4 +421,25 @@ | @@ -413,4 +421,25 @@ | ||
| 413 | width: calc(100% - 200px); | 421 | width: calc(100% - 200px); |
| 414 | height: 100%; | 422 | height: 100%; |
| 415 | } | 423 | } |
| 424 | +} | ||
| 425 | + | ||
| 426 | +.downOperations { | ||
| 427 | + position: absolute; | ||
| 428 | + top: -4px; | ||
| 429 | + right: -14px; | ||
| 430 | + display: flex; | ||
| 431 | + flex-direction: column; | ||
| 432 | + z-index: 1000; | ||
| 433 | + | ||
| 434 | + :global { | ||
| 435 | + button { | ||
| 436 | + padding: 0; | ||
| 437 | + width: 16px; | ||
| 438 | + height: 16px; | ||
| 439 | + | ||
| 440 | + >span { | ||
| 441 | + font-size: 10px; | ||
| 442 | + } | ||
| 443 | + } | ||
| 444 | + } | ||
| 416 | } | 445 | } |
| 417 | \ No newline at end of file | 446 | \ No newline at end of file |
src/index.less
| @@ -10,6 +10,7 @@ body, | @@ -10,6 +10,7 @@ body, | ||
| 10 | background: #888; | 10 | background: #888; |
| 11 | height: 100%; | 11 | height: 100%; |
| 12 | font-size: 13px; | 12 | font-size: 13px; |
| 13 | + overflow: hidden; | ||
| 13 | } | 14 | } |
| 14 | 15 | ||
| 15 | html { | 16 | html { |
| @@ -138,10 +139,6 @@ html { | @@ -138,10 +139,6 @@ html { | ||
| 138 | white-space: nowrap; | 139 | white-space: nowrap; |
| 139 | } | 140 | } |
| 140 | 141 | ||
| 141 | -.ant-modal-body { | ||
| 142 | - max-height: unset !important; | ||
| 143 | -} | ||
| 144 | - | ||
| 145 | .topTable { | 142 | .topTable { |
| 146 | .ant-table-header { | 143 | .ant-table-header { |
| 147 | table { | 144 | table { |
| @@ -1185,32 +1182,50 @@ tr[class*="SetRow_"] { | @@ -1185,32 +1182,50 @@ tr[class*="SetRow_"] { | ||
| 1185 | height: 28px !important; | 1182 | height: 28px !important; |
| 1186 | } | 1183 | } |
| 1187 | 1184 | ||
| 1188 | -.ant-modal-content { | ||
| 1189 | - border-radius: 0 !important; | ||
| 1190 | -} | 1185 | +.ant-modal-wrap:not(.antdV5) { |
| 1191 | 1186 | ||
| 1192 | -.ant-modal-header { | ||
| 1193 | - padding: 7px 24px !important; | ||
| 1194 | - background: var(--xly-skin-modal-bg-color, #646464) !important; | ||
| 1195 | - color: #fff !important; | ||
| 1196 | - font-size: 18px; | ||
| 1197 | - border-radius: 0 !important; | ||
| 1198 | -} | 1187 | + .ant-modal-body { |
| 1188 | + max-height: unset !important; | ||
| 1189 | + padding-top: 12px !important; | ||
| 1190 | + overflow: hidden; | ||
| 1199 | 1191 | ||
| 1200 | -.ant-modal-close-x { | ||
| 1201 | - height: 33px !important; | ||
| 1202 | - line-height: 33px !important; | ||
| 1203 | -} | 1192 | + .ant-col-5 { |
| 1193 | + width: 20%; | ||
| 1194 | + } | ||
| 1195 | + } | ||
| 1204 | 1196 | ||
| 1205 | -.ant-modal-title { | ||
| 1206 | - color: #fff !important; | ||
| 1207 | -} | 1197 | + .ant-modal-footer { |
| 1198 | + border-top: 0 !important; | ||
| 1199 | + } | ||
| 1208 | 1200 | ||
| 1209 | -.ant-modal-close { | ||
| 1210 | - color: #fff !important; | 1201 | + .ant-modal-content { |
| 1202 | + border-radius: 0 !important; | ||
| 1203 | + } | ||
| 1204 | + | ||
| 1205 | + .ant-modal-header { | ||
| 1206 | + padding: 7px 24px !important; | ||
| 1207 | + background: var(--xly-skin-modal-bg-color, #646464) !important; | ||
| 1208 | + color: #fff !important; | ||
| 1209 | + font-size: 18px; | ||
| 1210 | + border-radius: 0 !important; | ||
| 1211 | + } | ||
| 1212 | + | ||
| 1213 | + .ant-modal-close-x { | ||
| 1214 | + height: 33px !important; | ||
| 1215 | + line-height: 33px !important; | ||
| 1216 | + } | ||
| 1211 | 1217 | ||
| 1218 | + .ant-modal-title { | ||
| 1219 | + color: #fff !important; | ||
| 1220 | + } | ||
| 1221 | + | ||
| 1222 | + .ant-modal-close { | ||
| 1223 | + color: #fff !important; | ||
| 1224 | + | ||
| 1225 | + } | ||
| 1212 | } | 1226 | } |
| 1213 | 1227 | ||
| 1228 | + | ||
| 1214 | .ant-menu-item i.selected { | 1229 | .ant-menu-item i.selected { |
| 1215 | color: #f6c136; | 1230 | color: #f6c136; |
| 1216 | } | 1231 | } |
| @@ -1575,10 +1590,6 @@ tr[class*="SetRow_"] { | @@ -1575,10 +1590,6 @@ tr[class*="SetRow_"] { | ||
| 1575 | overflow: auto; | 1590 | overflow: auto; |
| 1576 | } | 1591 | } |
| 1577 | 1592 | ||
| 1578 | -.ant-modal-body { | ||
| 1579 | - overflow: hidden; | ||
| 1580 | -} | ||
| 1581 | - | ||
| 1582 | /* 设置通用切换slaveTab */ | 1593 | /* 设置通用切换slaveTab */ |
| 1583 | .ant-tabs.ant-tabs-card>.ant-tabs-bar .ant-tabs-tab-disabled span { | 1594 | .ant-tabs.ant-tabs-card>.ant-tabs-bar .ant-tabs-tab-disabled span { |
| 1584 | color: #6b6868; | 1595 | color: #6b6868; |
| @@ -3286,18 +3297,6 @@ th.column-money { | @@ -3286,18 +3297,6 @@ th.column-money { | ||
| 3286 | z-index: 900; | 3297 | z-index: 900; |
| 3287 | } | 3298 | } |
| 3288 | 3299 | ||
| 3289 | -.ant-modal-body { | ||
| 3290 | - padding-top: 12px !important; | ||
| 3291 | - | ||
| 3292 | - .ant-col-5 { | ||
| 3293 | - width: 20%; | ||
| 3294 | - } | ||
| 3295 | -} | ||
| 3296 | - | ||
| 3297 | -.ant-modal-footer { | ||
| 3298 | - border-top: 0 !important; | ||
| 3299 | -} | ||
| 3300 | - | ||
| 3301 | .ant-table-footer { | 3300 | .ant-table-footer { |
| 3302 | background: none !important; | 3301 | background: none !important; |
| 3303 | border-top: none !important; | 3302 | border-top: none !important; |
src/routes/indexPage.js
| @@ -4,8 +4,8 @@ import { ConfigProvider, Layout } from 'antd-v4'; | @@ -4,8 +4,8 @@ import { ConfigProvider, Layout } from 'antd-v4'; | ||
| 4 | import zhCN from 'antd-v4/lib/locale-provider/zh_CN'; | 4 | import zhCN from 'antd-v4/lib/locale-provider/zh_CN'; |
| 5 | // import Search from '../components/Common/Search'; | 5 | // import Search from '../components/Common/Search'; |
| 6 | import PersonCenter from './personCenter/personCenter'; | 6 | import PersonCenter from './personCenter/personCenter'; |
| 7 | -// import Feedback from './feedback/feedback'; | ||
| 8 | -// import ProblemFeedback from './problemFeedback/problemFeedback'; | 7 | +import Feedback from './feedback/feedback'; |
| 8 | +import ProblemFeedback from './problemFeedback/problemFeedback'; | ||
| 9 | import TabCon from './tab/tab'; | 9 | import TabCon from './tab/tab'; |
| 10 | import styles from './indexPage.less'; | 10 | import styles from './indexPage.less'; |
| 11 | 11 | ||
| @@ -41,7 +41,7 @@ function IndexPage() { | @@ -41,7 +41,7 @@ function IndexPage() { | ||
| 41 | 版权所有上海小羚羊软件股份有限公司 咨询电话:400-880-6237 | 41 | 版权所有上海小羚羊软件股份有限公司 咨询电话:400-880-6237 |
| 42 | </Footer> */} | 42 | </Footer> */} |
| 43 | </Layout> | 43 | </Layout> |
| 44 | - {/* { ['project.xlyprint.cn'].includes(location.hostname) ? <ProblemFeedback /> : <Feedback /> } */} | 44 | + { ['project.xlyprint.cn', 'localhost'].includes(location.hostname) ? <ProblemFeedback /> : <Feedback /> } |
| 45 | </ConfigProvider> | 45 | </ConfigProvider> |
| 46 | ); | 46 | ); |
| 47 | } | 47 | } |