|
@@ -2,37 +2,70 @@
|
|
|
<div class="testExamine">
|
|
|
<div class="testTit">
|
|
|
<div class="teaLis">
|
|
|
- <div class="teal" @click="cutPage(0)" :class="[type == 0?'Tbor':'']">专任教师</div>
|
|
|
- <div class="teal" @click="cutPage(1)" :class="[type == 1?'Tbor':'']">班主任</div>
|
|
|
+ <div
|
|
|
+ class="teal"
|
|
|
+ @click="cutPage(0)"
|
|
|
+ :class="[pType == 0 ? 'Tbor' : '']"
|
|
|
+ >
|
|
|
+ 专任教师
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="teal"
|
|
|
+ @click="cutPage(1)"
|
|
|
+ :class="[pType == 1 ? 'Tbor' : '']"
|
|
|
+ >
|
|
|
+ 班主任
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-right: 100px;">
|
|
|
+ <el-select v-model="cutTable" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in cutTabOpts"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</div>
|
|
|
- <div style="margin-right: 100px;">按指标</div>
|
|
|
</div>
|
|
|
<div class="testCon">
|
|
|
- <cteach v-if="type == 0"></cteach>
|
|
|
- <regularTea v-if="type == 1"></regularTea>
|
|
|
+ <targetPage :pType="pType" v-if="cutTable == 0"></targetPage>
|
|
|
+ <personPage :pType="pType" v-if="cutTable == 1"></personPage>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import cteach from "./conpoments/cteach.vue";
|
|
|
-import regularTea from "./conpoments/regularTea";
|
|
|
+import personPage from "./conpoments/personPage.vue";
|
|
|
+import targetPage from "./conpoments/targetPage";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
- cteach,
|
|
|
- regularTea
|
|
|
+ personPage,
|
|
|
+ targetPage
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- type: 0
|
|
|
+ pType: 0,
|
|
|
+ cutTable: 0,
|
|
|
+ cutTabOpts: [
|
|
|
+ {
|
|
|
+ value: 0,
|
|
|
+ label: "按指标"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 1,
|
|
|
+ label: "按人员"
|
|
|
+ }
|
|
|
+ ]
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- cutPage(e){
|
|
|
- this.type = e
|
|
|
+ cutPage(e) {
|
|
|
+ this.pType = e;
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -50,17 +83,17 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
}
|
|
|
-.teaLis{
|
|
|
+.teaLis {
|
|
|
display: flex;
|
|
|
}
|
|
|
-.teal{
|
|
|
+.teal {
|
|
|
padding: 10px 20px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
-.Tbor{
|
|
|
+.Tbor {
|
|
|
border-bottom: 2px rgba(54, 129, 252, 1) solid;
|
|
|
}
|
|
|
-.testCon{
|
|
|
+.testCon {
|
|
|
box-sizing: border-box;
|
|
|
padding: 20px;
|
|
|
}
|