From 9e29b042e98ac5016bc0cfc5349b8754144bf3d4 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期一, 24 七月 2023 23:28:07 +0800
Subject: [PATCH] 修改财产
---
ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue | 93 +++++++++++++++++++++++-----------------------
ruoyi-ui/src/views/selfeconomy/index.vue | 6 +-
ruoyi-ui/src/router/index.js | 1
3 files changed, 50 insertions(+), 50 deletions(-)
diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js
index cf35c69..0e431bd 100644
--- a/ruoyi-ui/src/router/index.js
+++ b/ruoyi-ui/src/router/index.js
@@ -379,6 +379,7 @@
}
]
},
+
//鐧惧勾蹇冩効
{
path: '/self/wish',
diff --git a/ruoyi-ui/src/views/selfeconomy/index.vue b/ruoyi-ui/src/views/selfeconomy/index.vue
index a0bb643..77702f5 100644
--- a/ruoyi-ui/src/views/selfeconomy/index.vue
+++ b/ruoyi-ui/src/views/selfeconomy/index.vue
@@ -48,10 +48,10 @@
</el-input>
</el-form-item>
- <el-form-item label="鏀舵敮鍚嶇О" prop="incomeName" >
+ <el-form-item label="鑾峰緱鏂瑰紡" prop="incomeName" >
<el-input
v-model="queryParams.incomeName"
- placeholder="璇疯緭鍏ユ敹鏀悕绉�"
+ placeholder="璇疯緭鍏ヨ幏寰楁柟寮�"
clearable
style="width: 240px"
@keyup.enter.native="handleQuery">
@@ -151,7 +151,7 @@
<el-table-column label="璐骇绫诲埆" prop="type" sortable width="120" align="center">
<template slot-scope="scope">{{scope.row.type? scope.row.type: '鈥斺�斺�斺��'}}</template>
</el-table-column>
- <el-table-column label="鏀舵敮鍚嶇О" prop="incomeName" sortable :show-overflow-tooltip="true" width="120" align="center" >
+ <el-table-column label="鑾峰緱鏂瑰紡" prop="incomeName" sortable :show-overflow-tooltip="true" width="120" align="center" >
<template slot-scope="scope">{{scope.row.incomeName? scope.row.incomeName: '鈥斺�斺�斺��'}}</template>
</el-table-column>
<el-table-column label="浠峰�硷紙閲戦锛�" prop="price" sortable width="140" align="center" >
diff --git a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
index 3fe4675..f7968c4 100644
--- a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
+++ b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
@@ -2,7 +2,7 @@
<div class="app-container">
<div class="form-header mt">
<h4 class="dt h4">涓汉璐骇璇︾粏淇℃伅 </h4>
-
+
</div>
<div style="padding-left:15px">
<el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-position="left" label-width="120px">
@@ -21,9 +21,9 @@
</el-input>
</el-form-item>
</el-cow>
-
+
<el-cow >
- <el-form-item label="鏀舵敮鍚嶇О" prop="incomeName" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
+ <el-form-item label="鑾峰緱鏂瑰紡" prop="incomeName" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
<el-input v-model="formData.incomeName" placeholder="璇疯緭鍏ユ敹鏀悕绉�" clearable :style="{width: '100%'}" :disabled="dsb">
</el-input>
</el-form-item>
@@ -114,11 +114,11 @@
<i class="el-icon-delete"></i>
</span>
</span>
-
-
+
+
</div>
</el-upload>
-
+
<!--<h4 class="form-header">鍏朵粬闄勪欢 </h4>
<el-upload
action=""
@@ -126,7 +126,7 @@
class="upload-demo"
multiple
:on-preview="handlePreview"
-
+
:on-remove="handleRemove"
:http-request="requestUpload"
:show-file-list="true"
@@ -136,8 +136,8 @@
<div class="el-upload__tip">
</div>
</template>
-
-
+
+
</el-upload>-->
<h4 class="form-header">鍏朵粬闄勪欢 </h4>
<el-upload
@@ -151,7 +151,7 @@
:http-request="requestUpload"
:show-file-list="true"
>
-
+
<i slot="default" class="el-icon-plus"></i>
<div slot="file" slot-scope="{file}">
<img
@@ -172,7 +172,7 @@
v-if="isShow"
@click="handleRemove(file)"
class="el-upload-list__item-delete"
-
+
>
<i class="el-icon-download"></i>
</span>
@@ -184,34 +184,34 @@
<i class="el-icon-delete"></i>
</span>
</span>
-
-
+
+
</div>
-
-
+
+
</el-upload>
-
+
<el-form-item size="large">
<el-button v-if="isShow" type="primary" @click="submitForm" :disabled="dsb" >淇敼</el-button>
</el-form-item>
</el-form>
</div>
-
+
<el-dialog :visible.sync="dialogVisible">
<img w-full :src="dialogImageUrl" style="width: 700px; height: 700px" alt="Preview Image" />
</el-dialog>
-
-
+
+
</div>
</template>
-
+
<script>
-
+
import {blobValidate} from "@/utils/ruoyi";
import errorCode from "@/utils/errorCode";
import {Message} from "element-ui";
import {getSelfEconomyInfo, updateSelfEconomy,download,uploadPic} from "@/api/selfeconomy/index";
-
+
export default {
components: {},
props: [],
@@ -223,14 +223,14 @@
fileList:[
],
fileListOther:[
-
+
],
dsb:true,
btn:false,
isShow:true,
-
+
selfeconomyList: [],
-
+
formData: {
id:undefined,
happenTime:undefined,
@@ -294,7 +294,7 @@
message: '璇疯緭鍏ュ疄鐜伴毦搴�',
trigger: 'blur'
}],
-
+
remark: [{
// required: true,
message: '璇疯緭鍏ュ娉�',
@@ -329,7 +329,7 @@
this.$route.meta.title = "涓汉璐骇璇︾粏淇℃伅";//鍒楄〃鐨勫悕绉�
this.isShow=true
}
-
+
let _this = this
if (id) {
this.loading = true;
@@ -339,9 +339,9 @@
for(let i = 0; i < paths.length; i++)
{
if(paths[i]!="") {
-
+
let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
-
+
if (_this.fot.includes(pth) === true)
_this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
else {
@@ -355,7 +355,7 @@
this.loading = false;
});
// this.getCateInfor()
-
+
}
},
mounted() {},
@@ -379,10 +379,10 @@
return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
}).join(",")
this.formData.url = ul+","+uls
-
+
this.$refs['elForm'].validate(valid => {
-
-
+
+
if (valid) {
if (this.formData.id != undefined) {
updateSelfEconomy(this.formData).then(response => {
@@ -392,7 +392,7 @@
});
} else {
this.$modal.msgSuccess("淇敼澶辫触");
-
+
}
}
})
@@ -443,7 +443,7 @@
},
handleDownload(url) {
var formData = {'path':"/"+url.replace(process.env.VUE_APP_BASE_TRUE_API,"")};
-
+
let lens = formData.path.split(".")
let suffix = lens[lens.length-1]
download(formData).then(async (response) => {
@@ -466,36 +466,36 @@
var formData = new FormData();
formData.append('uploadFile', file);
let _this = this
-
+
uploadPic(formData).then(response => {
let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length)
-
+
if(_this.fot.includes(pth) === true)
{
_this.fileList.push({name:response.data.fileName, "url":response.data.url})
-
+
}
-
+
else{
_this.fileListOther.push({name:response.data.fileName, url:response.data.url})
-
+
}
})
-
+
},
-
+
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
handleExport() {
this.download('/zIdea/export', {
...this.queryParams
}, `zIdea_${new Date().getTime()}.xlsx`)
}
-
+
}
}
-
+
</script>
-
+
<style scoped>
.app-container{
background-color: #FEF7FC;
@@ -506,7 +506,7 @@
}
.dt{
display: block;
-
+
}
.pt{
right: 10px;
@@ -521,4 +521,3 @@
color: #000000;
}
</style>
-
\ No newline at end of file
--
Gitblit v1.9.1