...
|
...
|
@@ -2,10 +2,31 @@ |
|
|
var $ = require('jquery'),
|
|
|
common = require('../../../common/common');
|
|
|
|
|
|
var GetRequestParams = function() {
|
|
|
var url = location.search; //获取url中"?"符后的字串
|
|
|
var theRequest = {};
|
|
|
if (url.indexOf("?") != -1) {
|
|
|
var str = url.substr(1);
|
|
|
strs = str.split("&");
|
|
|
for(var i = 0; i < strs.length; i ++) {
|
|
|
var paramNameVal = strs[i].split("=");
|
|
|
theRequest[paramNameVal[0]] = decodeURIComponent(paramNameVal[1]);
|
|
|
}
|
|
|
}
|
|
|
return theRequest;
|
|
|
};
|
|
|
|
|
|
var getSortsJson = function(reqJson){
|
|
|
var sortArry = [];
|
|
|
sortArry.push({id: reqJson.maxSortId , sortName: reqJson.maxSortName});
|
|
|
sortArry.push({id: reqJson.middleSortId, sortName: reqJson.middleSortName});
|
|
|
sortArry.push({id: reqJson.smallSortId, sortName: reqJson.smallSortName});
|
|
|
return sortArry;
|
|
|
};
|
|
|
|
|
|
|
|
|
var tabTree = new common.tabTree("#sortTree");
|
|
|
tabTree.init();
|
|
|
tabTree.init(getSortsJson(GetRequestParams()));
|
|
|
|
|
|
new common.dropDown({
|
|
|
el: '#stortTypeId',
|
...
|
...
|
|