From 4eeaec1eddd5ef2be4b79423154fa2dce81d5566 Mon Sep 17 00:00:00 2001
From: 黄何裕 <1053952480@qq.com>
Date: 星期五, 26 七月 2024 15:28:09 +0800
Subject: [PATCH] 大屏重构
---
src/views/system/contract/contract/index.vue | 38 ++++++++++++++++++++++++++++++++------
1 files changed, 32 insertions(+), 6 deletions(-)
diff --git a/src/views/system/contract/contract/index.vue b/src/views/system/contract/contract/index.vue
index 8f7e39d..3ac4b54 100644
--- a/src/views/system/contract/contract/index.vue
+++ b/src/views/system/contract/contract/index.vue
@@ -1,5 +1,29 @@
<template>
<div class="app-container">
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
+ <el-form-item label="鍚堝悓鍚嶇О">
+ <el-input
+ v-model="queryParams.name"
+ placeholder="鍚堝悓鍚嶇О鎼滅储"
+ clearable
+ @clear="getList"
+ @keyup.enter.native="getList"
+ />
+ </el-form-item>
+ <el-form-item label="鍚堝悓鐘舵��">
+ <el-select v-model="queryParams.status" @change="getList">
+ <el-option label="鍏ㄩ儴" value=""></el-option>
+ <el-option label="鏈夋晥" value="ACTIVE"></el-option>
+ <el-option label="鏈敓鏁�" value="NOT_START"></el-option>
+ <el-option label="宸插け鏁�" value="FINISHED"></el-option>
+ </el-select>
+ </el-form-item>
+ <el-form-item>
+ <el-button type="primary" icon="el-icon-search" size="small" @click="getList">鎼滅储</el-button>
+ </el-form-item>
+ </el-form>
+
+
<el-row :gutter="10" class="mb8" style="margin-top: 10px">
<el-col :span="1.5">
<el-button
@@ -13,12 +37,12 @@
>
</el-col>
</el-row>
- <el-row v-loading="loading">
+ <el-row v-loading="loading" :gutter="20">
<el-col
:span="8"
v-for="(item, index) in contractList"
:key="index"
- style="margin: 10px; width: 30%"
+ style="margin-bottom: 10px"
>
<el-card :body-style="{ padding: '0px' }">
<ImagePreview
@@ -250,8 +274,8 @@
</el-form>
<div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitFileForm">纭� 瀹�</el-button>
<el-button @click="upload.open = false">鍙� 娑�</el-button>
+ <el-button type="primary" @click="submitFileForm">纭� 瀹�</el-button>
</div>
</el-dialog>
</div>
@@ -275,6 +299,10 @@
comments: { ImagePreview },
data() {
return {
+ queryParams: {
+ name: '',
+ status: ''
+ },
loading: false,
contractInfo: {},
// 鍚堝悓瀵煎叆鍙傛暟
@@ -303,8 +331,6 @@
unitList: [],
deptList: [],
activeNames: ["1"],
- // 閬僵灞�
- loading: true,
// 閫変腑鏁扮粍
ids: [],
// 闈炲崟涓鐢�
@@ -449,7 +475,7 @@
getList() {
this.loading = true;
listContract(this.queryParams).then((response) => {
- this.contractList = response;
+ this.contractList = response.data;
this.total = response.total;
this.loading = false;
});
--
Gitblit v1.8.0