提交 58deb30e 编写于 作者: zhentian.jia's avatar zhentian.jia

idType string

上级 e7ae369a
......@@ -40,7 +40,7 @@ export function getIdList(data) {
}
//区域
export function getDivision(data) {
if (data === null) {
if (data === null || data == 'NaN') {
let empty = [];
return empty;
}
......
......@@ -145,6 +145,7 @@
width="100"
controls
class="bg-video"
@mouseover.stop="imgMouseOver2=true"
>
<source :src="formData.attachmentUrl2" type="video/mp4">浏览器不支持mp4
</video>
......@@ -193,7 +194,7 @@
</div>
<div class="second-step" v-else-if="active === 1">
<el-tabs v-model="activeName" @tab-click="handleClickTabs">
<el-tab-pane v-if="idType !== 2" label="设定行政范围" name="first">
<el-tab-pane v-if="idType != 2" label="设定行政范围" name="first">
<el-row :gutter="20">
<el-col class="rim" :span="12">
<!--
......@@ -242,7 +243,7 @@
size="mini"
v-model="formOrganization.administrativeId"
placeholder="全部地区"
v-if="idType !== 2"
v-if="idType != 2"
>
<el-option
v-for="item in organizationRegion"
......@@ -252,7 +253,7 @@
></el-option>
</el-select> -->
<el-cascader
v-if="idType !== 2"
v-if="idType != 2"
size="mini"
expand-trigger="hover"
:options="organizationRegion"
......@@ -768,7 +769,7 @@ export default {
this.getComponentInfo();
//this.editManager();
vm.idType = localStorage.getItem('storageIdType');
console.log('this.idType:'+vm.idType);
console.log('this.idType:'+ vm.idType);
if (vm.idType == 2) {
this.activeName = "second";
}
......@@ -1171,7 +1172,7 @@ export default {
vm.uploadImgMessage2 = false;
}
//console.log("判断移动" + removeState);
if (removeState === true) {
if (removeState === true && vm.formData.attachmentUrl1!='' && vm.formData.attachmentUrl2!='') {
//校验名字
let projectId = vm.getUrlSearch(window.location.href, "projectId");
if (projectId == null) {
......@@ -1395,6 +1396,7 @@ export default {
).then(function(path) {
closeLoading(vm);
console.log(path);
vm.uploadImgMessage2 = false;
vm.formData.attachmentUrl2 = path.fullPath;
vm.$message.success("上传成功");
});
......@@ -1484,7 +1486,7 @@ export default {
} else {
//编辑
this.listLevels();
if (this.idType !== 2) {
if (this.idType != 2) {
this.getAdministrative();
} else {
this.activeName = "second";
......@@ -1880,7 +1882,7 @@ export default {
kind = 3;
}
//console.log('this.idTypeProject',this.idTypeProject);
if(this.idTypeProject === 2 && this.tagsRegion.length == 0) {
if(this.idTypeProject == 2 && this.tagsRegion.length == 0) {
kind = 0;
}
} else if (type == "administrativeScope") {
......@@ -1888,7 +1890,7 @@ export default {
if (this.tagsRegion.length > 0) {
kind = 3;
}
if(this.idTypeProject === 2 && this.tagsRegion.length == 0) {
if(this.idTypeProject == 2 && this.tagsRegion.length == 0) {
kind = 0;
}
} else if (type == "organization") {
......@@ -2669,7 +2671,7 @@ export default {
}
.bg-video {
float: left;
width: 100px;
width: 84px;
height: 100px;
}
.limit-text {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册