chore: 移除废弃的增项服务模块并升级服务架构
- 删除 Addon 相关控制器、模型、语言包和视图文件 - 新增服务类型支持一口价属性配置 - 新增系统监控、用户资料、订单评价等后端管理页面 - 新增数据库表结构及索引优化脚本 - 更新应用版本号至 1.0.44 - 更新小程序应用标识 - 完善 .gitignore 配置
这个提交包含在:
@@ -0,0 +1,78 @@
|
||||
define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefined, Backend, Form, Table) {
|
||||
|
||||
var Controller = {
|
||||
index: function () {
|
||||
// 初始化表格参数配置
|
||||
Table.api.init({
|
||||
extend: {
|
||||
index_url: 'wechat/autoreply/index',
|
||||
add_url: 'wechat/autoreply/add',
|
||||
edit_url: 'wechat/autoreply/edit',
|
||||
del_url: 'wechat/autoreply/del',
|
||||
multi_url: 'wechat/autoreply/multi',
|
||||
table: 'wechat_autoreply',
|
||||
}
|
||||
});
|
||||
|
||||
var table = $("#table");
|
||||
|
||||
// 初始化表格
|
||||
table.bootstrapTable({
|
||||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||
sortName: 'weigh DESC,id DESC',
|
||||
columns: [
|
||||
[
|
||||
{field: 'state', checkbox: true,},
|
||||
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '60px'},
|
||||
{field: 'title', title: __('Title')},
|
||||
{field: 'text', title: __('Text')},
|
||||
{field: 'eventkey', title: __('Event key')},
|
||||
{field: 'remark', title: __('Remark')},
|
||||
{field: 'createtime', title: __('Create time'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
|
||||
{field: 'updatetime', title: __('Update time'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
|
||||
{field: 'status', title: __('Status'), formatter: Table.api.formatter.status},
|
||||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
||||
]
|
||||
]
|
||||
});
|
||||
|
||||
// 为表格绑定事件
|
||||
Table.api.bindevent(table);
|
||||
|
||||
},
|
||||
add: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
edit: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
api: {
|
||||
bindevent: function () {
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
|
||||
var refreshkey = function (data) {
|
||||
$("input[name='row[eventkey]']").val(data.eventkey).trigger("change");
|
||||
Layer.closeAll();
|
||||
var keytitle = data.title;
|
||||
var cont = $(".clickbox .create-click:first");
|
||||
$(".keytitle", cont).remove();
|
||||
if (keytitle) {
|
||||
cont.append('<div class="keytitle">' + __('Event key') + ':' + keytitle + '</div>');
|
||||
}
|
||||
};
|
||||
$(document).on('click', "#select-resources", function () {
|
||||
var key = $("input[name='row[eventkey]']").val();
|
||||
parent.Backend.api.open($(this).attr("href") + "?key=" + key, __('Select'), {callback: refreshkey});
|
||||
return false;
|
||||
});
|
||||
|
||||
$(document).on('click', "#add-resources", function () {
|
||||
parent.Backend.api.open($(this).attr("href") + "?key=", __('Add'), {callback: refreshkey});
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
return Controller;
|
||||
});
|
||||
@@ -0,0 +1,54 @@
|
||||
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
|
||||
|
||||
var Controller = {
|
||||
index: function () {
|
||||
// 初始化表格参数配置
|
||||
Table.api.init({
|
||||
extend: {
|
||||
index_url: 'wechat/config/index',
|
||||
add_url: 'wechat/config/add',
|
||||
edit_url: 'wechat/config/edit',
|
||||
del_url: 'wechat/config/del',
|
||||
multi_url: 'wechat/config/multi',
|
||||
table: 'wechat_config',
|
||||
}
|
||||
});
|
||||
|
||||
var table = $("#table");
|
||||
|
||||
// 初始化表格
|
||||
table.bootstrapTable({
|
||||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||
pk: 'id',
|
||||
sortName: 'id',
|
||||
columns: [
|
||||
[
|
||||
{field: 'state', checkbox: true},
|
||||
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '60px'},
|
||||
{field: 'name', title: __('Name')},
|
||||
{field: 'title', title: __('Title')},
|
||||
{field: 'createtime', title: __('Createtime'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
|
||||
{field: 'updatetime', title: __('Updatetime'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
|
||||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
||||
]
|
||||
]
|
||||
});
|
||||
|
||||
// 为表格绑定事件
|
||||
Table.api.bindevent(table);
|
||||
},
|
||||
add: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
edit: function () {
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
api: {
|
||||
bindevent: function () {
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
$("input[name='row[type]']:checked").trigger("click");
|
||||
}
|
||||
}
|
||||
};
|
||||
return Controller;
|
||||
});
|
||||
@@ -0,0 +1,261 @@
|
||||
define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'sortable'], function ($, undefined, Backend, Table, Form, Sortable) {
|
||||
var Controller = {
|
||||
index: function () {
|
||||
var typeList = [
|
||||
{name: "click", title: "发送消息"},
|
||||
{name: "view", title: "跳转网页"},
|
||||
{name: "miniprogram", title: "跳转小程序"},
|
||||
{name: "scancode_push", title: "扫码推"},
|
||||
{name: "scancode_waitmsg", title: "扫码推提示框"},
|
||||
{name: "pic_sysphoto", title: "拍照发图"},
|
||||
{name: "pic_photo_or_album", title: "拍照相册发图"},
|
||||
{name: "pic_weixin", title: "相册发图"},
|
||||
{name: "location_select", title: "地理位置选择"},
|
||||
];
|
||||
String.prototype.subByte = function (start, bytes) {
|
||||
for (var i = start; bytes > 0; i++) {
|
||||
var code = this.charCodeAt(i);
|
||||
bytes -= code < 256 ? 1 : 2;
|
||||
}
|
||||
return this.slice(start, i + bytes)
|
||||
};
|
||||
|
||||
//初始化菜单
|
||||
$("#menu-list").prepend(Template("menutpl", {menu: menu}));
|
||||
|
||||
//拖动排序
|
||||
new Sortable($("#menu-list")[0], {
|
||||
draggable: 'li.menu-item',
|
||||
onEnd: function () {
|
||||
updateChangeMenu();
|
||||
}
|
||||
});
|
||||
|
||||
//子菜单拖动排序
|
||||
$(".sub-menu-list").each(function () {
|
||||
new Sortable(this, {
|
||||
draggable: 'li.sub-menu-item',
|
||||
onEnd: function () {
|
||||
updateChangeMenu();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//添加主菜单
|
||||
$(document).on('click', '#add-item', function () {
|
||||
var menu_item_total = $(".menu-item").length;
|
||||
if (menu_item_total < 3) {
|
||||
var item = '<li class="menu-item" data-type="click" data-key="" data-name="添加菜单" > <a href="javascript:;" class="menu-link"> <i class="icon-menu-dot"></i> <i class="weixin-icon sort-gray"></i> <span class="title">添加菜单</span> </a> <div class="sub-menu-box" style=""> <ul class="sub-menu-list"><li class=" add-sub-item"><a href="javascript:;" title="添加子菜单"><span class=" "><i class="weixin-icon add-gray"></i></span></a></li> </ul> <i class="arrow arrow-out"></i> <i class="arrow arrow-in"></i> </div></li>';
|
||||
var itemDom = $(item);
|
||||
itemDom.insertBefore(this);
|
||||
itemDom.trigger("click");
|
||||
$("#item_title").focus().select();
|
||||
$(".sub-menu-box", itemDom).show();
|
||||
updateChangeMenu();
|
||||
new Sortable($(".sub-menu-list", itemDom)[0], {draggable: 'li.sub-menu-item'});
|
||||
}
|
||||
});
|
||||
|
||||
//切换类型
|
||||
$(document).on('change', 'input[name=type]', function () {
|
||||
$(".sub-menu-item.current,.menu-item.current").data("type", $(this).val()).trigger("click");
|
||||
});
|
||||
|
||||
//删除菜单
|
||||
$(document).on('click', '#item_delete', function () {
|
||||
var current = $("#menu-list li.current");
|
||||
var prev = current.prev("li[data-type]");
|
||||
var next = current.next("li[data-type]");
|
||||
|
||||
if (prev.length == 0 && next.length == 0 && $(".sub-menu-box", current).length == 0) {
|
||||
last = current.closest(".menu-item");
|
||||
} else if (prev.length > 0 || next.length > 0) {
|
||||
last = prev.length > 0 ? prev : next;
|
||||
} else {
|
||||
last = null;
|
||||
$(".weixin-content").hide();
|
||||
$(".no-weixin-content").show();
|
||||
}
|
||||
if (current.hasClass("sub-menu-item")) {
|
||||
$(".add-sub-item", current.parent()).removeClass("hidden");
|
||||
}
|
||||
current.remove();
|
||||
if (last) {
|
||||
last.trigger('click');
|
||||
} else {
|
||||
$("input[name='name']").val('');
|
||||
}
|
||||
|
||||
updateChangeMenu();
|
||||
});
|
||||
|
||||
//更新修改与变动
|
||||
var updateChangeMenu = function () {
|
||||
var item = $("#menu-list li.current");
|
||||
var values = $("#form-item").serializeArray();
|
||||
$.each(values, function (i, j) {
|
||||
if (j.name == 'name') {
|
||||
$(">a", item).html(j.value);
|
||||
}
|
||||
item.data(j.name, j.value);
|
||||
});
|
||||
menuUpdate();
|
||||
};
|
||||
|
||||
//更新菜单数据
|
||||
var menuUpdate = function () {
|
||||
$.post("wechat/menu/edit", {menu: JSON.stringify(getMenuList())}, function (data) {
|
||||
if (data['code'] == 1) {
|
||||
} else {
|
||||
Toastr.error(__('Operation failed'));
|
||||
}
|
||||
}, 'json');
|
||||
};
|
||||
|
||||
//获取菜单数据
|
||||
var getMenuList = function () {
|
||||
var menus = [];
|
||||
var sub_button = [];
|
||||
var menu_i = 0;
|
||||
var sub_menu_i = 0;
|
||||
var item;
|
||||
$("#menu-list li").each(function (i) {
|
||||
item = $(this);
|
||||
var name = item.data('name');
|
||||
if (name != null) {
|
||||
if (item.hasClass('menu-item')) {
|
||||
sub_menu_i = 0;
|
||||
if (item.find('.sub-menu-item').length > 0) {
|
||||
menus[menu_i] = {"name": name, "sub_button": "sub_button"}
|
||||
} else {
|
||||
menus[menu_i] = $(this).data();
|
||||
}
|
||||
if (menu_i > 0) {
|
||||
menus[menu_i - 1]['sub_button'] = menus[menu_i - 1]['sub_button'] == "sub_button" ? sub_button : menus[menu_i - 1]['sub_button'];
|
||||
}
|
||||
sub_button = [];
|
||||
menu_i++;
|
||||
} else {
|
||||
sub_button[sub_menu_i++] = $(this).data();
|
||||
}
|
||||
}
|
||||
});
|
||||
if (sub_button.length > 0) {
|
||||
var len = menus.length;
|
||||
menus[len - 1]['sub_button'] = sub_button;
|
||||
}
|
||||
return menus;
|
||||
};
|
||||
|
||||
//添加子菜单
|
||||
$(document).on('click', ".add-sub-item", function () {
|
||||
var sub_menu_item_total = $(this).parent().find(".sub-menu-item").length;
|
||||
if (sub_menu_item_total < 5) {
|
||||
var item = '<li class="sub-menu-item" data-type="click" data-key="" data-name="添加子菜单"><a href="javascript:;"><span class=" "><i class="weixin-icon sort-gray"></i><span class="sub-title">添加子菜单</span></span></a></li>';
|
||||
var itemDom = $(item);
|
||||
itemDom.insertBefore(this);
|
||||
itemDom.trigger("click");
|
||||
$("#item_title").focus().select();
|
||||
updateChangeMenu();
|
||||
if (sub_menu_item_total == 4) {
|
||||
$(this).addClass("hidden");
|
||||
}
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
//主菜单子菜单点击事件
|
||||
$(document).on('click', ".menu-item, .sub-menu-item", function () {
|
||||
var hasChild = $(".sub-menu-item", this).length > 0 ? true : false;
|
||||
if ($(this).hasClass("sub-menu-item")) {
|
||||
$("#menu-list li").removeClass('current');
|
||||
} else {
|
||||
$("#menu-list li").removeClass('current');
|
||||
$("#menu-list > li").not(this).find(".sub-menu-box").hide();
|
||||
$(".sub-menu-box", this).toggle();
|
||||
}
|
||||
$(this).addClass('current');
|
||||
|
||||
var data = $.extend({}, $(this).data());
|
||||
data.keytitle = data.key && typeof responselist[data.key] != 'undefined' ? responselist[data.key] : '';
|
||||
data.typeList = typeList;
|
||||
data.hasChild = hasChild;
|
||||
data.first = $(this).hasClass("menu-item") ? true : false;
|
||||
$(".weixin-content").show();
|
||||
$(".no-weixin-content").hide();
|
||||
$("#item-body").html(Template("itemtpl", data));
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
//触发保存
|
||||
$("form#form-item").on('change', "input,textarea", function () {
|
||||
updateChangeMenu();
|
||||
});
|
||||
|
||||
//加载远程菜单
|
||||
$(document).on('click', "#menuRemote", function () {
|
||||
Layer.confirm("确认加载远程微信服务端菜单?<br>本地菜单将会被覆盖!!!", {icon: 3}, function () {
|
||||
$.post("wechat/menu/remote", {}, function (ret) {
|
||||
var msg = ret.hasOwnProperty("msg") && ret.msg != "" ? ret.msg : "";
|
||||
if (ret.code == 1) {
|
||||
Layer.closeAll();
|
||||
Layer.alert('远程菜单覆盖成功!点击确定刷新页面!', {icon: 1}, function () {
|
||||
location.reload();
|
||||
});
|
||||
} else {
|
||||
Backend.api.toastr.error(msg ? msg : __('Operation failed'));
|
||||
}
|
||||
}, 'json');
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
//点击同步
|
||||
$(document).on('click', "#menuSyn", function () {
|
||||
$.post("wechat/menu/sync", {}, function (ret) {
|
||||
var msg = ret.hasOwnProperty("msg") && ret.msg != "" ? ret.msg : "";
|
||||
if (ret.code == 1) {
|
||||
Backend.api.toastr.success('菜单同步更新成功,生效时间请查看微信官网说明,或你重新关注公众号!');
|
||||
} else {
|
||||
Backend.api.toastr.error(msg ? msg : __('Operation failed'));
|
||||
}
|
||||
}, 'json');
|
||||
});
|
||||
|
||||
//刷新资源
|
||||
var refreshkey = function (data) {
|
||||
responselist[data.eventkey] = data.title;
|
||||
$("input[name=key]").val(data.eventkey).trigger("change");
|
||||
$("#menu-list li.current").trigger("click");
|
||||
Layer.closeAll();
|
||||
};
|
||||
|
||||
//选择资源
|
||||
$(document).on('click', "#select-resources", function () {
|
||||
var key = $("#key").val();
|
||||
Backend.api.open($(this).attr("href") + "?key=" + key, __('Select'), {
|
||||
callback: refreshkey
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
//添加资源
|
||||
$(document).on('click', "#add-resources", function () {
|
||||
Backend.api.open($(this).attr("href") + "?key=" + key, __('Add'), {
|
||||
callback: refreshkey
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
$("#menu-list li.menu-item:first").trigger("click");
|
||||
},
|
||||
add: function () {
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
},
|
||||
edit: function () {
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
}
|
||||
};
|
||||
return Controller;
|
||||
});
|
||||
@@ -0,0 +1,157 @@
|
||||
define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'adminlte'], function ($, undefined, Backend, Table, Form, Adminlte) {
|
||||
|
||||
var Controller = {
|
||||
index: function () {
|
||||
// 初始化表格参数配置
|
||||
Table.api.init({
|
||||
extend: {
|
||||
index_url: 'wechat/response/index',
|
||||
add_url: 'wechat/response/add',
|
||||
edit_url: 'wechat/response/edit',
|
||||
del_url: 'wechat/response/del',
|
||||
multi_url: 'wechat/response/multi',
|
||||
}
|
||||
});
|
||||
|
||||
var table = $("#table");
|
||||
|
||||
// 初始化表格
|
||||
table.bootstrapTable({
|
||||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||
sortName: 'id',
|
||||
columns: [
|
||||
[
|
||||
{field: 'state', checkbox: true,},
|
||||
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '60px'},
|
||||
{field: 'type', title: __('Type')},
|
||||
{field: 'title', title: __('Resource title')},
|
||||
{field: 'eventkey', title: __('Event key')},
|
||||
{field: 'status', title: __('Status'), formatter: Table.api.formatter.status, operate: false},
|
||||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
||||
]
|
||||
]
|
||||
});
|
||||
|
||||
// 为表格绑定事件
|
||||
Table.api.bindevent(table);
|
||||
},
|
||||
select: function () {
|
||||
// 初始化表格参数配置
|
||||
Table.api.init({
|
||||
extend: {
|
||||
index_url: 'wechat/response/index',
|
||||
}
|
||||
});
|
||||
|
||||
var table = $("#table");
|
||||
|
||||
// 初始化表格
|
||||
table.bootstrapTable({
|
||||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||
sortName: 'id',
|
||||
columns: [
|
||||
[
|
||||
{field: 'state', checkbox: true,},
|
||||
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '60px'},
|
||||
{field: 'type', title: __('Type')},
|
||||
{field: 'title', title: __('Title')},
|
||||
{field: 'eventkey', title: __('Event key')},
|
||||
{field: 'status', title: __('Status'), formatter: Table.api.formatter.status, operate: false},
|
||||
{
|
||||
field: 'operate', title: __('Operate'), events: {
|
||||
'click .btn-chooseone': function (e, value, row, index) {
|
||||
Fast.api.close(row);
|
||||
},
|
||||
}, formatter: function () {
|
||||
return '<a href="javascript:;" class="btn btn-danger btn-chooseone btn-xs"><i class="fa fa-check"></i> ' + __('Choose') + '</a>';
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
});
|
||||
|
||||
// 为表格绑定事件
|
||||
Table.api.bindevent(table);
|
||||
},
|
||||
add: function () {
|
||||
Form.api.bindevent($("form[role=form]"), function (data) {
|
||||
Fast.api.close(data);
|
||||
});
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
edit: function () {
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
api: {
|
||||
bindevent: function () {
|
||||
var getAppFileds = function (id) {
|
||||
var app = apps[id];
|
||||
var appConfig = app['config'];
|
||||
var str = '';
|
||||
for (var i in appConfig) {
|
||||
var type = appConfig[i]['type'];
|
||||
var field = appConfig[i]['field'];
|
||||
var caption = appConfig[i]['caption'];
|
||||
var defaultvalue = typeof appConfig[i]['defaultvalue'] != 'undefined' ? appConfig[i]['defaultvalue'] : '';
|
||||
if (type == 'text' || type == 'textarea') {
|
||||
if (type == 'textarea') {
|
||||
str += '<div class="form-group"><label for="content" class="control-label col-xs-12 col-sm-2">' + caption + ':</label><div class="col-xs-12 col-sm-8"><textarea ' + appConfig[i]['extend'] + ' class="form-control" name="row[content][' + field + ']" data-rule="' + appConfig[i]['rule'] + '">' + defaultvalue + '</textarea> </div> </div>';
|
||||
} else {
|
||||
str += '<div class="form-group"><label for="content" class="control-label col-xs-12 col-sm-2">' + caption + ':</label><div class="col-xs-12 col-sm-8"><input ' + appConfig[i]['extend'] + ' class="form-control" name="row[content][' + field + ']" type="text" value="' + defaultvalue + '" data-rule="' + appConfig[i]['rule'] + '"> </div> </div>';
|
||||
}
|
||||
} else {
|
||||
var options = appConfig[i]['options'];
|
||||
var html = '';
|
||||
if (type == 'select') {
|
||||
for (var j in options) {
|
||||
html += '<option value="' + j + '">' + options[j] + '</option>';
|
||||
}
|
||||
html = '<select ' + appConfig[i]['extend'] + ' class="form-control" name="row[content][' + field + ']">' + html + '</select>';
|
||||
} else if (type == 'checkbox') {
|
||||
for (var j in options) {
|
||||
html += '<input type="checkbox" name="row[content][' + field + '][]" value="' + j + '"> <span>' + options[j] + '</span> ';
|
||||
}
|
||||
|
||||
} else if (type == 'radio') {
|
||||
var index = 0;
|
||||
for (var j in options) {
|
||||
html += '<input type="radio" name="row[content][' + field + ']" value="' + j + '" ' + (index == 0 ? 'checked' : '') + '> <span>' + options[j] + '</span> ';
|
||||
index++;
|
||||
}
|
||||
}
|
||||
str += '<div class="form-group"><label for="content" class="control-label col-xs-12 col-sm-2">' + caption + ':</label><div class="col-xs-12 col-sm-8">' + html + ' </div> </div>';
|
||||
}
|
||||
|
||||
}
|
||||
return str;
|
||||
};
|
||||
$(document).on('change', "#app", function () {
|
||||
var app = $(this).val();
|
||||
$("#appfields").html(getAppFileds(app));
|
||||
if (datas.app == app) {
|
||||
delete (datas.app);
|
||||
var form = $("form.form-ajax");
|
||||
$.each(datas, function (i, j) {
|
||||
form.field("row[content][" + i + "]" + ($("input[name='row[content][" + i + "][]']", form).length > 0 ? '[]' : ''), j);
|
||||
});
|
||||
}
|
||||
Form.api.bindevent("#appfields");
|
||||
});
|
||||
$(document).on('change', "input[name='row[type]']", function () {
|
||||
var type = $(this).val();
|
||||
if (type == 'text') {
|
||||
$("#expand").html('<div class="form-group"><label for="content" class="control-label col-xs-12 col-sm-2">文本内容:</label><div class="col-xs-12 col-sm-8"><textarea class="form-control" name="row[content][content]" data-rule="required"></textarea></div></div>');
|
||||
$("form[role='form']").field("row[content][content]", datas.content);
|
||||
} else if (type == 'app') {
|
||||
$("#expand").html('<div class="form-group"><label for="content" class="control-label col-xs-12 col-sm-2">应用:</label><div class="col-xs-12 col-sm-8"><select class="form-control" name="row[content][app]" id="app">' + $("select[name=applist]").html() + '</select></div></div><div id="appfields"><div>');
|
||||
$("form[role='form']").field("row[content][app]", datas.app);
|
||||
$("#app").trigger('change');
|
||||
}
|
||||
});
|
||||
$("input[name='row[type]']:checked").trigger("change");
|
||||
}
|
||||
}
|
||||
};
|
||||
return Controller;
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户