Commit e6ebf7f6 by 前端

Merge branch 'huy_dev_v2.0.0' into 'v2.0.0'

Huy dev v2.0.0

See merge request !5
2 parents 6cec7f55 075b4c28
......@@ -849,8 +849,8 @@
})
// merchantForm.businessScopeCustomize = tempList.join(',')
// params.businessScopeCustomize = tempList.join(',')
if (treeObj) merchantForm.merchantBrand = treeObj.getCheckedNodes(true)
params.merchantBrand = findId(merchantForm.merchantBrand).join(',')
if (treeObj) merchantForm.merchantBrandMain = treeObj.getCheckedNodes(true)
params.merchantBrandMain = findId(merchantForm.merchantBrandMain).join(',')
if (merchantForm.merchantFiles.length) {
params.merchantFiles = JSON.stringify(merchantForm.merchantFiles)
}
......@@ -1284,8 +1284,8 @@
if (res.data && res.data.length) {
$('#carBrandTree').removeClass('hide')
var checkedList = []
if (editLevel == 3 && merchantForm.merchantBrand) {
checkedList = merchantForm.merchantBrand.split(',')
if (editLevel == 3 && merchantForm.merchantBrandMain) {
checkedList = merchantForm.merchantBrandMain.split(',')
$.each(checkedList, function (index, item) {
checkedList[index] = parseInt(item)
})
......@@ -1369,14 +1369,9 @@
var optionEl = $(
'<input type="checkbox" class="businessType" name="businessType[' + item.dictValue + ']" title=' + item.dictLabel + ' value="' + item.dictValue + '" lay-skin="primary">'
)
// 修改-回显
if (editLevel == 3) {
for (var i = 0; i <= checkedList.length; i++) {
if (checkedList[i] == item.dictValue) {
optionEl.attr('checked', true)
break
}
}
if (item.dictValue <= 6) {
optionEl.attr('checked', true)
optionEl.attr('disabled', true)
}
el.append(optionEl)
form.render('checkbox')
......
......@@ -855,8 +855,8 @@
})
// merchantForm.businessScopeCustomize = tempList.join(',')
// params.businessScopeCustomize = tempList.join(',')
if (treeObj) merchantForm.merchantBrand = treeObj.getCheckedNodes(true)
params.merchantBrand = findId(merchantForm.merchantBrand).join(',')
if (treeObj) merchantForm.merchantBrandMain = treeObj.getCheckedNodes(true)
params.merchantBrandMain = findId(merchantForm.merchantBrandMain).join(',')
if (merchantForm.merchantFiles.length) {
params.merchantFiles = JSON.stringify(merchantForm.merchantFiles)
}
......@@ -1293,8 +1293,8 @@
if (res.data && res.data.length) {
$('#carBrandTree').removeClass('hide')
var checkedList = []
if (editLevel == 3 && merchantForm.merchantBrand) {
checkedList = merchantForm.merchantBrand.split(',')
if (editLevel == 3 && merchantForm.merchantBrandMain) {
checkedList = merchantForm.merchantBrandMain.split(',')
$.each(checkedList, function (index, item) {
checkedList[index] = parseInt(item)
})
......@@ -1378,14 +1378,9 @@
var optionEl = $(
'<input type="checkbox" class="businessType" name="businessType[' + item.dictValue + ']" title=' + item.dictLabel + ' value="' + item.dictValue + '" lay-skin="primary">'
)
// 修改-回显
if (editLevel == 3) {
for (var i = 0; i <= checkedList.length; i++) {
if (checkedList[i] == item.dictValue) {
optionEl.attr('checked', true)
break
}
}
if (item.dictValue <= 6) {
optionEl.attr('checked', true)
optionEl.attr('disabled', true)
}
el.append(optionEl)
form.render('checkbox')
......
......@@ -840,8 +840,8 @@
})
// merchantForm.businessScopeCustomize = tempList.join(',')
// params.businessScopeCustomize = tempList.join(',')
if (treeObj) merchantForm.merchantBrand = treeObj.getCheckedNodes(true)
params.merchantBrand = findId(merchantForm.merchantBrand).join(',')
if (treeObj) merchantForm.merchantBrandMain = treeObj.getCheckedNodes(true)
params.merchantBrandMain = findId(merchantForm.merchantBrandMain).join(',')
if (merchantForm.merchantFiles.length) {
params.merchantFiles = JSON.stringify(merchantForm.merchantFiles)
}
......@@ -1294,8 +1294,8 @@
if (res.data && res.data.length) {
$('#carBrandTree').removeClass('hide')
var checkedList = []
if (editLevel == 3 && merchantForm.merchantBrand) {
checkedList = merchantForm.merchantBrand.split(',')
if (editLevel == 3 && merchantForm.merchantBrandMain) {
checkedList = merchantForm.merchantBrandMain.split(',')
$.each(checkedList, function (index, item) {
checkedList[index] = parseInt(item)
})
......@@ -1388,6 +1388,9 @@
}
}
}
if (item.dictValue <= 6) {
optionEl.attr('disabled', true)
}
el.append(optionEl)
form.render('checkbox')
})
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-07-15 15:46:53
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-03-12 15:57:00
* @LastEditTime: 2022-03-14 18:25:47
* @FilePath: \account\js\load.js
*/
; (function load() {
......@@ -92,7 +92,7 @@ function loadConfig() {
var ajax = layui.$.ajax
ajax({
// url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/glsx-oss-account-config',
url: 'http://192.168.3.171:7300/mock/5be17454f31545347559d499/config/glsx-oss-account-config',
url: 'http://oss-config.dev.glsx.com.cn/mock/5be17454f31545347559d499/config/glsx-oss-account-config',
async: false,
success: function (res) {
store.setEx('external', res.external, 10 * 60 * 1000)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!