Commit 17b78ff3 by 前端

修复bug

1 parent a9b8992e
......@@ -913,9 +913,20 @@ form.on('checkbox', function(data) {
selectedValues.push($(this).val());
}
});
// console.log("选中的账户类型值: ", selectedValues);
if (selectedValues.length === 0) {
layer.msg('账户类型不能为空', { icon: 5, anim: 6 });
$('#accountTypeElRole .accounttypeId').each(function() {
if (this.value == _currentaccountType) {
this.checked = true
$(this).next('div').addClass('layui-form-checked');
}
});
return
}
console.log("选中的账户类型值: ", selectedValues);
_currentaccountType = selectedValues
_currentaccountType =selectedValues
// !selectedValues? _currentaccountType :selectedValues
// 检查触发事件的元素是否不是以"project"为前缀的id的元素的一部分
if (!$(data.elem).closest('[id^=project]').length) {
......@@ -1332,7 +1343,6 @@ form.on('select(accountLevelFilter)', function(data) {
}
})
params.merchantBrandListJson = JSON.stringify(merchantForm.merchantBrandList)
console.log( params.merchantBrandListJson)
}
if (merchantForm.merchantFiles.length) {
params.merchantFiles = JSON.stringify(merchantForm.merchantFiles)
......@@ -1358,7 +1368,7 @@ form.on('select(accountLevelFilter)', function(data) {
params.status = 1
}
// verifyMerchantName(params.merchantName,params)
verifyMerchantName(params.merchantName,params)
// request(params, function (res) {
// if (res.code == '0') {
// layer.msg('操作成功', {
......@@ -2034,7 +2044,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
// merchantId,
function renderAccountTypes(types, currentMerchantType,subAccountTypeList,accountLevel) {
console.log(types, currentMerchantType,subAccountTypeList,accountLevel)
if(!subAccountTypeList) subAccountTypeList = ''
if(!types) types = [];
var el = $('#accountTypeElRole');
......@@ -2054,7 +2063,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
types.push(i);
}
}
console.log(types)
types.forEach(function(type) {
var typeLabel = typeMapping[type];
var isChecked = currentMerchantType.includes(type);
......@@ -2589,6 +2597,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
var obj = { title: item.accounttypeName, value: item.accounttypeId }
active.tabAdd(obj, productData.products)
if (productData.products && productData.products.length != 0) {
// console.log('进入页面',productData)
productData.products.forEach(j => {
var products = item.products.find(n => n.productId == j.productId)
if (products) {
......@@ -2807,6 +2816,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
merchantNoTarget: superiorMerchant[0]?.value,
accountType: accountTypes.join(',')
}
// console.log(params.accountTypes)
accountLevel == '1' && delete params.merchantNoTarget
params.method = 'merchants.api.merchant.updatePermissions'
// 草稿
......@@ -2816,7 +2826,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
params.status = merchantForm.status
}
request(params, function (res) {
console.log(res)
if (res.code == '0') {
layer.msg('操作成功', {
icon: 1
......
......@@ -800,6 +800,7 @@
request(
params,
function (res) {
console.log(res)
// 关闭loading效果
layer.close(loadingIndex);
if(res.code == 0){
......@@ -815,6 +816,7 @@
}
}
)
layer.close(loadingIndex);
$(layero).find('#fileInput').on('change', function(){
var originalTemplateUrl = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/批量创建商户导入模版.xlsx';
updateTemplateLink(originalTemplateUrl, '下载模板', false);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!