diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index c394706..c7a76d1 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -539,6 +539,17 @@ export default {
amount: [
{ required: true, message: "提现金额不能为空", trigger: "blur" },
{ pattern: /^\d+$/, message: '提现金额必须为正整数', trigger: 'blur' },
+ // 提现金额不能小于 1
+ {
+ validator: (rule, value, callback) => {
+ if (value < 1) {
+ callback(new Error('提现金额不能小于1'));
+ } else {
+ callback();
+ }
+ },
+ trigger: 'blur',
+ },
// 不能超过 balance 值
{
validator: (rule, value, callback) => {
diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue
index f1a8fd9..c13f689 100644
--- a/src/views/system/device/index.vue
+++ b/src/views/system/device/index.vue
@@ -588,7 +588,7 @@
-
+
-
+
{{ versionDescription }}
@@ -1033,10 +1033,6 @@ export default {
window.removeEventListener("scroll", this.handleScroll, true);
},
created() {
- listHardwareVersionExcludeParent(this.queryParams).then((response) => {
- this.hardwareVersionOptions = response.data;
- this.loading2 = false;
- });
console.log("当前用户信息:", this.$store.state.user.name);
const sn = this.$route.params && this.$route.params.sn;
const vehicleNum = this.$route.params && this.$route.params.vehicleNum;
@@ -1063,6 +1059,10 @@ export default {
this.userName = this.$store.state.user.name;
this.getList();
if (this.userName === "admin") {
+ listHardwareVersionExcludeParent(this.queryParams).then((response) => {
+ this.hardwareVersionOptions = response.data;
+ this.loading2 = false;
+ });
listDept2({ status: "0", pageNum: 1, pageSize: 999 }).then((response) => {
this.deptOptions = response.rows;
});
@@ -1088,7 +1088,7 @@ export default {
}
},
"form.hardwareVersionId": function (hardwareVersionId) {
- if (hardwareVersionId) {
+ if (hardwareVersionId && this.username == 'admin') {
this.selectHardwareVersion(hardwareVersionId);
}
},
diff --git a/src/views/system/withdraw/index.vue b/src/views/system/withdraw/index.vue
index 36ce699..95645f2 100644
--- a/src/views/system/withdraw/index.vue
+++ b/src/views/system/withdraw/index.vue
@@ -295,6 +295,17 @@ export default {
amount: [
{ required: true, message: "提现金额不能为空", trigger: "blur" },
{ pattern: /^\d+$/, message: '提现金额必须为正整数', trigger: 'blur' },
+ // 提现金额不能小于 1
+ {
+ validator: (rule, value, callback) => {
+ if (value < 1) {
+ callback(new Error('提现金额不能小于1'));
+ } else {
+ callback();
+ }
+ },
+ trigger: 'blur',
+ },
// 不能超过 balance 值
{
validator: (rule, value, callback) => {
diff --git a/src/views/system/withdrawAudit/index.vue b/src/views/system/withdrawAudit/index.vue
index 248b3fe..9a929dd 100644
--- a/src/views/system/withdrawAudit/index.vue
+++ b/src/views/system/withdrawAudit/index.vue
@@ -311,6 +311,17 @@ export default {
amount: [
{ required: true, message: "提现金额不能为空", trigger: "blur" },
{ pattern: /^\d+$/, message: '提现金额必须为正整数', trigger: 'blur' },
+ // 提现金额不能小于 1
+ {
+ validator: (rule, value, callback) => {
+ if (value < 1) {
+ callback(new Error('提现金额不能小于1'));
+ } else {
+ callback();
+ }
+ },
+ trigger: 'blur',
+ },
// 不能超过 balance 值
{
validator: (rule, value, callback) => {