|
@@ -2,19 +2,14 @@
|
|
|
<div class="i_body_box">
|
|
|
<backPage tit="资料搜集"></backPage>
|
|
|
<div class="check_nav">
|
|
|
- <!-- <div class="nav all" v-show="this.ExamineBase.length > 0" :class="{ active: type == '1' }" @click="checkType('1')">
|
|
|
- 年度考核
|
|
|
- </div> -->
|
|
|
<div class="nav all" :class="{ active: checkTypeValue == typeListStr }"
|
|
|
@click="changeShowType(typeListStr)">
|
|
|
全部
|
|
|
</div>
|
|
|
<div class="nav" v-for="item in typeList" :key="item.id" :class="{ active: checkTypeValue == item.id,all:['8bfa67ce-e82a-11ef-b508-005056924926','9d3289d2-e82a-11ef-b508-005056924926','a824c728-e82a-11ef-b508-005056924926','8085418b-e82a-11ef-b508-005056924926'].includes(item.id)}"
|
|
|
@click="changeShowType(item.id,item)">{{ item.name }}</div>
|
|
|
-
|
|
|
</div>
|
|
|
<div class="check_box" v-loading="loading">
|
|
|
- <!-- <examine v-if="type==1"></examine> -->
|
|
|
<div class="noneData" v-if="!worksArray.length && type!=1" style="text-align: center; margin-top: 20px;">
|
|
|
暂无数据
|
|
|
</div>
|
|
@@ -55,8 +50,6 @@
|
|
|
<div class="time">
|
|
|
<span>提交记录{{item.array.length - index}}</span>
|
|
|
</div>
|
|
|
- <!-- <img @click="deleteTest(test.id)" class="delete"
|
|
|
- src="../../../../assets/icon/test/delete.png" alt="" /> -->
|
|
|
<div class="utime">
|
|
|
<span>{{ test.utime }}</span>
|
|
|
</div>
|
|
@@ -67,23 +60,11 @@
|
|
|
<div @click="deleteTest(test.id)" class="delete">
|
|
|
<span>删除</span>
|
|
|
</div>
|
|
|
- <!-- <div @click="checkTest(test.courseid, test.id)">
|
|
|
- <span></span><span>查看</span>
|
|
|
- </div>
|
|
|
- <div @click="copyTest(test.id)">
|
|
|
- <span></span><span>复制</span>
|
|
|
- </div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="test_add_box"
|
|
|
v-else-if="item.carray" v-loading="!item.carray.length">
|
|
|
- <!-- <div class="courseLength" v-for="(course, index) in item.carray" :key="index" @click="doTest3(item, course)">
|
|
|
- <span class="finish" :class="{is: course.array.length}"></span>
|
|
|
- <span>{{ index+1 }}、</span>
|
|
|
- <span>{{ course.title }}</span>
|
|
|
- <span>{{ course.username }}</span>
|
|
|
- </div> -->
|
|
|
<div class="test courseLength" v-for="(course, index) in item.carray" :key="index">
|
|
|
<div class="time">
|
|
|
<el-tooltip :content="course.title+'-'+course.username" placement="top" effect="dark">
|
|
@@ -125,8 +106,8 @@ export default {
|
|
|
return {
|
|
|
userid: this.$route.query.userid,
|
|
|
oid: this.$route.query.oid,
|
|
|
+ sortId: this.$route.query.sortId,
|
|
|
type: "",
|
|
|
- typeId:'e18d88b3-e828-11ef-b508-005056924926',
|
|
|
typeList:[],
|
|
|
ExamineBase: [],
|
|
|
typeArray: [],
|
|
@@ -269,37 +250,33 @@ export default {
|
|
|
|
|
|
if(this.typeList.length){
|
|
|
_result = this.typeList.map(i=>i.id)
|
|
|
- _result.push(this.typeId);
|
|
|
+ _result.push(this.sortId);
|
|
|
_result = _result.join(',')
|
|
|
}
|
|
|
|
|
|
return _result;
|
|
|
}
|
|
|
},
|
|
|
- watch:{
|
|
|
- typeId(newValue){
|
|
|
- this.changeShowType(newValue)
|
|
|
- }
|
|
|
- },
|
|
|
methods: {
|
|
|
getNavType() {
|
|
|
+ let _this = this
|
|
|
let params = {
|
|
|
oid: "",//this.oid
|
|
|
};
|
|
|
+ let inte = (this.sortId == 'eefb7195-8ee7-11f0-9c7b-005056924926') ? 'selectTestType_liYuan' : 'selectTestType'
|
|
|
this.ajax
|
|
|
- .get(this.$store.state.api + "selectTestType", params)
|
|
|
+ .get(this.$store.state.api + inte, params)
|
|
|
.then(res => {
|
|
|
let _data = res.data[0];
|
|
|
console.log('_data',_data);
|
|
|
- // _data.fliter(e=>{
|
|
|
-
|
|
|
- // })
|
|
|
+ console.log('_this.sortId',_this.sortId);
|
|
|
+
|
|
|
this.typeList = _data.filter(function(item, index) {
|
|
|
- return item.pid == 'e18d88b3-e828-11ef-b508-005056924926';
|
|
|
+ return item.pid == _this.sortId;
|
|
|
});
|
|
|
+
|
|
|
this.changeShowType(this.typeListStr)
|
|
|
|
|
|
- // = _data.fliter(e =>{ return e.pid == 'e18d88b3-e828-11ef-b508-005056924926'})
|
|
|
console.log('this.typeList',this.typeList);
|
|
|
|
|
|
|
|
@@ -321,7 +298,6 @@ export default {
|
|
|
if(type == 1 && !res.data[0].length){
|
|
|
this.getPageBase(2)
|
|
|
}
|
|
|
- // console.log("selectTestExamineBase", res.data);
|
|
|
})
|
|
|
.catch(error => {
|
|
|
console.log(error);
|
|
@@ -346,11 +322,6 @@ export default {
|
|
|
this.typeArray = res.data[0];
|
|
|
if(type == 1){
|
|
|
this.type = ''
|
|
|
- // if (this.typeArray.length) {
|
|
|
- // this.type = this.typeArray[0].id;
|
|
|
- // } else {
|
|
|
- // this.type = '0';
|
|
|
- // }
|
|
|
}
|
|
|
this.getWorks()
|
|
|
})
|
|
@@ -678,31 +649,15 @@ export default {
|
|
|
return res.data[0]
|
|
|
},
|
|
|
changeShowType(value){
|
|
|
- console.log('value',value);
|
|
|
+ console.log('changeShowType',value);
|
|
|
|
|
|
- this.checkTypeValue = value;
|
|
|
- this.getWorks();
|
|
|
+ this.checkTypeValue = value;
|
|
|
+ this.getWorks();
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- // this.selectTestType(1);
|
|
|
- // this.getPageBase()
|
|
|
this.getNavType()
|
|
|
-
|
|
|
- console.log('this.typeListStr',this.typeListStr);
|
|
|
-
|
|
|
- // if(this.typeListStr){
|
|
|
- // this.changeShowType(this.typeListStr)
|
|
|
- // this.checkTypeValue = this.typeId
|
|
|
- // }
|
|
|
},
|
|
|
- // activated(){
|
|
|
- // // this.selectTestType(2);
|
|
|
- // if(this.typeListStr){
|
|
|
- // this.changeShowType(this.typeListStr)
|
|
|
- // // this.checkTypeValue = this.typeId
|
|
|
- // }
|
|
|
- // },
|
|
|
};
|
|
|
</script>
|
|
|
|