Commit f8992203 by 彭祥礼

1

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