赵士淞
2023-03-23 7030e8de503cd31891230100d9dd7a9adbb2a825
页面样式
2 files modified
26 ■■■■■ changed files
eladmin-web-master/src/views/system/exchangeRate/index.vue 5 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/system/goalSetting/index.vue 21 ●●●●● patch | view | raw | blame | history
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">
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
    }