提交 9a7f3fbf 编写于 作者: zhentian.jia's avatar zhentian.jia

2.2.0次级负责人没有科室列表

上级 abdd6e16
...@@ -31,6 +31,7 @@ export const envConfig = { ...@@ -31,6 +31,7 @@ export const envConfig = {
// reportUrl: 'https://test1-sc-report.yunqueyi.com/', // reportUrl: 'https://test1-sc-report.yunqueyi.com/',
// reportUrl: 'https://uat-sc-report.yunqueyi.com/', // reportUrl: 'https://uat-sc-report.yunqueyi.com/',
excelUrl: 'https://test-file.yunqueyi.com/File/template/portal/', excelUrl: 'https://test-file.yunqueyi.com/File/template/portal/',
itemFileUrl: 'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/',
}, },
dev: { dev: {
baseUrl: 'https://dev-sc.yunqueyi.com/', baseUrl: 'https://dev-sc.yunqueyi.com/',
...@@ -47,6 +48,7 @@ export const envConfig = { ...@@ -47,6 +48,7 @@ export const envConfig = {
workApiSrc: 'https://dev-work.yunqueyi.com', workApiSrc: 'https://dev-work.yunqueyi.com',
reportUrl: 'https://dev-sc-report.yunqueyi.com/', reportUrl: 'https://dev-sc-report.yunqueyi.com/',
excelUrl: 'https://test-file.yunqueyi.com/File/template/portal/', excelUrl: 'https://test-file.yunqueyi.com/File/template/portal/',
itemFileUrl: 'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/',
}, },
test: { test: {
baseUrl: 'https://test1-sc.yunqueyi.com/', baseUrl: 'https://test1-sc.yunqueyi.com/',
...@@ -63,6 +65,7 @@ export const envConfig = { ...@@ -63,6 +65,7 @@ export const envConfig = {
workApiSrc: 'https://test1-work.yunqueyi.com', workApiSrc: 'https://test1-work.yunqueyi.com',
reportUrl: 'https://test1-sc-report.yunqueyi.com/', reportUrl: 'https://test1-sc-report.yunqueyi.com/',
excelUrl: 'https://test-file.yunqueyi.com/File/template/portal/', excelUrl: 'https://test-file.yunqueyi.com/File/template/portal/',
itemFileUrl: 'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/',
}, },
test2: { test2: {
baseUrl: 'https://test2-work.yunqueyi.com/sc/', baseUrl: 'https://test2-work.yunqueyi.com/sc/',
...@@ -78,6 +81,7 @@ export const envConfig = { ...@@ -78,6 +81,7 @@ export const envConfig = {
workApiSrc: 'https://test2-work.yunqueyi.com', workApiSrc: 'https://test2-work.yunqueyi.com',
reportUrl: 'https://test2-sc-report.yunqueyi.com/', reportUrl: 'https://test2-sc-report.yunqueyi.com/',
excelUrl: 'https://test-file.yunqueyi.com/File/template/portal/', excelUrl: 'https://test-file.yunqueyi.com/File/template/portal/',
itemFileUrl: 'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/',
}, },
uat: { uat: {
baseUrl: 'https://uat-sc.yunqueyi.com/', baseUrl: 'https://uat-sc.yunqueyi.com/',
...@@ -94,6 +98,7 @@ export const envConfig = { ...@@ -94,6 +98,7 @@ export const envConfig = {
workApiSrc: 'https://uat-work.yunqueyi.com', workApiSrc: 'https://uat-work.yunqueyi.com',
reportUrl: 'https://uat-sc-report.yunqueyi.com/', reportUrl: 'https://uat-sc-report.yunqueyi.com/',
excelUrl: 'https://test-file.yunqueyi.com/File/template/portal/', excelUrl: 'https://test-file.yunqueyi.com/File/template/portal/',
itemFileUrl: 'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/',
}, },
pro: { pro: {
baseUrl: 'https://sc.yunqueyi.com/', baseUrl: 'https://sc.yunqueyi.com/',
...@@ -110,5 +115,6 @@ export const envConfig = { ...@@ -110,5 +115,6 @@ export const envConfig = {
workApiSrc: 'https://work.yunqueyi.com', workApiSrc: 'https://work.yunqueyi.com',
reportUrl: 'https://sc-report.yunqueyi.com/', reportUrl: 'https://sc-report.yunqueyi.com/',
excelUrl: 'https://file.yunqueyi.com/File/template/portal/', excelUrl: 'https://file.yunqueyi.com/File/template/portal/',
itemFileUrl: 'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/',
} }
} }
...@@ -55,7 +55,7 @@ service.interceptors.request.use(config => { ...@@ -55,7 +55,7 @@ service.interceptors.request.use(config => {
if( process.env.BUILD_ENV == "development" ){ // 本地开发环境 if( process.env.BUILD_ENV == "development" ){ // 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV); // console.log('环境变量>>>> ', process.env.BUILD_ENV);
// config.headers['token'] = 'BFD804F3A3194FBBBE113962222839F6'; // config.headers['token'] = 'BFD804F3A3194FBBBE113962222839F6';
config.headers['token'] = 'F8209898391C40A0B8DBC1ED9E157291'; config.headers['token'] = 'AA8D12AF38B54B4597B919FD4C156CE1';
}else{ }else{
config.headers['token'] = localStorage.getItem('storageToken') config.headers['token'] = localStorage.getItem('storageToken')
} }
......
...@@ -212,7 +212,12 @@ export function getReportUrl(url) { ...@@ -212,7 +212,12 @@ export function getReportUrl(url) {
return getConfigByEnvType('reportUrl') + url return getConfigByEnvType('reportUrl') + url
} }
// 获取SC服务器域名地址 // 获取Excel地址
export function getExeclUrl(url) { export function getExeclUrl(url) {
return getConfigByEnvType('excelUrl') + url return getConfigByEnvType('excelUrl') + url
} }
// 获取教培项目文件地址
export function getItemFileUrl(url) {
return getConfigByEnvType('itemFileUrl') + url
}
\ No newline at end of file
...@@ -410,7 +410,7 @@ ...@@ -410,7 +410,7 @@
></el-pagination> ></el-pagination>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="设定科室" name="third"> <el-tab-pane v-if="peopleLevel != 'L3'" label="设定科室" name="third">
<el-col :span="8"> <el-col :span="8">
<el-table <el-table
class="department" class="department"
...@@ -865,7 +865,7 @@ import { mapGetters } from "vuex"; ...@@ -865,7 +865,7 @@ import { mapGetters } from "vuex";
import { openLoading, closeLoading } from "../../utils/utils"; import { openLoading, closeLoading } from "../../utils/utils";
import * as commonUtil from "../../utils/utils"; import * as commonUtil from "../../utils/utils";
import * as operationData from "../../utils/operation"; import * as operationData from "../../utils/operation";
import { getExeclUrl } from "@/utils/index"; import { getItemFileUrl } from "@/utils/index";
import { uploadOrgExcel, uploadPersonExcel } from "@/utils/education/educationApi"; import { uploadOrgExcel, uploadPersonExcel } from "@/utils/education/educationApi";
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
...@@ -2453,6 +2453,9 @@ export default { ...@@ -2453,6 +2453,9 @@ export default {
}, },
//设定的行政范围内容 //设定的行政范围内容
getScope(type) { getScope(type) {
if(vm.idType == 2) {
return null;
}
let scope = ""; let scope = "";
let noChangeTree = this.getTreeCheck(); let noChangeTree = this.getTreeCheck();
if (type == "administrative") { if (type == "administrative") {
...@@ -2670,7 +2673,7 @@ export default { ...@@ -2670,7 +2673,7 @@ export default {
vm.GET("portal/scope/v1/department", req).then(res => { vm.GET("portal/scope/v1/department", req).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
this.tableDepartment = res.data.department; this.tableDepartment = res.data.department;
if(vm.peopleLevel != 'L3') {
let rowCheck = this.tableDepartment; let rowCheck = this.tableDepartment;
rowCheck.forEach(row => { rowCheck.forEach(row => {
if (row.status == 1) { if (row.status == 1) {
...@@ -2680,6 +2683,7 @@ export default { ...@@ -2680,6 +2683,7 @@ export default {
} }
}); });
} }
}
}); });
}, },
//获取机构id列表 //获取机构id列表
...@@ -3558,12 +3562,12 @@ export default { ...@@ -3558,12 +3562,12 @@ export default {
download(type) { download(type) {
let downloadUrl = ""; let downloadUrl = "";
if (type == "organization") { if (type == "organization") {
downloadUrl = getExeclUrl( downloadUrl = getItemFileUrl(
"%E6%95%99%E5%9F%B9%E9%A1%B9%E7%9B%AE%E8%A7%92%E8%89%B2%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx" "%E6%95%99%E5%9F%B9%E9%A1%B9%E7%9B%AE%E8%AE%BE%E7%BD%AE%E6%9C%BA%E6%9E%84%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx"
); );
} else if (type == "person") { } else if (type == "person") {
downloadUrl = getExeclUrl( downloadUrl = getItemFileUrl(
"%E6%95%99%E5%9F%B9%E9%A1%B9%E7%9B%AE%E8%A7%92%E8%89%B2%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx" "%E6%95%99%E5%9F%B9%E9%A1%B9%E7%9B%AE%E8%AE%BE%E7%BD%AE%E4%BA%BA%E5%91%98%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx"
); );
} else if (type == "fail") { } else if (type == "fail") {
downloadUrl = vm.failExcelUrl; downloadUrl = vm.failExcelUrl;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册