kun 19/10/17 22:59
This commit is contained in:
@@ -128,7 +128,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<label for>年龄:</label>
|
||||
<input type="text" v-model="sec_age" name="sec_age" />
|
||||
<input type="text" v-model="sec_age" name="sec_age" title="请输入大于或等于零的阿拉伯数字" />
|
||||
</div>
|
||||
<div>
|
||||
<label for>行政职务:</label>
|
||||
@@ -136,7 +136,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<label for>近三年参加上级党组织培训次数:</label>
|
||||
<input type="text" name="sec_study" v-model="sec_study" />
|
||||
<input type="text" name="sec_study" v-model="sec_study" title="请输入大于或等于零的阿拉伯数字" />
|
||||
</div>
|
||||
</div>
|
||||
<!-- !!!!!! -->
|
||||
@@ -144,7 +144,12 @@
|
||||
<div class="b">
|
||||
<div>
|
||||
<label for>近三年发展党员数:</label>
|
||||
<input type="text" name="near_party_person" v-model="near_party_person" />
|
||||
<input
|
||||
type="text"
|
||||
name="near_party_person"
|
||||
v-model="near_party_person"
|
||||
title="请输入大于或等于零的阿拉伯数字"
|
||||
/>
|
||||
</div>
|
||||
<div style="display: flex;
|
||||
align-items: center;">
|
||||
@@ -161,7 +166,12 @@
|
||||
</div>
|
||||
<div>
|
||||
<label for>专职党务工作者人数:</label>
|
||||
<input type="text" name="major_party_person" v-model="major_party_person" />
|
||||
<input
|
||||
type="text"
|
||||
name="major_party_person"
|
||||
v-model="major_party_person"
|
||||
title="请输入大于或等于零的阿拉伯数字"
|
||||
/>
|
||||
</div>
|
||||
<div style="display: flex;
|
||||
align-items: center;">
|
||||
@@ -183,11 +193,11 @@
|
||||
</div>
|
||||
<div>
|
||||
<label for>党组织年度活动经费(万元):</label>
|
||||
<input type="text" name="year_money" v-model="year_money" />
|
||||
<input type="text" name="year_money" v-model="year_money" title="请输入大于或等于零的阿拉伯数字" />
|
||||
</div>
|
||||
<div>
|
||||
<label for>党组织年度活动场所面积(平米):</label>
|
||||
<input type="text" name="active_year" v-model="active_year" />
|
||||
<input type="text" name="active_year" v-model="active_year" title="请输入大于或等于零的阿拉伯数字" />
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
@@ -261,6 +271,7 @@ export default {
|
||||
watch: {},
|
||||
methods: {
|
||||
btn(n) {
|
||||
let regz = /^(0|\+?[1-9][0-9]*)$/
|
||||
let s = this.sub;
|
||||
s = n;
|
||||
if (s == 1) {
|
||||
@@ -284,6 +295,14 @@ export default {
|
||||
this.active_year == ''
|
||||
) {
|
||||
alert('以上内容不可为空!')
|
||||
} else if (isNaN(this.sec_age) || isNaN(this.sec_study) || isNaN(this.near_party_person) ||
|
||||
isNaN(this.major_party_person) || isNaN(this.year_money) || isNaN(this.active_year)
|
||||
) {
|
||||
alert('请输入数字!')
|
||||
} else if (this.sec_age < 0 || this.sec_study < 0 || this.near_party_person < 0 ||
|
||||
this.major_party_person < 0 || this.year_money < 0 || this.active_year < 0
|
||||
) {
|
||||
alert('请输入大于或等于零的阿拉伯数字!')
|
||||
} else {
|
||||
let sid = sessionStorage.id
|
||||
let _this = this
|
||||
|
||||
Reference in New Issue
Block a user