weekly.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <div class="model-item-container">
  3. <br />
  4. <el-form label-width="100px" :model="form" label-position="top">
  5. <el-form-item label="请简单描述您的工作内容*">
  6. <el-input
  7. v-model="form.title"
  8. type="textarea"
  9. :rows="5"
  10. maxlength="1000"
  11. show-word-limit
  12. placeholder="制作「AI模板」原型,撰写需求文档,与开发沟通相关细节"
  13. />
  14. </el-form-item>
  15. </el-form>
  16. <el-form>
  17. <el-form-item label="文章长度">
  18. <div style="text-align: right; width: 100%">
  19. <el-button plain :class="{ act: form.type === 'day' }">
  20. 周报
  21. </el-button>
  22. <el-button plain :class="{ act: form.type === 'week' }">
  23. 日报
  24. </el-button>
  25. <el-button plain :class="{ act: form.type === 'month' }">
  26. 月报
  27. </el-button>
  28. </div>
  29. </el-form-item>
  30. <el-form-item label="职业">
  31. <div style="text-align: right; width: 100%">
  32. <el-input style="width: 8em" v-model="form.career" />
  33. </div>
  34. </el-form-item>
  35. <el-form-item label="文案长度">
  36. <div style="text-align: right; width: 100%">
  37. <el-button plain :class="{ act: form.long === 'small' }">
  38. </el-button>
  39. <el-button plain :class="{ act: form.long === 'middle' }">
  40. </el-button>
  41. <el-button plain :class="{ act: form.long === 'long' }">
  42. </el-button>
  43. </div>
  44. </el-form-item>
  45. <el-form-item label="文案条数">
  46. <div style="text-align: right; width: 100%">
  47. <el-input-number v-model="form.num" :min="1" />
  48. </div>
  49. </el-form-item>
  50. </el-form>
  51. <div class="btn_group">
  52. <el-button type="primary" style="width: 100%">生成文案</el-button>
  53. <div class="bottom-content-safe-tip">
  54. <img
  55. :src="image_base64.tanhao"
  56. class="content-safe-tip-icon"
  57. />
  58. <div class="content-safe-tip-text">
  59. 声明:内容为概率模型生成,可能会产生不正确的信息,不代表我司的观点和立场
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </template>
  65. <script setup>
  66. import { ref } from 'vue';
  67. import {image_base64} from "./data.js"
  68. // import {commit} from "@/api/aleditor.js";
  69. const form = ref({
  70. title: '',
  71. long: 'small',
  72. type: 'day',
  73. career: '',
  74. num: 1
  75. });
  76. </script>
  77. <style scoped>
  78. .model-item-container {
  79. text-align: center;
  80. -webkit-box-flex: 1;
  81. -ms-flex: 1;
  82. flex: 1;
  83. display: -webkit-box;
  84. display: -ms-flexbox;
  85. display: flex;
  86. -webkit-box-orient: vertical;
  87. -webkit-box-direction: normal;
  88. -ms-flex-direction: column;
  89. flex-direction: column;
  90. min-height: 0;
  91. width: 95%;
  92. height: 100%;
  93. }
  94. .act {
  95. color: var(--el-button-hover-text-color);
  96. border-color: var(--el-button-hover-border-color);
  97. background-color: var(--el-button-hover-bg-color);
  98. outline: 0;
  99. }
  100. .btn_group {
  101. padding-right: 1em;
  102. }
  103. .bottom-content-safe-tip {
  104. display: -webkit-box;
  105. display: -ms-flexbox;
  106. display: flex;
  107. padding: 15px 0;
  108. -webkit-box-pack: center;
  109. -ms-flex-pack: center;
  110. justify-content: center;
  111. width: 100%;
  112. zoom: 0.83;
  113. }
  114. .bottom-content-safe-tip .content-safe-tip-icon {
  115. width: 15px;
  116. height: 15px;
  117. margin-right: 10px;
  118. }
  119. .bottom-content-safe-tip .content-safe-tip-text {
  120. font-size: 12px;
  121. line-height: 15px;
  122. color: #cacaca;
  123. }
  124. </style>