Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4d444400
authored
Jul 16, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码评审】AI:写作优化
parent
35b2708c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
16 deletions
+15
-16
.image/common/ai-feature.png
+0
-0
.image/common/ai-preview.gif
+0
-0
README.md
+6
-8
src/api/ai/write/index.ts
+1
-1
src/views/ai/write/index/components/Right.vue
+5
-5
src/views/ai/write/index/components/Tag.vue
+1
-0
src/views/ai/write/index/index.vue
+2
-2
No files found.
.image/common/ai-feature.png
0 → 100644
View file @
4d444400
20.7 KB
.image/common/ai-preview.gif
0 → 100644
View file @
4d444400
348 KB
README.md
View file @
4d444400
...
@@ -191,26 +191,24 @@ ps:核心功能已经实现,正在对接微信小程序中...
...
@@ -191,26 +191,24 @@ ps:核心功能已经实现,正在对接微信小程序中...
### 商城系统
### 商城系统
演示地址:
<https://doc.iocoder.cn/mall-preview/>




_前端基于 crmeb uniapp 经过授权重构,优化代码实现,接入芋道快速开发平台_
演示地址:
<https://doc.iocoder.cn/mall-preview/>
### ERP 系统
### ERP 系统

演示地址:
<https://doc.iocoder.cn/erp-preview/>
演示地址:
<https://doc.iocoder.cn/erp-preview/>
### CRM 系统


### CRM 系统
演示地址:
<https://doc.iocoder.cn/crm-preview/>
演示地址:
<https://doc.iocoder.cn/crm-preview/>

## 🐷 演示图
## 🐷 演示图
### 系统功能
### 系统功能
...
...
src/api/ai/write/index.ts
View file @
4d444400
...
@@ -17,7 +17,7 @@ export interface WriteVO {
...
@@ -17,7 +17,7 @@ export interface WriteVO {
platform
?:
string
// 平台
platform
?:
string
// 平台
model
?:
string
// 模型
model
?:
string
// 模型
generatedContent
?:
string
// 生成的内容
generatedContent
?:
string
// 生成的内容
errorMessage
:
string
// 错误信息
errorMessage
?
:
string
// 错误信息
createTime
?:
Date
// 创建时间
createTime
?:
Date
// 创建时间
}
}
...
...
src/views/ai/write/index/components/Right.vue
View file @
4d444400
<
template
>
<
template
>
<el-card
class=
"my-card h-full"
>
<el-card
class=
"my-card h-full"
>
<template
#
header
<template
#
header
>
>
<h3
class=
"m-0 px-7 shrink-0 flex items-center justify-between"
>
<h3
class=
"m-0 px-7 shrink-0 flex items-center justify-between"
>
<span>
预览
</span>
<span>
预览
</span>
<!-- 展示在右上角 -->
<!-- 展示在右上角 -->
<el-button
color=
"#846af7"
v-show=
"showCopy"
@
click=
"copyContent"
size=
"small"
>
<el-button
color=
"#846af7"
v-show=
"showCopy"
@
click=
"copyContent"
size=
"small"
>
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
</
template
>
</
template
>
复制
复制
</el-button>
</el-button>
</h3>
</template
</h3>
>
</template
>
<div
ref=
"contentRef"
class=
"hide-scroll-bar h-full box-border overflow-y-auto"
>
<div
ref=
"contentRef"
class=
"hide-scroll-bar h-full box-border overflow-y-auto"
>
<div
class=
"w-full min-h-full relative flex-grow bg-white box-border p-3 sm:p-7"
>
<div
class=
"w-full min-h-full relative flex-grow bg-white box-border p-3 sm:p-7"
>
...
@@ -105,7 +105,7 @@ watch(copied, (val) => {
...
@@ -105,7 +105,7 @@ watch(copied, (val) => {
}
}
}
}
.my-card
{
.my-card
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
...
src/views/ai/write/index/components/Tag.vue
View file @
4d444400
<!-- 标签选项 -->
<
template
>
<
template
>
<div
class=
"flex flex-wrap gap-[8px]"
>
<div
class=
"flex flex-wrap gap-[8px]"
>
<span
<span
...
...
src/views/ai/write/index/index.vue
View file @
4d444400
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
Left
from
'./components/Left.vue'
import
Left
from
'./components/Left.vue'
import
Right
from
'./components/Right.vue'
import
Right
from
'./components/Right.vue'
import
{
WriteApi
}
from
'@/api/ai/write'
import
{
WriteApi
,
WriteVO
}
from
'@/api/ai/write'
import
{
WriteExample
}
from
'@/views/ai/utils/constants'
import
{
WriteExample
}
from
'@/views/ai/utils/constants'
const
message
=
useMessage
()
const
message
=
useMessage
()
...
@@ -37,7 +37,7 @@ const stopStream = () => {
...
@@ -37,7 +37,7 @@ const stopStream = () => {
/** 执行写作 */
/** 执行写作 */
const
rightRef
=
ref
<
InstanceType
<
typeof
Right
>>
()
const
rightRef
=
ref
<
InstanceType
<
typeof
Right
>>
()
const
submit
=
(
data
)
=>
{
const
submit
=
(
data
:
WriteVO
)
=>
{
abortController
.
value
=
new
AbortController
()
abortController
.
value
=
new
AbortController
()
writeResult
.
value
=
''
writeResult
.
value
=
''
isWriting
.
value
=
true
isWriting
.
value
=
true
...
...
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