diff --git a/.env.production b/.env.production
index 3198248..6f8ae33 100644
--- a/.env.production
+++ b/.env.production
@@ -5,15 +5,15 @@ NODE_ENV = production
VUE_APP_TITLE = 象纬云科
# 测试环境
-# VUE_APP_API_BASEURL = https://dev.api.linkwing.com/api/v1
-# VUE_APP_API_DEV = https://dev.api.linkwing.com/api/v1
-# VUE_APP_WS_URL = wss://dev.api.linkwing.com/wss
-# VUE_APP_WSS_URL = wss://dev.api.linkwing.com/wss
+ VUE_APP_API_BASEURL = https://dev.api.linkwing.com/api/v1
+ VUE_APP_API_DEV = https://dev.api.linkwing.com/api/v1
+ VUE_APP_WS_URL = wss://dev.api.linkwing.com/wss
+ VUE_APP_WSS_URL = wss://dev.api.linkwing.com/wss
# 线上环境
# 接口地址 # WS地址
- VUE_APP_API_BASEURL = https://prod.api.linkwing.com/api/v1
- VUE_APP_API_DEV = https://prod.api.linkwing.com/api/v1
- VUE_APP_WS_URL = wss://prod.api.linkwing.com/wss
- VUE_APP_WSS_URL = wss://prod.api.linkwing.com/wss
+# VUE_APP_API_BASEURL = https://prod.api.linkwing.com/api/v1
+# VUE_APP_API_DEV = https://prod.api.linkwing.com/api/v1
+# VUE_APP_WS_URL = wss://prod.api.linkwing.com/wss
+# VUE_APP_WSS_URL = wss://prod.api.linkwing.com/wss
diff --git a/src/assets/icons/Filter.vue b/src/assets/icons/Filter.vue
new file mode 100644
index 0000000..fffd198
--- /dev/null
+++ b/src/assets/icons/Filter.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/src/assets/icons/index.js b/src/assets/icons/index.js
index 04b91a3..fc3299b 100644
--- a/src/assets/icons/index.js
+++ b/src/assets/icons/index.js
@@ -13,6 +13,7 @@ export { default as UploadExcel } from './UploadExcel.vue'
export { default as Download } from './Download.vue'
export { default as Bell } from './Bell.vue'
export { default as Full } from './Full.vue'
+export { default as Filter } from './Filter.vue'
export { default as Refresh } from './Refresh.vue'
export { default as Search } from './Search.vue'
export { default as Account } from './Account.vue'
diff --git a/src/components/scDatePicker/index.vue b/src/components/scDatePicker/index.vue
index 93741a8..d8e9a27 100644
--- a/src/components/scDatePicker/index.vue
+++ b/src/components/scDatePicker/index.vue
@@ -8,8 +8,8 @@
-
@@ -32,15 +32,21 @@ export default {
handler(val){
if(!val || val.value.length == 0){
this.localDatePicker = [];
+ }else{
+ this.localDatePicker = val.value.map((date,index)=> index===0? this.$TOOL.getStartTime(date):this.$TOOL.getEndTime(date));
}
},
+ immediate:true,
deep:true
}
},
data(){
return{
localDatePicker:[],
- defaultTime:[new Date(2000, 1, 1, 0, 0, 0),new Date(2000, 1, 1, 23, 59, 59)]
+ defaultTime:[
+ new Date(2000, 1, 1, 0, 0, 0),
+ new Date(2000, 1, 1, 23, 59, 59)
+ ]
}
},
mounted() {
@@ -52,9 +58,10 @@ export default {
this.emitActivationDate();
},
emitActivationDate() {
+ let date = this.localDatePicker.map((date,index) => index===0? this.$TOOL.formatStartTime(date):this.$TOOL.formatEndTime(date));
this.$emit('update:activation_date', {
operator: this.activation_date.operator,
- value: this.localDatePicker && this.localDatePicker.length > 0? this.localDatePicker.map(date => this.$TOOL.getTime(date)):[]
+ value: this.localDatePicker && this.localDatePicker.length > 0? date:[]
});
}
}
diff --git a/src/components/scImport/index.vue b/src/components/scImport/index.vue
index 1f76ae5..5fc11fa 100644
--- a/src/components/scImport/index.vue
+++ b/src/components/scImport/index.vue
@@ -58,7 +58,7 @@
取 消
- 确定导入
+ 确定导入
@@ -72,7 +72,8 @@ export default {
props:{
size:{type:String, default:'small'},
title:{type:String, default: ""},
- type:{type:[String, Number], default: ""}
+ type:{type:[String, Number], default: ""},
+ httpDisabled:{type:Boolean, default:false}
},
data(){
return{
diff --git a/src/components/scInput/inputVague.vue b/src/components/scInput/inputVague.vue
index 9d75dab..bb0b92b 100644
--- a/src/components/scInput/inputVague.vue
+++ b/src/components/scInput/inputVague.vue
@@ -21,7 +21,7 @@ export default {
default: ()=>({ operator: "link", value: "" })
},
size:{ type: String, default: "small" },
- placeholder:{type:String, default:"请输入关键字"},
+ placeholder:{type:String, default:"请输入"},
},
watch:{
activation_text:{
@@ -30,6 +30,7 @@ export default {
this.localText = val.value.replace(/%/g, "");
}
},
+ immediate:true,
deep:true
}
},
@@ -49,7 +50,7 @@ export default {
emitActivationText() {
this.$emit('update:activation_text', {
operator: this.activation_text.operator,
- value: this.localText? '%'+this.localText+'%':""
+ value: this.localText ? this.activation_text.operator==="="?this.localText:'%'+this.localText+'%':""
});
this.$emit('fetchData');
}
diff --git a/src/components/scMultipleSelect/index.vue b/src/components/scMultipleSelect/index.vue
index f0ef422..cb2d08d 100644
--- a/src/components/scMultipleSelect/index.vue
+++ b/src/components/scMultipleSelect/index.vue
@@ -30,8 +30,11 @@ export default {
handler(val){
if(!val || val.value.length == 0){
this.localData = [];
+ }else{
+ this.localData = val.value
}
},
+ immediate:true,
deep:true
}
},
@@ -56,6 +59,7 @@ export default {
operator: this.activation_select.operator,
value: this.localData? this.localData:[]
});
+ this.$emit('changeSelectData');
}
}
}
@@ -65,8 +69,8 @@ export default {
.scSelect{
width: 100%;
height: 100%;
- :deep(.el-input){
- height: 28px;
- }
+ :deep(.el-input){
+ height: 28px;
+ }
}
diff --git a/src/components/scTable/columnSetting.vue b/src/components/scTable/columnSetting.vue
index ca42796..dfa323e 100644
--- a/src/components/scTable/columnSetting.vue
+++ b/src/components/scTable/columnSetting.vue
@@ -3,12 +3,15 @@
显示
+ 检索
名称
宽度
+ 类型
排序
固定
+
-
@@ -17,10 +20,21 @@
+
+
+
{{ item.label }}
+
+
+
+
+
+
+
+
@@ -29,6 +43,7 @@
+
重置
@@ -46,7 +61,7 @@
Sortable
},
props: {
- column: { type: Object, default: () => {} }
+ column: { type: [Object,Array], default: () => {} }
},
data() {
return {
@@ -57,8 +72,9 @@
watch:{
usercolumn: {
handler(){
- this.$emit('userChange', this.usercolumn)
+ // this.$emit('userChange', this.usercolumn)
},
+ immediate:false,
deep: true
}
},
@@ -97,18 +113,22 @@
.setting-column__title span {display: inline-block;font-weight: bold;color: #909399;font-size: 12px;}
.setting-column__title span.move_b {width: 30px;margin-right:15px;}
.setting-column__title span.show_b {width: 60px;}
+ .setting-column__title span.search_b {width: 60px;}
.setting-column__title span.name_b {width: 140px;}
.setting-column__title span.width_b {width: 60px;margin-right:15px;}
+ .setting-column__title span.type_b {width: 80px;margin-right:15px;}
.setting-column__title span.sortable_b {width: 60px;}
.setting-column__title span.fixed_b {width: 60px;}
- .setting-column__list {max-height:314px;overflow: auto;}
+ .setting-column__list {max-height:314px;}
.setting-column__list li {list-style: none;margin:10px 0;display: flex;align-items: center;}
.setting-column__list li>span {display: inline-block;font-size: 12px;}
.setting-column__list li span.move_b {width: 30px;margin-right:15px;}
.setting-column__list li span.show_b {width: 60px;}
+ .setting-column__list li span.search_b {width: 60px;}
.setting-column__list li span.name_b {width: 140px;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;cursor:default;}
.setting-column__list li span.width_b {width: 60px;margin-right:15px;}
+ .setting-column__list li span.type_b {width: 80px;margin-right:15px;}
.setting-column__list li span.sortable_b {width: 60px;}
.setting-column__list li span.fixed_b {width: 60px;}
.setting-column__list li.ghost {opacity: 0.3;}
diff --git a/src/components/scTable/components/headerSearch.vue b/src/components/scTable/components/headerSearch.vue
new file mode 100644
index 0000000..5a5224b
--- /dev/null
+++ b/src/components/scTable/components/headerSearch.vue
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+
diff --git a/src/components/scTable/components/typePopover.vue b/src/components/scTable/components/typePopover.vue
new file mode 100644
index 0000000..3468a3c
--- /dev/null
+++ b/src/components/scTable/components/typePopover.vue
@@ -0,0 +1,252 @@
+
+
+
+
+
+ {{ column.label }}
+
+
+
+ {{ column.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
+
diff --git a/src/components/scTable/index.vue b/src/components/scTable/index.vue
index 1fca7e2..44558d9 100644
--- a/src/components/scTable/index.vue
+++ b/src/components/scTable/index.vue
@@ -13,8 +13,13 @@
-
+
+
+
+
+ {{ item.label }}
+
{{scope.row[item.prop]}}
@@ -37,7 +42,7 @@
-
+
@@ -69,11 +74,13 @@