From 884d1457cebbda20ad2539550062c408a58709be Mon Sep 17 00:00:00 2001
From: jinlin <721705285@qq.com>
Date: 星期五, 27 二月 2026 16:19:35 +0800
Subject: [PATCH] 修改
---
web/src/components/major-selector/src/major-selector.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/web/src/components/major-selector/src/major-selector.vue b/web/src/components/major-selector/src/major-selector.vue
index 56313ff..17f49bb 100644
--- a/web/src/components/major-selector/src/major-selector.vue
+++ b/web/src/components/major-selector/src/major-selector.vue
@@ -11,15 +11,15 @@
value: [String, Array],
modelId: {
type: String,
- default: ""
+ default: ''
},
shipId: {
type: String,
- default: ""
+ default: ''
},
projectId: {
type: String,
- default: ""
+ default: ''
},
multiple: {
type: Boolean,
@@ -37,12 +37,12 @@
},
data() {
return {
- url:'/sys/major/getList?modelId='+this.modelId+'&shipId='+this.shipId+'&projectId='+this.projectId,
+ url: '/sys/major/getList?modelId=' + this.modelId + '&shipId=' + this.shipId + '&projectId=' + this.projectId,
selectValue: this.value || ''
}
},
watch: {
- 'selectValue'(){
+ 'selectValue'() {
if (this.multiple) {
this.$emit('input', (this.selectValue || []).join(','))
} else {
@@ -53,7 +53,7 @@
this.selectValue = val
},
'projectId'() {
- this.url = '/sys/major/getList?modelId='+this.modelId+'&shipId='+this.shipId+'&projectId='+this.projectId
+ this.url = '/sys/major/getList?modelId=' + this.modelId + '&shipId=' + this.shipId + '&projectId=' + this.projectId
}
},
--
Gitblit v1.9.1