Bläddra i källkod

主题色修改和全局修改

htc 3 dagar sedan
förälder
incheckning
dd1c3a305c

+ 16 - 0
src/assets/scss/global.scss

@@ -0,0 +1,16 @@
+
+
+.el-button--primary{
+    background: #761E6A !important;
+    border-color: #761E6A !important;
+}
+.el-button--text{
+    color: #761E6A !important;
+}
+.el-radio__input.is-checked .el-radio__inner{
+    background: #761E6A !important;
+    border-color: #761E6A !important;
+}
+.el-radio__input.is-checked+.el-radio__label{
+    color: #761E6A !important;
+}

+ 1 - 0
src/main.js

@@ -30,6 +30,7 @@ import cloneDeep from 'lodash/cloneDeep'
 // import 'vue-video-player/src/custom-theme.css'
 // import 'video.js/dist/video-js.css'
 import { emitter } from '@/utils/emitter';
+import '@/assets/scss/global.scss'
 
 import plugins from './plugins' // plugins
 Vue.use(plugins)

+ 1 - 1
src/views/modules/agent/knowledge.vue

@@ -105,7 +105,7 @@
                 .r_add{
                     width: 110px;
                     height: 36px;
-                    background: #1C4ED8;
+                    background: #761E6A;
                     border-radius: 6px;
                     margin-left: 16px;
                     font-family: PingFangSC, PingFang SC;

+ 58 - 15
src/views/modules/agent/knowledge/add.vue

@@ -36,13 +36,13 @@
                 <div class="c_title">选择数据</div>
                 <div class="c_tip">导入数据,构建知识库索引</div>
                 <div class="c_type adfac">
-                    <span>导入方式</span>
-                    <el-radio-group v-model="exportType">
+                    <span>添加知识</span>
+                    <el-radio-group v-model="addType">
                         <el-radio :label="1">选择文件</el-radio>
                         <el-radio :label="2">上传文件</el-radio>
                     </el-radio-group>
                 </div>
-                <template v-if="exportType===1">
+                <template v-if="addType===1">
                     <div class="c_xzwj">
                         <span>请选择类目</span>
                         <div class="cx_box adf">
@@ -82,15 +82,34 @@
                         </div>
                     </div>
                 </template>
-                <template v-else-if="exportType===2">
+                <template v-else-if="addType===2">
                     <div class="c_scwj">
-                        <div class="cs_item">
-                            <span>导入类目</span>
-                            <el-select v-model="knowledgeDto.category" placeholder="请选择类目"></el-select>
+                        <div class="cs_item adfac">
+                            <span>选择类目</span>
+                            <el-select v-model="knowledgeDto.category" placeholder="请选择" style="width: 480px;"></el-select>
                         </div>
-                        <div class="cs_item">
-                            <span>导入方式</span>
-                            <el-select v-model="knowledgeDto.category" placeholder="请选择类目"></el-select>
+                        <div class="cs_item adfac" style="margin-top: 37px;">
+                            <span>添加方式</span>
+                            <el-radio-group v-model="tjfsType">
+                                <el-radio :label="1">本地上传</el-radio>
+                                <el-radio :label="2">网址提交</el-radio>
+                                <el-radio :label="3">百度网盘</el-radio>
+                                <el-radio :label="4">自媒体平台</el-radio>
+                            </el-radio-group>
+                        </div>
+                        <div class="cs_upload">
+                            <el-upload
+                                class="upload-demo"
+                                drag
+                                action=""
+                                multiple>
+                                <i class="el-icon-upload"></i>
+                                <div class="el-upload__text">点击或拖拽文件上传</div>
+                                <div class="el-upload__text" style="font-size: 12px;color: #C1C7D2;line-height: 20px;margin-top: 8px;">
+                                    支持 .pdf,.doc,.docx,.txt,.md,.pptx,.ppt,.png,.jpg,.jpeg,.bmp,.gif,.xls,.xlsx,.html 等格式<br>
+                                    单文档最大限制100MB或1000页,单图片最大限制20MB
+                                </div>
+                            </el-upload>
                         </div>
                     </div>
                 </template>
@@ -108,8 +127,9 @@
     import { ref, getCurrentInstance } from 'vue'
     const { proxy } = getCurrentInstance();
 
-    const step = ref(2)
-    const exportType = ref(1)
+    const step = ref(1)
+    const addType = ref(1)
+    const tjfsType = ref(1)
     const categoryList = ref([
         {id:1,name:'高企的发展路径'},
         {id:2,name:'团队管理'},
@@ -238,10 +258,10 @@
                 }
                 &.active{
                     .st_num{
-                        background: #2463EB;
+                        background: #761E6A;
                     }
                     span{
-                        color: #2463EB;
+                        color: #761E6A;
                     }
                 }
             }
@@ -337,7 +357,7 @@
                                 cursor: pointer;
                                 &.active,&:hover{
                                     background: #ECEEF5;
-                                    color: #2463EB;
+                                    color: #761E6A;
                                 }
                             }
                         }
@@ -351,6 +371,24 @@
                     }
                 }
             }
