Преглед изворни кода

Merge branch 'develop_yh43' of http://git.chelingzhu.com/jianguan-web/jg-ocs-html into develop_yh43

chenrui пре 11 месеци
родитељ
комит
35cf66619c
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      src/views/dowloadFile/list.vue

+ 5 - 0
src/views/dowloadFile/list.vue

@@ -121,9 +121,11 @@ export default {
     }
     }
   },
   },
   methods: {
   methods: {
+    // 禁用时间
     disabledDate (current) {
     disabledDate (current) {
       return current && (current < moment(getDate.getRecentTime().starttime).subtract('days', 2) || current > moment().endOf('day'))
       return current && (current < moment(getDate.getRecentTime().starttime).subtract('days', 2) || current > moment().endOf('day'))
     },
     },
+    // 下载文件
     dowloadExcel (url) {
     dowloadExcel (url) {
       dowloadFile(url, '')
       dowloadFile(url, '')
     },
     },
@@ -132,6 +134,7 @@ export default {
       this.queryParam.beginDate = dateString[0] ? moment(dateString[0]).format('YYYY-MM-DD HH:mm:ss') : ''
       this.queryParam.beginDate = dateString[0] ? moment(dateString[0]).format('YYYY-MM-DD HH:mm:ss') : ''
       this.queryParam.endDate = dateString[1] ? moment(dateString[1]).format('YYYY-MM-DD HH:mm:ss') : ''
       this.queryParam.endDate = dateString[1] ? moment(dateString[1]).format('YYYY-MM-DD HH:mm:ss') : ''
     },
     },
+    // 查询
     searchForm () {
     searchForm () {
       this.$refs.table.refresh(true)
       this.$refs.table.refresh(true)
     },
     },
@@ -145,12 +148,14 @@ export default {
       this.queryParam.taskState = undefined
       this.queryParam.taskState = undefined
       this.$refs.table.refresh(true)
       this.$refs.table.refresh(true)
     },
     },
+    // 页面初始化
     pageInit () {
     pageInit () {
       const _this = this
       const _this = this
       this.$nextTick(() => { // 页面渲染完成后的回调
       this.$nextTick(() => { // 页面渲染完成后的回调
         _this.setTableH()
         _this.setTableH()
       })
       })
     },
     },
+    // 表格高度计算
     setTableH () {
     setTableH () {
       const tableSearchH = this.$refs.tableSearch.offsetHeight
       const tableSearchH = this.$refs.tableSearch.offsetHeight
       this.tableHeight = window.innerHeight - tableSearchH - 235
       this.tableHeight = window.innerHeight - tableSearchH - 235