Browse Source

Merge branch 'dev' of ssh://10.10.100.21/source/uas-office-integration into dev

RaoMeng 5 years ago
parent
commit
100d31e107

+ 9 - 4
uas-office-web/uas-mobile/src/pages/private/changeAccount/ChangeAccount.jsx

@@ -40,8 +40,14 @@ class ChangeAccount extends Component {
     const rowItems = []
     const rowItems = []
     if (!isObjEmpty(accountList)) {
     if (!isObjEmpty(accountList)) {
       accountList.forEach((item, index) => {
       accountList.forEach((item, index) => {
-        rowItems.push(<Item extra={index == 0 ? '当前账套' : ''} key={index} arrow="horizontal"
-                            onClick={this.changeAccount.bind(this, item)}>{item.ma_function}</Item>)
+        rowItems.push(<Item
+          thumb={index == 0 ? <div className="active-block"></div> : <div className="block"></div>}
+          extra={index == 0 ? '当前账套' : ''}
+          key={index}
+          arrow="horizontal"
+          onClick={this.changeAccount.bind(this, item)}>
+          {item.ma_function}
+        </Item>)
       })
       })
     }
     }
 
 
@@ -63,7 +69,6 @@ class ChangeAccount extends Component {
     }).then(response => {
     }).then(response => {
       Toast.hide()
       Toast.hide()
       this.disposeData(response.masters)
       this.disposeData(response.masters)
-      message.success('请求成功')
     }).catch(error => {
     }).catch(error => {
       Toast.hide()
       Toast.hide()
       if (typeof error === 'string') {
       if (typeof error === 'string') {
@@ -90,7 +95,7 @@ class ChangeAccount extends Component {
             this.props.history.goBack()
             this.props.history.goBack()
           }).catch(error => {
           }).catch(error => {
             if (typeof error === 'string') {
             if (typeof error === 'string') {
-              message.error(error)
+              message.error('切换失败,请检查您在(' + item.ma_name + ')的账号和密码.')
             } else {
             } else {
               message.error('账套切换失败')
               message.error('账套切换失败')
             }
             }

+ 17 - 1
uas-office-web/uas-mobile/src/pages/private/changeAccount/change-account.less

@@ -4,7 +4,23 @@
   height: 100vh;
   height: 100vh;
 
 
   .change-account-list {
   .change-account-list {
-    padding: 6px;
+    padding: 10px;
     background: @com-bg-color-lightGray;
     background: @com-bg-color-lightGray;
+
+    .am-list-item {
+      margin-bottom: 0px;
+      padding-left: 0px;
+    }
+
+    .block {
+      width: 2px;
+      height: 20px;
+    }
+
+    .active-block {
+      width: 2px;
+      height: 20px;
+      background: #0067ed;
+    }
   }
   }
 }
 }

+ 0 - 4
uas-office-web/uas-mobile/src/pages/private/schedulePage/SchedulePage.jsx

@@ -54,10 +54,6 @@ class SchedulePage extends Component {
 
 
   clickDate = (date) => {
   clickDate = (date) => {
     let nowDate = new Date().format('yyyy-MM-dd')
     let nowDate = new Date().format('yyyy-MM-dd')
-    if (nowDate == date) {
-      return false
-    }
-
     Toast.loading('加载中', 0)
     Toast.loading('加载中', 0)
     fetchPostObj(API.APPCOMMON_DAILYTASK, {
     fetchPostObj(API.APPCOMMON_DAILYTASK, {
       data: date,
       data: date,