From bd57b7c6e2307d6dfb07d778adfefc13c1afbffe Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 06 二月 2026 11:48:44 +0800
Subject: [PATCH] 经销商管理
---
admin/src/components/business/OperaHotCityWindow.vue | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/admin/src/components/business/OperaHotCityWindow.vue b/admin/src/components/business/OperaHotCityWindow.vue
index 8f92be7..081708a 100644
--- a/admin/src/components/business/OperaHotCityWindow.vue
+++ b/admin/src/components/business/OperaHotCityWindow.vue
@@ -28,7 +28,7 @@
</div>
</el-form-item>
<el-form-item label="鎺掑簭鐮�(鍗囧簭)" prop="sortnum">
- <el-input v-model="form.sortnum" placeholder="璇疯緭鍏ユ帓搴忕爜锛堝崌搴忥級" v-trim/>
+ <el-input v-model="form.sortnum" type="number" placeholder="璇疯緭鍏ユ帓搴忕爜锛堝崌搴忥級" v-trim/>
</el-form-item>
</el-form>
</GlobalAlertWindow>
@@ -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>
--
Gitblit v1.9.3