Browse Source

fix:字段时间问题

master
wangqi 2 months ago
parent
commit
33f5965dec
  1. 4
      src/pages/system/deviceField/components/CategoryTree.vue

4
src/pages/system/deviceField/components/CategoryTree.vue

@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
</div>
<div class="description">
<div>添加人:{{ data.creator ?? '--' }}</div>
<div>添加时间:{{ data.createTime ?? '--' }}</div>
<div>添加时间:{{ dayjs(data.createTime).format('YYYY-MM-DD HH:mm:ss') ?? '--' }}</div>
</div>
</div>
<div class="operation">
@ -49,6 +49,7 @@ @@ -49,6 +49,7 @@
</template>
<script lang="ts" setup>
import dayjs from 'dayjs'
import type { ElTree } from 'element-plus'
import { Plus } from '@element-plus/icons-vue'
import { getIntDictOptions } from '@/utils/dict'
@ -109,6 +110,7 @@ watch( @@ -109,6 +110,7 @@ watch(
() => props.data.length,
() => {
if (initial) {
debugger
checkDefault.value = [props.data[0].id]
nextTick(() => {
setCurrentKey(props.data[0].id)

Loading…
Cancel
Save