|
|
@@ -40,7 +40,7 @@
|
|
|
class="!w-240px"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="dict in getStrDictOptions(DICT_TYPE.CABINET_STATUS)"
|
|
|
+ v-for="dict in getStrDictOptions(DICT_TYPE.CANBINET_STATUS)"
|
|
|
:key="dict.value"
|
|
|
:label="dict.label"
|
|
|
:value="dict.value"
|
|
|
@@ -127,21 +127,22 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" prop="status">
|
|
|
<template #default="scope">
|
|
|
- <el-switch
|
|
|
- v-if="scope.row.status !== null"
|
|
|
- v-model="scope.row.status"
|
|
|
- active-value="1"
|
|
|
- inactive-value="0"
|
|
|
- active-color="#13ce66"
|
|
|
- inactive-color="grey"
|
|
|
- disabled
|
|
|
- />
|
|
|
+ <dict-tag :type="DICT_TYPE.CANBINET_STATUS" :value="scope.row.status" v-if="scope.row.status !== null"/>
|
|
|
+<!-- <el-switch-->
|
|
|
+<!-- v-if="scope.row.status !== null"-->
|
|
|
+<!-- v-model="scope.row.status"-->
|
|
|
+<!-- active-value="1"-->
|
|
|
+<!-- inactive-value="0"-->
|
|
|
+<!-- active-color="#13ce66"-->
|
|
|
+<!-- inactive-color="grey"-->
|
|
|
+<!-- disabled-->
|
|
|
+<!-- />-->
|
|
|
<span v-else>-</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="备注" prop="remark" />
|
|
|
- <el-table-column label="创建时间" prop="createTime" :formatter="dateFormatter" />
|
|
|
- <el-table-column label="详情" align="center" width="80">
|
|
|
+ <el-table-column label="创建时间" prop="createTime" :formatter="dateFormatter" width="180"/>
|
|
|
+ <el-table-column label="详情" align="center" width="60">
|
|
|
<template #default="scope">
|
|
|
<el-button link type="primary" @click="lookDetail(scope.row)">查看</el-button>
|
|
|
</template>
|