Mr.Shi
2023-09-19 32cf8d2d30b26c5937796395fb03078371359aa0
企业端
已修改3个文件
22 ■■■■ 文件已修改
company_admin/src/components/business/OperaCategoryWindow.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company_admin/src/utils/request.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company_admin/src/views/business/goods.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
company_admin/src/components/business/OperaCategoryWindow.vue
@@ -225,6 +225,12 @@
          // 调用新建接口
          this.isWorking = true
          if (!this.form.id) {
            let arr = []
            this.form.budgetList.forEach(item => {
              if (item.maxamount || item.minamount) {
                arr.push(item)
              }
            })
            companyCreate({
              paramList: this.form.tableData,
              type: this.form.type,
@@ -232,7 +238,7 @@
              platCateId: this.form.platCateId,
              name: this.form.name,
              imgurl: this.form.imgurl,
              budgetList: this.form.budgetList
              budgetList: arr
            })
              .then(() => {
                this.visible = false
@@ -246,6 +252,12 @@
                this.isWorking = false
              })
          } else {
            let arr = []
            this.form.budgetList.forEach(item => {
              if (item.maxamount || item.minamount) {
                arr.push(item)
              }
            })
            companyUpdateById({
              id: this.form.id,
              paramList: this.form.tableData,
@@ -254,7 +266,7 @@
              platCateId: this.form.platCateId,
              name: this.form.name,
              imgurl: this.form.imgurl,
              budgetList: this.form.budgetList
              budgetList: arr
            })
              .then(() => {
                this.visible = false
company_admin/src/utils/request.js
@@ -3,6 +3,7 @@
import pkg from '../../package'
import { trim } from './util'
import cache from '../plugins/cache'
import { Message } from 'element-ui'
axios.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8'
const axiosInstance = axios.create({
@@ -40,6 +41,7 @@
// 新建响应拦截器
axiosInstance.interceptors.response.use((response) => {
  console.log(response.status)
  // 请求失败
  if (response.status !== 200) {
    return Promise.reject(new Error('服务器繁忙,请稍后再试'))
company_admin/src/views/business/goods.vue
@@ -286,7 +286,9 @@
        }).then(res => {
          this.$tip.apiSuccess('更新成功')
        }).finally(() => {
          // this.search()
          this.search()
        }).catch(err => {
          this.$message.warning({ message: err.message })
        })
      },
      turnNum (nums) {