kongdeqiang
昨天 c7c17bae7c9106ee064724c16b9e63d177817376
src/components/page/enterpark/index.vue
@@ -70,6 +70,16 @@
                <p v-if="scope.row.status==1" style="color: red">有违章</p>
              </template>
            </el-table-column>
            <el-table-column
              prop="isAdd"
              header-align="center"
              align="center"
              label="手动添加">
            <template slot-scope="scope">
              <p v-if="scope.row.isAdd==0 || scope.row.isAdd==null">否</p>
              <p v-if="scope.row.isAdd==1" style="color: red">是</p>
            </template>
          </el-table-column>
        </el-table>
        <el-pagination background @size-change="onPageSizeChange" @current-change="onCurrentPageChange" :current-page="pageData.currentPage" :page-size="pageData.pageSize" :total="pageData.total" style="float: right"></el-pagination>
@@ -93,7 +103,7 @@
          size: this.pageSize,
          carNo:'',
          parkId:'',
          date: new Date,
          date: this.getDateStr(new Date()),
        },
        dataList: [],
        pageIndex: 1,
@@ -113,6 +123,12 @@
    computed: {
    },
    methods: {
      getDateStr(date){
        const y = date.getFullYear()
        const m = String(date.getMonth()+1).padStart(2,'0')
        const d = String(date.getDate()).padStart(2,'0')
        return `${y}-${m}-${d}`
      },
      // 获取数据列表
      getDataList () {
        this.dataListLoading = true