+            .c_scwj{
+                margin-top: 22px;
+                .cs_item{
+                    span{
+                        font-family: PingFang-SC, PingFang-SC;
+                        font-weight: bold;
+                        font-size: 14px;
+                        color: #252525;
+                        line-height: 14px;
+                        margin-right: 43px;
+                    }
+                }
+                .cs_upload{
+                    width: 640px;
+                    padding: 24px 0 0 98px;
+                    box-sizing: border-box;
+                }
+            }
         }
 
         .btns{
@@ -362,4 +400,9 @@
             bottom: 0;
         }
     }
+
+    ::v-deep .el-upload,::v-deep .el-upload-dragger{
+        width: 100% !important;
+        background: #FAFAFB !important;
+    }
 </style>

+ 5 - 5
src/views/modules/agent/knowledgeCategory.vue

@@ -247,7 +247,7 @@
                         line-height: 14px;
                         &:last-child{
                             font-size: 20px;
-                            color: #1C4ED8;
+                            color: #833478;
                             cursor: pointer;
                         }
                     }
@@ -269,9 +269,9 @@
                         cursor: pointer;
                         &:hover,&.active{
                             background: #F0F2F8;
-                            color: #2E69EB;
+                            color: #833478;
                             i{
-                                color: #2E69EB !important;
+                                color: #833478 !important;
                             }
                         }
                         
@@ -346,7 +346,7 @@
                             line-height: 36px;
                             text-align: center;
                             &:last-child{
-                                background: #1C4ED8;
+                                background: #833478;
                                 color: #FFFFFF;
                             }
                         }
@@ -374,7 +374,7 @@
                 padding-bottom: 0;
             }
             &:hover{
-                color: #2E69EB;
+                color: #833478;
             }
         }
     }

+ 10 - 10
src/views/modules/agent/program.vue

@@ -489,7 +489,7 @@
                 cursor: pointer;
                 &.active{
                     font-weight: bold;
-                    color: #2463EB;
+                    color: #833478;
                     &::after{
                         content: '';
                         position: absolute;
@@ -497,14 +497,14 @@
                         left: 0;
                         width: 100%;
                         height: 2px;
-                        background: #2463EB;
+                        background: #833478;
                     }
                 }
             }
             .t_add{
                 width: 114px;
                 height: 32px;
-                background: #1C4ED8;
+                background: #833478;
                 border-radius: 6px;
                 font-family: PingFangSC, PingFang SC;
                 font-weight: 400;
@@ -551,11 +551,11 @@
                             width: 73px;
                             height: 28px;
                             border-radius: 6px;
-                            border: 1px solid #2E69EB;
+                            border: 1px solid #833478;
                             font-family: PingFangSC, PingFang SC;
                             font-weight: 400;
                             font-size: 12px;
-                            color: #2E69EB;
+                            color: #833478;
                             line-height: 24px;
                             text-align: center;
                             cursor: pointer;
@@ -628,10 +628,10 @@
                                     border-radius: 6px;
                                     span{
                                         font-weight: bold;
-                                        color: #2E69EB;
+                                        color: #833478;
                                     }
                                     i{
-                                        color: #2E69EB !important;
+                                        color: #833478 !important;
                                     }
                                 }
                                 i{
@@ -683,7 +683,7 @@
                                 line-height: 36px;
                                 text-align: center;
                                 &:last-child{
-                                    background: #1C4ED8;
+                                    background: #833478;
                                     color: #FFFFFF;
                                 }
                             }
@@ -714,7 +714,7 @@
                 .e_add{
                     width: 114px;
                     height: 32px;
-                    background: #1C4ED8;
+                    background: #833478;
                     border-radius: 6px;
                     font-family: PingFangSC, PingFang SC;
                     font-weight: 400;
@@ -748,7 +748,7 @@
                 padding-bottom: 0;
             }
             &:hover{
-                color: #2E69EB;
+                color: #833478;
             }
         }
     }

+ 6 - 6
src/views/modules/agent/program/addTeam.vue

@@ -267,7 +267,7 @@
                 .btn{
                     width: 80px;
                     height: 32px;
-                    background: #1C4ED8;
+                    background: #833478;
                     border-radius: 6px;
                     font-family: PingFangSC, PingFang SC;
                     font-weight: 400;
@@ -318,16 +318,16 @@
                         font-family: PingFangSC, PingFang SC;
                         font-weight: 400;
                         font-size: 12px;
-                        color: #2E69EB;
-                        line-height: 36px;
+                        color: #833478;
+                        line-height: 32px;
                         text-align: center;
                         cursor: pointer;
                     }
                     &.sc{
                         border-left: 1px solid #EDEEF0;
                         .fpbp_btn{
-                            background: #1C4ED8;
-                            border: 1px solid #1C4ED8;
+                            background: #833478;
+                            border: 1px solid #833478;
                             color: #FFFFFF;
                         }
                     }
@@ -359,7 +359,7 @@
             .fs_add{
                 width: 80px;
                 height: 32px;
-                background: #1C4ED8;
+                background: #833478;
                 border-radius: 6px;
                 font-family: PingFangSC, PingFang SC;
                 font-weight: 400;