Commit f8992203 by 彭祥礼

1

parent 6df502c2
......@@ -6,6 +6,11 @@
<a-form layout="inline">
<a-row :gutter="24">
<a-col :md="4" :sm="12">
<a-form-item label="网点名称:">
<a-input placeholder="网点名称" v-model="queryParam.networkName"></a-input>
</a-form-item>
</a-col>
<a-col :md="4" :sm="12">
<a-form-item label="县分:">
<a-input placeholder="县分" v-model="queryParam.subName"></a-input>
</a-form-item>
......@@ -68,6 +73,12 @@
<!--编辑----弹框-->
<a-modal :title="titleName" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="840px">
<a-form :form="Formtable">
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="网点编码">
<a-input placeholder="网点编码" v-decorator="[ 'networkCode']"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="网点名称">
<a-input placeholder="网点名称" v-decorator="[ 'networkName']"></a-input>
</a-form-item>
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="县分">
<a-select placeholder="请选择" v-decorator="[ 'subName', {rules: [{ required: true, message: '县分不能为空!' ,whitespace:true}]} ]">
<a-select-option key="">请选择</a-select-option>
......@@ -181,6 +192,8 @@
customimg:"",
modifyForm: {
id:"",
networkCode: '',
networkName: '',
subName:"",
schoolName:"",
netId:"",
......@@ -198,13 +211,16 @@
products:[],
//输入框列表
queryParam: {
networkName: '',
subName: '',
status: '',
schoolName: '',
},
modifyvisible: false,
columns: [
{dataIndex: 'subName', width: 200, title: '县分', align: "center"},
{dataIndex: 'networkCode', width: 200, title: '网点编码', align: "center"},
{dataIndex: 'networkName', width: 200, title: '网点名称', align: "center"},
{dataIndex: 'subName', width: 100, title: '县分', align: "center"},
{dataIndex: 'schoolName', width: 200, title: '学校名称', align: "center"},
{
dataIndex: 'status',
......@@ -230,7 +246,7 @@
//表示
let obj = cloneObject(this.queryParam)
return findByList(Object.assign(params, obj)).then(res => {
let data = {}
let data = {};
if (res.state !== 'success') {
this.emptyText.emptyText = '查询失败!'
this.$message.error("查询失败!", 5);
......@@ -406,8 +422,10 @@
},
//提交表单
createfunctionOk(){
this.Formtable.validateFields(['schoolName', 'bandproductId',"subName","lzgh", 'netId',"isShowband", 'isShowrh',"netPhone" ,'isRecv'], {force: true}, (err, values)=>{
this.Formtable.validateFields(['networkCode','networkName','schoolName', 'bandproductId',"subName","lzgh", 'netId',"isShowband", 'isShowrh',"netPhone" ,'isRecv'], {force: true}, (err, values)=>{
if (!err){
this.modifyForm.networkCode=values.networkCode
this.modifyForm.networkName=values.networkName
this.modifyForm.subName=values.subName
this.modifyForm.schoolName=values.schoolName
this.modifyForm.netId=values.netId
......
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