import {
getChanceList,// 字典查询 传入字典名称
queryDict
} from "@/api/chanceManager/chanceManager";
export default {
data() {
return {
nextEdit:false,
tableData:"",
searchForm:{},
getChanceHandel:null,
res1:null,
res2:null,
};
},
mounted() {
this.getData()
},
methods: {
getData(){
console.log("run");
this.init()
},
async init() {
let res1 = await getChanceList(this.searchForm) // A 方法
let res2 = await queryDict("post_type") // B 方法
console.log(res1.data[0].chanceName);
console.log(res2.data[0].dictLabel);
},
},
};
console