提交 601ded90 编写于 作者: haochangdi's avatar haochangdi

修复获取地区为undefind的问题

上级 5f23ad7d
......@@ -260,13 +260,13 @@ export default {
let administrativeIdItem = "";
// 如果是外部用户(2),只能看到所在省份的数据
if(idType == 2){
let optionRegionArray = new Array();
optionRegionArray.push(this.optionsRegion[0].provinceId);
administrativeIdItem = operationData.setAdministrativeId(
optionRegionArray
);
}
// if(idType == 2){
// let optionRegionArray = new Array();
// optionRegionArray.push(this.optionsRegion[0].provinceId);
// administrativeIdItem = operationData.setAdministrativeId(
// optionRegionArray
// );
// }
// let administrativeIdItem = "";
let req = {
......
......@@ -1535,7 +1535,7 @@ export default {
//console.log(editData);
//设置基础信息页
this.formData = {
id: vm.getUrlSearch(window.location.href, "projectId") || vm.projectId,
id: vm.getUrlSearch(window.location.href, "projectId"),
projectName: editData.projectData.projectName,
projectBegintime: editData.projectData.projectBegintime,
projectEndtime: editData.projectData.projectEndtime,
......@@ -1639,7 +1639,7 @@ export default {
//编辑管理
editManager(data) {
let req = {};
let projectId = vm.getUrlSearch(window.location.href, "projectId") || vm.projectId;
let projectId = vm.getUrlSearch(window.location.href, "projectId");
if (projectId != null && projectId != "") {
openLoading(vm);
vm
......@@ -1734,9 +1734,6 @@ export default {
}
//idTypeProject
}
for (let i = 0; i < attachmentModel.length; i++) {
attachmentModel[i].portalProjectId = this.formData.id;
}
//教培项目v2.1.0新增通知优化
let notifyData = {
notifyId: 0,
......@@ -1757,7 +1754,6 @@ export default {
vm.POST("portal/portalInfo/insertOrUpdate", postData).then(res => {
closeLoading(vm);
if (option == "storage" || option == "storageEdit") {
this.getComponentInfo();
vm.$message.info(res.message);
}
if (res.code == "000000") {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册