|
@@ -23,7 +23,6 @@
|
|
<div class="d-f screen screen1">
|
|
<div class="d-f screen screen1">
|
|
<span>班级:</span>
|
|
<span>班级:</span>
|
|
<el-select
|
|
<el-select
|
|
- @change="classC"
|
|
|
|
v-model="params.cid"
|
|
v-model="params.cid"
|
|
clearable
|
|
clearable
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
@@ -31,8 +30,34 @@
|
|
<el-option
|
|
<el-option
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
- v-for="item in classL"
|
|
|
|
- :key="item.name"
|
|
|
|
|
|
+ v-for="item,i in classL"
|
|
|
|
+ :key="i+'e'"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ <span>学校:</span>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="params.sid"
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ v-for="item,i in school_l"
|
|
|
|
+ :key="i+'u'"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ <span>年级:</span>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="params.gid"
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ v-for="item,i in grades_l"
|
|
|
|
+ :key="i+'c'"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<span>来源:</span>
|
|
<span>来源:</span>
|
|
@@ -41,6 +66,7 @@
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
v-model="source"
|
|
v-model="source"
|
|
@change="sourceList"
|
|
@change="sourceList"
|
|
|
|
+ style="width:85px"
|
|
>
|
|
>
|
|
<el-option value="exam" label="考试"></el-option>
|
|
<el-option value="exam" label="考试"></el-option>
|
|
<el-option value="work" label="作业"></el-option>
|
|
<el-option value="work" label="作业"></el-option>
|
|
@@ -118,7 +144,6 @@
|
|
<div>
|
|
<div>
|
|
<span>班级</span>
|
|
<span>班级</span>
|
|
<el-select
|
|
<el-select
|
|
- @change="classC"
|
|
|
|
v-model="params.cid"
|
|
v-model="params.cid"
|
|
clearable
|
|
clearable
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
@@ -127,8 +152,40 @@
|
|
<el-option
|
|
<el-option
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
- v-for="item in classL"
|
|
|
|
- :key="item.name"
|
|
|
|
|
|
+ v-for="item,i in classL"
|
|
|
|
+ :key="i+'b'"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <span>学校</span>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="params.sid"
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ style="width: 325px"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ v-for="item,i in school_l"
|
|
|
|
+ :key="i+'g'"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <span>年级</span>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="params.gid"
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ style="width: 325px"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ v-for="item,i in grades_l"
|
|
|
|
+ :key="i+'y'"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
@@ -194,7 +251,7 @@
|
|
import topNav from "@/components/assembly/topnav";
|
|
import topNav from "@/components/assembly/topnav";
|
|
import topHead from "@/components/assembly/head";
|
|
import topHead from "@/components/assembly/head";
|
|
import foot from "@/components/assembly/foot";
|
|
import foot from "@/components/assembly/foot";
|
|
-import { searchClass, classes, tasks,clsErrPost } from "@/util/api";
|
|
|
|
|
|
+import { searchClass, classes, tasks,clsErrPost,clsPushE,school_s,grades_s} from "@/util/api";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -202,7 +259,9 @@ export default {
|
|
page: 1,
|
|
page: 1,
|
|
size: 10,
|
|
size: 10,
|
|
cid: "",
|
|
cid: "",
|
|
- tid: "",
|
|
|
|
|
|
+ tid: '',
|
|
|
|
+ gid:'',
|
|
|
|
+ sid:'',
|
|
},
|
|
},
|
|
source: "", //来源
|
|
source: "", //来源
|
|
sour_list: [],
|
|
sour_list: [],
|
|
@@ -214,6 +273,8 @@ export default {
|
|
data: [],
|
|
data: [],
|
|
s_push:[],
|
|
s_push:[],
|
|
remark:'',
|
|
remark:'',
|
|
|
|
+ school_l:[],
|
|
|
|
+ grades_l:[],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -235,11 +296,22 @@ export default {
|
|
l.push(obj);
|
|
l.push(obj);
|
|
});
|
|
});
|
|
that.data = l;
|
|
that.data = l;
|
|
- console.log(that.data);
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ //学校
|
|
|
|
+ school_s().then(res=>{
|
|
|
|
+ if(res.errcode == 0){
|
|
|
|
+ that.school_l = res.data
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ //年级
|
|
|
|
+ grades_s().then(res=>{
|
|
|
|
+ if(res.errcode == 0){
|
|
|
|
+ that.grades_l = res.data
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//创建错题推送
|
|
//创建错题推送
|
|
@@ -282,12 +354,6 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- classC(i) {
|
|
|
|
- console.log(i);
|
|
|
|
- this.params.page = 1;
|
|
|
|
- this.params.cid = i;
|
|
|
|
- this.getList();
|
|
|
|
- },
|
|
|
|
//搜索
|
|
//搜索
|
|
search() {
|
|
search() {
|
|
this.params.page = 1;
|
|
this.params.page = 1;
|
|
@@ -298,10 +364,6 @@ export default {
|
|
this.params.page = val;
|
|
this.params.page = val;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
- //查看
|
|
|
|
- // jump_da(title, id) {
|
|
|
|
- // this.$router.push({ path: "/tk_dt_fx", query: { title, id } });
|
|
|
|
- // },
|
|
|
|
//获取列表
|
|
//获取列表
|
|
getList() {
|
|
getList() {
|
|
const load = this.$loading({
|
|
const load = this.$loading({
|
|
@@ -311,8 +373,15 @@ export default {
|
|
background: "rgba(0, 0, 0, 0.7)",
|
|
background: "rgba(0, 0, 0, 0.7)",
|
|
});
|
|
});
|
|
var that = this;
|
|
var that = this;
|
|
- var obj = JSON.parse(JSON.stringify(this.params));
|
|
|
|
- searchClass(obj).then((res) => {
|
|
|
|
|
|
+ var obj = this.params
|
|
|
|
+ for(let key in obj){
|
|
|
|
+ console.log(obj[key])
|
|
|
|
+ if(!obj[key]){
|
|
|
|
+ obj[key] = 0;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ console.log(obj)
|
|
|
|
+ clsPushE(obj).then((res) => {
|
|
if (res.errcode == 0) {
|
|
if (res.errcode == 0) {
|
|
that.tableData = res.data;
|
|
that.tableData = res.data;
|
|
that.total = res.total;
|
|
that.total = res.total;
|
|
@@ -392,6 +461,7 @@ export default {
|
|
color: #1fb3ff;
|
|
color: #1fb3ff;
|
|
right: 20px;
|
|
right: 20px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
|
+ top: -38px;
|
|
}
|
|
}
|
|
.promotion > span {
|
|
.promotion > span {
|
|
margin-right: 5px;
|
|
margin-right: 5px;
|