chenrui 1 yıl önce
ebeveyn
işleme
3e07370b43

+ 5 - 5
src/views/promotionRulesManagement/dealerPromotions/chooseImportDealerModal.vue

@@ -44,7 +44,7 @@
           type="primary"
           id="chooseImport-submit"
           size="large"
-          class="button-primary"
+          :class="loadData.length==0?'button-grey':'button-primary'"
           @click="handleSubmit"
           style="padding: 0 40px;">确认导入</a-button>
         <a-button
@@ -68,7 +68,7 @@
 <script>
 import { commonMixin } from '@/utils/mixin'
 import { hdExportExcel } from '@/libs/exportExcel'
-import {downDealerFail } from '@/api/promotion'
+import { downDealerFail } from '@/api/promotion'
 export default {
   name: 'ChooseImportModal',
   mixins: [commonMixin],
@@ -95,7 +95,7 @@ export default {
   computed: {
     nowColumns () {
       const _this = this
-      let columnsArr = [
+      const columnsArr = [
         { title: '序号', dataIndex: 'no', width: '10%', align: 'center' },
         { title: '经销商名称', dataIndex: 'dealerName', width: '90%', align: 'center', customRender: function (text) { return text || '--' } }
       ]
@@ -105,8 +105,8 @@ export default {
       const _this = this
       const unColumnsArr = [
         { title: '序号', dataIndex: 'no', width: '10%', align: 'center' },
-        { title: '经销商名称', dataIndex: 'dealerName', width: '50%', align: 'center', customRender: function (text) { return text || '--' },ellipsis: true },
-        { title: '备注',dataIndex: 'remarks',  width: '40%', align: 'center', customRender: function (text) { return text || '--' } ,ellipsis: true}
+        { title: '经销商名称', dataIndex: 'dealerName', width: '50%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '备注', dataIndex: 'remarks', width: '40%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
       ]
       return unColumnsArr
     }

+ 1 - 1
src/views/promotionRulesManagement/dealerPromotions/chooseImportModal.vue

@@ -54,7 +54,7 @@
           type="primary"
           id="chooseImport-submit"
           size="large"
-          class="button-primary"
+          :class="loadData.length==0?'button-grey':'button-primary'"
           @click="handleSubmit"
           style="padding: 0 40px;">确认导入</a-button>
         <a-button