26209
This commit is contained in:
		@@ -192,11 +192,6 @@ export default {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					 | 
				
			||||||
  onShow () {
 | 
					 | 
				
			||||||
    localStorage.removeItem("toFiledConfig")
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
    toSetting() {
 | 
					    toSetting() {
 | 
				
			||||||
      let {formConfig} = this
 | 
					      let {formConfig} = this
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -146,9 +146,12 @@ import {components} from './components/config'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export default {
 | 
					export default {
 | 
				
			||||||
  data() {
 | 
					  data() {
 | 
				
			||||||
    let params = localStorage.getItem("toFiledConfig")
 | 
					    let params = localStorage.getItem("toFiledConfig") || {}
 | 
				
			||||||
    params && (params = JSON.parse(params))
 | 
					    if (params) {
 | 
				
			||||||
    params.config = params.index > -1 ? params.filed : components.filter(v => v.type === params.filedType)[0]
 | 
					      params = JSON.parse(params)
 | 
				
			||||||
 | 
					      params.config = params.index > -1 ? params.filed : JSON.parse(JSON.stringify(components.filter(v => v.type === params.filedType)[0]))
 | 
				
			||||||
 | 
					      localStorage.removeItem("toFiledConfig")
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      ...params,
 | 
					      ...params,
 | 
				
			||||||
      isShowType: false,
 | 
					      isShowType: false,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -164,14 +164,14 @@ export default {
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    goDetail(item, hint) {
 | 
					    goDetail(item, hint) {
 | 
				
			||||||
      console.log('详情', hint)
 | 
					      console.log('详情',hint)
 | 
				
			||||||
      if (hint == 1) {
 | 
					      if (hint == 1) {
 | 
				
			||||||
        uni.navigateTo({ url: `./detail?id=${item.id}` })
 | 
					        uni.navigateTo({ url: `./detail?id=${item.id}` })
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    toAdd(item, hint) {
 | 
					    toAdd(item, hint) {
 | 
				
			||||||
      console.log('编辑', hint)
 | 
					      console.log('编辑',hint)
 | 
				
			||||||
      if (hint == 2) {
 | 
					      if (hint == 2) {
 | 
				
			||||||
        uni.navigateTo({ url: `./add?id=${item.id}` })
 | 
					        uni.navigateTo({ url: `./add?id=${item.id}` })
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -192,11 +192,6 @@ export default {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					 | 
				
			||||||
  onShow () {
 | 
					 | 
				
			||||||
    localStorage.removeItem("toFiledConfig")
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
    toSetting() {
 | 
					    toSetting() {
 | 
				
			||||||
      let {formConfig} = this
 | 
					      let {formConfig} = this
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -146,9 +146,12 @@ import {components} from './components/config'
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export default {
 | 
					export default {
 | 
				
			||||||
  data() {
 | 
					  data() {
 | 
				
			||||||
    let params = localStorage.getItem("toFiledConfig")
 | 
					    let params = localStorage.getItem("toFiledConfig") || {}
 | 
				
			||||||
    params && (params = JSON.parse(params))
 | 
					    if (params) {
 | 
				
			||||||
    params.config = params.index > -1 ? params.filed : components.filter(v => v.type === params.filedType)[0]
 | 
					      params = JSON.parse(params)
 | 
				
			||||||
 | 
					      params.config = params.index > -1 ? params.filed : JSON.parse(JSON.stringify(components.filter(v => v.type === params.filedType)[0]))
 | 
				
			||||||
 | 
					      localStorage.removeItem("toFiledConfig")
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      ...params,
 | 
					      ...params,
 | 
				
			||||||
      isShowType: false,
 | 
					      isShowType: false,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user