Commit 8653124af9427b57ee2213e7d364b9f31112a048

Authored by zhangzzzz
1 parent 00c7b32a

开放问题反馈功能;

src/components/Common/Feedback/Feedback.js
... ... @@ -229,7 +229,7 @@ const Feedback = props => {
229 229 // src={`http://localhost:8000/commonFeedback?iframeId=${
230 230 // iframeId.current
231 231 // }`}
232   - src={`https://project.xlyprint.cn/commonFeedback?iframeId=${
  232 + src={`http://project.xlyprint.cn/commonFeedback?iframeId=${
233 233 iframeId.current
234 234 }`}
235 235 title="问题反馈"
... ...
src/components/Common/PersonCenter/SwitchCompanyAndLanguage/index.js
... ... @@ -20,7 +20,7 @@ const SwitchCompanyAndLanguageEvent = props => {
20 20 const dataUrl = `${commonConfig.server_host}brand/getBrand/${userinfo.sId}`;
21 21  
22 22 const dataReturn = (await commonServices.getService(token, dataUrl)).data;
23   - if (dataReturn.code === 1) {
  23 + if (dataReturn?.code === 1) {
24 24 const companyList = dataReturn.dataset.rows[0];
25 25 setState(pre => ({ ...pre, companyList, companyData: companyList.find(item => item.sSubsidiaryId === userinfo.sSubsidiaryId) }));
26 26 setTimeout(() => {
... ...
src/components/Common/ProblemFeedback/index.less
... ... @@ -54,7 +54,7 @@
54 54 }
55 55 }
56 56  
57   -.modalWrap {
  57 +.modalWrap:not(.antdV5) {
58 58 :global {
59 59 .ant-modal-close {
60 60 color: #4a495f !important;
... ...
src/index.less
... ... @@ -10,6 +10,7 @@ body,
10 10 background: #888;
11 11 height: 100%;
12 12 font-size: 13px;
  13 + overflow: hidden;
13 14 }
14 15  
15 16 html {
... ... @@ -138,10 +139,6 @@ html {
138 139 white-space: nowrap;
139 140 }
140 141  
141   -.ant-modal-body {
142   - max-height: unset !important;
143   -}
144   -
145 142 .topTable {
146 143 .ant-table-header {
147 144 table {
... ... @@ -1185,32 +1182,50 @@ tr[class*="SetRow_"] {
1185 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 1229 .ant-menu-item i.selected {
1215 1230 color: #f6c136;
1216 1231 }
... ... @@ -1575,10 +1590,6 @@ tr[class*="SetRow_"] {
1575 1590 overflow: auto;
1576 1591 }
1577 1592  
1578   -.ant-modal-body {
1579   - overflow: hidden;
1580   -}
1581   -
1582 1593 /* 设置通用切换slaveTab */
1583 1594 .ant-tabs.ant-tabs-card>.ant-tabs-bar .ant-tabs-tab-disabled span {
1584 1595 color: #6b6868;
... ... @@ -3286,18 +3297,6 @@ th.column-money {
3286 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 3300 .ant-table-footer {
3302 3301 background: none !important;
3303 3302 border-top: none !important;
... ...
src/routes/indexPage.js
... ... @@ -4,8 +4,8 @@ import { ConfigProvider, Layout } from 'antd-v4';
4 4 import zhCN from 'antd-v4/lib/locale-provider/zh_CN';
5 5 // import Search from '../components/Common/Search';
6 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 9 import TabCon from './tab/tab';
10 10 import styles from './indexPage.less';
11 11  
... ... @@ -41,7 +41,7 @@ function IndexPage() {
41 41 版权所有上海小羚羊软件股份有限公司 咨询电话:400-880-6237
42 42 </Footer> */}
43 43 </Layout>
44   - {/* { ['project.xlyprint.cn'].includes(location.hostname) ? <ProblemFeedback /> : <Feedback /> } */}
  44 + { ['project.xlyprint.cn', 'localhost'].includes(location.hostname) ? <ProblemFeedback /> : <Feedback /> }
45 45 </ConfigProvider>
46 46 );
47 47 }
... ...