123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <template>
- <div class="model-item-container">
- <br />
- <el-form label-width="100px" :model="form" label-position="top">
- <el-form-item label="请简单描述您的工作内容*">
- <el-input
- v-model="form.title"
- type="textarea"
- :rows="5"
- maxlength="1000"
- show-word-limit
- placeholder="制作「AI模板」原型,撰写需求文档,与开发沟通相关细节"
- />
- </el-form-item>
- </el-form>
- <el-form>
- <el-form-item label="文章长度">
- <div style="text-align: right; width: 100%">
- <el-button plain :class="{ act: form.type === 'day' }">
- 周报
- </el-button>
- <el-button plain :class="{ act: form.type === 'week' }">
- 日报
- </el-button>
- <el-button plain :class="{ act: form.type === 'month' }">
- 月报
- </el-button>
- </div>
- </el-form-item>
- <el-form-item label="职业">
- <div style="text-align: right; width: 100%">
- <el-input style="width: 8em" v-model="form.career" />
- </div>
- </el-form-item>
- <el-form-item label="文案长度">
- <div style="text-align: right; width: 100%">
- <el-button plain :class="{ act: form.long === 'small' }">
- 短
- </el-button>
- <el-button plain :class="{ act: form.long === 'middle' }">
- 中
- </el-button>
- <el-button plain :class="{ act: form.long === 'long' }">
- 长
- </el-button>
- </div>
- </el-form-item>
- <el-form-item label="文案条数">
- <div style="text-align: right; width: 100%">
- <el-input-number v-model="form.num" :min="1" />
- </div>
- </el-form-item>
- </el-form>
- <div class="btn_group">
- <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"
- />
- <div class="content-safe-tip-text">
- 声明:内容为概率模型生成,可能会产生不正确的信息,不代表我司的观点和立场
- </div>
- </div>
- </div>
- </div>
- </template>
- <script setup>
- import { ref } from 'vue';
- import {image_base64} from "./data.js"
- // import {commit} from "@/api/aleditor.js";
- const form = ref({
- title: '',
- long: 'small',
- type: 'day',
- career: '',
- num: 1
- });
- </script>
- <style scoped>
- .model-item-container {
- text-align: center;
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-orient: vertical;
- -webkit-box-direction: normal;
- -ms-flex-direction: column;
- flex-direction: column;
- min-height: 0;
- width: 95%;
- height: 100%;
- }
- .act {
- color: var(--el-button-hover-text-color);
- border-color: var(--el-button-hover-border-color);
- background-color: var(--el-button-hover-bg-color);
- outline: 0;
- }
- .btn_group {
- padding-right: 1em;
- }
- .bottom-content-safe-tip {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- padding: 15px 0;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- justify-content: center;
- 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;
- color: #cacaca;
- }
- </style>
|