xvying 1 gadu atpakaļ
vecāks
revīzija
02168adedb

+ 3 - 3
.env.development

@@ -3,16 +3,16 @@
  # @Author: 旭颖
  # @Date: 2022-11-21 11:10:29
  # @LastEditors: Please set LastEditors
- # @LastEditTime: 2023-03-26 19:42:23
+ # @LastEditTime: 2023-03-26 23:37:18
 ###
 # just a flag
 ENV = 'development'
 
 # base api
-#  VUE_APP_BASE_API = '/stage-api'
+ VUE_APP_BASE_API = '/stage-api'
 # VUE_APP_BASE_API = 'http://api.party.site.ximengnaikang.com'
 # VUE_APP_BASE_API = 'http://zhdj.xxjsxy.hactcm.edu.cn/api'
- VUE_APP_BASE_API = 'https://bcydj.hactcm.edu.cn/api'
+#  VUE_APP_BASE_API = 'https://bcydj.hactcm.edu.cn/api'
 VUE_Sidebar_Title='党员管理系统', //左侧导航栏标题
 VUE_Title='党员管理', //浏览器导航栏显示标题
 Login_Title='智慧党建信息管理系统', //登录页

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 3 - 3
online/static/js/app.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 20
online/static/js/chunk-vendors.js


+ 26 - 21
src/layout/components/Sidebar/Logo.vue

@@ -3,38 +3,43 @@
  * @Date: 2021-10-01 09:36:12
 -->
 <template>
-  <div class="sidebar-logo-container" :class="{'collapse':collapse}">
-  <!--  <transition name="sidebarLogoFade">
-     
+  <div class="sidebar-logo-container" :class="{ collapse: collapse }">
+    <!--  <transition name="sidebarLogoFade">
+
     </transition>-->
-     <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
-        <img v-if="logo" :src="logo" class="sidebar-logo">
-        <h1 v-else class="sidebar-title">{{ title }} </h1>
-      </router-link>
-      <router-link v-else key="expand" class="sidebar-logo-link" to="/">
-        <img v-if="logo" :src="logo" class="sidebar-logo">
-        <h1 class="sidebar-title">{{ title }} </h1>
-      </router-link>
+    <router-link
+      v-if="collapse"
+      key="collapse"
+      class="sidebar-logo-link"
+      to="/"
+    >
+      <img v-if="logo" src="@/assets/image/dangyuan.png" class="sidebar-logo" />
+      <h1 v-else class="sidebar-title">{{ title }}</h1>
+    </router-link>
+    <router-link v-else key="expand" class="sidebar-logo-link" to="/">
+      <img v-if="logo" src="@/assets/image/dangyuan.png" class="sidebar-logo" />
+      <h1 class="sidebar-title">{{ title }}</h1>
+    </router-link>
   </div>
 </template>
 
 <script>
-const defaultSettings = require('@/settings.js')
+const defaultSettings = require("@/settings.js");
 export default {
-  name: 'SidebarLogo',
+  name: "SidebarLogo",
   props: {
     collapse: {
       type: Boolean,
-      required: true
-    }
+      required: true,
+    },
   },
   data() {
     return {
       title: defaultSettings.SidebarTitle,
-      logo: this.base_url + '/images/logo-mini.png'
-    }
-  }
-}
+      logo: this.base_url + "/images/logo-mini.png",
+    };
+  },
+};
 </script>
 
 <style lang="scss" scoped>
@@ -53,7 +58,7 @@ export default {
   height: 70px;
   line-height: 70px;
   background: #ab0d0d;
- 
+
   overflow: hidden;
 
   & .sidebar-logo-link {
@@ -62,7 +67,7 @@ export default {
 
     & .sidebar-logo {
       width: 50px;
-      height:50px;
+      height: 50px;
       vertical-align: middle;
       margin-right: 12px;
     }

+ 8 - 8
src/main.js

@@ -1,8 +1,8 @@
 /*
  * @Author: xvying 1615026511@qq.com
  * @Date: 2022-10-09 11:40:36
- * @LastEditors: king
- * @LastEditTime: 2023-03-25 18:52:14
+ * @LastEditors: Please set LastEditors
+ * @LastEditTime: 2023-03-26 23:32:26
  * @FilePath: main.js
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -22,8 +22,8 @@ import router from "./router";
 import "@/icons"; // icon
 import "@/permission"; // permission control
 
-import Video from 'video.js'
-import 'video.js/dist/video-js.css'
+import Video from "video.js";
+import "video.js/dist/video-js.css";
 /**
  * If you don't want to use mock-server
  * you want to use MockJs for mock api
@@ -41,19 +41,19 @@ Vue.prototype.base_url =
   process.env.ENV === "development"
     ? "http://api.party.site.ximengnaikang.com" // 开发地址
     : process.env.ENV === "production"
-    ? "http://api.party.demo.xmnk.cn" // 生产地址
-    : "http://api.party.demo.xmnk.cn"; // 测试地址
+    ? "https://bcydj.hactcm.edu.cn" // 生产地址
+    : "https://bcydj.hactcm.edu.cn"; // 测试地址
 
 // set ElementUI lang to EN
 //Vue.use(ElementUI, { locale })
 // 如果想要中文版 element-ui,按如下方式声明
 Vue.use(ElementUI);
-Vue.prototype.$baseConfirm  = ElementUI.MessageBox.confirm
+Vue.prototype.$baseConfirm = ElementUI.MessageBox.confirm;
 Vue.config.productionTip = false;
 
 // 注册 EventBus
 Vue.prototype.$event = new Vue();
-Vue.prototype.$video = Video
+Vue.prototype.$video = Video;
 // 注册全局自定义快速读取 excel `v-read-excel`
 Vue.directive("read-excel", {
   inserted: (el, { value }) => {

+ 17 - 3
src/views/xuexi/index.vue

@@ -14,8 +14,9 @@
         </div>
       </div>
       <!-- 课程列表 -->
-      <div class="list_wrap">
-        <el-empty v-if="course_list.length == 0" description="暂无内容" />
+      <!-- <el-empty v-if="course_list.length == 0" description="暂无内容" /> -->
+
+      <div class="list_wrap" v-if="course_list.length > 0">
         <div
           v-for="(item, index) in course_list"
           :key="index"
@@ -53,7 +54,10 @@
           </div>
         </div>
       </div>
-
+      <div class="empty" v-else>
+        <img src="../../assets/image/empty.png" alt="" />
+        <div class="empty-text">暂无课程</div>
+      </div>
       <el-pagination
         background
         :current-page="queryForm.page"
@@ -170,6 +174,16 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
+.empty {
+  text-align: center;
+  img {
+    margin-top: 10vh;
+    height: 250px;
+  }
+  .empty-text {
+    font-size: 14px;
+  }
+}
 .course_all_container {
   ul,
   li {

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels