From 432bbf252ffc66393ac10e14958a8c412b3e401c Mon Sep 17 00:00:00 2001 From: zhangxp <zhangxp@chicecm.com> Date: 星期三, 07 六月 2023 16:06:55 +0800 Subject: [PATCH] 申领单页面只缺一个申领单状态接口 --- Source/UBCS-WEB/src/views/integration/applicationForm.vue | 146 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 146 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/src/views/integration/applicationForm.vue b/Source/UBCS-WEB/src/views/integration/applicationForm.vue index e69de29..7a3c48b 100644 --- a/Source/UBCS-WEB/src/views/integration/applicationForm.vue +++ b/Source/UBCS-WEB/src/views/integration/applicationForm.vue @@ -0,0 +1,146 @@ +<template> + <basic-container> + <avue-crud :table-loading="loading" :data="data" :option="option" :search.sync="searchParam" :page.sync="page" + ref="crud" @refresh-change="getDataList" @search-change="handleSearch" @search-reset="handleReset" + @size-change="handleSizePage" @current-change="handleCurrentPage" @on-load="getDataList"> + <template slot="menuLeft"> + <el-button icon="el-icon-document" size="small" type="primary" @click="handleStatus">闆嗗洟鐢宠鐘舵�� + </el-button> + </template> + </avue-crud> + </basic-container> +</template> + +<script> +import { getList } from '@/api/integration/application.js' +import { dateFormat } from '@/util/date.js' +export default { + data() { + return { + loading: false, + data: [], + page: { + pageSize: 10, + currentPage: 1, + total: 0 + }, + searchParam: {}, + option: { + height: "auto", + index: true, + border: true, + addBtn: false, + columnBtn: false, + searchMenuSpan: 8, + highlightCurrentRow: true, + menu:false, + column: [ + { + label: '鐢宠鍗曞彿', + prop: 'id', + width: 300, + fixed: true, + search: true, + }, { + label: '闆嗗洟鐮�', + width: 200, + prop: 'groupCode', + search: true, + }, { + label: '鎿嶄綔绫诲瀷', + width: 200, + prop: 'operationType', + type: 'select', + search: true, + dicData: [{ + label: '鐢宠', + value: 1 + }, { + label: '鏇存敼', + value: 2 + }] + }, { + label: '鐢宠鍗曟暟鎹俊鎭�', + width: 300, + prop: 'description' + }, + { + label: '鍒涘缓鏃堕棿', + width: 200, + prop: 'createTime', + type: 'datetime', + search: true, + }, + { + label: '鏇存敼鏃堕棿', + width: 200, + prop: 'lastModifyTime', + type: 'datetime', + search: true, + formatter: () => { + + } + }, { + label: '杩斿洖鏍囪瘑', + width: 100, + prop: 'code' + }, + { + label: '杩斿洖淇℃伅', + width: 300, + prop: 'content' + }, + { + label: '娑堟伅淇℃伅', + width: 300, + prop: 'msg' + } + ] + } + } + }, + methods: { + handleStatus() { + + }, + async getDataList() { + this.loading = true + console.log(this.searchParam) + const { pageSize, currentPage, total } = this.page + let param = { size: pageSize, current: currentPage } + const response = await getList({ ...param, ...this.searchParam }) + if (response.status === 200) { + this.loading = false + console.log(response) + const data = response.data.data + this.data = data.records + this.page.total = data.total + } else this.loading = false + }, + handleSizePage(event) { + this.page.pageSize = event + }, + handleCurrentPage(event) { + this.page.currentPage = event + }, + handleReset() { + this.searchParam = {} + }, + handleSearch(form, done) { + const { id, groupCode, operationType } = form + let dataTime = { id, groupCode, operationType } + if (form.hasOwnProperty('createTime')) { + dataTime = { createTime: dateFormat(form.createTime), ...dataTime } + } + if (form.hasOwnProperty('lastModifyTime')) { + dataTime = { lastModifyTime: dateFormat(form.lastModifyTime), ...dataTime } + } + console.log(dataTime) + this.searchParam = dataTime + this.page.currentPage = 1 + this.getDataList() + done() + } + } +} +</script> \ No newline at end of file -- Gitblit v1.9.3