diff --git a/.env.development b/.env.development
index 3c6a2d5..c76ff68 100644
--- a/.env.development
+++ b/.env.development
@@ -8,6 +8,8 @@ ENV = 'development'
VUE_APP_BASE_API_HTML = "http://122.193.93.182:19002"
VUE_APP_BASE_API = 'http://122.193.93.182:19002'
+VUE_APP_BASE_API_SB = '/outApiData'
+
# 测试/开发环境
# VUE_APP_BASE_API_HTML = "http://192.168.0.120:19002"
# VUE_APP_BASE_API = "http://192.168.0.120:19002"
diff --git a/src/assets/styles/isTable.scss b/src/assets/styles/isTable.scss
index 3337040..618651a 100644
--- a/src/assets/styles/isTable.scss
+++ b/src/assets/styles/isTable.scss
@@ -35,7 +35,7 @@
.option-list {
position: relative;
- top: 2px;
+ top: 1px;
left: 0;
display: flex;
align-items: center;
diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue
index 6b5b230..5f62198 100644
--- a/src/components/DictTag/index.vue
+++ b/src/components/DictTag/index.vue
@@ -3,11 +3,14 @@
{{ item.label + ' ' }}{{ item.label + " " }}
- {{ item.label + ' ' }}
+ {{ item.label + " " }}
@@ -43,43 +46,55 @@ export default {
},
separator: {
type: String,
- default: ","
- }
+ default: ",",
+ },
},
data() {
return {
unmatchArray: [], // 记录未匹配的项
- }
+ };
},
computed: {
values() {
- if (this.value === null || typeof this.value === 'undefined' || this.value === '') return []
- return Array.isArray(this.value) ? this.value.map(item => '' + item) : String(this.value).split(this.separator)
+ if (
+ this.value === null ||
+ typeof this.value === "undefined" ||
+ this.value === ""
+ )
+ return [];
+ return Array.isArray(this.value)
+ ? this.value.map((item) => "" + item)
+ : String(this.value).split(this.separator);
},
unmatch() {
- this.unmatchArray = []
+ this.unmatchArray = [];
// 没有value不显示
- if (this.value === null || typeof this.value === 'undefined' || this.value === '' || this.options.length === 0) return false
+ if (
+ this.value === null ||
+ typeof this.value === "undefined" ||
+ this.value === "" ||
+ this.options.length === 0
+ )
+ return false;
// 传入值为数组
- let unmatch = false // 添加一个标志来判断是否有未匹配项
- this.values.forEach(item => {
- if (!this.options.some(v => v.value === item)) {
- this.unmatchArray.push(item)
- unmatch = true // 如果有未匹配项,将标志设置为true
+ let unmatch = false; // 添加一个标志来判断是否有未匹配项
+ this.values.forEach((item) => {
+ if (!this.options.some((v) => v.value === item)) {
+ this.unmatchArray.push(item);
+ unmatch = true; // 如果有未匹配项,将标志设置为true
}
- })
- return unmatch // 返回标志的值
+ });
+ return unmatch; // 返回标志的值
},
-
},
filters: {
handleArray(array) {
- if (array.length === 0) return '';
+ if (array.length === 0) return "";
return array.reduce((pre, cur) => {
- return pre + ' ' + cur;
- })
+ return pre + " " + cur;
+ });
},
- }
+ },
};