Commit 7823be01 authored by 罗超's avatar 罗超

增加验证

parent bcf736ba
......@@ -40,7 +40,7 @@
</style>
<template>
<div class="EmployeeRemark">
<q-input filled v-model="saveMsg.Content" class="col-12 row-2" maxlength="100" label="备注信息" type="textarea" />
<q-input filled v-model="saveMsg.Content" class="col-12 row-2" maxlength="100" :rules="[val => !!val || '请填写备注信息']" label="备注信息" type="textarea" />
<div class="col" style="display:flex;width:100%;margin:30px 0;align-items:center;">
<div style="width:50%">
<q-select filled stack-label option-value="Id" option-label="Name" v-model="saveMsg.RemarkType" ref="RemarkType"
......@@ -60,9 +60,9 @@
<span class="LogList_Create">{{item.CreateStr}}</span>
</template>
<div v-for="(subItem,subIndex) in item.AccountRemarkList" class="LogList_Item">
<img v-if="subItem.RemarkType==1" src="../../../assets/images/myimg/type1.png" />
<img v-if="subItem.RemarkType==2" src="../../../assets/images/myimg/type2.png" />
<img v-if="subItem.RemarkType==3" src="../../../assets/images/myimg/type3.png" />&nbsp;
<img v-if="subItem.RemarkType==1" src="../../../assets/images/myimg/type3.png" />
<img v-if="subItem.RemarkType==2" src="../../../assets/images/myimg/type1.png" />
<img v-if="subItem.RemarkType==3" src="../../../assets/images/myimg/type2.png" />&nbsp;
{{subItem.CreateTimeStr}}
{{subItem.CreateByName}}
{{subItem.Content}}
......@@ -135,6 +135,14 @@
});
},
saveRemark() {
if(this.saveMsg.Content==''){
this.$q.notify({
type: 'negative',
position: "top",
message: `请填写备注信息`
})
return;
}
this.saveLoading = true;
saveAccountRemark(this.saveMsg).then(res => {
this.saveLoading = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment