Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
9a7f3fbf
提交
9a7f3fbf
编写于
9月 25, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
2.2.0次级负责人没有科室列表
上级
abdd6e16
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
32 行增加
和
17 行删除
+32
-17
env-config.js
src/utils/env-config.js
+6
-0
fetch.js
src/utils/fetch.js
+1
-1
index.js
src/utils/index.js
+6
-1
edit-manager.vue
src/views/education/edit-manager.vue
+19
-15
未找到文件。
src/utils/env-config.js
浏览文件 @
9a7f3fbf
...
...
@@ -31,6 +31,7 @@ export const envConfig = {
// reportUrl: 'https://test1-sc-report.yunqueyi.com/',
// reportUrl: 'https://uat-sc-report.yunqueyi.com/',
excelUrl
:
'https://test-file.yunqueyi.com/File/template/portal/'
,
itemFileUrl
:
'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/'
,
},
dev
:
{
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
...
...
@@ -47,6 +48,7 @@ export const envConfig = {
workApiSrc
:
'https://dev-work.yunqueyi.com'
,
reportUrl
:
'https://dev-sc-report.yunqueyi.com/'
,
excelUrl
:
'https://test-file.yunqueyi.com/File/template/portal/'
,
itemFileUrl
:
'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/'
,
},
test
:
{
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
...
...
@@ -63,6 +65,7 @@ export const envConfig = {
workApiSrc
:
'https://test1-work.yunqueyi.com'
,
reportUrl
:
'https://test1-sc-report.yunqueyi.com/'
,
excelUrl
:
'https://test-file.yunqueyi.com/File/template/portal/'
,
itemFileUrl
:
'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/'
,
},
test2
:
{
baseUrl
:
'https://test2-work.yunqueyi.com/sc/'
,
...
...
@@ -78,6 +81,7 @@ export const envConfig = {
workApiSrc
:
'https://test2-work.yunqueyi.com'
,
reportUrl
:
'https://test2-sc-report.yunqueyi.com/'
,
excelUrl
:
'https://test-file.yunqueyi.com/File/template/portal/'
,
itemFileUrl
:
'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/'
,
},
uat
:
{
baseUrl
:
'https://uat-sc.yunqueyi.com/'
,
...
...
@@ -94,6 +98,7 @@ export const envConfig = {
workApiSrc
:
'https://uat-work.yunqueyi.com'
,
reportUrl
:
'https://uat-sc-report.yunqueyi.com/'
,
excelUrl
:
'https://test-file.yunqueyi.com/File/template/portal/'
,
itemFileUrl
:
'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/'
,
},
pro
:
{
baseUrl
:
'https://sc.yunqueyi.com/'
,
...
...
@@ -110,5 +115,6 @@ export const envConfig = {
workApiSrc
:
'https://work.yunqueyi.com'
,
reportUrl
:
'https://sc-report.yunqueyi.com/'
,
excelUrl
:
'https://file.yunqueyi.com/File/template/portal/'
,
itemFileUrl
:
'http://pica-test-huabei2.oss-cn-beijing.aliyuncs.com/File/template/portal/'
,
}
}
src/utils/fetch.js
浏览文件 @
9a7f3fbf
...
...
@@ -55,7 +55,7 @@ service.interceptors.request.use(config => {
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
// config.headers['token'] = 'BFD804F3A3194FBBBE113962222839F6';
config
.
headers
[
'token'
]
=
'
F8209898391C40A0B8DBC1ED9E15729
1'
;
config
.
headers
[
'token'
]
=
'
AA8D12AF38B54B4597B919FD4C156CE
1'
;
}
else
{
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
}
...
...
src/utils/index.js
浏览文件 @
9a7f3fbf
...
...
@@ -212,7 +212,12 @@ export function getReportUrl(url) {
return
getConfigByEnvType
(
'reportUrl'
)
+
url
}
// 获取
SC服务器域名
地址
// 获取
Excel
地址
export
function
getExeclUrl
(
url
)
{
return
getConfigByEnvType
(
'excelUrl'
)
+
url
}
// 获取教培项目文件地址
export
function
getItemFileUrl
(
url
)
{
return
getConfigByEnvType
(
'itemFileUrl'
)
+
url
}
\ No newline at end of file
src/views/education/edit-manager.vue
浏览文件 @
9a7f3fbf
...
...
@@ -410,7 +410,7 @@
></el-pagination>
</div>
</el-tab-pane>
<el-tab-pane
label=
"设定科室"
name=
"third"
>
<el-tab-pane
v-if=
"peopleLevel != 'L3'"
label=
"设定科室"
name=
"third"
>
<el-col
:span=
"8"
>
<el-table
class=
"department"
...
...
@@ -865,7 +865,7 @@ import { mapGetters } from "vuex";
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
*
as
commonUtil
from
"../../utils/utils"
;
import
*
as
operationData
from
"../../utils/operation"
;
import
{
get
Execl
Url
}
from
"@/utils/index"
;
import
{
get
ItemFile
Url
}
from
"@/utils/index"
;
import
{
uploadOrgExcel
,
uploadPersonExcel
}
from
"@/utils/education/educationApi"
;
import
Sortable
from
'sortablejs'
...
...
@@ -2453,6 +2453,9 @@ export default {
},
//设定的行政范围内容
getScope
(
type
)
{
if
(
vm
.
idType
==
2
)
{
return
null
;
}
let
scope
=
""
;
let
noChangeTree
=
this
.
getTreeCheck
();
if
(
type
==
"administrative"
)
{
...
...
@@ -2670,15 +2673,16 @@ export default {
vm
.
GET
(
"portal/scope/v1/department"
,
req
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
tableDepartment
=
res
.
data
.
department
;
let
rowCheck
=
this
.
tableDepartment
;
rowCheck
.
forEach
(
row
=>
{
if
(
row
.
status
==
1
)
{
this
.
$nextTick
(
function
()
{
this
.
$refs
.
multipleDepartment
.
toggleRowSelection
(
row
);
});
}
});
if
(
vm
.
peopleLevel
!=
'L3'
)
{
let
rowCheck
=
this
.
tableDepartment
;
rowCheck
.
forEach
(
row
=>
{
if
(
row
.
status
==
1
)
{
this
.
$nextTick
(
function
()
{
this
.
$refs
.
multipleDepartment
.
toggleRowSelection
(
row
);
});
}
});
}
}
});
},
...
...
@@ -3558,12 +3562,12 @@ export default {
download
(
type
)
{
let
downloadUrl
=
""
;
if
(
type
==
"organization"
)
{
downloadUrl
=
get
Execl
Url
(
"%E6%95%99%E5%9F%B9%E9%A1%B9%E7%9B%AE%E8%A
7%92%E8%89%B2
%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx"
downloadUrl
=
get
ItemFile
Url
(
"%E6%95%99%E5%9F%B9%E9%A1%B9%E7%9B%AE%E8%A
E%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"
)
{
downloadUrl
=
get
Execl
Url
(
"%E6%95%99%E5%9F%B9%E9%A1%B9%E7%9B%AE%E8%A
7%92%E8%89%B2
%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx"
downloadUrl
=
get
ItemFile
Url
(
"%E6%95%99%E5%9F%B9%E9%A1%B9%E7%9B%AE%E8%A
E%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"
)
{
downloadUrl
=
vm
.
failExcelUrl
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录