Commit 4f7ef4aa by 彭祥礼

部分页面优化调整

parent 1d566b93
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!-- 搜索区域 --> <!-- 搜索区域 -->
<a-form layout="inline"> <a-form layout="inline">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="5" :sm="8"> <a-col :md="4" :sm="8">
<a-form-item label="订单编号:"> <a-form-item label="订单编号:">
<a-input placeholder="订单编号" v-model="queryParam.orderNum" style="width: 12rem;"></a-input> <a-input placeholder="订单编号" v-model="queryParam.orderNum" style="width: 12rem;"></a-input>
</a-form-item> </a-form-item>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="12"> <a-col :md="5" :sm="10">
<a-form-item label="学校"> <a-form-item label="学校">
<a-select v-model="queryParam.schoolName" style="width: 18rem;"> <a-select v-model="queryParam.schoolName" style="width: 18rem;">
<a-select-option key="">--全部--</a-select-option> <a-select-option key="">--全部--</a-select-option>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="6"> <a-col :md="5" :sm="10">
<a-form-item label="创建时间"> <a-form-item label="创建时间">
<a-range-picker @change="onChange" /> <a-range-picker @change="onChange" />
<!--<a-range-picker <!--<a-range-picker
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<span v-if="text=='0'">正常</span> <span v-if="text=='0'">正常</span>
<span v-else>下架</span> <span v-else>下架</span>
</template> </template>
<template slot="operation" slot-scope="text, record"> <template slot="operation" slot-scope="text,record">
<span> <span>
<a @click="modifyfunction(record)">修改</a> <a @click="modifyfunction(record)">修改</a>
<a-divider type="vertical"/> <a-divider type="vertical"/>
...@@ -121,8 +121,7 @@ ...@@ -121,8 +121,7 @@
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="适用学校:"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 9, offset: 1}" label="适用学校:">
<a-select v-model="universityName" style="width: 330px"> <a-select v-model="universityName" style="width: 330px">
<a-select-option @click="universitySchoolName('请选择')" value="请选择">请选择</a-select-option> <a-select-option @click="universitySchoolName('请选择')" value="请选择">请选择</a-select-option>
<a-select-option @click="universitySchoolName(item)" v-for="item in universitySchool" <a-select-option @click="universitySchoolName(item)" v-for="item in universitySchool" :value="item.universityId">
:value="item.universityId">
{{item.universityName}} {{item.universityName}}
</a-select-option> </a-select-option>
</a-select> </a-select>
...@@ -202,6 +201,7 @@ ...@@ -202,6 +201,7 @@
productState: '' // 宽带狀態 productState: '' // 宽带狀態
}, },
modelData: { modelData: {
productId: '',
universityId: '', universityId: '',
productMealPrice: '', productMealPrice: '',
productMeal: '', productMeal: '',
...@@ -210,7 +210,6 @@ ...@@ -210,7 +210,6 @@
productPrice: '', productPrice: '',
productRegion: '', productRegion: '',
productRate: '', productRate: '',
productId: '',
productIntroduction:'', productIntroduction:'',
productSetMealIntroduction:'', productSetMealIntroduction:'',
productRf2:'', productRf2:'',
...@@ -338,7 +337,7 @@ ...@@ -338,7 +337,7 @@
this.chouti = value this.chouti = value
} }
}) })
console.log(this.universitySchool) //console.log(this.universitySchool)
}) })
if (data != undefined) { if (data != undefined) {
this.productIntroduction = data.productIntroduction this.productIntroduction = data.productIntroduction
...@@ -412,6 +411,7 @@ ...@@ -412,6 +411,7 @@
} else { } else {
let obj = that.modelData; let obj = that.modelData;
let product = JSON.stringify(obj); let product = JSON.stringify(obj);
console.log(product)
productUpdate({product}).then((res) => { productUpdate({product}).then((res) => {
this.modifyvisible = false; this.modifyvisible = false;
this.clearmodel() this.clearmodel()
...@@ -421,6 +421,7 @@ ...@@ -421,6 +421,7 @@
this.search() this.search()
}) })
} }
this.modelData.productId = ''
}) })
}, },
createfunctionCancel() { createfunctionCancel() {
......
...@@ -10,12 +10,12 @@ ...@@ -10,12 +10,12 @@
<a-input placeholder="" v-model="queryParam.name"></a-input> <a-input placeholder="" v-model="queryParam.name"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="10"> <a-col :md="4" :sm="8">
<a-form-item label="放号账号"> <a-form-item label="放号账号">
<a-input placeholder="" v-model="queryParam.account"></a-input> <a-input placeholder="" v-model="queryParam.account"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="2"> <a-col :md="4" :sm="4">
<a-form-item label="县分"> <a-form-item label="县分">
<a-select v-model="queryParam.salesSubst" @change="getSchoolNames"> <a-select v-model="queryParam.salesSubst" @change="getSchoolNames">
<a-select-option key="">--全部--</a-select-option> <a-select-option key="">--全部--</a-select-option>
...@@ -37,28 +37,22 @@ ...@@ -37,28 +37,22 @@
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="职位"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="职位">
<a-select placeholder="--全部--" v-model="queryParam.position"> <a-select placeholder="--全部--" v-model="queryParam.position">
<a-select-option key="">--全部--</a-select-option> <a-select-option key="">--全部--</a-select-option>
<a-select-option key="副主席">副主席</a-select-option>
<a-select-option key="总经理">总经理</a-select-option> <a-select-option key="总经理">总经理</a-select-option>
<a-select-option key="督导">督导</a-select-option>
<a-select-option key="楼长">楼长</a-select-option> <a-select-option key="楼长">楼长</a-select-option>
<a-select-option key="成员">成员</a-select-option> <a-select-option key="成员">成员</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12"> <a-col :md="4" :sm="8">
<a-form-item label="上级领导"> <a-form-item label="上级领导">
<a-input placeholder="" v-model="queryParam.leader"></a-input> <a-input placeholder="" v-model="queryParam.leader"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="12"> <a-col :md="5" :sm="10">
<a-form-item label="激活时间"> <a-form-item label="激活时间">
<a-range-picker <a-range-picker :placeholder="['开始时间', '结束时间']" @change="onChange" v-model="queryParam.activateTime"/>
:placeholder="['开始月份', '结束月份']"
format="YYYYMM"
:value="queryParam.activateTime"
:mode="tempMode"
@panelChange="handlePanelChange"
@change="handleChange"
style="width: 16rem;"
/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<span class="table-page-search-submitButtons" style="float: left; overflow: hidden;"> <span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
...@@ -267,14 +261,10 @@ ...@@ -267,14 +261,10 @@
}, },
methods:{ methods:{
moment, moment,
handlePanelChange(value, mode) { onChange(date, dateString) {
this.queryParam.activateTime = value; //this.queryParam.uploadDate = dateString;
this.tempMode = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]]; //this.queryParam.activateTime = value;
//console.log("this.tempMode=================="+this.tempMode); console.log(dateString);
},
handleChange(value) {
this.queryParam.activateTime = []
console.log(value)
}, },
search() { search() {
this.$refs.table.refresh({search: true}) this.$refs.table.refresh({search: true})
......
...@@ -37,32 +37,27 @@ ...@@ -37,32 +37,27 @@
<a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="职位"> <a-form-item :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}" label="职位">
<a-select placeholder="--全部--" v-model="queryParam.position"> <a-select placeholder="--全部--" v-model="queryParam.position">
<a-select-option key="">--全部--</a-select-option> <a-select-option key="">--全部--</a-select-option>
<a-select-option key="副主席">副主席</a-select-option>
<a-select-option key="总经理">总经理</a-select-option> <a-select-option key="总经理">总经理</a-select-option>
<a-select-option key="督导">督导</a-select-option>
<a-select-option key="楼长">楼长</a-select-option> <a-select-option key="楼长">楼长</a-select-option>
<a-select-option key="成员">成员</a-select-option> <a-select-option key="成员">成员</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12"> <a-col :md="4" :sm="8">
<a-form-item label="上级领导"> <a-form-item label="上级领导">
<a-input placeholder="" v-model="queryParam.leader"></a-input> <a-input placeholder="" v-model="queryParam.leader"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="12"> <a-col :md="4" :sm="8">
<a-form-item label="上级总经理"> <a-form-item label="上级总经理">
<a-input placeholder="" v-model="queryParam.president"></a-input> <a-input placeholder="" v-model="queryParam.president"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="12"> <a-col :md="5" :sm="10">
<a-form-item label="激活时间"> <a-form-item label="激活时间">
<a-range-picker <a-range-picker :placeholder="['开始时间', '结束时间']" @change="onChange" v-model="queryParam.activateTime"/>
:placeholder="['开始月份', '结束月份']"
format="YYYYMM"
:value="queryParam.activateTime"
:mode="tempMode"
@panelChange="handlePanelChange"
style="width: 16rem;"
/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<span class="table-page-search-submitButtons" style="float: left; overflow: hidden;"> <span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
...@@ -278,10 +273,10 @@ ...@@ -278,10 +273,10 @@
}, },
methods:{ methods:{
moment, moment,
handlePanelChange(value, mode) { onChange(date, dateString) {
this.queryParam.activateTime = value; //this.queryParam.uploadDate = dateString;
this.tempMode = [mode[0] === 'date' ? 'month' : mode[0], mode[1] === 'date' ? 'month' : mode[1]]; //this.queryParam.activateTime = value;
//console.log("this.tempMode=================="+this.tempMode); console.log(dateString);
}, },
search() { search() {
this.$refs.table.refresh({search: true}) this.$refs.table.refresh({search: true})
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
<!-- 搜索区域 --> <!-- 搜索区域 -->
<a-form layout="inline"> <a-form layout="inline">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="4" :sm="8"> <a-col :md="3" :sm="6">
<a-form-item label="账号"> <a-form-item label="账号">
<a-input placeholder="账号" v-model="queryParam.account" style="width: 8rem;"></a-input> <a-input placeholder="账号" v-model="queryParam.account" style="width: 8rem;"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="8"> <a-col :md="3" :sm="6">
<a-form-item label="姓名"> <a-form-item label="姓名">
<a-input placeholder="姓名" v-model="queryParam.name" style="width: 8rem;"></a-input> <a-input placeholder="姓名" v-model="queryParam.name" style="width: 8rem;"></a-input>
</a-form-item> </a-form-item>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="12"> <a-col :md="5" :sm="10">
<a-form-item label="学校"> <a-form-item label="学校">
<a-select v-model="queryParam.salesSchool" style="width: 15rem;"> <a-select v-model="queryParam.salesSchool" style="width: 15rem;">
<a-select-option key="">--全部--</a-select-option> <a-select-option key="">--全部--</a-select-option>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="10"> <a-col :md="5" :sm="10">
<a-form-item label="注册时间"> <a-form-item label="注册时间">
<a-range-picker @change="onChange" v-model="queryParam.createtime"/> <a-range-picker @change="onChange" v-model="queryParam.createtime"/>
</a-form-item> </a-form-item>
......
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