lshcom 1.0.10 → 1.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lshcom",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "files": [
5
5
  "src/assets/*",
6
6
  "src/common/common.js",
@@ -27,14 +27,10 @@
27
27
  </template>
28
28
  <script>
29
29
  import vue from "vue";
30
- import treepicker from "../treepicker/treepicker.vue";
31
- import api from "../../common/api";
32
- import config from "../../common/config";
30
+ import api from "@/common/api";
33
31
  import { Tree , Tooltip,Cascader} from "element-ui";
34
32
  vue.use(Tooltip)
35
33
 
36
- import { mapGetters } from "vuex"
37
-
38
34
  export default {
39
35
  data() {
40
36
  return {
@@ -242,14 +238,22 @@ export default {
242
238
  this.queryOrganization()
243
239
  },
244
240
  // 获取值
245
- getValue(){
241
+ getOrgStore(){
246
242
  return [this.selectedOptions, this.storeCodes]
247
243
  },
248
244
  // 设置值,回显
249
- setValue(value){
245
+ setOrgStore(value){
250
246
  this.selectedOptions = value[0] || []
251
247
  this.storeCodes = value[1] || []
252
248
  },
249
+ // 设置缓存
250
+ setCache(){
251
+ this.$store.commit('queryParams/setParams', {params: this.getOrgStore(), key: `${this.$route.path}Store`})
252
+ },
253
+ // 应用缓存
254
+ useCache(){
255
+ this.setOrgStore(this.$store.state.queryParams[`${this.$route.path}Store`])
256
+ },
253
257
  },
254
258
  computed: {
255
259
  userInfo(){