Commit 1a5048d5 authored by 黄奎's avatar 黄奎
parents 32edb448 ae5d6da4
...@@ -123,6 +123,15 @@ ...@@ -123,6 +123,15 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35">
<el-form-item label="公司">
<el-select v-model="msg.RB_Branch_Id" filterable style="width: 130px">
<el-option :value="-1" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in companyList' :label='item.BName' :value='item.Id' :key='item.Id'></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8" :gutter="35"> <el-col :span="8" :gutter="35">
<el-form-item label="申请日期"> <el-form-item label="申请日期">
<el-date-picker <el-date-picker
...@@ -215,7 +224,7 @@ ...@@ -215,7 +224,7 @@
<div class="noDataNotice" v-if="dataList.length<1"><i class="iconfont icon-kong"></i> <p>没有找到你需要的数据</p></div> <div class="noDataNotice" v-if="dataList.length<1"><i class="iconfont icon-kong"></i> <p>没有找到你需要的数据</p></div>
<div v-if="dataList.length>0"> <div v-if="dataList.length>0">
<el-pagination <el-pagination
background background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="currentPage" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" layout="total,prev, pager, next, jumper"
...@@ -230,6 +239,8 @@ export default { ...@@ -230,6 +239,8 @@ export default {
data() { data() {
return { return {
active: 1, active: 1,
RB_Group_Id:'',
companyList:[],
msg: { msg: {
TCID: 0, TCID: 0,
TCNUM: '', TCNUM: '',
...@@ -243,6 +254,7 @@ export default { ...@@ -243,6 +254,7 @@ export default {
eDate: '', eDate: '',
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
RB_Branch_Id:-1
}, },
productionDate: [], productionDate: [],
dataList: [], dataList: [],
...@@ -288,6 +300,7 @@ export default { ...@@ -288,6 +300,7 @@ export default {
this.msg.eDate = this.productionDate[1]; this.msg.eDate = this.productionDate[1];
}, },
getPageList: function () { getPageList: function () {
console.log(this.msg.BName)
this.loading = true this.loading = true
if (this.msg.OrderId === '') { if (this.msg.OrderId === '') {
this.msg.OrderId = 0 this.msg.OrderId = 0
...@@ -298,7 +311,7 @@ export default { ...@@ -298,7 +311,7 @@ export default {
this.total = res.data.data.count; this.total = res.data.data.count;
this.dataList = res.data.data.pageData this.dataList = res.data.data.pageData
} }
if (this.msg.OrderId === 0) { if (this.msg.OrderId === 0) {
this.msg.OrderId = '' this.msg.OrderId = ''
} }
...@@ -311,7 +324,7 @@ export default { ...@@ -311,7 +324,7 @@ export default {
}); });
}, },
goUrlT: function (path, obj, title){ goUrlT: function (path, obj, title){
this.$router.push({ name:path,query:{"id":obj,blank:'y',tab:title}}) this.$router.push({ name:path,query:{"id":obj,blank:'y',tab:title}})
}, },
goUrlO: function (OrderId) { goUrlO: function (OrderId) {
this.$router.push({ name: 'enrollTotal', query: { id: OrderId, blank: 'y', tab: '报名统计'} }); this.$router.push({ name: 'enrollTotal', query: { id: OrderId, blank: 'y', tab: '报名统计'} });
...@@ -324,9 +337,19 @@ export default { ...@@ -324,9 +337,19 @@ export default {
this.msg.pageIndex=1; this.msg.pageIndex=1;
this.currentPage = 1; this.currentPage = 1;
}, },
getBranchList(){
this.RB_Group_Id = this.getLocalStorage().RB_Group_id;
this.apipost('admin_get_BranchGetList', {RB_Group_Id:this.RB_Group_Id}, res=>{
if (res.data.resultCode == 1) {
this.companyList=res.data.data;
}
}, null)
}
}, },
mounted() { mounted() {
this.getPageList(); this.getPageList();
this.getBranchList();
} }
}; };
</script> </script>
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
</span> </span>
</li> </li>
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList()" /> &nbsp; <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()" /> &nbsp;
<button class="hollowFixedBtn" @click="DownLoadFile()">{{$t('adm.adm_download')}}</button> <button class="hollowFixedBtn" @click="DownLoadFile()">{{$t('adm.adm_download')}}</button>
</li> </li>
</ul> </ul>
...@@ -202,6 +202,17 @@ ...@@ -202,6 +202,17 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="noDataNotice" v-if="DataList.length<1"><i class="iconfont icon-kong"></i> <p>没有找到你需要的数据</p></div>
<div v-if="DataList.length>0">
<el-pagination
background
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size='queryMsg.pageSize'
:total='total'>
</el-pagination>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -232,7 +243,9 @@ ...@@ -232,7 +243,9 @@
QEndDate: "" QEndDate: ""
}, },
//数据列表 //数据列表
DataList: [] DataList: [],
currentPage: 0,
total:0,
}; };
}, },
methods: { methods: {
...@@ -285,8 +298,8 @@ ...@@ -285,8 +298,8 @@
res => { res => {
this.queryCommonData.loading = false; this.queryCommonData.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DataList = res.data.data; this.total = res.data.data.count
this.DataList = res.data.data.pageData;
this.DataList.forEach(item => { this.DataList.forEach(item => {
switch (item.StartCityName) { switch (item.StartCityName) {
case '成都': case '成都':
...@@ -374,6 +387,14 @@ ...@@ -374,6 +387,14 @@
d = new Date(ds[0], ds[1] - 1 + m, _d > max ? max : _d); d = new Date(ds[0], ds[1] - 1 + m, _d > max ? max : _d);
return d.toLocaleDateString().match(/\d+/g).join('-') return d.toLocaleDateString().match(/\d+/g).join('-')
}, },
handleCurrentChange: function (val) { //翻页
this.queryMsg.pageIndex = val;
this.getList();
},
resetPageIndex: function (){ // 重置页码
this.queryMsg.pageIndex=1;
this.currentPage = 1;
},
}, },
mounted() { mounted() {
let myDate = new Date(); let myDate = new Date();
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
</span> </span>
</li> </li>
<li> <li>
<input type="button" class="hollowFixedBtn" value="查询" @click="getList()" /> &nbsp; <input type="button" class="hollowFixedBtn" value="查询" @click="resetPageIndex(),getList()" /> &nbsp;
<button class="hollowFixedBtn" @click="DownLoadFile()">下载</button> <button class="hollowFixedBtn" @click="DownLoadFile()">下载</button>
</li> </li>
</ul> </ul>
...@@ -126,6 +126,18 @@ ...@@ -126,6 +126,18 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="noDataNotice" v-if="DataList.length<1"><i class="iconfont icon-kong"></i> <p>没有找到你需要的数据</p></div>
<div v-if="DataList.length>0">
<el-pagination
background
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size='queryMsg.pageSize'
:total='total'>
</el-pagination>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -156,7 +168,9 @@ ...@@ -156,7 +168,9 @@
QEndDate: "" QEndDate: ""
}, },
//数据列表 //数据列表
DataList: [] DataList: [],
currentPage: 0,
total:0,
}; };
}, },
methods: { methods: {
...@@ -209,7 +223,8 @@ ...@@ -209,7 +223,8 @@
res => { res => {
this.queryCommonData.loading = false; this.queryCommonData.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DataList = res.data.data; this.total = res.data.data.count
this.DataList = res.data.data.pageData;
this.DataList.forEach(item => { this.DataList.forEach(item => {
switch (item.StartCityName) { switch (item.StartCityName) {
case '成都': case '成都':
...@@ -289,6 +304,14 @@ ...@@ -289,6 +304,14 @@
} }
}); });
}, },
handleCurrentChange: function (val) { //翻页
this.queryMsg.pageIndex = val;
this.getList();
},
resetPageIndex: function (){ // 重置页码
this.queryMsg.pageIndex=1;
this.currentPage = 1;
},
}, },
mounted() { mounted() {
this.getCompanyList(); this.getCompanyList();
......
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