diff --git a/src/api/system/goodsInfo.js b/src/api/system/goodsInfo.js index f71ee9e..6efecc0 100644 --- a/src/api/system/goodsInfo.js +++ b/src/api/system/goodsInfo.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询商品基本信息列表 export function listGoodsInfo(query) { return request({ - url: '/system/goodsInfo/list', + url: '/system/goodsCategory/getStationCategoryList', method: 'get', params: query }) diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue index 620ea83..ae635ec 100644 --- a/src/views/system/goodsInfo/index.vue +++ b/src/views/system/goodsInfo/index.vue @@ -86,7 +86,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - v-hasPermi="['system:operateGoodInfo:add']" + v-hasPermi="['system:goodsInfo:add']" >新增 @@ -98,7 +98,7 @@ size="mini" :disabled="single" @click="handleUpdate" - v-hasPermi="['system:operateGoodInfo:edit']" + v-hasPermi="['system:goodsInfo:edit']" >修改 @@ -174,7 +174,7 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['system:operateGoodInfo:edit']" + v-hasPermi="['system:goodsInfo:edit']" >修改 删除 @@ -828,7 +828,7 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { console.log(row) - // this.reset(); + this.reset(); const id = row.goodsInfoId || this.ids; getGoodsInfo(id).then((response) => { console.log(response)