|
@@ -1,23 +1,27 @@
|
|
|
<template>
|
|
|
<div class="model-item-container">
|
|
|
- <div top="" class="model-item-part">
|
|
|
- <div class="progress_bar">
|
|
|
- <div class="bar_item" v-for="(item,i) in steps" :key="item.text + i">
|
|
|
- <div class="item_child">
|
|
|
- <div
|
|
|
- class="cricle c_play"
|
|
|
- :style="{backgroundColor: status.step >= i ? 'rgb(228, 242, 255)' : 'rgb(238, 238, 238)', backgroundImage: getBG(i)}"
|
|
|
- v-text="status.step < i ? i + 1 : ''"
|
|
|
- ></div>
|
|
|
- <div class="item-child-label active" style="width: 50px" v-text="item.text"></div>
|
|
|
- </div>
|
|
|
- <div class="c_right c_right_grey"></div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <br />
|
|
|
<el-form label-width="100px" :model="form" label-position="left">
|
|
|
- <el-form-item label="标题">
|
|
|
- <el-input v-model="form.title" />
|
|
|
+ <el-form-item label="产品名称">
|
|
|
+ <el-input v-model="form.title" :maxlength="100" show-word-limit />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="产品描述">
|
|
|
+ <el-input v-model="form.desc" type="textarea" :rows="5" :maxlength="1000" show-word-limit />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="自动生成标题">
|
|
|
+ <div style="text-align: right; width: 100%">
|
|
|
+ <el-switch v-model="form.isTitle" />
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="选择语气">
|
|
|
+ <div style="text-align: right; width: 100%">
|
|
|
+ <el-select v-model="form.region">
|
|
|
+ <el-option label="默认" value="默认1" />
|
|
|
+ <el-option label="口语" value="口语1" />
|
|
|
+ <el-option label="专业" value="专业1" />
|
|
|
+ <el-option label="热情" value="热情1" />
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="文章长度">
|
|
|
<div style="text-align: right; width: 100%">
|
|
@@ -32,25 +36,17 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="自动配图">
|
|
|
- <div style="text-align: right; width: 100%">
|
|
|
- <el-switch v-model="form.isImg" />
|
|
|
- </div>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="摘要条数">
|
|
|
+ <el-form-item label="生成话题">
|
|
|
<div style="text-align: right; width: 100%">
|
|
|
- <el-input-number v-model="form.num" :min="1" />
|
|
|
+ <el-switch v-model="form.isTalk" />
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
<div class="btn_group">
|
|
|
- <el-button type="primary" @click="status.step++">下一步</el-button>
|
|
|
+ <el-button type="primary" style="width: 100%;">生成内容</el-button>
|
|
|
<div class="bottom-content-safe-tip">
|
|
|
- <img
|
|
|
- :src="image_base64.tanhao"
|
|
|
- class="content-safe-tip-icon"
|
|
|
- />
|
|
|
+ <img :src="image_base64.tanhao" class="content-safe-tip-icon" />
|
|
|
<div class="content-safe-tip-text">
|
|
|
声明:内容为概率模型生成,可能会产生不正确的信息,不代表我司的观点和立场
|
|
|
</div>
|
|
@@ -61,39 +57,17 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { ref } from 'vue';
|
|
|
-import { image_base64 } from "./data.js";
|
|
|
+import { image_base64 } from './data.js';
|
|
|
// import {commit} from "@/api/aleditor.js";
|
|
|
-const steps = [
|
|
|
- {
|
|
|
- text: '标题',
|
|
|
- },
|
|
|
- {
|
|
|
- text: '摘要',
|
|
|
- },
|
|
|
- {
|
|
|
- text: '大纲',
|
|
|
- },
|
|
|
- {
|
|
|
- text: '内容',
|
|
|
- }
|
|
|
-]
|
|
|
const form = ref({
|
|
|
title: '',
|
|
|
- num: 1,
|
|
|
- isImg: false,
|
|
|
+ isTitle: false,
|
|
|
+ isTalk: false,
|
|
|
long: 'small',
|
|
|
+ desc: '',
|
|
|
+ region: '默认',
|
|
|
});
|
|
|
|
|
|
-const status = ref({
|
|
|
- step: 0,
|
|
|
- progress: 0,
|
|
|
-})
|
|
|
-
|
|
|
-const getBG = i => {
|
|
|
- if(status.value.step == i) return 'url(' + image_base64.play + ')';
|
|
|
- if(status.value.step > i) return 'url(' + image_base64.duigou + ')';
|
|
|
- return undefined
|
|
|
-}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
@@ -121,68 +95,6 @@ const getBG = i => {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
-.bar_item,
|
|
|
-.progress_bar {
|
|
|
- display: -webkit-box;
|
|
|
- display: -ms-flexbox;
|
|
|
- display: flex;
|
|
|
- -webkit-box-pack: justify;
|
|
|
- -ms-flex-pack: justify;
|
|
|
- justify-content: space-between;
|
|
|
-}
|
|
|
-.progress_bar {
|
|
|
- width: 100%;
|
|
|
- height: 80px;
|
|
|
- line-height: 80px;
|
|
|
- font-size: 14px;
|
|
|
-}
|
|
|
-
|
|
|
-.bar_item {
|
|
|
- width: 90px;
|
|
|
-}
|
|
|
-
|
|
|
-.item_child {
|
|
|
- display: -webkit-box;
|
|
|
- display: -ms-flexbox;
|
|
|
- display: flex;
|
|
|
- -webkit-box-align: center;
|
|
|
- -ms-flex-align: center;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-
|
|
|
-.c_right_grey {
|
|
|
- background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNyIgaGVpZ2h0PSIxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNLjE1NiAxLjAxYS41NDcuNTQ3IDAgMDAwIC43NjVMNS43MzYgNy41bC01LjU4IDUuNzI0YS41NDguNTQ4IDAgMDAuMTcuODgyLjUyLjUyIDAgMDAuNTc3LS4xMTdMNi44MzcgNy45YS41NzMuNTczIDAgMDAwLS43OTlMLjkwMyAxLjAxYS41MjEuNTIxIDAgMDAtLjc0NyAweiIgZmlsbD0iI0UxRTFFMSIvPjwvc3ZnPg==);
|
|
|
-}
|
|
|
-.c_right {
|
|
|
- background-repeat: no-repeat;
|
|
|
- background-position: 50%;
|
|
|
- background-size: 29%;
|
|
|
- width: 25px;
|
|
|
- height: 100%;
|
|
|
-}
|
|
|
-
|
|
|
-.cricle {
|
|
|
- width: 25px;
|
|
|
- height: 25px;
|
|
|
- border-radius: 50%;
|
|
|
- line-height: 25px;
|
|
|
- text-align: center;
|
|
|
- color: #8e8e8e;
|
|
|
- font-size: 16px;
|
|
|
- background-repeat: no-repeat;
|
|
|
- background-position: 50%;
|
|
|
- margin-right: 5px;
|
|
|
- background-size: 40%;
|
|
|
-}
|
|
|
-
|
|
|
-.item-child-label.active {
|
|
|
- color: #4b4b4b;
|
|
|
-}
|
|
|
-
|
|
|
-.item-child-label {
|
|
|
- color: #8e8e8e;
|
|
|
-}
|
|
|
-
|
|
|
.act {
|
|
|
color: var(--el-button-hover-text-color);
|
|
|
border-color: var(--el-button-hover-border-color);
|
|
@@ -191,12 +103,9 @@ const getBG = i => {
|
|
|
}
|
|
|
|
|
|
.btn_group {
|
|
|
- position: absolute;
|
|
|
width: 100%;
|
|
|
- text-align: right;
|
|
|
- bottom: 0;
|
|
|
- padding-right: 1em;
|
|
|
}
|
|
|
+
|
|
|
.bottom-content-safe-tip {
|
|
|
display: -webkit-box;
|
|
|
display: -ms-flexbox;
|
|
@@ -208,11 +117,13 @@ const getBG = i => {
|
|
|
width: 100%;
|
|
|
zoom: 0.83;
|
|
|
}
|
|
|
+
|
|
|
.bottom-content-safe-tip .content-safe-tip-icon {
|
|
|
width: 15px;
|
|
|
height: 15px;
|
|
|
margin-right: 10px;
|
|
|
}
|
|
|
+
|
|
|
.bottom-content-safe-tip .content-safe-tip-text {
|
|
|
font-size: 12px;
|
|
|
line-height: 15px;
|