|
@@ -265,11 +265,18 @@
|
|
|
>删除</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
- type="danger"
|
|
|
+ type="primary"
|
|
|
v-throttle='2000'
|
|
|
- :disabled="scope.row.status==0"
|
|
|
+ v-show="scope.row.status==0"
|
|
|
@click="hideMD(scope.row)"
|
|
|
>隐藏</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="primary"
|
|
|
+ v-throttle='2000'
|
|
|
+ v-show="scope.row.status==1"
|
|
|
+ @click="hideMD(scope.row)"
|
|
|
+ >激活</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -1694,7 +1701,11 @@ export default {
|
|
|
async hideMD (row) {//隐藏按钮
|
|
|
const code = await this.updateStatus(row.pkeyId)
|
|
|
if (code == 200) {
|
|
|
- row.status == 1
|
|
|
+ if (row.status == 0) {
|
|
|
+ row.status = 1
|
|
|
+ } else {
|
|
|
+ row.status = 0
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
async updateStatus (pKeyId) {//隐藏功能
|