开屏页
@@ -126,6 +153,7 @@ import { getResourcePage, delResource, saveResource, effective } from "@/api/res
import { getResourceRuleList } from '@/api/resource/resourceRule';
import { uploadFile } from '@/api/common/upload';
import { hideLoading, showLoading } from "@/utils/maintainer";
+import { getPartitionInfoList } from '@/api/partition/partitionInfo';
export default {
name: "SplashView",
@@ -167,15 +195,21 @@ export default {
startTime: null,
endTime: null,
seqNo: 0,
- ruleValue: {}
+ ruleValue: {},
+ partitionId: null,
},
imageUrl: '',
+ partitionInfos: [],
+ searchValues: {
+ partitionId: null,
+ },
};
},
setup() {
return {};
},
created() {
+ this.initPartition();
this.getRule();
this.getData();
},
@@ -229,6 +263,7 @@ export default {
getData() {
getResourcePage({
type: 2,
+ partitionId: this.searchValues.partitionId,
page: this.currentPage,
pageSize: this.pageSize,
}).then(res => {
@@ -263,6 +298,7 @@ export default {
let rule = this.rules[i];
this.resource.ruleValue[rule.ruleCode] = '';
}
+ this.partitionId = null;
this.editDialog = true;
},
editClick(row) {
@@ -285,6 +321,7 @@ export default {
}
this.resource.ruleValue[ruleCode] = rule;
}
+ this.resource.partitionId = row.partitionId;
this.editDialog = true;
},
editDialogClick() {
@@ -321,7 +358,8 @@ export default {
endTime: this.resource.endTime,
seqNo: this.resource.seqNo,
isEnabled: isEnabled,
- ruleValue: JSON.stringify(this.resource.ruleValue)
+ ruleValue: JSON.stringify(this.resource.ruleValue),
+ partitionId: this.resource.partitionId,
}).then(res => {
this.getData();
this.editDialog = false;
@@ -342,6 +380,18 @@ export default {
handleCurrentChange(val) {
this.getData();
},
+ initPartition() {
+ getPartitionInfoList().then(res => {
+ this.partitionInfos = res.data;
+ });
+ },
+ getPartitionInfo(partitionId) {
+ let partitions = this.partitionInfos.filter(v => v.id == partitionId);
+ if (!partitions || partitions.length <= 0) {
+ return '';
+ }
+ return partitions[0].desc;
+ },
},
};
@@ -351,5 +401,9 @@ export default {
padding-top: 20px;
background: #ecf0f5;
border-top: 3px solid #d2d6de;
+ .inquire {
+ display: flex;
+ justify-content: space-between;
+ }
}
diff --git a/src/views/users/GiftManageView.vue b/src/views/users/GiftManageView.vue
index dddcff3..9aec726 100644
--- a/src/views/users/GiftManageView.vue
+++ b/src/views/users/GiftManageView.vue
@@ -943,9 +943,9 @@ export default {
$("#isSendMsg").val('');
$("#consumeType").removeAttr("disabled");
$('#roomExcludeId').val('');
- $("input:radio[name='partitionFlag']")[0].checked = false;
- $("input:radio[name='partitionFlag']")[1].checked = false;
- $("input:radio[name='partitionFlag']")[2].checked = false;
+ $('input[name="partitionFlag"]').each(function() {
+ $(this).checked = false;
+ });
window.selectConsumeChange($("#consumeType"));
$('#roomExcludeId').val('');
});
diff --git a/src/views/users/UserCheckAdminView.vue b/src/views/users/UserCheckAdminView.vue
index 7b74f9d..0aa0c9c 100644
--- a/src/views/users/UserCheckAdminView.vue
+++ b/src/views/users/UserCheckAdminView.vue
@@ -38,6 +38,7 @@