This commit is contained in:
@@ -303,7 +303,7 @@
|
||||
<div class="item" style="width:20%;">
|
||||
<div class="btn-group">
|
||||
<select v-model="searchModel.ExpiredDay" @@change="search" style="height:35px;width:200%;">
|
||||
<option :value="-100">选择过期时间</option>
|
||||
<option disabled :value="0">选择过期时间</option>
|
||||
<option :value="-100">全部</option>
|
||||
<option :value="1">1天内到期</option>
|
||||
<option :value="3">3天内到期</option>
|
||||
@@ -444,6 +444,17 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function getQueryVariable(variable)
|
||||
{
|
||||
var query = window.location.search.substring(1);
|
||||
var vars = query.split("&");
|
||||
for (var i=0;i<vars.length;i++) {
|
||||
var pair = vars[i].split("=");
|
||||
if(pair[0] == variable){return pair[1];}
|
||||
}
|
||||
return(false);
|
||||
}
|
||||
|
||||
var reason = '';
|
||||
|
||||
var app = new Vue({
|
||||
@@ -460,7 +471,7 @@
|
||||
assign_pass:'',
|
||||
productId:'',
|
||||
searchModel: {
|
||||
ExpiredDay:-100,
|
||||
ExpiredDay:@this.Context.Request.GetInt("ExpiredDay"),
|
||||
ProductId:@this.Context.Request.GetInt("ProductId"),
|
||||
PackageId:'0',
|
||||
Keyword:'@this.Context.Request.Get("Keyword")',
|
||||
@@ -511,6 +522,11 @@
|
||||
}
|
||||
},
|
||||
getProducts() {
|
||||
if(decodeURIComponent(getQueryVariable('PackageId'))!='false'){
|
||||
this.searchModel.PackageId = decodeURIComponent(getQueryVariable('PackageId'))
|
||||
} else {
|
||||
this.searchModel.PackageId = '0'
|
||||
}
|
||||
var that = this;
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
@@ -525,11 +541,11 @@
|
||||
},
|
||||
search() {
|
||||
var ps = [];
|
||||
this.searchModel.BTime = $("#BTime").val();
|
||||
this.searchModel.ETime = $("#ETime").val();
|
||||
for (var item in this.searchModel) {
|
||||
var p = item + "=" + this.searchModel[item];
|
||||
ps.push(p);
|
||||
if (this.searchModel[item]!=0 && this.searchModel[item] != 'false' && this.searchModel[item]!=null){
|
||||
var p = item + "=" + this.searchModel[item];
|
||||
ps.push(p);
|
||||
}
|
||||
}
|
||||
window.location.href = "?" + ps.join("&");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user