优化素质测评功能体验
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
<view class="form-wrap" >
|
||||
<view class="form-item">
|
||||
<view class="label">
|
||||
目标描述
|
||||
<text>*</text>目标描述
|
||||
</view>
|
||||
<view class="input-wrap">
|
||||
<textarea v-model="targetForm.TargetDesc"
|
||||
@@ -92,7 +92,7 @@
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<view class="label">
|
||||
目标类型
|
||||
<text>*</text>目标类型
|
||||
</view>
|
||||
<view class="check-wrap">
|
||||
<view class="checked-item" @click="targetForm.TargetType = 1">
|
||||
@@ -228,6 +228,20 @@
|
||||
},
|
||||
// 保存目标
|
||||
async saveTarget(){
|
||||
if(this.targetForm.TargetDesc == ""){
|
||||
uni.showToast({
|
||||
title: "请输入目标描述",
|
||||
icon: "none"
|
||||
})
|
||||
return;
|
||||
}
|
||||
if(this.targetForm.TargetType == ""){
|
||||
uni.showToast({
|
||||
title: "请选择目标类型",
|
||||
icon: "none"
|
||||
})
|
||||
return;
|
||||
}
|
||||
const res = await api.saveSmartTarget(this.targetForm);
|
||||
if (res.Result == 1) {
|
||||
uni.showToast({
|
||||
@@ -565,6 +579,9 @@
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
margin-bottom: 30rpx;
|
||||
text {
|
||||
color: #ff0000;
|
||||
}
|
||||
}
|
||||
.check-wrap {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user