Commit 3f66f7a3 by nlp97

限制三十天以内

parent 7d1d589b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-20 17:27:50 * @LastEditTime: 2022-03-21 13:36:08
* @Description: * @Description:
--> -->
<template> <template>
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
required: thirtyDays == '是' ? true : false, required: thirtyDays == '是' ? true : false,
message: '请填写回上海天数', message: '请填写回上海天数',
}, },
{ validator, message: '天数不能大于三十天' },
]" ]"
> >
<template #extra></template></van-field <template #extra></template></van-field
...@@ -364,6 +365,10 @@ export default { ...@@ -364,6 +365,10 @@ export default {
this.showPurpose = false; this.showPurpose = false;
}, },
validator(val) {
return val < 30 || val == 30;
},
getResource() { getResource() {
this.setLoading(true); this.setLoading(true);
this.$http.get(`/Research/Resource`, {}).then((data) => { this.$http.get(`/Research/Resource`, {}).then((data) => {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2022-03-17 15:06:50 * @Date: 2022-03-17 15:06:50
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-20 15:38:30 * @LastEditTime: 2022-03-21 13:40:05
* @Description: * @Description:
*/ */
import http from '@/http/index' import http from '@/http/index'
......
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