9/20
This commit is contained in:
@@ -79,8 +79,9 @@
|
||||
:preview-src-list="[scope.row.url]"
|
||||
:src="scope.row.url"
|
||||
fit="cover"
|
||||
lazy
|
||||
preview-teleported
|
||||
style="width: 90%; height: 100%"
|
||||
style="width: 90%; height: 100%; max-width: 150px"
|
||||
>
|
||||
<template #toolbar>
|
||||
<el-icon @click="download(scope.row.url)"><Download /></el-icon>
|
||||
@@ -98,15 +99,17 @@
|
||||
<template #default="scope">
|
||||
<el-switch
|
||||
v-if="scope.row.electricityRecord"
|
||||
v-model="scope.row.electricityRecord.status"
|
||||
:active-value="0"
|
||||
:active-value="true"
|
||||
:before-change="
|
||||
() => {
|
||||
const status = scope.row.status === 1 ? 0 : 1;
|
||||
// 0 合闸 1 2 拉闸
|
||||
// 0 合闸 传入 1 拉闸 传入 0
|
||||
const status = scope.row.electricityRecord.status === 0 ? 1 : 0;
|
||||
return handleChangeWater(status, scope.row);
|
||||
}
|
||||
"
|
||||
:inactive-value="1"
|
||||
:inactive-value="false"
|
||||
:model-value="scope.row.electricityRecord.status === 0"
|
||||
active-text="合闸"
|
||||
inactive-text="拉闸"
|
||||
></el-switch>
|
||||
|
||||
Reference in New Issue
Block a user