Commit 651aff2e by haojie

1

parent 3a1fe5ba
......@@ -97,8 +97,6 @@ watch(
.t-fake-arrow {
color: #00dddd;
}
.t-fake-arrow--active {
}
}
}
}
......
......@@ -30,6 +30,12 @@
@click="ChoseModel(item)"
:class="{ 'image-active': item.image == SearchList.image }"
/>
<template
v-for="(item, index) in SearchList.list"
:key="item.image + '1'"
>
<i v-if="index !== SearchList.list.length - 1"></i>
</template>
</div>
<OnWaitVue v-else label="未搜索到模特"></OnWaitVue>
</div>
......@@ -43,7 +49,6 @@ import { reactive, ref } from 'vue';
import OnWaitVue from './ImgLoadingStatus/OnWait.vue';
import OnLoading from './ImgLoadingStatus/OnLoading.vue';
import { debounce } from '@/utils/tool';
import { show_message } from '@/utils/tdesign_tool';
const props = withDefaults(
defineProps<{
placeholder?: string;
......@@ -146,10 +151,12 @@ const InputChange = debounce(Search, 1000);
justify-content: space-between;
flex-wrap: wrap;
row-gap: 12px;
i {
width: 150px;
}
img {
width: 150px;
height: 150px;
margin: 0 10px;
border-radius: 8px;
cursor: pointer;
border: 1.5px solid transparent;
......
......@@ -6,7 +6,7 @@ export const JumpDetailPage = (item: any) => {
// 本地写死
// item.type = TASKTYPE.MODEL_GENERATION;
// 模板选择
item.type = TASKTYPE.MODELTEMPLATE;
// item.type = TASKTYPE.MODELTEMPLATE;
let path = '';
if (item.type == TASKTYPE.CHAT) {
// 文案1
......
......@@ -22,7 +22,7 @@
</div>
</template>
<template #url="{ row }">
<ImageViewer :img="row.url"></ImageViewer>
<ImageViewer :img="getImage(row)"></ImageViewer>
</template>
<template #download>
<span class="download-text"> 下载 </span>
......@@ -47,6 +47,9 @@ import { getGenerateRecords } from '@/utils/api/scenes';
import { Pagination as TPagination } from 'tdesign-vue-next';
import { TASKTYPE } from '@/utils/api/Task';
import ImageViewer from './ImageViewer.vue';
const imgs = {
empty: new URL('../../../assets/svg/gpt/empty.svg', import.meta.url).href,
};
const RecordList = reactive({
// 绘图列表
list: [],
......@@ -88,6 +91,18 @@ const columns = [
align: 'right',
},
];
// 图片链接
const getImage = (row: any) => {
if (
row.response &&
row.response[0] &&
row.response[0].url &&
row.response[0].url[0]
) {
return row.response[0].url[0];
}
return imgs.empty;
};
const pageChange = (value: number) => {
pageNum.value = value;
getLog();
......
......@@ -67,7 +67,6 @@
</template>
<script lang="ts" setup>
import CustomLoading from '@/components/custom/loading2.vue';
import CustomResetButton from '@/components/custom/resetbutton.vue';
import { onBeforeUnmount, onMounted, reactive, ref, watch } from 'vue';
import { useUploadStrategy } from '@/utils/api/scenes';
......
import { defineComponent, reactive, ref } from 'vue';
import { defineComponent, reactive } from 'vue';
import './index.less';
import CustomResetButton from '@/components/custom/resetbutton.vue';
import OnWait from '@/components/custom/ImgLoadingStatus/OnWait.vue';
......
......@@ -114,7 +114,7 @@ import {
useImageCallback,
} from '@/utils/api/scenes';
import { FormExample4, ModelStatus } from '@/utils/api/Task';
import { Validationrules, ChangePageHeight } from '@/utils/tool';
import { ChangePageHeight } from '@/utils/tool';
import { useRoute } from 'vue-router';
import { show_message } from '@/utils/tdesign_tool';
const loading = ref(false);
......
@import '@/style/variables.less';
.custom-disabled-button {
height: 48px;
width: 100%;
font-weight: 600;
font-size: @font-size-17;
color: #848e9c;
transition: all 0.3s;
}
.custom-clickable-button {
background: rgba(41, 98, 255, 0.85);
color: #ffffff;
transition: all 0.3s;
}
@import './variables.less';
body {
font-size: @font-size-14;
font-size: 14px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
padding: 0;
......
@import '@/style/variables.less';
// 页面重复的label
.custom-upload-label {
font-weight: 700;
font-size: @font-size-20;
color: #000000;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment