|
@@ -2683,6 +2683,7 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="maintainConfirm(maintainRef)"
|
|
@click="maintainConfirm(maintainRef)"
|
|
|
style="margin-right: 20px"
|
|
style="margin-right: 20px"
|
|
|
|
|
+ :loading="maintainLoading"
|
|
|
>
|
|
>
|
|
|
确定
|
|
确定
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -3321,6 +3322,7 @@ const lockRoomRules = reactive({
|
|
|
// 维修弹窗
|
|
// 维修弹窗
|
|
|
const maintainVisible = ref(false);
|
|
const maintainVisible = ref(false);
|
|
|
const maintainRef = ref();
|
|
const maintainRef = ref();
|
|
|
|
|
+const maintainLoading=ref(false)
|
|
|
const maintainRuleForm = reactive({
|
|
const maintainRuleForm = reactive({
|
|
|
reason: "",
|
|
reason: "",
|
|
|
// time: [dayjs().format('YYYY-MM-DD HH:mm:ss'),""],
|
|
// time: [dayjs().format('YYYY-MM-DD HH:mm:ss'),""],
|
|
@@ -5930,6 +5932,7 @@ const cancelMaintain = () => {
|
|
|
maintainVisible.value = false;
|
|
maintainVisible.value = false;
|
|
|
};
|
|
};
|
|
|
const maintainConfirm = lodash.throttle(async (formEl) => {
|
|
const maintainConfirm = lodash.throttle(async (formEl) => {
|
|
|
|
|
+ maintainLoading.value=true;
|
|
|
if (!formEl) return;
|
|
if (!formEl) return;
|
|
|
await formEl.validate(async (valid, fields) => {
|
|
await formEl.validate(async (valid, fields) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
@@ -5953,7 +5956,9 @@ const maintainConfirm = lodash.throttle(async (formEl) => {
|
|
|
getList();
|
|
getList();
|
|
|
maintainVisible.value = false;
|
|
maintainVisible.value = false;
|
|
|
maintainRef.value.resetFields();
|
|
maintainRef.value.resetFields();
|
|
|
|
|
+ maintainLoading.value=false;
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ maintainLoading.value=false;
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
type: "error",
|
|
type: "error",
|
|
|
showClose: true,
|
|
showClose: true,
|
|
@@ -5967,7 +5972,8 @@ const maintainConfirm = lodash.throttle(async (formEl) => {
|
|
|
});
|
|
});
|
|
|
}, 1500);
|
|
}, 1500);
|
|
|
// 取消维修功能
|
|
// 取消维修功能
|
|
|
-const maintainCancel = async (row) => {
|
|
|
|
|
|
|
+const maintainCancel =lodash.throttle( async (row) => {
|
|
|
|
|
+ roomLoading.value = true; // 加载页面
|
|
|
let data = {
|
|
let data = {
|
|
|
houseNumberId: row.houseNumberId,
|
|
houseNumberId: row.houseNumberId,
|
|
|
permissionSettingId: sessionStorage.getItem("permissionSettingId"),
|
|
permissionSettingId: sessionStorage.getItem("permissionSettingId"),
|
|
@@ -5984,8 +5990,9 @@ const maintainCancel = async (row) => {
|
|
|
console.log(res, "取消维修");
|
|
console.log(res, "取消维修");
|
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
getList();
|
|
getList();
|
|
|
- maintainVisible.value = false;
|
|
|
|
|
maintainRef.value.resetFields();
|
|
maintainRef.value.resetFields();
|
|
|
|
|
+ maintainVisible.value = false;
|
|
|
|
|
+ roomLoading.value = false; // 加载页面
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
type: "success",
|
|
type: "success",
|
|
|
showClose: true,
|
|
showClose: true,
|
|
@@ -6000,7 +6007,7 @@ const maintainCancel = async (row) => {
|
|
|
center: true,
|
|
center: true,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
-};
|
|
|
|
|
|
|
+},5000);
|
|
|
|
|
|
|
|
//导出功能
|
|
//导出功能
|
|
|
const importExcel = lodash.debounce(async () => {
|
|
const importExcel = lodash.debounce(async () => {
|