value
2023-09-13 d43899492c6a4bea0d18af33992a844aeb035bc4
src/components/view/sale.vue
@@ -402,7 +402,7 @@
               delTime: null
            },
            tableData: [],
            selects: [],
            selects: '',
            currentPage: 1,
            countSize: 0,
            pageSize: 10,
@@ -430,9 +430,12 @@
      },
      methods: {
         handleSelectionChange(val) {
            this.selects = []
            val.forEach(a=>{
               this.selects.push(a.id)
            this.selects = ''
            val.forEach((a, ai)=>{
               this.selects += a.id
               if(ai!=val.length-1){
                  this.selects += ','
               }
            })
         },
         handleSizeChange(val) {
@@ -459,7 +462,7 @@
            })
         },
         clean() {
            this.selects = []
            this.selects = ''
            this.currentPage = 1
            this.countSize = 0
            this.pageSize = 10
@@ -615,17 +618,12 @@
            })
         },
         delSales(){
            console.log(this.selects);
            if(this.selects.length==0) {
            if(this.selects=='') {
               this.$message.warning('请选择一条数据删除')
               return
            }
            this.axios.post(this.$api.url.delAllSale,{
               ids: this.selects
            }, {
               headers: {
                  'Content-Type': 'application/json'
               }
            }).then(res=>{
               this.$message.success('删除成功')
               this.selectRawInspectsList()