|
|
@@ -7,10 +7,30 @@ function actionRenderer(e) {
|
|
|
html += getGridBtn("edit", "修改", "commandFn('edit','" + id + "')");
|
|
|
html += getGridBtn("remove", "删除", "commandFn('del','" + id + "','" + record.Code + "')");
|
|
|
html += getGridBtn("lock", "密码", "edit_pwd(" + id + ")");
|
|
|
+ html += getGridBtn("cut", "复制技能", "copyDesignFn(" + id + ")");
|
|
|
//html += getGridBtn("info", "APP", "addWx('" + id + "','" + record.Code + "','" + record.PassWord + "','" + record.OrgName+"')");
|
|
|
return html;
|
|
|
}
|
|
|
|
|
|
+function copyDesignFn(id) {
|
|
|
+ mini.prompt("填写复制人姓名", '提示', function (option, value) {
|
|
|
+ if (option == "ok") {
|
|
|
+ if (value == "") {
|
|
|
+ mini.showTips({
|
|
|
+ content: "请填写名字",
|
|
|
+ state: "danger",
|
|
|
+ x: "Center",
|
|
|
+ y: "Center",
|
|
|
+ timeout: 1000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ postAjax("copy_account_design", { name: value, currentId: id }, function (data) {
|
|
|
+ resultShow(data, "grid.reload()");
|
|
|
+ });
|
|
|
+
|
|
|
+ })
|
|
|
+}
|
|
|
function addWx(code, pwd, oname) {
|
|
|
if (!confirm("确认开通/关闭APP账号?")) return;
|
|
|
postAjax("ins_erpuser", "code=" + code + "&pwd=" + pwd + "&oname=" + oname, function (data) {
|
|
|
@@ -55,7 +75,7 @@ function commandFn(cmd, id, code) {
|
|
|
{
|
|
|
mini.get("distribute_win").show();
|
|
|
$("#distribute_id").val(id)
|
|
|
-
|
|
|
+
|
|
|
break;
|
|
|
}
|
|
|
}
|