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