Commit 651aff2e by haojie

1

parent 3a1fe5ba
...@@ -97,8 +97,6 @@ watch( ...@@ -97,8 +97,6 @@ watch(
.t-fake-arrow { .t-fake-arrow {
color: #00dddd; color: #00dddd;
} }
.t-fake-arrow--active {
}
} }
} }
} }
......
...@@ -30,6 +30,12 @@ ...@@ -30,6 +30,12 @@
@click="ChoseModel(item)" @click="ChoseModel(item)"
:class="{ 'image-active': item.image == SearchList.image }" :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> </div>
<OnWaitVue v-else label="未搜索到模特"></OnWaitVue> <OnWaitVue v-else label="未搜索到模特"></OnWaitVue>
</div> </div>
...@@ -43,7 +49,6 @@ import { reactive, ref } from 'vue'; ...@@ -43,7 +49,6 @@ import { reactive, ref } from 'vue';
import OnWaitVue from './ImgLoadingStatus/OnWait.vue'; import OnWaitVue from './ImgLoadingStatus/OnWait.vue';
import OnLoading from './ImgLoadingStatus/OnLoading.vue'; import OnLoading from './ImgLoadingStatus/OnLoading.vue';
import { debounce } from '@/utils/tool'; import { debounce } from '@/utils/tool';
import { show_message } from '@/utils/tdesign_tool';
const props = withDefaults( const props = withDefaults(
defineProps<{ defineProps<{
placeholder?: string; placeholder?: string;
...@@ -146,10 +151,12 @@ const InputChange = debounce(Search, 1000); ...@@ -146,10 +151,12 @@ const InputChange = debounce(Search, 1000);
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
row-gap: 12px; row-gap: 12px;
i {
width: 150px;
}
img { img {
width: 150px; width: 150px;
height: 150px; height: 150px;
margin: 0 10px;
border-radius: 8px; border-radius: 8px;
cursor: pointer; cursor: pointer;
border: 1.5px solid transparent; border: 1.5px solid transparent;
......
...@@ -6,7 +6,7 @@ export const JumpDetailPage = (item: any) => { ...@@ -6,7 +6,7 @@ export const JumpDetailPage = (item: any) => {
// 本地写死 // 本地写死
// item.type = TASKTYPE.MODEL_GENERATION; // item.type = TASKTYPE.MODEL_GENERATION;
// 模板选择 // 模板选择
item.type = TASKTYPE.MODELTEMPLATE; // item.type = TASKTYPE.MODELTEMPLATE;
let path = ''; let path = '';
if (item.type == TASKTYPE.CHAT) { if (item.type == TASKTYPE.CHAT) {
// 文案1 // 文案1
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</div> </div>
</template> </template>
<template #url="{ row }"> <template #url="{ row }">
<ImageViewer :img="row.url"></ImageViewer> <ImageViewer :img="getImage(row)"></ImageViewer>
</template> </template>
<template #download> <template #download>
<span class="download-text"> 下载 </span> <span class="download-text"> 下载 </span>
...@@ -47,6 +47,9 @@ import { getGenerateRecords } from '@/utils/api/scenes'; ...@@ -47,6 +47,9 @@ import { getGenerateRecords } from '@/utils/api/scenes';
import { Pagination as TPagination } from 'tdesign-vue-next'; import { Pagination as TPagination } from 'tdesign-vue-next';
import { TASKTYPE } from '@/utils/api/Task'; import { TASKTYPE } from '@/utils/api/Task';
import ImageViewer from './ImageViewer.vue'; import ImageViewer from './ImageViewer.vue';
const imgs = {
empty: new URL('../../../assets/svg/gpt/empty.svg', import.meta.url).href,
};
const RecordList = reactive({ const RecordList = reactive({
// 绘图列表 // 绘图列表
list: [], list: [],
...@@ -88,6 +91,18 @@ const columns = [ ...@@ -88,6 +91,18 @@ const columns = [
align: 'right', 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) => { const pageChange = (value: number) => {
pageNum.value = value; pageNum.value = value;
getLog(); getLog();
......
...@@ -67,7 +67,6 @@ ...@@ -67,7 +67,6 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import CustomLoading from '@/components/custom/loading2.vue';
import CustomResetButton from '@/components/custom/resetbutton.vue'; import CustomResetButton from '@/components/custom/resetbutton.vue';
import { onBeforeUnmount, onMounted, reactive, ref, watch } from 'vue'; import { onBeforeUnmount, onMounted, reactive, ref, watch } from 'vue';
import { useUploadStrategy } from '@/utils/api/scenes'; import { useUploadStrategy } from '@/utils/api/scenes';
......
import { defineComponent, reactive, ref } from 'vue'; import { defineComponent, reactive } from 'vue';
import './index.less'; import './index.less';
import CustomResetButton from '@/components/custom/resetbutton.vue'; import CustomResetButton from '@/components/custom/resetbutton.vue';
import OnWait from '@/components/custom/ImgLoadingStatus/OnWait.vue'; import OnWait from '@/components/custom/ImgLoadingStatus/OnWait.vue';
......
...@@ -114,7 +114,7 @@ import { ...@@ -114,7 +114,7 @@ import {
useImageCallback, useImageCallback,
} from '@/utils/api/scenes'; } from '@/utils/api/scenes';
import { FormExample4, ModelStatus } from '@/utils/api/Task'; import { FormExample4, ModelStatus } from '@/utils/api/Task';
import { Validationrules, ChangePageHeight } from '@/utils/tool'; import { ChangePageHeight } from '@/utils/tool';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { show_message } from '@/utils/tdesign_tool'; import { show_message } from '@/utils/tdesign_tool';
const loading = ref(false); 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 { body {
font-size: @font-size-14; font-size: 14px;
line-height: 1.5; line-height: 1.5;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
padding: 0; 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