|
@@ -24,9 +24,8 @@
|
|
|
<el-select v-model="queryParams.dqbh" placeholder="请选择地区" clearable size="small"
|
|
|
@keyup.enter.native="handleQuery">
|
|
|
<el-option key="1" label="全部" value=""></el-option>
|
|
|
- <el-option key="2" label="福州" value="3501"></el-option>
|
|
|
- <el-option key="3" label="厦门" value="3502"></el-option>
|
|
|
- <el-option key="4" label="莆田" value="3503"></el-option>
|
|
|
+ <el-option v-for="item in coachCity" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option>
|
|
|
+
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
@@ -146,6 +145,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { getList, updateList } from "@/api/tool/coopschool";
|
|
|
+import {listData} from '@/api/system/dict/data'
|
|
|
let date = new Date()
|
|
|
let defaultStartTime = `${date.getFullYear()}${date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1}01`
|
|
|
let defaultEndTime = `${date.getFullYear()}${date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1}${new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate()}`;
|
|
@@ -191,6 +191,8 @@ export default {
|
|
|
// isShare: 0,
|
|
|
|
|
|
},
|
|
|
+ //合作城市
|
|
|
+ coachCity:[],
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
// 表单校验
|
|
@@ -199,10 +201,19 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
-
|
|
|
+ this.getCoachCity()
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ getCoachCity(){
|
|
|
+ listData({
|
|
|
+ dictType:'coach_city',
|
|
|
+ pageNum:1,
|
|
|
+ pageSize:1000
|
|
|
+ }).then(res=>{
|
|
|
+ this.coachCity = res.rows
|
|
|
+ })
|
|
|
+ },
|
|
|
/** 查询错题列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|