解决大小写的问题

This commit is contained in:
wuxw 2024-01-15 15:16:42 +08:00
parent 0d3fcc5d22
commit 5448c1f0df
2 changed files with 10 additions and 9 deletions

View File

@ -23,7 +23,7 @@
methods: {
addDataPrivilegeValidate() {
return vc.validate.validate({
addDataPrivilegeInfo: vc.component.addDataPrivilegeInfo
addDataPrivilegeInfo: $that.addDataPrivilegeInfo
}, {
'addDataPrivilegeInfo.name': [
{
@ -76,20 +76,20 @@
});
},
saveDataPrivilegeInfo: function () {
if (!vc.component.addDataPrivilegeValidate()) {
if (!$that.addDataPrivilegeValidate()) {
vc.toast(vc.validate.errInfo);
return;
}
vc.component.addDataPrivilegeInfo.communityId = vc.getCurrentCommunity().communityId;
$that.addDataPrivilegeInfo.communityId = vc.getCurrentCommunity().communityId;
//不提交数据将数据 回调给侦听处理
if (vc.notNull($props.callBackListener)) {
vc.emit($props.callBackListener, $props.callBackFunction, vc.component.addDataPrivilegeInfo);
vc.emit($props.callBackListener, $props.callBackFunction, $that.addDataPrivilegeInfo);
$('#addDataPrivilegeModel').modal('hide');
return;
}
vc.http.apiPost(
'/dataPrivilege.saveDataPrivilege',
JSON.stringify(vc.component.addDataPrivilegeInfo), {
JSON.stringify($that.addDataPrivilegeInfo), {
emulateJSON: true
},
function (json, res) {
@ -98,7 +98,7 @@
if (_json.code == 0) {
//关闭model
$('#addDataPrivilegeModel').modal('hide');
vc.component.clearAddDataPrivilegeInfo();
$that.clearAddDataPrivilegeInfo();
vc.emit('dataPrivilegeDiv', '_loadDataPrivilege', {});
vc.toast("添加成功");
return;
@ -112,10 +112,11 @@
});
},
clearAddDataPrivilegeInfo: function () {
vc.component.addDataPrivilegeInfo = {
let _communityId = $that.addDataPrivilegeInfo.communityId;
$that.addDataPrivilegeInfo = {
name: '',
code: '',
communityId: '',
communityId: _communityId,
remark: ''
};
}

View File

@ -39,7 +39,7 @@
<hr class="layui-bg-gray">
<div class="layui-footer text-white">
<!-- 底部固定区域 -->
&copy;2020-2023
&copy;2020-2024
<span class="java110-company-team"></span>
</div>