From 089bf5d2378b3c4a61d795b2a92bede2c193b771 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 11:22:58 +0800
Subject: [PATCH] 1
---
src/views/modules/mining/loan-add-or-update.vue | 96 +++++++++++++++++++++--------------------------
1 files changed, 43 insertions(+), 53 deletions(-)
diff --git a/src/views/modules/mining/loan-add-or-update.vue b/src/views/modules/mining/loan-add-or-update.vue
index 20c7a7e..c57b29c 100644
--- a/src/views/modules/mining/loan-add-or-update.vue
+++ b/src/views/modules/mining/loan-add-or-update.vue
@@ -1,17 +1,7 @@
<template>
- <el-dialog
- :title="!dataForm ? '新增' : '修改'"
- :close-on-click-modal="false"
- width="1100px"
- :visible.sync="visible"
- >
- <el-form
- :model="dataForm"
- :rules="dataRule"
- ref="dataForm"
- @keyup.enter.native="dataFormSubmit()"
- label-width="150px"
- >
+ <el-dialog :title="!dataForm ? '新增' : '修改'" :close-on-click-modal="false" width="1100px" :visible.sync="visible">
+ <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()"
+ label-width="150px">
<el-form-item class="titleDivTwo" label="基础信息" prop="">
</el-form-item>
<el-row>
@@ -33,36 +23,32 @@
</el-row>
<el-row>
<el-col :span="8">
- <el-form-item label="审核状态" prop="state[1]" >
- <el-select
- class="speaInputTwo"
- v-model="dataForm.state[1]"
- :disabled = 'dataForm?true:false'
- placeholder="请选择"
- @change="changeVal()"
- >
- <el-option
- v-for="item in direction"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
+ <el-form-item label="利息" prop="quota">
+ <!-- <el-input v-model="dataForm.quota" placeholder="借贷额度"></el-input> -->
+ <div>{{ dataForm.dailyRate * dataForm.quota }}</div>
+ </el-form-item>
+ </el-col>
+ <el-col :span="8">
+ <el-form-item label="审核状态" prop="state[1]">
+ <el-select class="speaInputTwo" v-model="dataForm.state[1]" :disabled='dataForm ? true : false'
+ placeholder="请选择" @change="changeVal()">
+ <el-option v-for="item in direction" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
</el-form-item>
</el-col>
- <el-col :span="8">
+ <!-- <el-col :span="8">
<el-form-item label="借贷期限(天)" prop="term">
<el-input disabled v-model="dataForm.term" placeholder="天"></el-input>
</el-form-item>
- </el-col>
- <el-col :span="8">
+ </el-col> -->
+ <!-- <el-col :span="8">
<el-form-item label="申请时间" prop="createTime">
<el-input v-model="dataForm.createTime" :disabled = 'dataForm?true:false' placeholder="申请时间"></el-input>
</el-form-item>
- </el-col>
+ </el-col> -->
</el-row>
- <el-row>
+ <!-- <el-row>
<el-col :span="8">
<el-form-item label="还款周期(天)" prop="repayCycle">
<el-input disabled v-model="dataForm.repayCycle" placeholder="天"></el-input>
@@ -78,9 +64,9 @@
<el-input disabled v-model="dataForm.lendingName" placeholder=""></el-input>
</el-form-item>
</el-col>
- </el-row>
+ </el-row> -->
- <el-row>
+ <!-- <el-row>
<el-col :span="8">
<el-form-item label="证件照正面" prop="methodImg">
<el-upload
@@ -126,7 +112,7 @@
</el-upload>
</el-form-item>
</el-col>
- </el-row>
+ </el-row> -->
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
@@ -142,11 +128,11 @@
visible: false,
imageUrl: "",
dataForm: {
- id: 0,
- roleName: "",
- remark: "",
- name: "",
- state: "",
+ id: null,
+ // roleName: "",
+ // remark: "",
+ // name: "",
+ // state: "",
},
direction: [
{
@@ -171,10 +157,10 @@
};
},
methods: {
- init(id) {
+ init(id) {
this.dataForm = id || {};
this.visible = true;
- console.log("this.dataForm = " + JSON.stringify(this.dataForm));
+ console.log("this.dataForm", id);
},
changeVal(val) {
this.$forceUpdate();
@@ -207,21 +193,21 @@
method: "post",
data: this.$http.adornData({
orderNo: this.dataForm.uuid,
- img_idimg_1: this.dataForm.houseImgs[0],
- img_idimg_2: this.dataForm.houseImgs[1],
- img_idimg_3: this.dataForm.houseImgs[2],
- partyId: this.dataForm.userName,
+ // img_idimg_1: this.dataForm.houseImgs[0],
+ // img_idimg_2: this.dataForm.houseImgs[1],
+ // img_idimg_3: this.dataForm.houseImgs[2],
+ // partyId: this.dataForm.userName,
symbol: this.dataForm.symbol,
quota: this.dataForm.quota,
- state: this.dataForm.state,
- term: this.dataForm.term,
- createTime: this.dataForm.createTime,
- repayCycle: this.dataForm.repayCycle,
- dailyRate: this.dataForm.dailyRate,
+ // state: this.dataForm.state,
+ // term: this.dataForm.term,
+ // createTime: this.dataForm.createTime,
+ // repayCycle: this.dataForm.repayCycle,
+ // dailyRate: this.dataForm.dailyRate,
}),
}).then(({ data }) => {
- if(data.code == 0){
+ if (data.code == 0) {
this.$message({
message: "操作成功",
type: "success",
@@ -231,7 +217,7 @@
this.$emit("refreshDataList");
},
});
- }else{
+ } else {
this.$message({
message: data.msg,
type: "error",
@@ -256,6 +242,7 @@
border-left: 3px solid #1c4efa;
background: #f4f7ff;
}
+
.avatar-uploader .el-upload {
border: 1px dashed #d9d9d9;
border-radius: 6px;
@@ -263,9 +250,11 @@
position: relative;
overflow: hidden;
}
+
.avatar-uploader .el-upload:hover {
border-color: #409eff;
}
+
.avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
@@ -274,6 +263,7 @@
line-height: 178px;
text-align: center;
}
+
.avatar {
width: 178px;
height: 178px;
--
Gitblit v1.9.3