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