作者 Karson

修复微信自动管理编辑时空白的BUG

移除代码中的console.log
修复部分视图中的调用错误
... ... @@ -43,6 +43,7 @@ class Autoreply extends Backend
$response = WechatResponse::get(['eventkey' => $row['eventkey']]);
$this->view->assign("response", $response);
$this->view->assign("row", $row);
return $this->view->fetch();
}
}
... ...
... ... @@ -179,7 +179,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
<div class="col-xs-12 col-sm-8">
{:build_status();}
{:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
</div>
</div>
<div class="form-group hide layer-footer">
... ...
... ... @@ -174,7 +174,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
<div class="col-xs-12 col-sm-8">
{:build_status(NULL, $row['status']);}
{:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
</div>
</div>
<div class="form-group hide layer-footer">
... ...
... ... @@ -44,7 +44,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2"><?= __('Status') ?>:</label>
<div class="col-xs-12 col-sm-8">
<?= build_status(NULL, $row['status']); ?>
{:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
</div>
</div>
<div class="form-group hide layer-footer">
... ...
... ... @@ -54,7 +54,6 @@ define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefin
},
formatter: {
thumb: function (value, row, index) {
//console.log(row);
if (row.mimetype.indexOf("image") > -1) {
var reg = /ajax\/upload$/;
if (reg.test(Config.upload.uploadurl)) {
... ...
... ... @@ -47,7 +47,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'upload'], function (
var url = Config.upload.cdnurl + response.url;
$(".profile-user-img").prop("src", url);
};
console.log(Upload);
}
};
return Controller;
... ...
... ... @@ -138,7 +138,6 @@
};
var isSearchAvailble = function (that) {
console.log('isSearchAvailble');
//只支持服务端搜索
if (!that.options.commonSearch || that.options.sidePagination != 'server' || !that.options.url) {
return false;
... ... @@ -293,7 +292,6 @@
return;
}
if (!firstLoad) {
console.log(122);
var height = parseInt($(".bootstrap-table").height());
height += 10;
$("#" + this.options.idTable).bootstrapTable("resetView", {height: height});
... ...