拼多多版权限管理 指定类目上传 ai图片上传权限管理
This commit is contained in:
1 parent
58798805ed
commit
ce23b0a49a
28 files changed
+1265
-483
No files matched your search
@@ -73,6 +73,14 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
data.Append("&sa_level=2");
|
||||
else
|
||||
data.Append("&sa_level=0");
|
||||
|
||||
string authority = "";
|
||||
if (chkAiImage.Checked)
|
||||
authority += "Ai传图,";
|
||||
if (chkSetCats.Checked)
|
||||
authority += "类目指定,";
|
||||
data.Append("&authority=" + authority.Trim(','));
|
||||
|
||||
string url = BaseClass.BuildObjString("user/add_user");
|
||||
if (btnOpUser.Text != "添加用户" && !string.IsNullOrEmpty(Uid))
|
||||
{
|
||||
@@ -135,6 +143,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
user.shop_count = BaseRegex.GetIntJson(ref oStr, "shop_count");
|
||||
user.company_name = BaseRegex.GetStringJson(ref oStr, "company_name");
|
||||
user.sa_level = BaseRegex.GetIntJson(ref oStr, "sa_level");
|
||||
user.authority = BaseRegex.GetStringJson(ref oStr, "authority");
|
||||
|
||||
AllUsers.Add(user);
|
||||
dgvUser.Rows.Add(
|
||||
@@ -147,6 +156,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
user.shop_count,
|
||||
user.sa_level,
|
||||
user.sa_level_name,
|
||||
user.authority,
|
||||
"添加店铺",
|
||||
"编辑",
|
||||
"删除");
|
||||
@@ -189,6 +199,7 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
string groupName = dgvUser.Rows[e.RowIndex].Cells["groupNameColumn"].Value.ToString();
|
||||
string company = dgvUser.Rows[e.RowIndex].Cells["colCompany"].Value.ToString();
|
||||
string saLevelName = dgvUser.Rows[e.RowIndex].Cells["colSaLevelName"].Value.ToString();
|
||||
string authority = dgvUser.Rows[e.RowIndex].Cells["colAuthority"].Value.ToString();
|
||||
if (columname == "编辑")
|
||||
{
|
||||
Uid = uid;
|
||||
@@ -201,6 +212,9 @@ namespace TemuKJD.PDDForms.AdminForms
|
||||
btnOpUser.Text = "保存用户";
|
||||
btnCancel.Visible = true;
|
||||
cmbSaLevel.Text = saLevelName;
|
||||
|
||||
chkAiImage.Checked = authority.Contains(chkAiImage.Text);
|
||||
chkSetCats.Checked = authority.Contains(chkSetCats.Text);
|
||||
}
|
||||
if (columname == "删除")
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user