From a90cf43e7a1f41dcde401ed1fd118b0f90d7c3f5 Mon Sep 17 00:00:00 2001 From: cqf Date: 星期四, 26 五月 2022 11:41:49 +0800 Subject: [PATCH] 举一反三隐患-存在 --- src/views/contingencyplan/index.vue | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/views/contingencyplan/index.vue b/src/views/contingencyplan/index.vue index 635bf2a..ae5a316 100644 --- a/src/views/contingencyplan/index.vue +++ b/src/views/contingencyplan/index.vue @@ -7,7 +7,7 @@ <el-input v-model="listQuery.filter.name"></el-input> </el-form-item> </el-col> - <el-col :span="4" style="text-align: center"> + <el-col :span="5" style="text-align: center"> <el-button type="primary" class="btns" icon="el-icon-search" @click="find()" >搜索</el-button > @@ -18,6 +18,12 @@ class="btns" >新增</el-button > + <el-button + type="primary" + class="btns" + @click="reset()" + >重置</el-button + > </el-col> </el-row> </el-form> @@ -33,7 +39,7 @@ <el-table-column align="center" label="附件"> <template slot-scope="scope"> <div v-if="scope.row.fileType==0"> - <img :src="envUrl+scope.row.fileList[0].fileUrl" @click="showViewer=true"/> + <img :src="envUrl+scope.row.fileList[0].fileUrl" @click="showViewer=true" style="max-width: 100px;height: auto"/> <el-image-viewer v-if="showViewer" :on-close="()=>showViewer=false" @@ -78,7 +84,7 @@ style="text-align: right;margin-top: 20px;" > </el-pagination> - <el-dialog :title="title" :visible.sync="dialogVisible":close-on-click-modal="false" width="40%"> + <el-dialog :title="title" :visible.sync="dialogVisible" :close-on-click-modal="false" width="40%"> <el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form-item label="预案名称" prop="name"> <el-input v-model="form.name"></el-input> @@ -161,6 +167,13 @@ }, methods: { + reset(){ + this.listQuery.filter={} + this.listQuery.pageIndex=1 + this.listQuery.pageSize=10 + this.emergencyPlan(); + }, + downLoadFile(fileUrl){ return this.$confirm(`确定下载该文件?`,'提示',{ confirmButtonText:'确定', @@ -228,7 +241,7 @@ this.fileList=[] } else { this.title = "编辑"; - this.form = value; + this.form=JSON.parse(JSON.stringify(value)); if (this.form.fileType==0){ this.fileList=value.fileList } else{ -- Gitblit v1.9.2