lsc há 11 meses atrás
pai
commit
47c0a6b688

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.27ede5302c9c87431e0e135cf5e562ff.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.3cd0a0187ca1f70ded67.js></script><script type=text/javascript src=./static/js/app.30ad310e4c609504ddbc.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.f60d5384f22c28c52c8719a5b1cd2e86.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.3cd0a0187ca1f70ded67.js></script><script type=text/javascript src=./static/js/app.896f07b8379ff30f39ce.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/app.27ede5302c9c87431e0e135cf5e562ff.css.map


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/app.f60d5384f22c28c52c8719a5b1cd2e86.css


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/app.f60d5384f22c28c52c8719a5b1cd2e86.css.map


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.896f07b8379ff30f39ce.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.896f07b8379ff30f39ce.js.map


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/manifest.571c38d63f24b1ae9e16.js.map


Diff do ficheiro suprimidas por serem muito extensas
+ 58 - 49
src/components/pages/aiAddCourse/addCourse.vue


+ 158 - 0
src/components/pages/aiAddCourse/aiDialog.vue

@@ -0,0 +1,158 @@
+<template>
+    <el-dialog title="提示词设置" :visible.sync="dialogVisibleAiD" :append-to-body="true" width="650px" :before-close="handleClose"
+        class="dialog_diy">
+        <div style="height: 100%;padding:15px">
+            <div class="ai_nav">
+                <span :class="{active: type == 1}">基础创建</span>
+            </div>
+            <div class="ai_detail" v-if="type == 1">
+                <span class="title">默认的提示词</span>
+                <textarea rows="10" class="binfo_input binfo_textarea" cols v-model="text"
+                      placeholder="请输入...."></textarea>
+            </div>
+        </div>
+        <span slot="footer" class="dialog-footer">
+            <el-button @click="confirm" type="primary">确 定</el-button>
+            <el-button @click="close">关 闭</el-button>
+        </span>
+    </el-dialog>
+</template>
+  
+<script>
+export default {
+    props: {
+        dialogVisibleAiD: {
+            type: Boolean,
+            default: false
+        },
+        aiText: {
+            type: String,
+        }
+    },
+    data() {
+        return {
+            type: 1,
+            text: ""
+        }
+    },
+    watch:{
+        dialogVisibleAiD(newValue, oldValue) {
+            this.text = JSON.parse(JSON.stringify(this.aiText))
+        }
+    },
+    methods: {
+        handleClose(done) {
+            this.close()
+            done();
+        },
+        close() {
+            this.$emit('update:dialogVisibleAiD', false)
+        },
+        confirm(){
+            this.$emit("aiConfirm",this.text);
+            this.$emit('update:dialogVisibleAiD', false)
+        }
+    },
+}
+</script>
+  
+<style scoped>
+.dialog_diy>>>.el-dialog {
+    height: auto;
+    margin: 15vh auto 0 !important;
+}
+
+.dialog_diy>>>.el-dialog__header {
+    background: #454545 !important;
+    padding: 15px 20px;
+}
+
+.dialog_diy>>>.el-dialog__body {
+    height: calc(100% - 124px);
+    box-sizing: border-box;
+    padding: 0px;
+}
+
+
+.dialog_diy>>>.el-dialog__title {
+    color: #fff;
+}
+
+.dialog_diy>>>.el-dialog__headerbtn {
+    top: 19px;
+}
+
+.dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
+    color: #fff;
+}
+
+.dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
+    color: #fff;
+}
+
+
+.dialog_diy>>>.el-dialog__body,
+.dialog_diy>>>.el-dialog__footer {
+    background: #fafafa;
+}
+
+.ai_detail > .binfo_input {
+  width: 100%;
+  margin: 0;
+  padding: 12px 14px;
+  display: block;
+  min-width: 0;
+  outline: none;
+  box-sizing: border-box;
+  background: none;
+  border: none;
+  border-radius: 4px;
+  background: #fff;
+  font-size: 16px;
+  resize: none;
+  font-family: "Microsoft YaHei";
+  min-height: 48px;
+  /* border: 1px solid #3682fc00; */
+  border: 1.5px solid #cad1dc;
+}
+
+.ai_detail > .binfo_textarea {
+  border: 1.5px solid #cad1dc;
+  font-size: 16px;
+  resize: none;
+  /* background: #f6f6f6; */
+  font-family: "Microsoft YaHei";
+}
+
+.ai_detail > .binfo_input:focus-visible {
+  border: 1.5px solid #3681fc !important;
+}
+
+
+.ai_nav{
+    font-size: 16px;
+    margin-bottom: 10px;
+    display: flex;
+    align-items: center;
+}
+.ai_nav > span{
+    cursor: pointer;
+}
+
+.ai_nav > span + span{
+    margin-left: 15px;
+}
+.ai_nav > span.active{
+    color: #3681fc;
+}
+
+.ai_detail{
+    display: flex;
+    flex-direction: column;
+}
+
+.ai_detail > .title{
+    margin-bottom: 5px;
+}
+
+</style>

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff