Browse Source

删除多余代码

lilei 4 years ago
parent
commit
3e5b970fce
1 changed files with 1 additions and 52 deletions
  1. 1 52
      src/views/dealerManagement/marketingDivisionSet/list.vue

+ 1 - 52
src/views/dealerManagement/marketingDivisionSet/list.vue

@@ -26,8 +26,6 @@
 </template>
 
 <script>
-import { dealerProductBrandQuery } from '@/api/dealerProductBrand'
-import { dealerProductTypeQuery } from '@/api/dealerProductType'
 import { STable, VSelect } from '@/components'
 import marketingDivisionSetEditModal from './editModal.vue'
 export default {
@@ -36,13 +34,6 @@ export default {
     return {
       advanced: false, // 高级搜索 展开/关闭
       queryParam: { //  查询条件
-        productName: '', //  产品名称
-        productCode: '', //  产品编码/原厂编码
-        productBrandSn: undefined, //  品牌
-        productTypeSn1: '', //  产品一级类别
-        productTypeSn2: '', //  产品二级类别
-        productTypeSn3: '', //  产品三级类别
-        enabledFlag: undefined //  定价状态
       },
       disabled: false, //  查询、重置按钮是否可操作
       columns: [
@@ -85,21 +76,12 @@ export default {
         })
       },
       openModal: false, //  编辑  弹框
-      itemId: '', //  当前产品id
-      productBrandList: [], //  品牌下拉数据
-      productTypeList: [] //  类别下拉数据
+      itemId: '' //  当前产品id
     }
   },
   methods: {
     //  重置
     resetSearchForm () {
-      this.queryParam.productCode = ''
-      this.queryParam.productName = ''
-      this.queryParam.productBrandSn = undefined
-      this.queryParam.productTypeSn1 = ''
-      this.queryParam.productTypeSn2 = ''
-      this.queryParam.productTypeSn3 = ''
-      this.queryParam.enabledFlag = undefined
       this.$refs.table.refresh(true)
     },
     // 删除
@@ -119,11 +101,6 @@ export default {
         }
       })
     },
-    filterOption (input, option) {
-      return (
-        option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
-      )
-    },
     //  编辑
     handleEdit (row) {
       this.itemId = row && row.id ? row.id : null
@@ -138,38 +115,10 @@ export default {
     closeAuditModal () {
       this.itemId = ''
       this.openAuditModal = false
-    },
-    //  产品类别  change
-    changeProductType (val, opt) {
-      this.queryParam.productTypeSn1 = val[0] ? val[0] : ''
-      this.queryParam.productTypeSn2 = val[1] ? val[1] : ''
-      this.queryParam.productTypeSn3 = val[2] ? val[2] : ''
-    },
-    //  产品品牌  列表
-    getProductBrand () {
-      dealerProductBrandQuery({}).then(res => {
-        if (res.status == 200) {
-          this.productBrandList = res.data
-        } else {
-          this.productBrandList = []
-        }
-      })
-    },
-    //  产品类别  列表
-    getProductType () {
-      dealerProductTypeQuery({}).then(res => {
-        if (res.status == 200) {
-          this.productTypeList = res.data
-        } else {
-          this.productTypeList = []
-        }
-      })
     }
   },
   beforeRouteEnter (to, from, next) {
     next(vm => {
-      vm.getProductBrand()
-      vm.getProductType()
     })
   }
 }