移动端代码生成表单优化
This commit is contained in:
parent
0e08a7d102
commit
b96a4adb9f
@ -72,10 +72,10 @@ $end
|
|||||||
<view class="form-footer">
|
<view class="form-footer">
|
||||||
<view class="btn_wrap">
|
<view class="btn_wrap">
|
||||||
<view class="btn-item">
|
<view class="btn-item">
|
||||||
<u-button text="取消" shape="circle" icon="close" type="info" @click="handleCancel"></u-button>
|
<u-button text="取消" shape="circle" type="info" @click="handleCancel"></u-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-item" v-if="opertype != 3">
|
<view class="btn-item" v-if="opertype != 3">
|
||||||
<u-button text="确定" shape="circle" icon="checkmark" type="primary" @click="submit"></u-button>
|
<u-button text="确定" shape="circle" type="primary" @click="submit"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -186,12 +186,10 @@ $end
|
|||||||
update${genTable.BusinessName}(this.form).then((res) => {
|
update${genTable.BusinessName}(this.form).then((res) => {
|
||||||
this.${modal}modal.msgSuccess("修改成功")
|
this.${modal}modal.msgSuccess("修改成功")
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
|
||||||
} else {
|
} else {
|
||||||
add${genTable.BusinessName}(this.form).then((res) => {
|
add${genTable.BusinessName}(this.form).then((res) => {
|
||||||
this.${modal}modal.msgSuccess("新增成功")
|
this.${modal}modal.msgSuccess("新增成功")
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
|
||||||
}
|
}
|
||||||
}).catch(errors => {
|
}).catch(errors => {
|
||||||
this.${modal}modal.msg('表单校验失败')
|
this.${modal}modal.msg('表单校验失败')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user