vsyswin-ui 0.2.45 → 0.2.49

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 CHANGED
@@ -41,7 +41,7 @@ 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
 
@@ -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,
@@ -829,15 +829,13 @@ slotCell 自定义表格内容,设置的 String
829
829
  },
830
830
  // 选择保存的搜索条件
831
831
  selectChange(ids) {
832
- // debugger;
833
- let self = this
834
- this.savedCondition.forEach(function (item) {
832
+ this.savedCondition.forEach(item => {
835
833
  if (item.value == ids) {
836
- self.filterItems = JSON.parse(JSON.stringify(item.content.filterItems))
837
- self.tagList = JSON.parse(JSON.stringify(item.content.tagList))
838
- self.timeVal = JSON.parse(JSON.stringify(item.content.timeVal))
839
- self.$nextTick(() => {
840
- self.$refs.syNewsearchbar.keyword = JSON.parse(JSON.stringify(item.content.keyword))
834
+ this.filterItems = JSON.parse(JSON.stringify(item.content.filterItems))
835
+ this.tagList = JSON.parse(JSON.stringify(item.content.tagList))
836
+ this.timeVal = JSON.parse(JSON.stringify(item.content.timeVal))
837
+ this.$nextTick(() => {
838
+ this.$refs.syNewsearchbar.keyword = JSON.parse(JSON.stringify(item.content.keyword))
841
839
  })
842
840
  }
843
841
  })
@@ -846,11 +844,10 @@ slotCell 自定义表格内容,设置的 String
846
844
  searchTables(keyWord) {
847
845
  this.updateTagList()
848
846
  this.$emit('filter', this.tagList, keyWord)
849
- this.$emit('tableSearchHeightChange', 200)
850
847
  },
851
848
  updateTagList() {
852
849
  let tags = []
853
- this.filterItems.forEach((item) => {
850
+ this.filterItems.forEach(item => {
854
851
  item.itemList.forEach((sub, index) => {
855
852
  if (sub.isActive) {
856
853
  tags.push(this.createTag(item, sub, index))
@@ -859,7 +856,7 @@ slotCell 自定义表格内容,设置的 String
859
856
  })
860
857
  // 如果是自己选择的时间段
861
858
  let timeVal = this.timeVal
862
- tags.forEach((sub) => {
859
+ tags.forEach(sub => {
863
860
  if (sub.pId === '2' && timeVal && timeVal.length) {
864
861
  sub.name = timeVal[0] + '至' + timeVal[1]
865
862
  sub.id = '2'
@@ -873,7 +870,7 @@ slotCell 自定义表格内容,设置的 String
873
870
  },
874
871
  // 收起展开过滤选项
875
872
  shrinkFilterItem(itemId) {
876
- let item = this.filterItems.find((item) => item.id === itemId)
873
+ let item = this.filterItems.find(item => item.id === itemId)
877
874
  item.isShrink = !item.isShrink
878
875
  },
879
876
  // 创建tag
@@ -898,7 +895,7 @@ slotCell 自定义表格内容,设置的 String
898
895
  },
899
896
  // 点击过滤选项(单选)
900
897
  clickItemHandle(itemId, listItemId, item, listItem, index) {
901
- let activeIndex = item.itemList.findIndex((item) => item.isActive)
898
+ let activeIndex = item.itemList.findIndex(item => item.isActive)
902
899
  if (activeIndex > -1 && activeIndex !== index) {
903
900
  item.itemList[activeIndex].isActive = false
904
901
  }
@@ -906,8 +903,8 @@ slotCell 自定义表格内容,设置的 String
906
903
  },
907
904
  // 清空过滤选项
908
905
  clearTags() {
909
- this.filterItems.forEach((item) => {
910
- item.itemList.forEach((sub) => {
906
+ this.filterItems.forEach(item => {
907
+ item.itemList.forEach(sub => {
911
908
  this.$set(sub, 'isActive', false)
912
909
  })
913
910
  })
@@ -919,36 +916,35 @@ slotCell 自定义表格内容,设置的 String
919
916
  })
920
917
  },
921
918
  deleteItem(index) {
922
- let self = this
923
- self.$nextTick(() => {
924
- self.$refs.syNewsearchbar.choosedCondition = ''
925
- self.$refs.syNewsearchbar.keyword = ''
919
+ this.$nextTick(() => {
920
+ this.$refs.syNewsearchbar.choosedCondition = ''
921
+ this.$refs.syNewsearchbar.keyword = ''
926
922
  })
927
- self.savedCondition.splice(index, 1)
928
- localStorage.setItem('apportionCalculateCriteria', JSON.stringify(self.savedCondition))
929
- self.filterItems.forEach((item) => {
930
- item.itemList.forEach((sub) => {
931
- self.$set(sub, 'isActive', false)
923
+ this.savedCondition.splice(index, 1)
924
+ localStorage.setItem('apportionCalculateCriteria', JSON.stringify(this.savedCondition))
925
+ this.filterItems.forEach(item => {
926
+ item.itemList.forEach(sub => {
927
+ this.$set(sub, 'isActive', false)
932
928
  })
933
929
  })
934
- self.tagList = []
930
+ this.tagList = []
935
931
  },
936
932
  // 选择所属账期时间
937
933
  handleTimePicker(value) {
938
934
  if (!this.timeVal) {
939
- this.filterItems.forEach((ele) => {
935
+ this.filterItems.forEach(ele => {
940
936
  if (ele.id === '2') {
941
937
  ele.itemList[0].isActive = false
942
- ele.itemList = ele.itemList.map((item) => {
938
+ ele.itemList = ele.itemList.map(item => {
943
939
  return item
944
940
  })
945
941
  }
946
942
  })
947
943
  } else {
948
- this.filterItems.forEach((ele) => {
944
+ this.filterItems.forEach(ele => {
949
945
  if (ele.id === '2') {
950
946
  ele.itemList[0].isActive = true
951
- ele.itemList = ele.itemList.map((item) => {
947
+ ele.itemList = ele.itemList.map(item => {
952
948
  return item
953
949
  })
954
950
  }