(function() {
Vue.component('personal-info', {
template: `
`,
props: [],
data: function() {
return {
gotoAddid: "Province",
code: "info",
industryid: -1,
directionid: -1,
industryname: "",
directionname: "",
}
},
mounted: function() {
var vm = this
$('.dropdown-toggle').dropdown()
$('#selindustry').on('hidden.bs.modal', function(e) {
vm.getNewIndustry()
})
},
methods: {
getNewIndustry: function() {
var vm = this
var aaa = vm.$refs.getIndustry.industryname
var bbb = vm.$refs.getIndustry.directionname
if(aaa != "") {
vm.industryname = aaa
vm.industryid = vm.$refs.getIndustry.industryid
}
if(bbb != "") {
vm.directionname = bbb
vm.directionid = vm.$refs.getIndustry.directionid
}
if(vm.industryname == "请选择行业") {
$("#industry").val("")
} else {
$("#industry").val(vm.industryname + ">" + vm.directionname)
}
}
},
})
var gotoAddid = "Province"
function initInterfaceTypeSelect(industry) {
$(".dropdown-menu").on("click", "[data-stopPropagation]", function(e) {
e.stopPropagation();
});
Selectors.createDefinedSelect(industry.el, industry.data)
}
function gotoAdd(id) {
var addid = $(id).attr("id")
if(addid == undefined) {
addid = id
}
$("#" + gotoAddid).removeClass("active")
$("#" + addid).addClass("active")
$("#_" + gotoAddid).addClass("hidden")
$("#_" + addid).removeClass("hidden")
gotoAddid = addid
}
})()