vsyswin-ui 0.2.42 → 0.2.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/lib/vsyswin-ui.common.js +49248 -49897
- package/lib/vsyswin-ui.common.js.map +1 -1
- package/lib/vsyswin-ui.umd.js +49248 -49897
- package/lib/vsyswin-ui.umd.js.map +1 -1
- package/lib/vsyswin-ui.umd.min.js +181 -181
- package/lib/vsyswin-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,10 +41,12 @@ Vue.use(vSyswinUI)
|
|
|
41
41
|
Vue.config.productionTip = false
|
|
42
42
|
|
|
43
43
|
new Vue({
|
|
44
|
-
render: h => h(App)
|
|
44
|
+
render: (h) => h(App)
|
|
45
45
|
}).$mount('#app')
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
> 注意:组件库的树因为是基于 `jquery` 的 `ztree` 进行的封装,使用的 vue 项目中不要再引入 `jquery` 了,使用 组件 `tree` 的地方容易引发未知错误,老项目中应删除 `jquery` 的依赖,并将使用 `jquery` 选择器的地方修改成 `document.querySelector` 方式 (不建议在 `vue` 项目中再使用 `jquery`,完全可以数据驱动)
|
|
49
|
+
|
|
48
50
|
## 效果
|
|
49
51
|
|
|
50
52
|

