update 前端页面

This commit is contained in:
Lemon
2023-06-30 11:14:25 +08:00
parent 9f7d36aefe
commit 8baee9be64
2 changed files with 43 additions and 11 deletions

View File

@@ -90,14 +90,20 @@
<el-table-column label="名称" prop="templateName" />
<el-table-column label="模板状态" prop="status" >
<template slot-scope="scope">
<el-switch
v-model="scope.row.status"
active-value="1"
inactive-value="0"
disabled="disabled"
>
</el-switch>
<dict-tag
:options="dict.type.template_status"
:value="scope.row.status"
/>
</template>
<!-- <template slot-scope="scope">-->
<!-- <el-switch-->
<!-- v-model="scope.row.status"-->
<!-- active-value="1"-->
<!-- inactive-value="0"-->
<!-- disabled="disabled"-->
<!-- >-->
<!-- </el-switch>-->
<!-- </template>-->
</el-table-column>
<!-- matchCars 使用车辆描述 -->
<el-table-column label="描述" prop="remark" />
@@ -213,7 +219,7 @@ import {updateStation} from "@/api/pile/station";
export default {
components: { BondedDevice, Expenses, AddBilling },
dicts: ["charger_pile_type"],
dicts: ["charger_pile_type", "template_status"],
data() {
return {
tableData: [],