瀏覽代碼

10/13 课表列表改造

11
mo 4 年之前
父節點
當前提交
3a1eebf06a

文件差異過大導致無法顯示
+ 0 - 0
dist/index.html


+ 1 - 0
dist/static/css/chunk-5b65359f.33903005.css

@@ -0,0 +1 @@
+.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.inputStyle[data-v-92ffe0b0]{width:100px;text-align:center}.title[data-v-0eb05fc4]{margin-bottom:20px}.amap-demo[data-v-0eb05fc4]{height:300px}.inputStyle[data-v-7d789d15]{width:100px;text-align:center}.work[data-v-7d789d15]{margin-bottom:30px;font-size:16px}.visible[data-v-7a1484b1]{visibility:hidden}.cl-container .topFrom[data-v-7a1484b1]{margin:20px 30px 0}.cl-container .topFrom .classlist[data-v-7a1484b1]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cl-container .topFrom .classlist ul li[data-v-7a1484b1]{list-style:none}.cl-container .searchForm[data-v-7a1484b1]{margin:0 30px}.btnWraps[data-v-7a1484b1]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.btnWraps div[data-v-7a1484b1]{margin-right:20px}.inputStyle[data-v-7a1484b1]{width:180px}.red[data-v-7a1484b1]{color:red}.exportBtn[data-v-7a1484b1]{background:#13817a}

+ 1 - 1
dist/static/css/chunk-6a1d53ad.c5849bef.css

@@ -1 +1 @@
-.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.inputStyle[data-v-92ffe0b0]{width:100px;text-align:center}.title[data-v-0eb05fc4]{margin-bottom:20px}.amap-demo[data-v-0eb05fc4]{height:300px}.inputStyle[data-v-7d789d15]{width:100px;text-align:center}.work[data-v-7d789d15]{margin-bottom:30px;font-size:16px}.visible[data-v-b687ec48]{visibility:hidden}.cl-container .topFrom[data-v-b687ec48]{margin:20px 30px 0}.cl-container .topFrom .classlist[data-v-b687ec48]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cl-container .topFrom .classlist ul li[data-v-b687ec48]{list-style:none}.cl-container .searchForm[data-v-b687ec48]{margin:0 30px}.btnWraps[data-v-b687ec48]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.btnWraps div[data-v-b687ec48]{margin-right:20px}.inputStyle[data-v-b687ec48]{width:180px}.red[data-v-b687ec48]{color:red}.exportBtn[data-v-b687ec48]{background:#13817a}
+.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.inputStyle[data-v-92ffe0b0]{width:100px;text-align:center}.title[data-v-0eb05fc4]{margin-bottom:20px}.amap-demo[data-v-0eb05fc4]{height:300px}.inputStyle[data-v-7d789d15]{width:100px;text-align:center}.work[data-v-7d789d15]{margin-bottom:30px;font-size:16px}.visible[data-v-7a1484b1]{visibility:hidden}.cl-container .topFrom[data-v-7a1484b1]{margin:20px 30px 0}.cl-container .topFrom .classlist[data-v-7a1484b1]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cl-container .topFrom .classlist ul li[data-v-7a1484b1]{list-style:none}.cl-container .searchForm[data-v-7a1484b1]{margin:0 30px}.btnWraps[data-v-7a1484b1]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.btnWraps div[data-v-7a1484b1]{margin-right:20px}.inputStyle[data-v-7a1484b1]{width:180px}.red[data-v-7a1484b1]{color:red}.exportBtn[data-v-7a1484b1]{background:#13817a}

文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.809cba53.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/chunk-5b65359f.9929103b.js


+ 34 - 6
src/views/teamDetail/teamCourseList.vue

@@ -456,8 +456,21 @@ export default {
       let searchForm = this.searchForm;
       if (!searchForm.timer || searchForm.timer.length <= 0) {
         searchForm.timer = [];
-        this.$message.error("请选择时间段");
-        return;
+      }
+      if (!searchForm.creatTimer || searchForm.creatTimer.length <= 0) {
+        searchForm.creatTimer = []
+      }
+      let count = 0
+      for (let item in searchForm) {
+        if (searchForm[item] && !Array.isArray(searchForm[item])) {
+          count++
+        } else if (Array.isArray(searchForm[item]) && searchForm[item].length > 0) {
+          count++
+        }
+      }
+      if (count <= 0) {
+        this.$message.error('请至少选择一个搜索条件')
+        return
       }
       let obj = {
         teachMode: searchForm.teachMode || null,
@@ -528,8 +541,23 @@ export default {
       let searchForm = this.searchForm;
       if (!searchForm.timer || searchForm.timer.length <= 0) {
         searchForm.timer = [];
-        this.$message.error("请选择时间段");
-        return;
+        // this.$message.error("请选择时间段");
+        // return;
+      }
+      if (!searchForm.creatTimer || searchForm.creatTimer.length <= 0) {
+        searchForm.creatTimer = []
+      }
+      let count = 0
+      for (let item in searchForm) {
+        if (searchForm[item] && !Array.isArray(searchForm[item])) {
+          count++
+        } else if (Array.isArray(searchForm[item]) && searchForm[item].length > 0) {
+          count++
+        }
+      }
+      if (count <= 0) {
+        this.$message.error('请至少选择一个搜索条件')
+        return
       }
       let obj = {
         teachMode: searchForm.teachMode || null,
@@ -546,8 +574,8 @@ export default {
         isCallNames: searchForm.isCallNames,
         schoolId: searchForm.schoolId || null,
         groupType: searchForm.groupType || null,
-        createStartDate: searchForm.creatTimer[0] || null,
-        createEndDate: searchForm.creatTimer[1] || null
+        createStartDate: searchForm.creatTimer[0] ? searchForm.creatTimer[0] : null,
+        createEndDate: searchForm.creatTimer[1] ? searchForm.creatTimer[1] : null
       };
       superFindCourseSchedules(obj).then(res => {
         if (res.code == 200) {

部分文件因文件數量過多而無法顯示