按钮置灰

This commit is contained in:
魏啾
2024-10-11 10:55:28 +08:00
parent 6fb458b824
commit ca496bf0db

View File

@@ -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: ''
}, },