Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
web
soss
Commits
58438599
Commit
58438599
authored
Jun 01, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品权限
parent
8a5e57b2
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
28 deletions
+31
-28
src/views/goods/category/index.vue
+4
-4
src/views/goods/goods/components/Form.vue
+1
-1
src/views/goods/goods/index.vue
+7
-6
src/views/goods/material/index.vue
+4
-4
src/views/goods/spec/index.vue
+4
-4
src/views/system/menu/index.vue
+2
-2
src/views/system/role/index.vue
+5
-4
src/views/system/user/index.vue
+4
-3
No files found.
src/views/goods/category/index.vue
View file @
58438599
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
v-hasPermi=
"['system:category:query']"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -59,9 +59,9 @@
...
@@ -59,9 +59,9 @@
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:category:remove']"
>
删除
</el-button>
v-hasPermi=
"['system:category:remove']"
>
删除
</el-button>
<el-button
v-show=
"scope.row.state == 2"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'1')"
<el-button
v-show=
"scope.row.state == 2"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'1')"
v-hasPermi=
"['system:
material:edi
t']"
>
启用
</el-button>
v-hasPermi=
"['system:
category:restar
t']"
>
启用
</el-button>
<el-button
v-show=
"scope.row.state == 1"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'2')"
<el-button
v-show=
"scope.row.state == 1"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'2')"
v-hasPermi=
"['system:
material:edit
']"
>
停用
</el-button>
v-hasPermi=
"['system:
category:stop
']"
>
停用
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
v-hasPermi=
"['system:category:edit']"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
src/views/goods/goods/components/Form.vue
View file @
58438599
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
</el-row>
</el-row>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
v-hasPermi=
"['system:goods:edit']"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
src/views/goods/goods/index.vue
View file @
58438599
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<SelectCategory
v-model=
"queryParams.category"
/>
<SelectCategory
v-model=
"queryParams.category"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
v-hasPermi=
"['system:goods:query']"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -65,14 +65,15 @@
...
@@ -65,14 +65,15 @@
<el-table-column
label=
"操作"
align=
"center"
width=
"250"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
width=
"250"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleUpdateState(scope.row)"
<el-button
size=
"mini"
type=
"text"
@
click=
"handleUpdateState(scope.row)"
v-if=
"authBtn(['1'], scope.row.state)"
>
已完成编程
</el-button>
v-if=
"authBtn(['1'], scope.row.state)"
v-hasPermi=
"['system:goods:finish']"
>
已完成编程
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-if=
"authBtn(['1', '2', '3', '4'], scope.row.state)"
>
删除
</el-button>
v-if=
"authBtn(['1', '2', '3', '4'], scope.row.state)"
v-hasPermi=
"['system:goods:remove']"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"text"
v-if=
"authBtn(['2', '4'], scope.row.state)"
<el-button
size=
"mini"
type=
"text"
v-if=
"authBtn(['2', '4'], scope.row.state)"
@
click=
"putShopOffShop(scope.row.id, true)"
>
上架
</el-button>
@
click=
"putShopOffShop(scope.row.id, true)"
v-hasPermi=
"['system:goods:up']"
>
上架
</el-button>
<el-button
size=
"mini"
type=
"text"
v-if=
"authBtn(['3'], scope.row.state)"
<el-button
size=
"mini"
type=
"text"
v-if=
"authBtn(['3'], scope.row.state)"
@
click=
"putShopOffShop(scope.row.id)"
>
下架
</el-button>
@
click=
"putShopOffShop(scope.row.id)"
v-hasPermi=
"['system:goods:down']"
>
下架
</el-button>
<el-button
size=
"mini"
type=
"text"
v-if=
"authBtn(['5'], scope.row.state)"
@
click=
"restGoods(scope.row)"
>
恢复
<el-button
size=
"mini"
type=
"text"
v-if=
"authBtn(['5'], scope.row.state)"
@
click=
"restGoods(scope.row)"
v-hasPermi=
"['system:goods:recover']"
>
恢复
</el-button>
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
src/views/goods/material/index.vue
View file @
58438599
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<!--
<el-input
v-model=
"queryParams.materialCode"
placeholder=
"状态"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
-->
<!--
<el-input
v-model=
"queryParams.materialCode"
placeholder=
"状态"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
-->
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
v-hasPermi=
"['system:material:query']"
>
搜索
</el-button>
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
重置
</el-button>
...
@@ -65,9 +65,9 @@
...
@@ -65,9 +65,9 @@
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:material:remove']"
>
删除
</el-button>
v-hasPermi=
"['system:material:remove']"
>
删除
</el-button>
<el-button
v-show=
"scope.row.state == 2"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'1')"
<el-button
v-show=
"scope.row.state == 2"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'1')"
v-hasPermi=
"['system:material:
edi
t']"
>
启用
</el-button>
v-hasPermi=
"['system:material:
restar
t']"
>
启用
</el-button>
<el-button
v-show=
"scope.row.state == 1"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'2')"
<el-button
v-show=
"scope.row.state == 1"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'2')"
v-hasPermi=
"['system:material:
edit
']"
>
停用
</el-button>
v-hasPermi=
"['system:material:
stop
']"
>
停用
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
v-hasPermi=
"['system:material:edit']"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
src/views/goods/spec/index.vue
View file @
58438599
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
v-hasPermi=
"['system:spec:query']"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -51,9 +51,9 @@
...
@@ -51,9 +51,9 @@
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:spec:remove']"
>
删除
</el-button>
v-hasPermi=
"['system:spec:remove']"
>
删除
</el-button>
<el-button
v-show=
"scope.row.state == 2"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'1')"
<el-button
v-show=
"scope.row.state == 2"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'1')"
v-hasPermi=
"['system:
material:edi
t']"
>
启用
</el-button>
v-hasPermi=
"['system:
spec:restar
t']"
>
启用
</el-button>
<el-button
v-show=
"scope.row.state == 1"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'2')"
<el-button
v-show=
"scope.row.state == 1"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'2')"
v-hasPermi=
"['system:
material:edit
']"
>
停用
</el-button>
v-hasPermi=
"['system:
spec:stop
']"
>
停用
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
v-hasPermi=
"['system:spec:edit']"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
src/views/system/menu/index.vue
View file @
58438599
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
v-hasPermi=
"['system:menu:query']"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
</el-row>
</el-row>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
v-hasPermi=
"['system:menu:edit']"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
src/views/system/role/index.vue
View file @
58438599
...
@@ -53,10 +53,11 @@
...
@@ -53,10 +53,11 @@
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
v-hasPermi=
"['system:role:query']"
type=
"primary"
type=
"primary"
icon=
"el-icon-search"
icon=
"el-icon-search"
size=
"mini"
size=
"mini"
@
click=
"handleQuery"
@
click=
"handleQuery"
>
搜索
</el-button
>
搜索
</el-button
>
>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
...
@@ -94,8 +95,8 @@
...
@@ -94,8 +95,8 @@
>
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.roleId !== 1"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.roleId !== 1"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:role:remove']"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:role:remove']"
>
删除
</el-button>
<el-button
size=
"mini"
v-if=
"scope.row.status != 0"
type=
"text"
icon=
"el-icon-update"
@
click=
"handleStatusChange(scope.row)"
v-hasPermi=
"['system:role:
update
']"
>
启用
</el-button>
<el-button
size=
"mini"
v-if=
"scope.row.status != 0"
type=
"text"
icon=
"el-icon-update"
@
click=
"handleStatusChange(scope.row)"
v-hasPermi=
"['system:role:
restart
']"
>
启用
</el-button>
<el-button
size=
"mini"
v-if=
"scope.row.status == 0"
type=
"text"
icon=
"el-icon-update"
@
click=
"handleStatusChange(scope.row)"
v-hasPermi=
"['system:role:
update
']"
>
停用
</el-button>
<el-button
size=
"mini"
v-if=
"scope.row.status == 0"
type=
"text"
icon=
"el-icon-update"
@
click=
"handleStatusChange(scope.row)"
v-hasPermi=
"['system:role:
stop
']"
>
停用
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -135,7 +136,7 @@
...
@@ -135,7 +136,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
v-hasPermi=
"['system:role:edit']"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
src/views/system/user/index.vue
View file @
58438599
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
icon=
"el-icon-search"
icon=
"el-icon-search"
size=
"mini"
size=
"mini"
@
click=
"handleQuery"
@
click=
"handleQuery"
v-hasPermi=
"['system:user:query']"
>
搜索
</el-button
>
搜索
</el-button
>
>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
...
@@ -88,9 +89,9 @@
...
@@ -88,9 +89,9 @@
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:user:remove']"
>
删除
</el-button
>
v-hasPermi=
"['system:user:remove']"
>
删除
</el-button
>
<el-button
v-show=
"scope.row.status == '1'"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'0')"
<el-button
v-show=
"scope.row.status == '1'"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'0')"
v-hasPermi=
"['system:
material:edi
t']"
>
启用
</el-button>
v-hasPermi=
"['system:
user:restar
t']"
>
启用
</el-button>
<el-button
v-show=
"scope.row.status == '0'"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'1')"
<el-button
v-show=
"scope.row.status == '0'"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleStatus(scope.row,'1')"
v-hasPermi=
"['system:
material:edit
']"
>
停用
</el-button>
v-hasPermi=
"['system:
user:stop
']"
>
停用
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -130,7 +131,7 @@
...
@@ -130,7 +131,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
v-hasPermi=
"['system:user:edit']"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment