BUG 26118
This commit is contained in:
		@@ -184,7 +184,7 @@ export default {
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    uni.$on('filedConfig', res => {
 | 
			
		||||
      if (!res.index) {
 | 
			
		||||
      if (res.index < 0) {
 | 
			
		||||
        this.targetList.push(res.config)
 | 
			
		||||
      } else {
 | 
			
		||||
        this.targetList.splice(res.index, 1, res.config)
 | 
			
		||||
 
 | 
			
		||||
@@ -37,7 +37,7 @@ export default {
 | 
			
		||||
  },
 | 
			
		||||
  onShow() {
 | 
			
		||||
    document.title = "问卷表单"
 | 
			
		||||
    this.$refs.TabPage?.show()
 | 
			
		||||
    this.$refs?.TabPage?.show()
 | 
			
		||||
    this.$nextTick(() => {
 | 
			
		||||
      this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact', 'shareAppMessage', 'shareWechatMessage']).then(() => {
 | 
			
		||||
        this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType'])
 | 
			
		||||
 
 | 
			
		||||
@@ -157,7 +157,7 @@ export default {
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    config() {
 | 
			
		||||
      return !!this.index ? this.filed : JSON.parse(JSON.stringify(components.filter(v => v.type === this.filedType)[0]))
 | 
			
		||||
      return this.index > -1 ? this.filed : components?.filter(v => v.type === this.filedType)?.[0] || {}
 | 
			
		||||
    },
 | 
			
		||||
    pointTypeName() {
 | 
			
		||||
      if (!this.config.pointDict) return ''
 | 
			
		||||
 
 | 
			
		||||
@@ -211,16 +211,11 @@ export default {
 | 
			
		||||
    toEdit() {
 | 
			
		||||
      if (this.info.dataCount !== 0) {
 | 
			
		||||
        return this.$u.toast('该表单已有数据,无法编辑!')
 | 
			
		||||
      } else {
 | 
			
		||||
        let {id} = this
 | 
			
		||||
        this.isShow = false
 | 
			
		||||
        uni.navigateTo({url: `./AddForm?id=${id}`})
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      this.$emit('change', {
 | 
			
		||||
        type: 'AddForm',
 | 
			
		||||
        params: {
 | 
			
		||||
          id: this.id
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
 | 
			
		||||
      this.isShow = false
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    share(id) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user