doum
2025-12-10 559f6fcd685d2144e931d2c4e56cbe38c2308d70
admin/src/components/business/OperaHotCityWindow.vue
@@ -48,7 +48,7 @@
        callback(new Error('请先选择省份'))
      } else if (!this.form.cityId) {
        callback(new Error('请选择城市'))
      }  else {
      } else {
        callback()
      }
    }
@@ -72,7 +72,7 @@
      rules: {
        cityId: [
          { required: true, validator: newRule, trigger: 'change' }
        ],
        ]
      }
    }
  },
@@ -81,13 +81,13 @@
      api: '/business/hotCity',
      'field.id': 'id'
    })
    listByParentId({type: 0, parentId: ''})
    listByParentId({ type: 0, parentId: '' })
      .then(data => {
          this.province = data
        })
        this.province = data
      })
  },
  methods: {
    selectProvince(val) {
    selectProvince (val) {
      this.form.cityId = ''
      this.cities = []
      listByParentId({ type: 1, parentId: val })
@@ -97,13 +97,12 @@
        .catch(e => {
          this.$tip.error(e)
        })
    },
    numInput() {
    numInput () {
      // =""
      this.form.sortnum = this.form.sortnum.replace(/^(0+)|[^\d]+/g,'')
    },
  },
      this.form.sortnum = this.form.sortnum.replace(/^(0+)|[^\d]+/g, '')
    }
  }
}
</script>