Commit 8653124af9427b57ee2213e7d364b9f31112a048

Authored by zhangzzzz
1 parent 00c7b32a

开放问题反馈功能;

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
@@ -54,7 +54,7 @@ @@ -54,7 +54,7 @@
54 } 54 }
55 } 55 }
56 56
57 -.modalWrap { 57 +.modalWrap:not(.antdV5) {
58 :global { 58 :global {
59 .ant-modal-close { 59 .ant-modal-close {
60 color: #4a495f !important; 60 color: #4a495f !important;
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 }