解绑
@@ -307,6 +311,7 @@ export default {
data() {
return {
partitionInfos: [],
+ phoneAreaCodes: [],
};
},
setup() {
@@ -322,31 +327,12 @@ export default {
created() {
this.$nextTick(function () {
this.initPartition();
+ this.initPhoneAreaCode();
this.initData();
$("#partitionId").on("change", function() {
- var selectedValue = $(this).val();
- $.ajax({
- type: "get",
- url: "/admin/regionInfo/listByPartitionId",
- data: { partitionId: selectedValue,containAll:false },
- dataType: "json",
- success: function (res) {
- var regionId = $("#regionId");
- regionId.empty();
- if(res.code == 200){
- for (var i = 0; i < res.data.length; i++) {
-
- var option = $("