From 377702dc12e193e6c6c1c8630c80e458512a9eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Wed, 18 Dec 2024 16:25:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A1=A8=E5=A4=B4=E6=A3=80?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 16 +- src/assets/icons/Filter.vue | 13 + src/assets/icons/index.js | 1 + src/components/scDatePicker/index.vue | 15 +- src/components/scImport/index.vue | 5 +- src/components/scInput/inputVague.vue | 5 +- src/components/scMultipleSelect/index.vue | 10 +- src/components/scTable/columnSetting.vue | 26 +- .../scTable/components/headerSearch.vue | 162 +++++++++++ .../scTable/components/typePopover.vue | 252 ++++++++++++++++++ src/components/scTable/index.vue | 34 ++- src/config/table.js | 6 +- src/layout/components/userbar.vue | 2 +- src/scui.js | 2 + src/style/app.scss | 9 + src/style/fix.scss | 1 + src/utils/tool.js | 31 ++- src/views/cost/feeRecords/index.vue | 5 +- src/views/order/inventoryList/index.vue | 5 +- src/views/order/orderList/index.vue | 155 ++++++----- src/views/serveView/components/commonPage.vue | 6 +- src/views/setting/advanced/setup/material.vue | 5 +- src/views/setting/bom/index.vue | 5 +- src/views/setting/company/index.vue | 5 +- .../setting/partsMag/components/info.vue | 5 +- .../setting/partsMag/components/library.vue | 5 +- src/views/setting/user/index.vue | 5 +- 27 files changed, 680 insertions(+), 111 deletions(-) create mode 100644 src/assets/icons/Filter.vue create mode 100644 src/components/scTable/components/headerSearch.vue create mode 100644 src/components/scTable/components/typePopover.vue 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 @@ @@ -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 @@
显示 + 检索 名称 宽度 + 类型 排序 固定
+ +
重置 @@ -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 @@ + + + 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 @@