| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437 |
- <!-- 活动解析 -->
- <template>
- <div>
- <!-- table 表格 -->
- <el-row :gutter="20" class="main-items" >
- <!--数据监控-->
- <el-col :span="20" class="main" :offset="2">
- <el-row :gutter="20" class="main-header">
- <el-col :span="3"><div class="main-header-item" @click="isShow(1)">注册老师数:18人</div></el-col>
- <el-col :span="3"><div class="main-header-item" @click="isShow(2)">活跃老师数:16人</div></el-col>
- <el-col :span="4"><div class="main-header-item">注册用户数:1128人</div></el-col>
- <el-col :span="4"><div class="main-header-item">活跃用户数:1008人</div></el-col>
- </el-row>
- <el-table
- :data="dataList"
- highlight-current-row
- size="medium"
- border
- stripe
- >
- <el-table-column
- label="小组管理员"
- header-align="center"
- >
- <template scope="scope">
- <img :src="scope.row.img" alt="" class="table-img">
- </template>
- </el-table-column>
- <el-table-column
- prop="names"
- label="小组人数"
- header-align="center"
- >
- </el-table-column>
- <el-table-column
- prop="number"
- label="老师出勤率"
- header-align="center"
- ></el-table-column>
- <el-table-column
- prop="time"
- label="作业批改总份数"
- header-align="center">
- </el-table-column>
- <el-table-column
- prop="allTime"
- label="作业批改总张数"
- header-align="center"
- >
- </el-table-column>
- <el-table-column
- prop="rate"
- label="批改平均用时"
- header-align="center"></el-table-column>
- <el-table-column
- prop="status"
- label="家长平均评分"
- header-align="center"></el-table-column>
- <el-table-column
- prop="status"
- label="是否在线"
- header-align="center"></el-table-column>
- <el-table-column prop="status" label="" header-align="center" width="250">
- <template scope="scope">
- <el-button type="success" plain round>小组详情</el-button>
- <el-button type="success" round>管理员详情</el-button>
- </template>
- </el-table-column>
- </el-table>
- </el-col>
- <!-- 分页显示 -->
- <!--<el-pagination-->
- <!--background-->
- <!--class="all_pagination"-->
- <!--@size-change="handleSizeChange"-->
- <!--@current-change="pageChange"-->
- <!--:page-sizes="[10, 20, 30, 40]"-->
- <!--:page-size="10"-->
- <!--layout="total, sizes, prev, pager, next, jumper"-->
- <!--:total="filters.count">-->
- <!--</el-pagination>-->
- </el-row>
- <!--可分配老师-->
- <div class='showModel' @click="allShowModel(1)" v-if="hiddenModel"></div>
- <div class='model' v-if="hiddenModel">
- <div class='model-text'>
- <div class="model-text-head">
- <div>可分配老师</div>
- <div>二年级数学</div>
- </div>
- <div class="model-items">
- <div class="model-items-left">
- <div class="model-items-left-top">
- <div>
- <img src="../../assets/img/user.jpg" alt="" class="model-items-left-top-img">
- <div style="display: inline-block">
- <div style="font-size: 24px">李大柱</div>
- <div class="model-items-left-top-number">等待学生:0</div>
- </div>
- </div>
- <div> <el-button type="success">分配</el-button></div>
- </div>
- </div>
- <div class="model-items-left">
- <div class="model-items-left-top">
- <div>
- <img src="../../assets/img/user.jpg" alt="" class="model-items-left-top-img">
- <div style="display: inline-block">
- <div style="font-size: 24px">李大柱</div>
- <div class="model-items-left-top-number">等待学生:0</div>
- </div>
- </div>
- <div> <el-button type="success">分配</el-button></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--所有未批改作业-->
- <div class='showModel' @click="allShowModel(2)" v-if="isPigai"></div>
- <div class='model' v-if="isPigai">
- <div class='model-text'>
- <div class="model-text-head">
- <div>所有未批改作业</div>
- </div>
- <el-table
- :data="tableData"
- style="width: 100%">
- <el-table-column
- prop="date"
- label="日期"
- width="180">
- </el-table-column>
- <el-table-column
- prop="name"
- label="姓名"
- width="180">
- </el-table-column>
- <el-table-column
- prop="address"
- label="地址">
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { mapGetters, mapActions } from "vuex";
- export default {
- components: { },
- name: "actvResolveLabel",
- props: {},
- data() {
- return {
- hiddenModel:false,
- isPigai:false,
- ItemList: [
- {
- text:'数据监控'
- },
- {
- text:'当天'
- },
- {
- text:'当月'
- },
- ],
- dataList:[
- {
- img:'../../assets/img/user.jpg',
- names:'阿三',
- number:'3',
- time:'14:22',
- allTime:'14:22',
- rate:'222',
- status:'22'
- },
- {
- img:'../../assets/img/user.jpg',
- names:'阿三',
- number:'3',
- time:'14:22',
- allTime:'14:22',
- rate:'222',
- status:'22'
- }
- ],
- filters: {
- actvNm: "",
- actvCrtUserId: "",
- actvType: "",
- actvSmallType: "",
- // 排序
- pageNo: 1,
- pageSize: 10,
- count: 0,
- orderField: "",
- orderAD: ""
- }
- };
- },
- watch: {},
- computed: {
- ...mapGetters(["getUser"])
- },
- methods: {
- ...mapActions(["setUser"]),
- selectTitle(k) {
- console.log(k);
- this.checkindex = k;
- },
- isShow(str){
- let _this = this;
- console.log(str)
- if (str == 1){
- _this.hiddenModel = true;
- } else if (str == 2){
- _this.isPigai = true;
- }
- },
- //关闭弹框
- allShowModel(str) {
- let _this = this;
- if (str == 1){
- _this.hiddenModel = false;
- } else if (str == 2){
- _this.isPigai = false;
- }
- },
- // 输入框按键方法
- keyCodeMethod(e) {
- if (e.keyCode === 13) return this.itemListReshow();
- },
- expandChange(row, expandRows) {
- for (let item of expandRows) {
- if (row === item) {
- this.expandRowKeys = [row.nodId];
- }
- }
- },
- // 分页
- pageChange(val) {
- this.filters.pageNo = val;
- this.itemListReshow();
- },
- changeDateSlot(dateSlot) {
- if (dateSlot) {
- this.filters.startDate = dateSlot[0];
- this.filters.endDate = dateSlot[1];
- } else {
- this.filters.startDate = null;
- this.filters.endDate = null;
- }
- },
- actvTypeChange(typeList) {
- switch (typeList.length) {
- case 1:
- this.filters.actvType = typeList[0];
- this.filters.actvSmallType = null;
- break;
- case 2:
- this.filters.actvType = null;
- this.filters.actvSmallType = typeList[1];
- break;
- default:
- this.filters.actvType = null;
- this.filters.actvSmallType = null;
- break;
- }
- },
- handleSizeChange(val) {
- this.filters.pageSize = val;
- this.itemListReshow();
- },
- // 排序
- sortChange(sort) {
- this.filters.orderField = sort.prop;
- this.filters.orderAD = sort.order != null ? sort.order : "";
- this.itemListReshow();
- },
- clearSearch() {
- this.filters.actvNm = null;
- this.filters.actvCrtUserId = null;
- this.filters.actvType = null;
- this.filters.actvSmallType = null;
- this.filtersActvType = [];
- this.createDateSlot = null;
- },
- // 获取创建人列表
- // async getUserNameList() {
- // let {
- // userNameList = []
- // } = await this.$dao.actv.marketActDao.getUserNameList();
- // this.userNameList = userNameList || [];
- // let { list = [] } = await this.$dao.bsnsActvTypeAllList();
- // this.actvTypeList = list || [];
- // }
- },
- mounted() {
- // this.getsetDictByType2();
- // this.getUserNameList();
- // this.itemListReshow();
- }
- };
- </script>
- <!-- Add "scoped" attribute to limit CSS to this component only -->
- <style scoped>
- .main{
- background-color: #fff;
- margin-top: 16px;
- padding: 0 !important;
- border: 1px solid #E1E1E1;
- min-height: 980px;
- }
- .table-aside{
- color: #666666;
- font-size: 18px;
- text-align: center;
- line-height: 60px;
- }
- el-table{
- color: #999999;
- font-size: 18px;
- }
- .main-items{
- color: #393939;
- text-align: center;
- line-height: 80px;
- }
- .main-header-item{
- font-size: 16px;
- color: #7E7E7E;
- }
- .main-header-link{
- color: #52CC60;
- font-size: 18px;
- margin-left: 10px;
- text-decoration:underline
- }
- .el-select{
- width: 100px;
- margin: 0 5px;
- }
- .input-with-select .el-input-group__prepend {
- background-color: #fff;
- }
- .active{
- background-color: #52CC60;
- color: #fff;
- }
- .el-input__inner{
- height: 32px;
- }
- .cell{
- font-size: 18px !important;
- }
- .table-img{
- width:36px;
- height:36px;
- border-radius:6px;
- }
- .showModel{
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0;
- left: 0;
- background: #000000;
- opacity: 0.2;
- overflow: hidden;
- z-index: 1000;
- color: #fff;
- }
- .model{
- z-index: 1001;
- width:854px;
- height:auto;
- position: relative;
- /*right: auto;*/
- margin:auto;
- background: #fff;
- border-radius:30px;
- text-align: center;
- }
- .model-text{
- background:rgba(255,255,255,1);
- border-radius:10px;
- }
- .model-text-head{
- padding: 40px 50px;
- display: flex;
- color: #393939;
- font-size: 24px;
- justify-content: space-between;
- }
- .model-items-left{
- width: 45%;
- color: #393939;
- font-size: 24px;
- }
- .model-items-left-top{
- display: flex;;
- justify-content: space-between;
- }
- .model-items{
- padding: 0 50px 10px 50px;
- display: flex;;
- justify-content: space-between;
- }
- .model-items-left-top-img{
- width:68px;
- height:68px;
- border-radius:8px;
- position: relative;
- bottom: 25px;
- }
- .model-items-left-top-number{
- color: #7E7E7E;
- font-size: 18px;
- margin-left: 10px;
- }
- .today-time{
- color: #7E7E7E;
- font-size: 18px;
- margin: 0 20px;
- }
- </style>
|