2024年6月27日 禁止新增空意见

This commit is contained in:
bai 2024-06-27 15:41:37 +08:00
parent b9987b0d99
commit dc26c0cbd6
1 changed files with 7 additions and 2 deletions

View File

@ -31,7 +31,7 @@
import { Modal } from 'ant-design-vue'; import { Modal } from 'ant-design-vue';
import { ExclamationCircleOutlined,CheckOutlined } from '@ant-design/icons-vue'; import { ExclamationCircleOutlined,CheckOutlined } from '@ant-design/icons-vue';
const userStore = useUserStore(); const userStore = useUserStore();
const props = defineProps({ const props = defineProps({
formDisabled: { type: Boolean, default: false }, formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: ()=>{} }, formData: { type: Object, default: ()=>{} },
@ -66,7 +66,7 @@
return props.formDisabled; return props.formDisabled;
}); });
/** /**
* 新增 * 新增
*/ */
@ -119,6 +119,11 @@
tkrsf = "老师"; tkrsf = "老师";
} }
model.tjrsf = tkrsf; model.tjrsf = tkrsf;
if(!model.suggestions){
createMessage.warning('请填写意见建议');
confirmLoading.value = false;
return;
}
await saveOrUpdate(model, isUpdate.value) await saveOrUpdate(model, isUpdate.value)
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {