Browse Source

BUG处理

yangc 8 years ago
parent
commit
3b46b422cf

+ 2 - 2
components/applyPurchase/BatchPublish.vue

@@ -33,7 +33,7 @@
           <span class="red-text" v-if="!item.code">请完善信息</span>
           <div class="similar-select" v-if="item.codeWord && item.codeWord.length > 0" @click="setShowCodeWord(index, $event)">{{item.code}}</div>
           <ul v-show="item.showCodeWord">
-            <li v-for="code in item.codeWord" @click="modifyItemByWord(index, code.code, 'code')">{{code.code}}</li>
+            <li v-for="code in item.codeWord" @click="modifyItemByWord(index, code.code, 'code')" :title="code.code">{{code.code}}</li>
           </ul>
         </td>
         <td>
@@ -41,7 +41,7 @@
           <span class="red-text" v-if="!item.brand">请完善信息</span>
           <div class="similar-select" v-if="item.brandWord && item.brandWord.length > 0" @click="setShowBrandWord(index, $event)">{{item.brand}}</div>
           <ul v-show="item.showBrandWord" class="brand-word-list">
-            <li v-for="brand in item.brandWord" @click="modifyItemByWord(index, brand.nameEn, 'brand')">{{brand.nameEn}}</li>
+            <li v-for="brand in item.brandWord" @click="modifyItemByWord(index, brand.nameEn, 'brand')" :title="brand.nameEn">{{brand.nameEn}}</li>
           </ul>
         </td>
         <td>

+ 5 - 1
components/applyPurchase/PublishApply.vue

@@ -383,7 +383,11 @@
         }
       },
       onError: function () {
-        this.$message.error('上传失败, 系统错误')
+        if (!this.user.logged) {
+          this.$router.push('/auth/login?returnUrl=' + window.location.href)
+        } else {
+          this.$message.error('上传失败, 系统错误')
+        }
       },
       downloadTemplate: function () {
         window.location.href = '/seek/release/template'