mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-28 19:18:00 +08:00
update
This commit is contained in:
@@ -116,6 +116,7 @@
|
|||||||
v-model="value"
|
v-model="value"
|
||||||
:options="options"
|
:options="options"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
|
:props="cateProps"
|
||||||
></el-cascader>
|
></el-cascader>
|
||||||
<!-- <el-input v-model="ruleForm.prov_code"></el-input> -->
|
<!-- <el-input v-model="ruleForm.prov_code"></el-input> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -414,8 +415,14 @@ export default {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
cateProps: {
|
||||||
|
expandTrigger: "click",
|
||||||
|
label: "title",
|
||||||
|
value: "value",
|
||||||
|
children: "cities",
|
||||||
|
},
|
||||||
value: [],
|
value: [],
|
||||||
options: []
|
options: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -457,19 +464,26 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查询汇付结算账户
|
// 查询汇付结算账户
|
||||||
selectSettleAccount() {},
|
selectSettleAccount() {},
|
||||||
jsonHttp(){
|
jsonHttp() {
|
||||||
|
var that = this;
|
||||||
//(1).实例化ajax对象
|
//(1).实例化ajax对象
|
||||||
let xhr = new XMLHttpRequest()
|
let xhr = new XMLHttpRequest();
|
||||||
//(2).设置请求方法和地址
|
//(2).设置请求方法和地址
|
||||||
//get请求的数据直接添加在url的后面 格式是 url?key=value
|
//get请求的数据直接添加在url的后面 格式是 url?key=value
|
||||||
xhr.open('get', 'https://cdn.cloudpnr.com/adapayresource/documents/Adapay%E7%9C%81%E5%B8%82%E7%BC%96%E7%A0%81%EF%BC%88%E5%9B%9B%E4%BD%8D%EF%BC%89.json')
|
xhr.open(
|
||||||
|
"get",
|
||||||
|
"https://cdn.cloudpnr.com/adapayresource/documents/Adapay%E7%9C%81%E5%B8%82%E7%BC%96%E7%A0%81%EF%BC%88%E5%9B%9B%E4%BD%8D%EF%BC%89.json"
|
||||||
|
);
|
||||||
//(3).发送请求
|
//(3).发送请求
|
||||||
xhr.send()
|
xhr.send();
|
||||||
//(4).注册回调函数
|
//(4).注册回调函数
|
||||||
xhr.onload = function() {
|
xhr.onload = function () {
|
||||||
console.log(xhr.responseText,'responseText')
|
// console.log(xhr.responseText,'responseText')
|
||||||
}
|
that.options = JSON.parse(xhr.responseText);
|
||||||
}
|
console.log('检测类型',Object.prototype.toString.call(that.options))
|
||||||
|
console.log("option的值", that.options);
|
||||||
|
};
|
||||||
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.selectAdapayMember();
|
this.selectAdapayMember();
|
||||||
|
|||||||
Reference in New Issue
Block a user