vue 设置数组
手写获取数据
import { auditApply, listApply, rebateUpate } from '@/api/sep/apply'export default {name: "Info",data() {return {kplmList: [],info: {},drawer: false,// 遮罩层loading: true,form: {gthmc: "",dkgs: "",lxr: "",lxdh: "",skgs: "",jsje: "",jssj: ""}};},//设置缴纳方let kplmList = []let info = {label: '企业缴',value: '0'}let info1 = {label: '个体户缴',value: '1'}kplmList.push(info),kplmList.push(info1),this.kplmList = JSON.parse(JSON.stringify(kplmList))

请求接口获取数据
showInvoicing(row) {this.invoicingForm = {}this.invoicingForm.enterpriseId = row.enterpriseId,this.invoicingForm.applyId = row.applyId,this.isShowInvoicing = truethis.formData = {}this.formData.id = row.applyId,//请求接口selectSepApplyListss(this.formData).then(response => {let list = []let kplmList = []if (response.data[0].selectCategoryContent) {list = response.data[0].selectCategoryContent.split(',')}for (var i in list) {let info = {label: list[i],value: list[i]}kplmList.push(info)}this.kplmList = JSON.parse(JSON.stringify(kplmList))})},
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
