From 032f47cfabb2d1960f8bb4774ea79a93e1709947 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 19 七月 2024 09:52:13 +0800
Subject: [PATCH] 工单下发页面按钮调整
---
src/views/system/report/index.vue | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/views/system/report/index.vue b/src/views/system/report/index.vue
index caa3d0a..8ca0331 100644
--- a/src/views/system/report/index.vue
+++ b/src/views/system/report/index.vue
@@ -60,7 +60,8 @@
<div class="info-item">
<div class="info-label">涓婃姤鏉愭枡</div>
<div class="info-list">
- <div class="list-item" v-for="file in formatFileList(scope.row.reportMaterials)" :key="file" @click="showFile(file)">
+ <div class="list-item" v-for="file in formatFileList(scope.row.reportMaterials)" :key="file"
+ @click="showFile(file)">
<div class="item-icon">
<i class="el-icon-document"></i>
</div>
@@ -141,7 +142,7 @@
<editor v-model="form.reportContent" :min-height="192" />
</el-form-item>
<el-form-item label="涓婃姤鏉愭枡" prop="reportMaterials">
- <file-upload v-model="form.reportMaterials" />
+ <file-upload v-model="form.reportMaterials" :fileType='fileType' />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
@@ -176,7 +177,7 @@
<el-date-picker v-model="auditingForm.endCreateTime" disabled />
</el-form-item>
<el-form-item label="鎶ュ鍐呭">
- <el-input type="textarea" v-html="auditingForm.reportContent" disabled />
+ <span v-html="auditingForm.reportContent"></span>
</el-form-item>
<el-form-item label="涓婃姤鏉愭枡">
<el-link
@@ -211,6 +212,8 @@
name: "Report",
data() {
return {
+ fileType: ["doc", "xls", "xlsx", "ppt", "txt", "pdf", "png", "jpg"],
+
// 鐐逛綅list
pointList: [],
// 閬僵灞�
@@ -341,7 +344,7 @@
this.queryParams["endAuditingTime"] = this.daterangeAuditingTime[1];
}
listReport(this.queryParams).then(response => {
- this.reportList = response.data;
+ this.reportList = response.data.records;
this.total = response.total;
this.loading = false;
});
@@ -493,14 +496,14 @@
}
.info-text {
- width: 20%;
+ width: 30%;
padding: 20px;
border-radius: 10px;
border: 1px solid #c0c0c0;
}
.info-list {
- width: 20%;
+ width: 30%;
.list-item {
width: 100%;
--
Gitblit v1.8.0