2023-11-15 09:42:31 +00:00
|
|
|
<template>
|
|
|
|
|
<LayoutContainer header="模版管理">
|
|
|
|
|
<div class="template-manage flex main-calc-height">
|
|
|
|
|
<div class="template-manage__left p-8 border-r">
|
|
|
|
|
<h4 class="p-16">供应商</h4>
|
2023-11-24 02:37:17 +00:00
|
|
|
<common-list :data="provider_list" class="mt-8" v-loading="loading" @click="clickHandle">
|
2023-11-15 09:42:31 +00:00
|
|
|
<template #default="{ row }">
|
|
|
|
|
<div class="flex">
|
2023-11-24 02:37:17 +00:00
|
|
|
<span :innerHTML="row.icon" alt="" style="height: 24px; width: 24px" class="mr-8" />
|
2023-11-15 09:42:31 +00:00
|
|
|
<span>{{ row.name }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</common-list>
|
|
|
|
|
</div>
|
2023-11-16 02:32:41 +00:00
|
|
|
<div class="template-manage__right p-24">
|
2023-11-15 09:42:31 +00:00
|
|
|
<h4>全部模型</h4>
|
2023-11-23 09:55:39 +00:00
|
|
|
<Demo></Demo>
|
2023-11-15 09:42:31 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</LayoutContainer>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { onMounted, ref, reactive, watch } from 'vue'
|
2023-11-24 02:37:17 +00:00
|
|
|
import ModelApi from '@/api/model'
|
|
|
|
|
import type { Provider } from '@/api/type/model'
|
|
|
|
|
const loading = ref<boolean>(false)
|
|
|
|
|
|
|
|
|
|
const provider_list = ref<Array<Provider>>([])
|
2023-11-15 09:42:31 +00:00
|
|
|
|
|
|
|
|
function clickHandle(row: any) {}
|
|
|
|
|
|
2023-11-24 02:37:17 +00:00
|
|
|
onMounted(() => {
|
|
|
|
|
ModelApi.getProvider(loading).then((ok) => {
|
|
|
|
|
provider_list.value = ok.data
|
|
|
|
|
})
|
|
|
|
|
})
|
2023-11-15 09:42:31 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.template-manage {
|
|
|
|
|
&__left {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
width: var(--setting-left-width);
|
|
|
|
|
min-width: var(--setting-left-width);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|