From 7030e8de503cd31891230100d9dd7a9adbb2a825 Mon Sep 17 00:00:00 2001
From: 赵士淞 <zhaoss@yhzhg.cn>
Date: Thu, 23 Mar 2023 09:41:34 +0000
Subject: [PATCH] 页面样式
---
eladmin-web-master/src/views/system/exchangeRate/index.vue | 5 +++++
eladmin-web-master/src/views/system/goalSetting/index.vue | 21 ++++++++++++++++++++-
2 files changed, 25 insertions(+), 1 deletions(-)
diff --git a/eladmin-web-master/src/views/system/exchangeRate/index.vue b/eladmin-web-master/src/views/system/exchangeRate/index.vue
index 7641b89..b741b75 100644
--- a/eladmin-web-master/src/views/system/exchangeRate/index.vue
+++ b/eladmin-web-master/src/views/system/exchangeRate/index.vue
@@ -55,6 +55,11 @@
{{ crud.toMoney(scope.row.exchangeRate) }}
</template>
</el-table-column>
+ <el-table-column :show-overflow-tooltip="true" label="公式">
+ <template slot-scope="scope">
+ {{ crud.toMoney(1) }}人民币 ≈ {{ crud.toMoney(scope.row.exchangeRate) }}{{ dict.label[standardUnitCurrency][scope.row.unitCurrency] }}
+ </template>
+ </el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="remarks" label="备注" />
<el-table-column :show-overflow-tooltip="true" prop="createTime" label="创建时间" />
<el-table-column v-if="checkPer(['admin','sysExchangeRate:edit','sysExchangeRate:del'])" label="操作" width="150px" align="center">
diff --git a/eladmin-web-master/src/views/system/goalSetting/index.vue b/eladmin-web-master/src/views/system/goalSetting/index.vue
index 778c9ce..0bb47bd 100644
--- a/eladmin-web-master/src/views/system/goalSetting/index.vue
+++ b/eladmin-web-master/src/views/system/goalSetting/index.vue
@@ -33,6 +33,16 @@
/>
</el-select>
</el-form-item>
+ <el-form-item label="币种">
+ <el-select v-model="standardUnitCurrencyRenminbi" filterable placeholder="请选择" style="width: 370px;" disabled>
+ <el-option
+ v-for="item in dict[standardUnitCurrency]"
+ :key="item.id"
+ :label="item.label"
+ :value="item.value"
+ />
+ </el-select>
+ </el-form-item>
<el-form-item label="目标金额" prop="targetAmount">
<money-input :key="random" v-model="form.targetAmount" :width="370" />
</el-form-item>
@@ -56,6 +66,11 @@
<el-table-column :show-overflow-tooltip="true" prop="projectDistinguish" label="项目区分">
<template slot-scope="scope">
{{ dict.label[projectDistinguish][scope.row.projectDistinguish] }}
+ </template>
+ </el-table-column>
+ <el-table-column :show-overflow-tooltip="true" label="币种">
+ <template>
+ {{ dict.label[standardUnitCurrency][standardUnitCurrencyRenminbi] }}
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="targetAmount" label="目标金额">
@@ -95,7 +110,7 @@
name: 'SysGoalSetting',
components: { pagination, crudOperation, rrOperation, udOperation, moneyInput },
mixins: [presenter(), header(), form(defaultForm), crud()],
- dicts: [constant.PROJECT_DISTINGUISH],
+ dicts: [constant.PROJECT_DISTINGUISH, constant.STANDARD_UNIT_CURRENCY],
cruds() {
return CRUD({ title: '目标管理', url: 'api/sysGoalSetting', idField: 'id', sort: 'id,desc', crudMethod: { ...crudSysGoalSetting }})
},
@@ -133,6 +148,10 @@
],
// 字典:项目区分
projectDistinguish: constant.PROJECT_DISTINGUISH,
+ // 字典:标准单价币种
+ standardUnitCurrency: constant.STANDARD_UNIT_CURRENCY,
+ // 字典:标准单价币种:人民币
+ standardUnitCurrencyRenminbi: constant.STANDARD_UNIT_CURRENCY_RENMINBI,
// 随机数
random: 0
}
--
Gitblit v1.9.3