Browse Source

fix: 药物使用记录对齐输入框

develop
song 4 years ago
parent
commit
97a6fb535a
  1. 3
      CHANGELOG.md
  2. 34
      src/pagesProject/project/components/ConfigInfo/components/MedicineDetail.vue

3
CHANGELOG.md

@ -1,4 +1,4 @@
# 0.1.0 (2021-12-28)
# 0.1.0 (2021-12-29)
### 🌟 新功能
范围|描述|commitId
@ -166,6 +166,7 @@
- | 修改角色栏组件 | [a54c601](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/a54c601)
- | 修改角色栏骨架屏 | [c18efb3](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/c18efb3)
- | 修改试题查询判断 | [4128f3d](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/4128f3d)
- | 修改长者信息回显bug | [ef1b4bf](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/ef1b4bf)
- | 切换到默认项目角色没有激活状态的bug | [438d448](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/438d448)
- | 切换日历时查询小红点 | [7091789](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/7091789)
- | 初始展示角色修改 | [2ac4053](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/2ac4053)

34
src/pagesProject/project/components/ConfigInfo/components/MedicineDetail.vue

@ -81,17 +81,19 @@
@focus="changeOtherChecked(otherName.value)"
@blur="changeOther(otherName)"
/>
<u-input
:clearable="false"
class="flex-1"
placeholder="每日总剂量(单位: mg)"
type="number"
input-align="center"
v-model="otherMedicine.value"
@focus="changeOtherChecked(otherMedicine.value)"
@blur="changeOther(otherMedicine)"
/>
<view class="w-24"></view>
<view class="flex flex-nowrap items-center">
<u-input
:clearable="false"
class="flex-1 mr-3"
placeholder="每日总剂量(单位: mg)"
type="number"
input-align="center"
v-model="otherMedicine.value"
@focus="changeOtherChecked(otherMedicine.value)"
@blur="changeOther(otherMedicine)"
/>
<view style="width: 79px !important"></view>
</view>
</view>
<view class="p-4">
@ -250,11 +252,11 @@ export default {
try {
const params = this.params;
if (!this.validationRequired(params)) return;
// params.projectId = this.projectId;
// await this.$u.api.addMedicine(params);
// this.$emit('showToast', 'success', '使');
// this.show = false;
// this.$emit('closeAdd');
params.projectId = this.projectId;
await this.$u.api.addMedicine(params);
this.$emit('showToast', 'success', '药物使用添加成功');
this.show = false;
this.$emit('closeAdd');
} catch (error) {
console.error('error: ', error);
this.$emit('showToast', 'error', '药物使用添加失败');

Loading…
Cancel
Save