[update] 校验
This commit is contained in:
@@ -138,8 +138,14 @@ export default {
|
|||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
...this.form
|
...this.form
|
||||||
}
|
}
|
||||||
|
if(this.form.username !== undefined) {
|
||||||
|
this.form.username = `*${this.form.username}*`
|
||||||
|
}
|
||||||
getAction(`sys/user/page`, params).then(res => {
|
getAction(`sys/user/page`, params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
if(this.form.username !== undefined) {
|
||||||
|
this.form.username = this.form.username.slice(1,this.form.username.length-1)
|
||||||
|
}
|
||||||
this.areaTable = [...res.result.records]
|
this.areaTable = [...res.result.records]
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ export const JeroListMixin = {
|
|||||||
if (arg === 1) {
|
if (arg === 1) {
|
||||||
this.ipagination.current = 1;
|
this.ipagination.current = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
var params = this.getQueryParams();//查询条件
|
var params = this.getQueryParams();//查询条件
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getAction(this.url.list, params).then((res) => {
|
getAction(this.url.list, params).then((res) => {
|
||||||
@@ -123,6 +124,7 @@ export const JeroListMixin = {
|
|||||||
sqp['superQueryParams']=encodeURI(this.superQueryParams)
|
sqp['superQueryParams']=encodeURI(this.superQueryParams)
|
||||||
sqp['superQueryMatchType'] = this.superQueryMatchType
|
sqp['superQueryMatchType'] = this.superQueryMatchType
|
||||||
}
|
}
|
||||||
|
console.log(this.queryParam,'this.queryParam')
|
||||||
var param = Object.assign(sqp, this.queryParam, this.isorter ,this.filters);
|
var param = Object.assign(sqp, this.queryParam, this.isorter ,this.filters);
|
||||||
param.field = this.getQueryField();
|
param.field = this.getQueryField();
|
||||||
param.pageNo = this.ipagination.current;
|
param.pageNo = this.ipagination.current;
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('configurationName')">{{$t('configurationName')}}</span>
|
:title="$t('configurationName')">{{$t('configurationName')}}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -30,6 +31,7 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text" :title="$t('Version')">{{$t('Version')}}</span>
|
<span class="title-text-text" :title="$t('Version')">{{$t('Version')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="nioNumber">
|
<a-form-model-item class="itemModel" prop="nioNumber">
|
||||||
@@ -45,6 +47,7 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('Model')">{{$t('Model')}}</span>
|
:title="$t('Model')">{{$t('Model')}}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -59,6 +62,7 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text" :title="$t('Battery')">{{$t('Battery')}}</span>
|
<span class="title-text-text" :title="$t('Battery')">{{$t('Battery')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="nioNumber">
|
<a-form-model-item class="itemModel" prop="nioNumber">
|
||||||
@@ -74,6 +78,7 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('electricMachinery')">{{$t('electricMachinery')}}</span>
|
:title="$t('electricMachinery')">{{$t('electricMachinery')}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user