ソースを参照

账号列表更新

lzw 6 ヶ月 前
コミット
5e8a23d31a
3 ファイル変更203 行追加475 行削除
  1. 188 471
      src/components/list.vue
  2. 13 2
      src/components/schoolList.vue
  3. 2 2
      src/views/HomeView.vue

ファイルの差分が大きいため隠しています
+ 188 - 471
src/components/list.vue


+ 13 - 2
src/components/schoolList.vue

@@ -7,6 +7,11 @@
                     style="margin-right: 10px; width: 200px"></el-input>
                 <el-input v-model="checkOrg" placeholder="请输入组织" size="normal" clearable @input="changeOrg"
                     style="margin-right: 10px; width: 200px"></el-input>
+                <el-select v-model="checkArea" placeholder="选择区域" clearable filterable @change="changeArea"
+                    style="margin-right: 10px">
+                    <el-option v-for="item in regionCList" :key="item.id" :label="item.name" :value="item.name">
+                    </el-option>
+                </el-select>
 
                 <el-button type="primary" size="small" @click="add_school_dialog = true;">新增学校</el-button>
             </div>
@@ -234,6 +239,7 @@ export default {
             cn_school: [],
             checkOid: "",
             checkOrg: "",
+            checkArea: "",
             currentPage: 1,
             pageSize: 10,
             total: 0,
@@ -276,12 +282,17 @@ export default {
             this.currentPage = 1; // 重置当前页
             this.getSchool(); // 调用获取数据的方法
         },
+        changeArea() {
+            this.currentPage = 1;
+            this.getSchool();
+        },
         getSchool() {
             let params = [
                 {
                     functionName: "getSchoolList",
                     sName: this.checkOid,
                     oName: this.checkOrg,
+                    area: this.checkArea,
                     page: this.currentPage,
                     num: this.pageSize,
                 }
@@ -517,8 +528,8 @@ export default {
         toPage(row) {
             const oid = row.id;
             const org = row.org;
-            const url=`https://pbl.cocorobo.cn/pbl-teacher-table/dist/?#/teacher?userid=${this.userid}&oid=${oid}&org=${org}`;
-            window.open(url,'_blank');
+            const url = `https://pbl.cocorobo.cn/pbl-teacher-table/dist/?#/teacher?userid=${this.userid}&oid=${oid}&org=${org}`;
+            window.open(url, '_blank');
         }
 
     },

+ 2 - 2
src/views/HomeView.vue

@@ -22,9 +22,9 @@
           <router-link class="menu_left" to="/school-list">
             <i class="el-icon-school"></i>学校列表
           </router-link>
-          <router-link class="menu_left" to="/version-add">
+          <!-- <router-link class="menu_left" to="/version-add">
             <i class="el-icon-office-building"></i>版本更新
-          </router-link>
+          </router-link> -->
         </ul>
       </div>
       <div class="table-container">

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません