Authored by chenchao

fix

... ... @@ -20,18 +20,13 @@
</div>
</div>
<script type="text/template" id="edit-template">
<script type="text/template" id="edit-template">
<input type="hidden" name="" value="[[id]]" id="id" class="form-control" value="" required="required" pattern="" title="">
<div class="form-group">
<label for="parameterValue" class="col-sm-3 control-label">参数值</label>
<div class="col-md-6">
<input type="text" name="" value="[[parameterValue]]" id="parameterValue" class="form-control" value="" required="required" pattern="" title="" maxlength="20">
</div>
</div>
</div>
</script>
<%include '../../../common/views/__ui/footer'%>
\ No newline at end of file
... ...
... ... @@ -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',
... ...