HomeworkRecycle.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. <!-- 活动解析 -->
  2. <template>
  3. <div>
  4. <!-- table 表格 -->
  5. <el-row :gutter="20" class="main-items" >
  6. <!--数据监控-->
  7. <el-col :span="20" class="main" :offset="2">
  8. <el-table
  9. :data="list"
  10. :header-cell-class-name="tableheaderClassName"
  11. size="medium"
  12. stripe
  13. >
  14. <el-table-column
  15. label="上传时间"
  16. prop=""
  17. header-align="center"
  18. >
  19. </el-table-column>
  20. <el-table-column
  21. prop=""
  22. label="科目"
  23. header-align="center"
  24. >
  25. </el-table-column>
  26. <el-table-column
  27. prop=""
  28. label="学生"
  29. header-align="center"
  30. ></el-table-column>
  31. <el-table-column
  32. prop=""
  33. label="批改状况"
  34. header-align="center">
  35. </el-table-column>
  36. <el-table-column
  37. prop=""
  38. label="是否有补拍"
  39. header-align="center"
  40. >
  41. </el-table-column>
  42. <el-table-column
  43. prop=""
  44. label=""
  45. header-align="center"
  46. width="450"
  47. >
  48. <template scope="scope">
  49. <span class="allocation">去分配</span>
  50. </template>
  51. </el-table-column>
  52. </el-table>
  53. <!-- 分页显示 -->
  54. <!--<div class="page-block" v-if="parseInt(getTeacherSalaryList.pages) > 0">-->
  55. <!--<el-pagination-->
  56. <!--background-->
  57. <!--@size-change="handleSizeChange"-->
  58. <!--@current-change="pageChange"-->
  59. <!--:page-sizes="[10, 20, 30, 40]"-->
  60. <!--layout="total, sizes, prev, pager, next, jumper"-->
  61. <!--:total= parseInt(getTeacherSalaryList.pages)-->
  62. <!--&gt;</el-pagination>-->
  63. <!--</div>-->
  64. </el-col>
  65. </el-row>
  66. <!--弹框-->
  67. <div class='showModel' @click="allShowModel(2)" v-if="isPigai"></div>
  68. <div class='model' v-if="isPigai">
  69. <div class='model-text'>
  70. <div class="model-text-items">
  71. <div><img src="../../assets/img/del@2x.png" alt="" @click="allShowModel(2)" class="model-text-items-close"></div>
  72. <div>是否导出表格?</div>
  73. </div>
  74. <div class="model-btn">
  75. <div class="model-btn-items main-gay">是</div>
  76. <div class="model-btn-items model-grdeen">否</div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. </template>
  82. <script>
  83. import { mapGetters, mapActions } from "vuex";
  84. export default {
  85. components: { },
  86. name: "actvResolveLabel",
  87. props: {},
  88. data() {
  89. return {
  90. BASE_URL:'https://xt.sharingschool.com/upload/',
  91. selMonth:'',
  92. hiddenModel:false,
  93. isPigai:false,
  94. list:[],
  95. filters: {
  96. actvNm: "",
  97. actvCrtUserId: "",
  98. actvType: "",
  99. actvSmallType: "",
  100. // 排序
  101. MaxtimeValue:'',
  102. oneMonth:'',
  103. pageNo: 1,
  104. pageSize: 10,
  105. count: 0,
  106. orderField: "",
  107. orderAD: ""
  108. }
  109. };
  110. },
  111. watch: {},
  112. computed: {
  113. ...mapGetters(["getUser"])
  114. },
  115. methods: {
  116. ...mapActions(["setUser"]),
  117. // 表格头部样式
  118. tableheaderClassName({ row, rowIndex }) {
  119. return "table-head-th";
  120. },
  121. //弹框
  122. isShow(str){
  123. let _this = this;
  124. console.log(str)
  125. if (str == 1){
  126. _this.hiddenModel = true;
  127. _this.isPigai = false;
  128. } else if (str == 2){
  129. _this.isPigai = true;
  130. _this.hiddenModel = false;
  131. }
  132. },
  133. //关闭弹框
  134. allShowModel(str) {
  135. let _this = this;
  136. if (str == 1){
  137. _this.hiddenModel = false;
  138. } else if (str == 2){
  139. _this.isPigai = false;
  140. }
  141. },
  142. //时间封装
  143. formatDate: function () {
  144. let date = new Date();
  145. let y = date.getFullYear();
  146. let MM = date.getMonth() + 1;
  147. MM = MM < 10 ? ('0' + MM) : MM;
  148. let d = date.getDate();
  149. d = d < 10 ? ('0' + d) : d;
  150. let h = date.getHours();
  151. h = h < 10 ? ('0' + h) : h;
  152. let m = date.getMinutes();
  153. m = m < 10 ? ('0' + m) : m;
  154. let s = date.getSeconds();
  155. s = s < 10 ? ('0' + s) : s;
  156. return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s;
  157. },
  158. // 老师薪酬列表
  159. // async GetTeacherSalaryList() {
  160. // this.$store.dispatch("GetTeacherSalaryList", {
  161. // pageNo: this.filters.pageNo,
  162. // pageSize: this.filters.pageSize,
  163. // oneMonth:this.filters.oneMonth,
  164. // maxCreateTime: this.formatDate()
  165. // });
  166. // },
  167. //选择月
  168. allclick(){
  169. var year = this.selMonth.getFullYear();
  170. var month = this.selMonth.getMonth() + 1;
  171. month = (month < 10 ? "0" + month : month);
  172. var mydate = (year.toString() + '-' + month.toString());
  173. this.filters.oneMonth = mydate;
  174. this.GetTeacherSalaryList()
  175. },
  176. // 分页
  177. pageChange(val) {
  178. this.filters.pageNo = val;
  179. this.GetTeacherSalaryList();
  180. },
  181. changeDateSlot(dateSlot) {
  182. if (dateSlot) {
  183. this.filters.startDate = dateSlot[0];
  184. this.filters.endDate = dateSlot[1];
  185. } else {
  186. this.filters.startDate = null;
  187. this.filters.endDate = null;
  188. }
  189. },
  190. actvTypeChange(typeList) {
  191. switch (typeList.length) {
  192. case 1:
  193. this.filters.actvType = typeList[0];
  194. this.filters.actvSmallType = null;
  195. break;
  196. case 2:
  197. this.filters.actvType = null;
  198. this.filters.actvSmallType = typeList[1];
  199. break;
  200. default:
  201. this.filters.actvType = null;
  202. this.filters.actvSmallType = null;
  203. break;
  204. }
  205. },
  206. handleSizeChange(val) {
  207. this.filters.pageSize = val;
  208. this.GetTeacherSalaryList();
  209. },
  210. // 排序
  211. sortChange(sort) {
  212. this.filters.orderField = sort.prop;
  213. this.filters.orderAD = sort.order != null ? sort.order : "";
  214. this.itemListReshow();
  215. },
  216. clearSearch() {
  217. this.filters.actvNm = null;
  218. this.filters.actvCrtUserId = null;
  219. this.filters.actvType = null;
  220. this.filters.actvSmallType = null;
  221. this.filtersActvType = [];
  222. this.createDateSlot = null;
  223. },
  224. },
  225. mounted() {
  226. }
  227. };
  228. </script>
  229. <!-- Add "scoped" attribute to limit CSS to this component only -->
  230. <style scoped>
  231. .main{
  232. background-color: #fff;
  233. margin-top: 16px;
  234. padding: 0 !important;
  235. border: 1px solid #E1E1E1;
  236. min-height: 980px;
  237. }
  238. el-table{
  239. color: #999999;
  240. font-size: 18px;
  241. }
  242. .main-items{
  243. color: #393939;
  244. text-align: center;
  245. line-height: 80px;
  246. }
  247. .main-header-item{
  248. font-size: 16px;
  249. color: #7E7E7E;
  250. }
  251. .input-with-select .el-input-group__prepend {
  252. background-color: #fff;
  253. }
  254. .table-img{
  255. width:36px;
  256. height:36px;
  257. border-radius:6px;
  258. }
  259. .showModel{
  260. width: 100%;
  261. height: 100%;
  262. position: fixed;
  263. top: 0;
  264. left: 0;
  265. background: #000000;
  266. opacity: 0.2;
  267. overflow: hidden;
  268. z-index: 1000;
  269. color: #fff;
  270. }
  271. .model{
  272. z-index: 1001;
  273. width:40%;
  274. height:auto;
  275. position: fixed;
  276. top: 30%;
  277. left: 30%;
  278. margin:auto;
  279. background: #fff;
  280. border-radius:10px;
  281. text-align: center;
  282. }
  283. .scope-name{
  284. margin-left: 13px;
  285. }
  286. .model-text{
  287. background:rgba(255,255,255,1);
  288. border-radius:10px;
  289. }
  290. .model-btn{
  291. display: flex;
  292. justify-content: space-around;
  293. margin-bottom: 44px;
  294. }
  295. .model-btn-items{
  296. width:154px;
  297. height:50px;
  298. line-height: 50px;
  299. text-align: center;
  300. font-size: 18px;
  301. border-radius:4px;
  302. }
  303. .main-gay{
  304. background:rgba(246,247,251,1);
  305. color: #7E7E7E;
  306. }
  307. .model-grdeen{
  308. background-color: #52CC60;
  309. color: #fff;
  310. }
  311. .model-text-items-close{
  312. position: absolute;
  313. top: 10px;
  314. right: 15px;
  315. }
  316. .model-text-items{
  317. position: relative;
  318. color: #000000;
  319. font-size: 24px;
  320. text-align: center;
  321. padding: 40px 0 50px 0;
  322. }
  323. .page-block{
  324. text-align: center !important;
  325. margin-top: 15px;
  326. }
  327. .el-table .table-head-th{
  328. background-color:#F6F7FB;
  329. font-size: 16px !important;
  330. color: #393939;
  331. }
  332. .allocation{
  333. color: #52CC60;
  334. font-size: 20px;
  335. text-decoration: underline;
  336. }
  337. </style>