权限 接口修改

This commit is contained in:
shidongli 2022-11-14 13:47:33 +08:00
parent d3fb98206a
commit 32307fbd0f
2 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询商品基本信息列表 // 查询商品基本信息列表
export function listGoodsInfo(query) { export function listGoodsInfo(query) {
return request({ return request({
url: '/system/goodsInfo/list', url: '/system/goodsCategory/getStationCategoryList',
method: 'get', method: 'get',
params: query params: query
}) })

View File

@ -86,7 +86,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['system:operateGoodInfo:add']" v-hasPermi="['system:goodsInfo:add']"
>新增</el-button >新增</el-button
> >
</el-col> </el-col>
@ -98,7 +98,7 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['system:operateGoodInfo:edit']" v-hasPermi="['system:goodsInfo:edit']"
>修改</el-button >修改</el-button
> >
</el-col> </el-col>
@ -174,7 +174,7 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['system:operateGoodInfo:edit']" v-hasPermi="['system:goodsInfo:edit']"
>修改</el-button >修改</el-button
> >
<el-button <el-button
@ -182,7 +182,7 @@
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['system:operateGoodInfo:remove']" v-hasPermi="['system:goodsInfo:remove']"
>删除</el-button >删除</el-button
> >
</template> </template>
@ -828,7 +828,7 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
console.log(row) console.log(row)
// this.reset(); this.reset();
const id = row.goodsInfoId || this.ids; const id = row.goodsInfoId || this.ids;
getGoodsInfo(id).then((response) => { getGoodsInfo(id).then((response) => {
console.log(response) console.log(response)