Commit bb714d0d by 陈浩建

账号验证管理调整--(正则转义问题未修复)

parent f2570f97
......@@ -61,10 +61,13 @@
<a-input placeholder="正则表达示" v-decorator="[ 'regular', {rules: [{ required: true, message: '表达示不能为空!' ,validator: 'click'}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="错误提示:">
<a-input placeholder="错误提示" v-decorator="[ 'tips', {rules: [{required: true, message: '装机地址不能为空!' ,validator: 'click'}]} ]"></a-input>
<a-input placeholder="错误提示" v-decorator="[ 'tips', {rules: [{required: true, message: '错误提示不能为空!' ,validator: 'click'}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="输入框默认值:">
<a-input placeholder="输入框默认值" v-decorator="[ 'placeholder', {rules: [{ required: true, message: '外线方式不能为空!' ,validator: 'click'}]} ]"></a-input>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="账号输入框默认值:">
<a-input placeholder="账号输入框默认值" v-decorator="[ 'placeholder', {rules: [{ required: true, message: '账号输入框默认值不能为空!' ,validator: 'click'}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="密码输入框默认值:">
<a-input placeholder="密码输入框默认值" v-decorator="[ 'passwordMsg', {rules: [{ required: true, message: '密码输入框默认值不能为空!' ,validator: 'click'}]} ]"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="是否显示:">
<a-select v-decorator="[ 'isShow' ]" style="width: 330px">
......@@ -101,16 +104,18 @@
regular:'',
tips:'',
placeholder:'',
passwordMsg:'',
isShow: '1'
},
columns: [
{dataIndex: 'regularName', width: 70, title: '正则名称'},
{dataIndex: 'regular', width: 100, title: '正则表达'},
{dataIndex: 'regular', width: 100, title: '正则表达'},
{dataIndex: 'tips', width: 70, title: '错误提示'},
{dataIndex: 'placeholder', width: 70, title: '输入框默认提示 '},
{dataIndex: 'placeholder', width: 70, title: '账号输入框默认提示'},
{dataIndex: 'passwordMsg', width: 60, title: '密码输入框默认提示'},
{
dataIndex: 'operation',
width: 26,
width: 30,
title: '操作',
scopedSlots: {customRender: 'operation'},
fixed: "right"
......@@ -169,6 +174,7 @@
"regular":data.regular,
"tips":data.tips,
"placeholder":data.placeholder,
"passwordMsg":data.passwordMsg,
"isShow":data.isShow
})
},0)
......@@ -178,7 +184,7 @@
},
createfunctionOk(){
let that = this;
that.Formtable.validateFields(['regularName','regular','tips','placeholder','isShow'], {force: true}, (err, values) => {
that.Formtable.validateFields(['regularName','regular','tips','placeholder','passwordMsg','isShow'], {force: true}, (err, values) => {
if (err ) {
return;
}
......@@ -186,6 +192,7 @@
that.modelData.regular=values.regular
that.modelData.tips=values.tips
that.modelData.placeholder=values.placeholder
that.modelData.passwordMsg=values.passwordMsg
that.modelData.isShow=values.isShow
if(this.add){
let obj= that.modelData;
......@@ -201,7 +208,9 @@
})
}else {
let obj= that.modelData;
let regular= JSON.stringify(obj);
let regular = JSON.stringify(obj);
console.log(regular)
debugger
regularUpdate({regular}).then((res) => {
this.modifyvisible=false;
this.clearmodel()
......@@ -227,6 +236,7 @@
"regular":'',
"tips":'',
"placeholder":'',
"passwordMsg":'',
"isShow":'',
})
}
......
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