Просмотр исходного кода

feat: EK-880: 增加、编辑商品 修改可购买国家数据

tyler 9 месяцев назад
Родитель
Сommit
c81d666b4c
3 измененных файлов с 4 добавлено и 4 удалено
  1. 3 2
      src/api/site.js
  2. 0 1
      src/views/admin/edit.vue
  3. 1 1
      src/views/shop/goods-add.vue

+ 3 - 2
src/api/site.js

@@ -39,10 +39,11 @@ export function getBaseInfo() {
  * 国家
  * @returns {*}
  */
-export function getCountries() {
+export function getCountries(query) {
   return request({
     url: '/v1/site/countries',
-    method: 'get'
+    method: 'get',
+    params: query
   })
 }
 

+ 0 - 1
src/views/admin/edit.vue

@@ -133,7 +133,6 @@ export default {
         path = 'admin/change-password'
       }
 
-      console.log(this.form.countryId)
       if (!(isArray(this.form.countryId) && this.form.countryId.length > 0)){
         this.$message({
           message: this.$t('Administrator.pleaseSelectCountry'),

+ 1 - 1
src/views/shop/goods-add.vue

@@ -488,7 +488,7 @@ export default {
       row.marketPrice = (row.sellPrice * 1.2).toFixed(2)
     },
     editAvailableCountries(){
-      getCountries().then(response => {
+      getCountries({'filter': 1}).then(response => {
         this.availableCountriesTableForm.availableCountriesList = response
         this.editAvailableCountriesDialog = true
         // this.multipleSelection = this.form.nature