From e1aa0ecffbabd618c71e4ad94370fb8dffe6ee1c Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期日, 21 一月 2024 20:54:49 +0800
Subject: [PATCH] 优化
---
src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue | 63 ++++++++++++++++---------------
1 files changed, 33 insertions(+), 30 deletions(-)
diff --git a/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue b/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue
index 5f92844..63bd3a8 100644
--- a/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue
+++ b/src/views/operate/disposal/casepool/dispatch/updateUser/uploadResult/components/book/index.vue
@@ -23,12 +23,12 @@
</el-form-item>
<!-- 鏂囦功鍙戞斁鏃堕棿 -->
<el-form-item label="鏂囦功鍙戞斁鏃堕棿:" prop="sendTime">
- <el-date-picker v-model="book.sendTime" type="datetime" placeholder="璇烽�夋嫨骞存湀鏃�">
+ <el-date-picker v-model="book.sendTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="璇烽�夋嫨骞存湀鏃�">
</el-date-picker>
</el-form-item>
<!-- 鏂囦功闄愬畾鏃堕棿 -->
<el-form-item label="鏂囦功闄愬畾鏃堕棿" prop="limitTime">
- <el-date-picker v-model="book.limitTime" type="datetime" placeholder="璇烽�夋嫨骞存湀鏃�">
+ <el-date-picker v-model="book.limitTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="璇烽�夋嫨骞存湀鏃�">
</el-date-picker>
</el-form-item>
<!-- 鏂囦功鍙戞斁鍐呭 -->
@@ -37,7 +37,7 @@
</el-form-item>
<!-- 瀹為檯鏁存敼鏃堕棿 -->
<el-form-item label="瀹為檯鏁存敼鏃堕棿:" prop="rectifyTime">
- <el-date-picker v-model="book.rectifyTime" type="datetime" placeholder="璇烽�夋嫨骞存湀鏃�">
+ <el-date-picker v-model="book.rectifyTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="璇烽�夋嫨骞存湀鏃�">
</el-date-picker>
</el-form-item>
<!-- 鏁存敼鎯呭喌 -->
@@ -83,6 +83,7 @@
<script>
import {deepClone, getCodeList} from '@/utils/helper'
import MyUpload from "@/components/myUpload"
+import { FILE_ORIGINAL_URL } from "@/utils";
export default {
components: {
MyUpload
@@ -250,35 +251,37 @@
},
created() {
this.getBookType();
+ this.basecase = this.illegalType;
if (this.writ) {
this.book = deepClone(this.writ);
this.book.originalPic = this.writ.originalPic.split(',');
this.book.writPic = this.writ.writPic.split(',');
this.book.otherPic = this.writ.otherPic.split(',');
+ this.book.rectifiedPic = this.writ.rectifiedPic.split(',');
}
},
- props: ['caseId', 'closeDialog','mycode', 'writ'],
+ props: ['caseId', 'closeDialog','mycode', 'writ', 'illegalType'],
methods: {
handleSuccess1(res, file, filelist) {
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
if (this.book.writPic.length < 4) {
this.book.writPic.push(baseUrl + res.data.url1)
}
},
handleSuccess2(res, file, filelist) {
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
if (this.book.originalPic.length < 4) {
this.book.originalPic.push(baseUrl + res.data.url1)
}
},
handleSuccess3(res, file, filelist) {
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
if (this.book.rectifiedPic.length < 4) {
this.book.rectifiedPic.push(baseUrl + res.data.url1)
}
},
handleSuccess4(res, file, filelist) {
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
if (this.book.otherPic.length < 4) {
this.book.otherPic.push(baseUrl + res.data.url1)
}
@@ -293,52 +296,52 @@
// 璁剧疆涓婁紶鎴愬姛涔嬪悗鐨勫浘鐗囧湴鍧�
writPic({ url }) {
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
if (this.book.originalPic.length < 4) {
- this.book.writPic.push(baseUrl + url)
+ this.book.writPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`)
}
},
//鍒犻櫎鍥剧墖
delWritPic({url}){
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
this.book.writPic.splice(this.book.writPic.indexOf(baseUrl + url),1);
},
// 璁剧疆涓婁紶鎴愬姛涔嬪悗鐨勫浘鐗囧湴鍧�
otherPic({ url }) {
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
if (this.book.otherPic.length < 4) {
- this.book.otherPic.push(baseUrl + url)
+ this.book.otherPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`)
}
},
//鍒犻櫎鍥剧墖
delOtherPic({url}){
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
this.book.otherPic.splice(this.book.otherPic.indexOf(baseUrl + url),1);
},
// 璁剧疆涓婁紶鎴愬姛涔嬪悗鐨勫浘鐗囧湴鍧�
rectifiedPic({ url }) {
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
if (this.book.otherPic.length < 4) {
- this.book.rectifiedPic.push(baseUrl + url)
+ this.book.rectifiedPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`)
}
},
//鍒犻櫎鍥剧墖
delRectifiedPic({url}){
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
this.book.rectifiedPic.splice(this.book.rectifiedPic.indexOf(baseUrl + url),1);
},
// 璁剧疆涓婁紶鎴愬姛涔嬪悗鐨勫浘鐗囧湴鍧�
originalPic({ url }) {
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
if (this.book.otherPic.length < 4) {
- this.book.originalPic.push(baseUrl + url)
+ this.book.originalPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`)
}
},
//鍒犻櫎鍥剧墖
delOriginalPic({url}){
- const baseUrl = 'http://140.143.152.226:8410/';
+ const baseUrl = '';
this.book.originalPic.splice(this.book.originalPic.indexOf(baseUrl + url),1);
},
@@ -438,16 +441,16 @@
}
}
-::v-deep .el-textarea__inner {
- background-color: #09152f;
- border: 1px solid #17324c;
-}
+// ::v-deep .el-textarea__inner {
+// // background-color: #09152f;
+// border: 1px solid #17324c;
+// }
-::v-deep .el-input__count {
- background-color: #09152f;
-}
+// ::v-deep .el-input__count {
+// // background-color: #09152f;
+// }
-::v-deep .el-form-item__label {
- color: #4b9bb7;
-}
+// ::v-deep .el-form-item__label {
+// color: #4b9bb7;
+// }
</style>
\ No newline at end of file
--
Gitblit v1.8.0