Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliang-wt committed Jan 13, 2023
2 parents fc50121 + 7ed689e commit 3ba1e85
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## v6.x.x

##6.3.13(2023-1-13)
##6.3.14(2023-1-13)
* **修改:** 修复多租户情况下上传和导入可能出现的异常
* **修改:** 修复Layui模式下Tree和Combobox的bug
* **修改:** 修复OSS上传图片没有自动指定ContentType的问题
Expand Down Expand Up @@ -141,7 +141,7 @@

## v5.x.x

##5.10.13(2023-1-13)
##5.10.14(2023-1-13)
* **修改:** 修复多租户情况下上传和导入可能出现的异常
* **修改:** 修复Layui模式下Tree和Combobox的bug
* **修改:** 修复OSS上传图片没有自动指定ContentType的问题
Expand Down
9 changes: 7 additions & 2 deletions src/WalkingTec.Mvvm.Mvc/framework_layui.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ window.ff = {
}
},

ChainChange: function (url, self) {
ChainChange: function (url, self, usedefaultvalue) {
var form = layui.form;
var linkto = self.attributes["wtm-linkto"];
if (linkto == undefined) {
Expand Down Expand Up @@ -662,7 +662,12 @@ window.ff = {
}

if (controltype === "combo") {
window[comboid].update({ data: ff.getComboItems(data.Data) });
var df = [];
if (usedefaultvalue == true) {
df = eval(comboid + "defaultvalues");
debugger;
}
window[comboid].update({ data: ff.getComboItems(data.Data,df) });
}
if (controltype === "checkbox") {
for (i = 0; i < data.Data.length; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,18 +313,19 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
}},
data: {JsonSerializer.Serialize(GetLayuiTree(listItems,selectVal))}
}});
{Id}defaultvalues = {JsonSerializer.Serialize(selectVal)};
{((LinkField != null || string.IsNullOrEmpty(LinkId) == false) ? @$"
if (eval(""{(string.IsNullOrEmpty(ChangeFunc) ? "1==1" : FormatFuncName(ChangeFunc))}"") != false) {{
var {Id}u = ""{(TriggerUrl ?? "")}"";
if ({Id}u.indexOf(""?"") == -1) {{
{Id}u += ""?t="" + new Date().getTime();
}}
var idata = {JsonSerializer.Serialize(selectVal)};
for (var i = 0; i < idata.length; i++) {{
{Id}u += ""&id="" + idata[i];
var {Id}data = {JsonSerializer.Serialize(selectVal)};
for (var i = 0; i < {Id}data.length; i++) {{
{Id}u += ""&id="" + {Id}data[i];
}};
setTimeout(function(){{
ff.ChainChange({Id}u, $('#{Id}')[0]);
ff.ChainChange({Id}u, $('#{Id}')[0], true);
}},100);
}}" : FormatFuncName(ChangeFunc))}
</script>
Expand Down

0 comments on commit 3ba1e85

Please sign in to comment.