|
|
@@ -669,9 +671,7 @@ slotCell 自定义表格内容,设置的 String
|
|
|
669
671
|
<ul>
|
|
670
672
|
<li class="filter-item" v-for="(item, idx) in filterItems" :style="{ lineHeight: '48px' }" :key="item.name" :class="{ h40: item.isShrink }">
|
|
671
673
|
<ul>
|
|
672
|
-
<li class="item-title" :style="{ lineHeight: '48px' }">
|
|
673
|
-
{{ item.name }}
|
|
674
|
-
</li>
|
|
674
|
+
<li class="item-title" :style="{ lineHeight: '48px' }">{{ item.name }}</li>
|
|
675
675
|
<li class="item-list" style="width: calc(100% - 50px);">
|
|
676
676
|
<ul>
|
|
677
677
|
<!-- 申请时间选项,单独处理 -->
|
|
@@ -812,7 +812,7 @@ slotCell 自定义表格内容,设置的 String
|
|
|
812
812
|
let filterItems = JSON.parse(JSON.stringify(this.filterItems))
|
|
813
813
|
let timeVal = JSON.parse(JSON.stringify(this.timeVal))
|
|
814
814
|
let keyword = JSON.parse(JSON.stringify(keyField))
|
|
815
|
-
let len = this.savedCondition.filter(item => item.label === '搜索条件' + Number(this.savedCondition.length + 1)).length
|
|
815
|
+
let len = this.savedCondition.filter((item) => item.label === '搜索条件' + Number(this.savedCondition.length + 1)).length
|
|
816
816
|
let obj = {
|
|
817
817
|
label: len > 0 ? '搜索条件' + Number(this.savedCondition.length + 2) : '搜索条件' + Number(this.savedCondition.length + 1),
|
|
818
818
|
value: this.savedCondition.length + 1,
|
|
@@ -831,7 +831,7 @@ slotCell 自定义表格内容,设置的 String
|
|
|
831
831
|
selectChange(ids) {
|
|
832
832
|
// debugger;
|
|
833
833
|
let self = this
|
|
834
|
-
this.savedCondition.forEach(function(item) {
|
|
834
|
+
this.savedCondition.forEach(function (item) {
|
|
835
835
|
if (item.value == ids) {
|
|
836
836
|
self.filterItems = JSON.parse(JSON.stringify(item.content.filterItems))
|
|
837
837
|
self.tagList = JSON.parse(JSON.stringify(item.content.tagList))
|
|
@@ -850,7 +850,7 @@ slotCell 自定义表格内容,设置的 String
|
|
|
850
850
|
},
|
|
851
851
|
updateTagList() {
|
|
852
852
|
let tags = []
|
|
853
|
-
this.filterItems.forEach(item => {
|
|
853
|
+
this.filterItems.forEach((item) => {
|
|
854
854
|
item.itemList.forEach((sub, index) => {
|
|
855
855
|
if (sub.isActive) {
|
|
856
856
|
tags.push(this.createTag(item, sub, index))
|
|
@@ -859,7 +859,7 @@ slotCell 自定义表格内容,设置的 String
|
|
|
859
859
|
})
|
|
860
860
|
// 如果是自己选择的时间段
|
|
861
861
|
let timeVal = this.timeVal
|
|
862
|
-
tags.forEach(sub => {
|
|
862
|
+
tags.forEach((sub) => {
|
|
863
863
|
if (sub.pId === '2' && timeVal && timeVal.length) {
|
|
864
864
|
sub.name = timeVal[0] + '至' + timeVal[1]
|
|
865
865
|
sub.id = '2'
|
|
@@ -873,7 +873,7 @@ slotCell 自定义表格内容,设置的 String
|
|
|
873
873
|
},
|
|
874
874
|
// 收起展开过滤选项
|
|
875
875
|
shrinkFilterItem(itemId) {
|
|
876
|
-
let item = this.filterItems.find(item => item.id === itemId)
|
|
876
|
+
let item = this.filterItems.find((item) => item.id === itemId)
|
|
877
877
|
item.isShrink = !item.isShrink
|
|
878
878
|
},
|
|
879
879
|
// 创建tag
|
|
@@ -898,7 +898,7 @@ slotCell 自定义表格内容,设置的 String
|
|
|
898
898
|
},
|
|
899
899
|
// 点击过滤选项(单选)
|
|
900
900
|
clickItemHandle(itemId, listItemId, item, listItem, index) {
|
|
901
|
-
let activeIndex = item.itemList.findIndex(item => item.isActive)
|
|
901
|
+
let activeIndex = item.itemList.findIndex((item) => item.isActive)
|
|
902
902
|
if (activeIndex > -1 && activeIndex !== index) {
|
|
903
903
|
item.itemList[activeIndex].isActive = false
|
|
904
904
|
}
|
|
@@ -906,8 +906,8 @@ slotCell 自定义表格内容,设置的 String
|
|
|
906
906
|
},
|
|
907
907
|
// 清空过滤选项
|
|
908
908
|
clearTags() {
|
|
909
|
-
this.filterItems.forEach(item => {
|
|
910
|
-
item.itemList.forEach(sub => {
|
|
909
|
+
this.filterItems.forEach((item) => {
|
|
910
|
+
item.itemList.forEach((sub) => {
|
|
911
911
|
this.$set(sub, 'isActive', false)
|
|
912
912
|
})
|
|
913
913
|
})
|
|
@@ -926,8 +926,8 @@ slotCell 自定义表格内容,设置的 String
|
|
|
926
926
|
})
|
|
927
927
|
self.savedCondition.splice(index, 1)
|
|
928
928
|
localStorage.setItem('apportionCalculateCriteria', JSON.stringify(self.savedCondition))
|
|
929
|
-
self.filterItems.forEach(item => {
|
|
930
|
-
item.itemList.forEach(sub => {
|
|
929
|
+
self.filterItems.forEach((item) => {
|
|
930
|
+
item.itemList.forEach((sub) => {
|
|
931
931
|
self.$set(sub, 'isActive', false)
|
|
932
932
|
})
|
|
933
933
|
})
|
|
@@ -936,19 +936,19 @@ slotCell 自定义表格内容,设置的 String
|
|
|
936
936
|
// 选择所属账期时间
|
|
937
937
|
handleTimePicker(value) {
|
|
938
938
|
if (!this.timeVal) {
|
|
939
|
-
this.filterItems.forEach(ele => {
|
|
939
|
+
this.filterItems.forEach((ele) => {
|
|
940
940
|
if (ele.id === '2') {
|
|
941
941
|
ele.itemList[0].isActive = false
|
|
942
|
-
ele.itemList = ele.itemList.map(item => {
|
|
942
|
+
ele.itemList = ele.itemList.map((item) => {
|
|
943
943
|
return item
|
|
944
944
|
})
|
|
945
945
|
}
|
|
946
946
|
})
|
|
947
947
|
} else {
|
|
948
|
-
this.filterItems.forEach(ele => {
|
|
948
|
+
this.filterItems.forEach((ele) => {
|
|
949
949
|
if (ele.id === '2') {
|
|
950
950
|
ele.itemList[0].isActive = true
|
|
951
|
-
ele.itemList = ele.itemList.map(item => {
|
|
951
|
+
ele.itemList = ele.itemList.map((item) => {
|
|
952
952
|
return item
|
|
953
953
|
})
|
|
954
954
|
}
|