From dc7fb35c94dc4243d4db2fdfd8266c60a80243fd Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期四, 21 九月 2023 10:34:59 +0800
Subject: [PATCH] 修改提示属性 修复vue警告
---
CanadaMes-ui/src/views/home/index.vue | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/CanadaMes-ui/src/views/home/index.vue b/CanadaMes-ui/src/views/home/index.vue
index 82c639a..2b76515 100644
--- a/CanadaMes-ui/src/views/home/index.vue
+++ b/CanadaMes-ui/src/views/home/index.vue
@@ -267,7 +267,7 @@
@click="showcageinfo(item['cage'])"></div>
</div>
<div class="blue gezi"
- :style="{ display: flex, position: absolute, float: left, top: 105 + 'px', left: 1050 + 'px', height: loadglassheight + 'px', width: 5 + 'px' }">
+ :style="{ display: 'flex', position: 'absolute', float: 'left', top: 105 + 'px', left: 1050 + 'px', height: loadglassheight + 'px', width: 5 + 'px' }">
</div>
<div class="blocks-img" :style="{ left: car1 + 'px', top: '16px' }"></div>
<div class="blocks-img" :style="{ left: car2 + 'px', top: '175px' }"></div>
@@ -543,7 +543,7 @@
this.$message.success(this.$t('Operation successful'));
} else {
- this.$message.success(this.$t('There is no glass for this order'));
+ this.$message.error(this.$t('There is no glass for this order'));
}
this.load();
});
@@ -554,7 +554,7 @@
sbumitglassid() {
if (this.form.order != "") {
if (this.form.height < 380 || this.form.width < 390 || this.form.height > 1810 || this.form.width > 2760) {
- this.$message.success(this.$t('The glass size is not within the range'));
+ this.$message.error(this.$t('The glass size is not within the range'));
} else {
if (this.zhuangtai == true) {
Addglassid(this.glassid).then(res => {
@@ -562,17 +562,17 @@
this.$message.success(this.$t('Operation successful'));
this.cancal();
} else if (res.data.message2 == 500) {
- this.$message.success(this.$t('There are currently tasks'));
+ this.$message.error(this.$t('There are currently tasks'));
}
else if (res.data.message2 == 300) {
- this.$message.success(this.$t('There is no such glass'));
+ this.$message.error(this.$t('There is no such glass'));
}
else if (res.data.message2 == 400) {
- this.$message.success(this.$t('There is no such grid'));
+ this.$message.error(this.$t('There is no such grid'));
}
});
} else {
- this.$message.success(this.$t('There are currently tasks'));
+ this.$message.error(this.$t('There are currently tasks'));
}
}
}
@@ -584,7 +584,7 @@
this.form = res.data.form;
this.dialogFormVisible = true;
}else{
- this.$message.success(this.$t('There is no such glass'));
+ this.$message.error(this.$t('There is no such glass'));
}
});
@@ -630,7 +630,7 @@
}
});
} else {
- this.$message.success(this.$t('Password error'));//瀵嗙爜閿欒
+ this.$message.error(this.$t('Password error'));//瀵嗙爜閿欒
}
}).catch(() => {
this.$message({
@@ -662,10 +662,10 @@
}
});
} else {
- this.$message.success(this.$t('No delete allowed'));
+ this.$message.error(this.$t('No delete allowed'));
}
} else {
- this.$message.success(this.$t('Password error'));//瀵嗙爜閿欒
+ this.$message.error(this.$t('Password error'));//瀵嗙爜閿欒
}
}).catch(() => {
@@ -690,14 +690,14 @@
this.$message.success(this.$t('Operation successful'));
}
else if (res.data.message2 == 300) {
- this.$message.success(this.$t('There is no such grid'));
+ this.$message.error(this.$t('There is no such grid'));
}
});
} else {
- this.$message.success(this.$t('No out allowed'));
+ this.$message.error(this.$t('No out allowed'));
}
} else {
- this.$message.success(this.$t('Password error'));//瀵嗙爜閿欒
+ this.$message.error(this.$t('Password error'));//瀵嗙爜閿欒
}
}).catch(() => {
this.$message({
--
Gitblit v1.8.0