按钮置灰
This commit is contained in:
@@ -23,9 +23,11 @@
|
|||||||
<el-table-column label="操作" width="200">
|
<el-table-column label="操作" width="200">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-button type="text" size="mini" round icon="el-icon-edit"
|
<el-button type="text" size="mini" round icon="el-icon-edit"
|
||||||
|
:disabled="ShopId == scope.row.shopId ? false : true"
|
||||||
@click="$refs.addUnitRef.show(scope.row)">编辑</el-button>
|
@click="$refs.addUnitRef.show(scope.row)">编辑</el-button>
|
||||||
<el-popconfirm title="确定删除吗?" @confirm="delHandle([scope.row.id])">
|
<el-popconfirm title="确定删除吗?" @confirm="delHandle([scope.row.id])">
|
||||||
<el-button type="text" size="mini" round icon="el-icon-delete" slot="reference">删除</el-button>
|
<el-button :disabled="ShopId == scope.row.shopId ? false : true" type="text" size="mini"
|
||||||
|
round icon="el-icon-delete" slot="reference">删除</el-button>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -47,6 +49,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
ShopId: localStorage.getItem('shopId'),
|
||||||
query: {
|
query: {
|
||||||
blurry: ''
|
blurry: ''
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user