Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ai_web_page_prod
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
ai_web_page_prod
Commits
651aff2e
Commit
651aff2e
authored
Apr 25, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3a1fe5ba
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
29 additions
and
33 deletions
+29
-33
src/assets/img/ee67ff8e-6191-435c-ad29-b2a6390fc344.png
+0
-0
src/components/custom/Select.vue
+0
-2
src/components/custom/SelectModel.vue
+9
-2
src/constants/router.ts
+1
-1
src/pages/CreationRecord/components/MappingRecord.vue
+16
-1
src/pages/ModelGeneration/components/CompositeImage.vue
+0
-1
src/pages/ModelGeneration/components/GenerateResult/index.tsx
+1
-1
src/pages/ModelTemplate/index.vue
+1
-1
src/style/ClickableButton.less
+0
-14
src/style/index.less
+1
-3
src/style/page/uploadTitle.less
+0
-7
No files found.
src/assets/img/ee67ff8e-6191-435c-ad29-b2a6390fc344.png
deleted
100644 → 0
View file @
3a1fe5ba
286 KB
src/components/custom/Select.vue
View file @
651aff2e
...
...
@@ -97,8 +97,6 @@ watch(
.t-fake-arrow
{
color
:
#00dddd
;
}
.t-fake-arrow--active
{
}
}
}
}
...
...
src/components/custom/SelectModel.vue
View file @
651aff2e
...
...
@@ -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
;
...
...
src/constants/router.ts
View file @
651aff2e
...
...
@@ -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
...
...
src/pages/CreationRecord/components/MappingRecord.vue
View file @
651aff2e
...
...
@@ -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
();
...
...
src/pages/ModelGeneration/components/CompositeImage.vue
View file @
651aff2e
...
...
@@ -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'
;
...
...
src/pages/ModelGeneration/components/GenerateResult/index.tsx
View file @
651aff2e
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'
;
...
...
src/pages/ModelTemplate/index.vue
View file @
651aff2e
...
...
@@ -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
);
...
...
src/style/ClickableButton.less
deleted
100644 → 0
View file @
3a1fe5ba
@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;
}
src/style/index.less
View file @
651aff2e
@import './variables.less';
body {
font-size:
@font-size-14
;
font-size:
14px
;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
padding: 0;
...
...
src/style/page/uploadTitle.less
deleted
100644 → 0
View file @
3a1fe5ba
@import '@/style/variables.less';
// 页面重复的label
.custom-upload-label {
font-weight: 700;
font-size: @font-size-20;
color: #000000;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment