提交 5b8eae02 编写于 作者: alex.zhang's avatar alex.zhang

Merge branch 'dev-liveSix-20200817' of...

Merge branch 'dev-liveSix-20200817' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-liveSix-20200817
...@@ -95,12 +95,8 @@ export default { ...@@ -95,12 +95,8 @@ export default {
getRole() { getRole() {
if (localStorage.getItem("highMainManager") == 1 || localStorage.getItem("mainManager") == 1 || localStorage.getItem("storageIdType") == 1) { if (localStorage.getItem("highMainManager") == 1 || localStorage.getItem("mainManager") == 1 || localStorage.getItem("storageIdType") == 1) {
this.role = 1 this.role = 1
console.log('===================显示=================');
console.log(this.role);
} else { } else {
this.role = 0 this.role = 0
console.log('===================不显示=================');
console.log(this.role);
} }
}, },
refreshRenYuan() { refreshRenYuan() {
......
...@@ -94,7 +94,8 @@ ...@@ -94,7 +94,8 @@
import { openLoading, closeLoading } from "@/utils/utils"; import { openLoading, closeLoading } from "@/utils/utils";
import { doUpload, getFilePath } from "@/utils/qiniu-util"; import { doUpload, getFilePath } from "@/utils/qiniu-util";
import * as operationData from "@/utils/operation"; import * as operationData from "@/utils/operation";
import { getprovinces, moRelSearch, morDeleteOrg } from '@/utils/yqrange/memberApi'; import { moRelSearch, morDeleteOrg } from '@/utils/yqrange/memberApi';
import { getOrgProvincesReq } from '@/utils/yqrange/rangeApi';
import checkOrg from './checkOrg' import checkOrg from './checkOrg'
let vm = null; let vm = null;
export default { export default {
...@@ -206,18 +207,10 @@ export default { ...@@ -206,18 +207,10 @@ export default {
getRegionOption() { getRegionOption() {
openLoading(vm); openLoading(vm);
let idType = localStorage.getItem("storageIdType"); let idType = localStorage.getItem("storageIdType");
getprovinces(idType).then(res => { getOrgProvincesReq(idType,this.circleId,1).then(res => {
closeLoading(this); closeLoading(this);
if (res.code == "000000" && res.data) { if (res.code == "000000" && res.data) {
if (idType == 1) { vm.optionsRegion = operationData.setRegionOption2(res.data.provinceList)
vm.optionsRegion = operationData.setRegionOption2(
res.data.provinceList
);
}else{
vm.optionsRegion = operationData.setRegionOption3(
res.data.provinceList
);
}
vm.formOrganization.administrativeIdList.push(vm.optionsRegion[0].value); vm.formOrganization.administrativeIdList.push(vm.optionsRegion[0].value);
vm.getOrganization(); vm.getOrganization();
} else { } else {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button size="small" type="primary" @click="getList()">搜索</el-button> <el-button size="small" type="primary" @click="serch()">搜索</el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button size="small" @click="reset()">取消搜索</el-button> <el-button size="small" @click="reset()">取消搜索</el-button>
...@@ -153,11 +153,11 @@ export default { ...@@ -153,11 +153,11 @@ export default {
value: 0 value: 0
}, },
{ {
label: '从圈内机构人员', label: '可访问本圈的机构',
value: 1 value: 1
}, },
{ {
label: '从人员白名单', label: '手动添加',
value: 2 value: 2
}, },
], ],
...@@ -213,6 +213,10 @@ export default { ...@@ -213,6 +213,10 @@ export default {
} }
return option; return option;
}, },
serch() {
this.formOrganization.pageNum = 1;
this.getList()
},
getList() { getList() {
let idType = localStorage.getItem("storageIdType"); let idType = localStorage.getItem("storageIdType");
let req = { let req = {
......
...@@ -52,3 +52,12 @@ export const getMemberSelectOrgOptionReq = (data) => { ...@@ -52,3 +52,12 @@ export const getMemberSelectOrgOptionReq = (data) => {
export const getOrgProvincesReq = (idType,circleId,type=1) => {
return fetch({
headers,
url: getBaseUrl(`circle/memberSelect/provinces/idType/${idType}/${circleId}/${type}`),
method: 'get',
description: '根据用户ID 获取选人时省市',
})
};
\ No newline at end of file
...@@ -486,7 +486,7 @@ export default { ...@@ -486,7 +486,7 @@ export default {
vm.$refs.CustomBaseinfo.save(false); vm.$refs.CustomBaseinfo.save(false);
} else if (vm.active == 2) { } else if (vm.active == 2) {
vm.sendCircleData(() => { vm.sendCircleData(() => {
vm.$message.info("完成"); vm.$message.info("成功");
}); });
} }
}, },
......
...@@ -1718,6 +1718,9 @@ export default { ...@@ -1718,6 +1718,9 @@ export default {
attachmentPDFModel.push(PDFModel); attachmentPDFModel.push(PDFModel);
} }
//} //}
if (option == "add" && this.projectId) {
projectModel.id = this.projectId
}
if (option == "edit" || option == "storageEdit") { if (option == "edit" || option == "storageEdit") {
//编辑 //编辑
projectModel.id = this.formData.id; projectModel.id = this.formData.id;
...@@ -1936,7 +1939,7 @@ export default { ...@@ -1936,7 +1939,7 @@ export default {
this.$message.error("输入长度为2-20的内容"); this.$message.error("输入长度为2-20的内容");
return; return;
} }
let urlProjectId = vm.getUrlSearch(window.location.href, "projectId"); let urlProjectId = vm.getUrlSearch(window.location.href, "projectId") || this.projectId;
if (urlProjectId == null) { if (urlProjectId == null) {
let param = { let param = {
...@@ -1951,6 +1954,9 @@ export default { ...@@ -1951,6 +1954,9 @@ export default {
this.$message.info(res.message); this.$message.info(res.message);
} }
}); });
} else if (this.projectId){
this.formData.id = this.projectId
this.insertOrUpdate("storageEdit");
} else { } else {
//console.log('urlProjectId'+urlProjectId); //console.log('urlProjectId'+urlProjectId);
this.insertOrUpdate("storageEdit"); this.insertOrUpdate("storageEdit");
...@@ -2076,7 +2082,7 @@ export default { ...@@ -2076,7 +2082,7 @@ export default {
vm.formData.attachmentUrl2 != "" vm.formData.attachmentUrl2 != ""
) { ) {
//校验名字 //校验名字
let projectId = vm.getUrlSearch(window.location.href, "projectId"); let projectId = vm.getUrlSearch(window.location.href, "projectId") || this.projectId;
if (projectId == null) { if (projectId == null) {
//新建 //新建
let param = { let param = {
...@@ -2086,7 +2092,7 @@ export default { ...@@ -2086,7 +2092,7 @@ export default {
if (res.code == "000000") { if (res.code == "000000") {
//移动到第二页 选择范围 //移动到第二页 选择范围
// this.operationLast(); // this.operationLast();
this.insertOrUpdate("add"); this.insertOrUpdate();
// this.active++; // this.active++;
// this.stepData = [false, true, false]; // this.stepData = [false, true, false];
//this.initRange(); //this.initRange();
...@@ -2094,6 +2100,8 @@ export default { ...@@ -2094,6 +2100,8 @@ export default {
this.$message.info(res.message); this.$message.info(res.message);
} }
}); });
} else if (this.projectId){
this.insertOrUpdate('add');
} else { } else {
//编辑 //编辑
// this.operationLast(); // this.operationLast();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册