|
@@ -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');
|
|
|
}
|
|
|
|
|
|
},
|