Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
9
912project
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
CRS
912project
Commits
9f4686aa
提交
9f4686aa
authored
3月 10, 2020
作者:
zax
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into 'zax'
# Conflicts: # src/components/projectManagement/document/document.vue # src/services/server.js
上级
f9c85f75
8c14d825
隐藏空白字符变更
内嵌
并排
正在显示
25 个修改的文件
包含
138 行增加
和
65 行删除
+138
-65
changeElementStyle.css
src/assets/changeElementStyle.css
+7
-0
company.vue
src/components/admittance/company/company.vue
+1
-1
product.vue
src/components/admittance/product/product.vue
+1
-1
technical.vue
src/components/admittance/technical/technical.vue
+1
-1
company.vue
src/components/basicInformation/company/company.vue
+1
-1
person.vue
src/components/basicInformation/person/person.vue
+1
-1
product.vue
src/components/basicInformation/product/product.vue
+1
-1
role.vue
src/components/basicInformation/role/role.vue
+1
-1
complaint.vue
src/components/complaint/complaint/complaint.vue
+1
-1
complaintManagement.vue
...nts/complaint/complaintManagement/complaintManagement.vue
+1
-1
dynamicList.vue
src/components/integration/dynamicList/dynamicList.vue
+1
-1
login.vue
src/components/login/login.vue
+3
-0
document.vue
src/components/projectManagement/document/document.vue
+2
-2
hardware.vue
src/components/projectManagement/hardware/hardware.vue
+1
-1
journal.vue
src/components/projectManagement/journal/journal.vue
+51
-10
projectManagement.vue
...omponents/projectManagement/project/projectManagement.vue
+1
-1
projectDetails.vue
...nents/projectManagement/projectDetails/projectDetails.vue
+6
-2
projectInformation.vue
...ojectManagement/projectInformation/projectInformation.vue
+36
-27
software.vue
src/components/projectManagement/software/software.vue
+1
-1
axios.js
src/services/axios.js
+3
-0
server.js
src/services/server.js
+3
-10
action.js
src/store/action.js
+6
-0
getter.js
src/store/getter.js
+4
-1
mutation.js
src/store/mutation.js
+3
-0
state.js
src/store/state.js
+1
-0
没有找到文件。
src/assets/changeElementStyle.css
浏览文件 @
9f4686aa
...
@@ -132,6 +132,8 @@
...
@@ -132,6 +132,8 @@
}
}
.el-pagination__editor
.el-input__inner
{
.el-pagination__editor
.el-input__inner
{
width
:
46px
!important
;
width
:
46px
!important
;
height
:
28px
!important
;
line-height
:
28px
!important
;
}
}
.content
>>>
.el-table
td
{
.content
>>>
.el-table
td
{
border-bottom
:
1px
solid
#d5e3ff
;
border-bottom
:
1px
solid
#d5e3ff
;
...
@@ -161,6 +163,11 @@
...
@@ -161,6 +163,11 @@
font-size
:
18px
;
font-size
:
18px
;
font-family
:
'Regular'
;
font-family
:
'Regular'
;
}
}
/*滚动条*/
.el-scrollbar__wrap
{
overflow-x
:
hidden
;
}
/*checkbox选择款*/
/*checkbox选择款*/
.el-checkbox__input.is-disabled
.el-checkbox__inner
,
.el-checkbox__input.is-checked
.el-checkbox__inner
{
.el-checkbox__input.is-disabled
.el-checkbox__inner
,
.el-checkbox__input.is-checked
.el-checkbox__inner
{
width
:
21px
;
width
:
21px
;
...
...
src/components/admittance/company/company.vue
浏览文件 @
9f4686aa
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pageSize"
:page-size=
"pageSize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totalLength"
>
:total=
"totalLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/admittance/product/product.vue
浏览文件 @
9f4686aa
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pageSize"
:page-size=
"pageSize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totalLength"
>
:total=
"totalLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/admittance/technical/technical.vue
浏览文件 @
9f4686aa
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pagesize"
:page-size=
"pagesize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totleLength"
>
:total=
"totleLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/basicInformation/company/company.vue
浏览文件 @
9f4686aa
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pageSize"
:page-size=
"pageSize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totalLength"
>
:total=
"totalLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/basicInformation/person/person.vue
浏览文件 @
9f4686aa
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pagesize"
:page-size=
"pagesize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totleLength"
>
:total=
"totleLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/basicInformation/product/product.vue
浏览文件 @
9f4686aa
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pageSize"
:page-size=
"pageSize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totalLength"
>
:total=
"totalLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/basicInformation/role/role.vue
浏览文件 @
9f4686aa
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pagesize"
:page-size=
"pagesize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totleLength"
>
:total=
"totleLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/complaint/complaint/complaint.vue
浏览文件 @
9f4686aa
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pagesize"
:page-size=
"pagesize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totleLength"
>
:total=
"totleLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/complaint/complaintManagement/complaintManagement.vue
浏览文件 @
9f4686aa
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pagesize"
:page-size=
"pagesize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totleLength"
>
:total=
"totleLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/integration/dynamicList/dynamicList.vue
浏览文件 @
9f4686aa
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pagesize"
:page-size=
"pagesize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totleLength"
>
:total=
"totleLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/login/login.vue
浏览文件 @
9f4686aa
...
@@ -42,6 +42,9 @@ export default {
...
@@ -42,6 +42,9 @@ export default {
console
.
log
(
res
.
data
.
data
)
console
.
log
(
res
.
data
.
data
)
this
.
$store
.
commit
(
'changeUserData'
,
res
.
data
.
data
);
this
.
$store
.
commit
(
'changeUserData'
,
res
.
data
.
data
);
this
.
$router
.
push
({
name
:
'firstHome'
})
this
.
$router
.
push
({
name
:
'firstHome'
})
this
.
$store
.
commit
(
'changeSession'
,
{
// 存值
session
:
res
.
data
.
data
.
sessionId
});
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
msg
);
this
.
$message
.
error
(
res
.
data
.
msg
);
}
}
...
...
src/components/projectManagement/document/document.vue
浏览文件 @
9f4686aa
...
@@ -64,8 +64,8 @@
...
@@ -64,8 +64,8 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pageSize"
:page-size=
"pageSize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"tot
al
Length"
>
:total=
"tot
le
Length"
>
</el-pagination>
</el-pagination>
</div>
</div>
<!-- 分页 -->
<!-- 分页 -->
...
...
src/components/projectManagement/hardware/hardware.vue
浏览文件 @
9f4686aa
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pagesize"
:page-size=
"pagesize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totleLength"
>
:total=
"totleLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/projectManagement/journal/journal.vue
浏览文件 @
9f4686aa
...
@@ -18,22 +18,17 @@
...
@@ -18,22 +18,17 @@
stripe
stripe
style=
"width: 100%;"
>
style=
"width: 100%;"
>
<el-table-column
<el-table-column
prop=
"
name
"
prop=
"
content
"
label=
"操作内容"
label=
"操作内容"
align=
"center"
>
align=
"center"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"
role
Name"
prop=
"
user
Name"
label=
"操作人"
label=
"操作人"
align=
"center"
>
align=
"center"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"unitName"
prop=
"time"
label=
"操作记录"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"number"
label=
"操作时间"
label=
"操作时间"
align=
"center"
>
align=
"center"
>
</el-table-column>
</el-table-column>
...
@@ -47,7 +42,7 @@
...
@@ -47,7 +42,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pagesize"
:page-size=
"pagesize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totleLength"
>
:total=
"totleLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
@@ -60,7 +55,7 @@
...
@@ -60,7 +55,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'journal'
,
props
:
[
'value'
]
,
data
()
{
data
()
{
return
{
return
{
searchVal
:
''
,
searchVal
:
''
,
...
@@ -70,7 +65,42 @@ export default {
...
@@ -70,7 +65,42 @@ export default {
totleLength
:
0
,
// 获取后台传的所有数据的长度
totleLength
:
0
,
// 获取后台传的所有数据的长度
}
}
},
},
mounted
(){
this
.
init
();
},
methods
:
{
methods
:
{
init
()
{
let
val
;
if
(
this
.
searchVal
===
''
)
{
val
=
{
'page'
:
this
.
currentPage
,
'pageSize'
:
this
.
pagesize
,
't'
:
{
'projectId'
:
this
.
value
.
id
}
}
}
else
{
val
=
{
'page'
:
this
.
currentPage
,
'pageSize'
:
this
.
pagesize
,
't'
:
{
'projectId'
:
this
.
value
.
id
}
}
}
this
.
$server
.
PostHistorySearch
(
val
).
then
((
res
)
=>
{
// 数据请求
console
.
log
(
res
.
data
)
if
(
res
.
data
.
code
===
200
)
{
this
.
allData
=
res
.
data
.
data
.
rows
;
this
.
totleLength
=
res
.
data
.
data
.
total
for
(
let
item
of
this
.
allData
)
{
item
.
time
=
this
.
timeC
(
item
.
time
)
}
}
}).
catch
(
err
=>
{
this
.
$message
.
error
(
'数据请求失败!'
);
})
},
// 点击分页
// 点击分页
handleSizeChange
(
val
)
{
handleSizeChange
(
val
)
{
console
.
log
(
`每页
${
val
}
条`
);
console
.
log
(
`每页
${
val
}
条`
);
...
@@ -79,6 +109,17 @@ export default {
...
@@ -79,6 +109,17 @@ export default {
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
// console.log(`当前页: ${val}`);
// console.log(`当前页: ${val}`);
this
.
currentPage
=
val
;
this
.
currentPage
=
val
;
},
// 时间换算
timeC
(
value
)
{
let
date
=
new
Date
(
value
);
// 时间戳为10位需*1000,时间戳为13位的话不需乘1000
let
Y
=
date
.
getFullYear
()
+
'-'
;
let
M
=
(
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
)
+
'-'
;
let
D
=
(
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
());
let
h
=
(
date
.
getHours
()
<
10
?
'0'
+
date
.
getHours
()
:
date
.
getHours
())
+
':'
;
let
m
=
(
date
.
getMinutes
()
<
10
?
'0'
+
date
.
getMinutes
()
:
date
.
getMinutes
())
+
':'
;
let
s
=
(
date
.
getSeconds
()
<
10
?
'0'
+
date
.
getSeconds
()
:
date
.
getSeconds
());
return
Y
+
M
+
D
+
' '
+
h
+
m
+
s
;
}
}
}
}
}
}
...
...
src/components/projectManagement/project/projectManagement.vue
浏览文件 @
9f4686aa
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pagesize"
:page-size=
"pagesize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totleLength"
>
:total=
"totleLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/components/projectManagement/projectDetails/projectDetails.vue
浏览文件 @
9f4686aa
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<div
class=
"contentAll"
>
<div
class=
"contentAll"
>
<p
class=
"title"
>
项目管理
<p
class=
"title"
>
项目管理
<
img
src=
"./img/goback.png"
class=
"back"
@
click=
"back"
title=
"返回"
>
<
span
class=
"back"
@
click=
"back"
title=
"返回"
></span
>
</p>
</p>
<p
class=
"titleList"
>
<p
class=
"titleList"
>
<span
class=
"titleListClick"
@
click=
"changeMenu('projectInformation',1)"
>
项目信息
</span>
<span
class=
"titleListClick"
@
click=
"changeMenu('projectInformation',1)"
>
项目信息
</span>
...
@@ -91,10 +91,14 @@ export default {
...
@@ -91,10 +91,14 @@ export default {
position
:
absolute
;
position
:
absolute
;
left
:
25px
;
left
:
25px
;
top
:
28px
;
top
:
28px
;
display
:
inline-block
;
width
:
25px
;
height
:
25px
;
background
:
url("./img/goback.png")
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.projectDetails
.contentAll
.back
:hover
{
.projectDetails
.contentAll
.back
:hover
{
content
:
url("./img/gobackH.png")
;
background
:
url("./img/gobackH.png")
;
}
}
.projectDetails
.contentAll
.titleList
{
.projectDetails
.contentAll
.titleList
{
margin
:
30px
60px
0
60px
;
margin
:
30px
60px
0
60px
;
...
...
src/components/projectManagement/projectInformation/projectInformation.vue
浏览文件 @
9f4686aa
...
@@ -110,15 +110,15 @@ export default {
...
@@ -110,15 +110,15 @@ export default {
data
()
{
data
()
{
return
{
return
{
allVal
:
{
allVal
:
{
name
:
'
XX局XX工程
'
,
// 项目名称
name
:
''
,
// 项目名称
startTime
:
'
2020-02-01
'
,
// 开始时间
startTime
:
''
,
// 开始时间
endTime
:
'
2022-07-12
'
,
// 结束时间
endTime
:
''
,
// 结束时间
technical
:
'
龙芯+达梦+金蝶+曙光服务器
'
,
// 技术路线
technical
:
''
,
// 技术路线
now
:
'
XX阶段
'
,
// 当前阶段
now
:
''
,
// 当前阶段
build
:
'
XX局
'
,
// 建设方
build
:
''
,
// 建设方
basis
:
'
XXX公司
'
,
// 集成商
basis
:
''
,
// 集成商
develop
:
'
XXX公司
'
,
// 开发商
develop
:
''
,
// 开发商
supervision
:
'
XX公司
'
// 监理方
supervision
:
''
// 监理方
},
},
marker
:
[
marker
:
[
{
{
...
@@ -182,27 +182,36 @@ export default {
...
@@ -182,27 +182,36 @@ export default {
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
console
.
log
(
this
.
value
)
this
.
$server
.
GetProjectGet
(
this
.
value
.
id
).
then
((
res
)
=>
{
// 数据请求
console
.
log
(
res
.
data
)
if
(
res
.
data
.
code
===
200
)
{
console
.
log
(
res
.
data
.
data
)
}
}).
catch
(
err
=>
{
this
.
$message
.
error
(
'数据请求失败!'
);
})
let
that
=
this
;
let
that
=
this
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
that
.
allVal
.
name
=
that
.
value
.
name
,
// 项目名称
that
.
$server
.
GetProjectGet
(
that
.
value
.
id
).
then
((
res
)
=>
{
// 数据请求
that
.
allVal
.
startTime
=
that
.
value
.
startTime
,
// 开始时间
if
(
res
.
data
.
code
===
200
)
{
that
.
allVal
.
endTime
=
that
.
value
.
endTime
,
// 结束时间
console
.
log
(
res
.
data
.
data
)
that
.
allVal
.
technical
=
that
.
value
.
techName
,
// 技术路线
that
.
allVal
.
name
=
res
.
data
.
data
.
name
,
// 项目名称
that
.
allVal
.
now
=
that
.
value
.
schedule
,
// 当前阶段
that
.
allVal
.
startTime
=
that
.
timeC
(
res
.
data
.
data
.
startTime
),
// 开始时间
that
.
allVal
.
build
=
that
.
value
.
consName
,
// 建设方
that
.
allVal
.
endTime
=
that
.
timeC
(
res
.
data
.
data
.
endTime
),
// 结束时间
that
.
allVal
.
basis
=
that
.
value
.
gratorName
,
// 集成商
that
.
allVal
.
technical
=
res
.
data
.
data
.
techName
,
// 技术路线
that
.
allVal
.
develop
=
that
.
value
.
devName
,
// 开发商
that
.
allVal
.
now
=
res
.
data
.
data
.
schedule
,
// 当前阶段
that
.
allVal
.
supervision
=
that
.
value
.
thirdName
// 监理方
that
.
allVal
.
build
=
res
.
data
.
data
.
consName
,
// 建设方
that
.
allVal
.
basis
=
res
.
data
.
data
.
gratorName
,
// 集成商
that
.
allVal
.
develop
=
res
.
data
.
data
.
devName
,
// 开发商
that
.
allVal
.
supervision
=
res
.
data
.
data
.
thirdName
// 监理方
}
}).
catch
(
err
=>
{
this
.
$message
.
error
(
'数据请求失败!'
);
})
},
30
)
},
30
)
},
// 时间换算
timeC
(
value
)
{
let
date
=
new
Date
(
value
);
// 时间戳为10位需*1000,时间戳为13位的话不需乘1000
let
Y
=
date
.
getFullYear
()
+
'-'
;
let
M
=
(
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
)
+
'-'
;
let
D
=
(
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
());
let
h
=
(
date
.
getHours
()
<
10
?
'0'
+
date
.
getHours
()
:
date
.
getHours
())
+
':'
;
let
m
=
(
date
.
getMinutes
()
<
10
?
'0'
+
date
.
getMinutes
()
:
date
.
getMinutes
())
+
':'
;
let
s
=
(
date
.
getSeconds
()
<
10
?
'0'
+
date
.
getSeconds
()
:
date
.
getSeconds
());
return
Y
+
M
+
D
+
' '
+
h
+
m
+
s
;
}
}
},
},
components
:
{
components
:
{
...
...
src/components/projectManagement/software/software.vue
浏览文件 @
9f4686aa
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
:current-page
.
sync=
"currentPage"
:current-page
.
sync=
"currentPage"
:page-size=
"pagesize"
:page-size=
"pagesize"
background
background
layout=
"prev, pager, next"
layout=
"prev, pager, next
, jumper
"
:total=
"totleLength"
>
:total=
"totleLength"
>
</el-pagination>
</el-pagination>
</div>
</div>
...
...
src/services/axios.js
浏览文件 @
9f4686aa
import
axios
from
'axios'
;
import
axios
from
'axios'
;
// import Qs from 'qs';
// import Qs from 'qs';
import
baseUrl
from
'../../config'
;
import
baseUrl
from
'../../config'
;
import
store
from
'../store'
;
// axios.defaults.withCredentials = true;
// axios.defaults.withCredentials = true;
// 添加请求拦截器
// 添加请求拦截器
axios
.
interceptors
.
request
.
use
(
function
(
config
)
{
axios
.
interceptors
.
request
.
use
(
function
(
config
)
{
// console.log(store.getters.getSession.session)
config
.
headers
.
session
=
store
.
getters
.
getSession
.
session
;
// 预处理请求信息(config 发出的数据) 下方是三种请求,李迪凡的
// 预处理请求信息(config 发出的数据) 下方是三种请求,李迪凡的
if
(
config
.
method
===
'post'
||
config
.
method
===
'put'
||
config
.
method
===
'delete'
)
{
if
(
config
.
method
===
'post'
||
config
.
method
===
'put'
||
config
.
method
===
'delete'
)
{
// POST传参序列化
// POST传参序列化
...
...
src/services/server.js
浏览文件 @
9f4686aa
...
@@ -234,18 +234,11 @@ const server = {
...
@@ -234,18 +234,11 @@ const server = {
method
:
'get'
method
:
'get'
})
})
},
},
postFileSearch
(
data
)
{
// 项目管理文件清单分页查询
PostHistorySearch
(
data
)
{
// 操作日志接口
return
axios
(
'/
file
/search'
,
{
return
axios
(
'/
history
/search'
,
{
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
},
}
postFileUpload
(
data
)
{
// 项目管理文件清单文件上传
return
axios
(
'/file/upload/'
+
data
.
id
,
{
method
:
'post'
,
data
:
data
.
value
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
});
},
}
}
export
default
server
;
export
default
server
;
src/store/action.js
浏览文件 @
9f4686aa
...
@@ -30,6 +30,12 @@ const actions = {
...
@@ -30,6 +30,12 @@ const actions = {
jumpOther
:
payload
jumpOther
:
payload
})
})
},
},
changeSession
(
store
,
payload
)
{
store
.
commit
({
type
:
'changeSession'
,
session
:
payload
})
},
};
};
export
default
actions
;
export
default
actions
;
src/store/getter.js
浏览文件 @
9f4686aa
...
@@ -14,7 +14,10 @@ const getters = {
...
@@ -14,7 +14,10 @@ const getters = {
},
},
getJumpOther
(
state
)
{
getJumpOther
(
state
)
{
return
state
.
jumpOther
return
state
.
jumpOther
}
},
getSession
(
state
)
{
return
state
.
session
},
};
};
export
default
getters
;
export
default
getters
;
src/store/mutation.js
浏览文件 @
9f4686aa
...
@@ -15,6 +15,9 @@ const mutations = {
...
@@ -15,6 +15,9 @@ const mutations = {
changeJumpOther
(
state
,
payload
)
{
changeJumpOther
(
state
,
payload
)
{
state
.
jumpOther
=
payload
;
state
.
jumpOther
=
payload
;
},
},
changeSession
(
state
,
payload
)
{
state
.
session
=
payload
;
},
};
};
export
default
mutations
;
export
default
mutations
;
src/store/state.js
浏览文件 @
9f4686aa
...
@@ -5,6 +5,7 @@ const state = {
...
@@ -5,6 +5,7 @@ const state = {
homeClick
:
{},
// 首页点击的模块
homeClick
:
{},
// 首页点击的模块
nowPath
:
''
,
// 当前页面路径
nowPath
:
''
,
// 当前页面路径
jumpOther
:
''
,
// 跳转到其他页面,修改顶部子菜单样式
jumpOther
:
''
,
// 跳转到其他页面,修改顶部子菜单样式
session
:
''
,
// 请求session
};
};
export
default
state
;
export
default
state
;
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论