Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
a9450ea2
Commit
a9450ea2
authored
Jul 17, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'dev20230707' of
http://192.168.60.201/root/dsk-operate-sys
into dev20230707
# Conflicts: # dsk-operate-ui/vue.config.js
parent
ffaca1b9
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
264 additions
and
143 deletions
+264
-143
index.vue
dsk-operate-ui/src/views/custom/customList/index.vue
+19
-7
index.vue
...operate-ui/src/views/custom/historicalCustomers/index.vue
+40
-20
index.vue
dsk-operate-ui/src/views/custom/overview/index.vue
+29
-13
index.vue
dsk-operate-ui/src/views/project/overview/index.vue
+1
-0
gjjl.vue
...erate-ui/src/views/project/projectList/component/gjjl.vue
+62
-51
gzdb.vue
...erate-ui/src/views/project/projectList/component/gzdb.vue
+46
-38
lxr.vue
...perate-ui/src/views/project/projectList/component/lxr.vue
+8
-1
skeleton.vue
...e-ui/src/views/project/projectList/component/skeleton.vue
+29
-0
xgqy.vue
...erate-ui/src/views/project/projectList/component/xgqy.vue
+7
-2
zlwd.vue
...erate-ui/src/views/project/projectList/component/zlwd.vue
+7
-1
index.vue
dsk-operate-ui/src/views/project/projectList/index.vue
+16
-10
No files found.
dsk-operate-ui/src/views/custom/customList/index.vue
View file @
a9450ea2
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-card
class=
"box-card noborder"
>
<el-card
class=
"box-card noborder"
>
<div
class=
"tables"
>
<div
class=
"tables"
>
<div
class=
"empty"
v-if=
"tableData.total==0"
>
<div
class=
"empty"
v-if=
"tableData.total==0
&& !isSkeleton
"
>
<img
src=
"@/assets/images/project/empty.png"
>
<img
src=
"@/assets/images/project/empty.png"
>
<div
class=
"p1"
>
抱歉,没找到相关数据
</div>
<div
class=
"p1"
>
抱歉,没找到相关数据
</div>
<div
class=
"p2"
>
建议调整关键词或筛选条件,重新搜索
</div>
<div
class=
"p2"
>
建议调整关键词或筛选条件,重新搜索
</div>
...
@@ -25,7 +25,8 @@
...
@@ -25,7 +25,8 @@
<div
class=
"btn btn_primary h32 p10"
@
click=
"opennew"
><div
class=
"img img1"
></div>
添加客户
</div>
<div
class=
"btn btn_primary h32 p10"
@
click=
"opennew"
><div
class=
"img img1"
></div>
添加客户
</div>
</div>
</div>
</div>
</div>
<el-table
v-if=
"tableData.total > 0"
<skeleton
v-if=
"isSkeleton"
></skeleton>
<el-table
v-if=
"!isSkeleton&&tableData.total > 0"
:data=
"tableData.rows"
:data=
"tableData.rows"
stripe
border
stripe
border
style=
"width: 100%"
>
style=
"width: 100%"
>
...
@@ -159,8 +160,11 @@
...
@@ -159,8 +160,11 @@
label=
"主营业务"
width=
"400"
>
label=
"主营业务"
width=
"400"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.mainBusiness == null || scope.row.mainBusiness == ''"
>
--
</div>
<div
v-if=
"scope.row.mainBusiness == null || scope.row.mainBusiness == ''"
>
--
</div>
<div
class=
"box"
v-else-if=
"scope.row.sq1==true"
>
{{
scope
.
row
.
mainBusiness1
}}
...
<span
@
click=
"sq1(scope.row,false)"
>
更多
</span></div>
<div
v-if=
"scope.row.mainBusiness1"
>
<div
class=
"box"
v-else
>
{{
scope
.
row
.
mainBusiness
}}
<span
@
click=
"sq1(scope.row,true)"
>
收起
</span></div>
<div
class=
"box"
v-if=
"scope.row.sq1==true"
>
{{
scope
.
row
.
mainBusiness1
}}
...
<span
@
click=
"sq1(scope.row,false)"
>
更多
</span></div>
<div
class=
"box"
v-else
>
{{
scope
.
row
.
mainBusiness
}}
<span
@
click=
"sq1(scope.row,true)"
>
收起
</span></div>
</div>
<div
v-else
>
{{
scope
.
row
.
mainBusiness
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -168,8 +172,11 @@
...
@@ -168,8 +172,11 @@
label=
"发包属性"
width=
"400"
>
label=
"发包属性"
width=
"400"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.companyAttribute == null || scope.row.companyAttribute == ''"
>
--
</div>
<div
v-if=
"scope.row.companyAttribute == null || scope.row.companyAttribute == ''"
>
--
</div>
<div
class=
"box"
v-else-if=
"scope.row.sq2==true"
>
{{
scope
.
row
.
companyAttribute1
}}
...
<span
@
click=
"sq2(scope.row,false)"
>
更多
</span></div>
<div
v-if=
"scope.row.companyAttribute1"
>
<div
class=
"box"
v-else
>
{{
scope
.
row
.
companyAttribute
}}
<span
@
click=
"sq2(scope.row,true)"
>
收起
</span></div>
<div
class=
"box"
v-if=
"scope.row.sq2==true"
>
{{
scope
.
row
.
companyAttribute1
}}
...
<span
@
click=
"sq2(scope.row,false)"
>
更多
</span></div>
<div
class=
"box"
v-else
>
{{
scope
.
row
.
companyAttribute
}}
<span
@
click=
"sq2(scope.row,true)"
>
收起
</span></div>
</div>
<div
v-else
>
{{
scope
.
row
.
companyAttribute
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -245,11 +252,12 @@
...
@@ -245,11 +252,12 @@
import
{
getEnterprise
,
getDictType
,}
from
'@/api/main'
import
{
getEnterprise
,
getDictType
,}
from
'@/api/main'
import
prvinceTree
from
'@/assets/json/provinceTree'
import
prvinceTree
from
'@/assets/json/provinceTree'
import
batchimport
from
'../../project/projectList/component/batchImport'
import
batchimport
from
'../../project/projectList/component/batchImport'
import
skeleton
from
'../../project/projectList/component/skeleton'
import
axios
from
'axios'
import
axios
from
'axios'
import
{
encodeStr
}
from
"@/assets/js/common"
import
{
encodeStr
}
from
"@/assets/js/common"
export
default
{
export
default
{
name
:
'CustomList'
,
name
:
'CustomList'
,
components
:{
batchimport
},
components
:{
batchimport
,
skeleton
},
data
()
{
data
()
{
return
{
return
{
encodeStr
,
encodeStr
,
...
@@ -297,6 +305,7 @@ export default {
...
@@ -297,6 +305,7 @@ export default {
// isNew:true,
// isNew:true,
showlist
:
false
,
showlist
:
false
,
keys
:
1
,
keys
:
1
,
isSkeleton
:
true
,
}
}
},
},
created
()
{
created
()
{
...
@@ -343,6 +352,7 @@ export default {
...
@@ -343,6 +352,7 @@ export default {
//获取客户列表
//获取客户列表
getCustomerList
(){
getCustomerList
(){
getCustomerList
(
this
.
searchParam
).
then
(
result
=>
{
getCustomerList
(
this
.
searchParam
).
then
(
result
=>
{
this
.
isSkeleton
=
false
this
.
tableData
=
result
this
.
tableData
=
result
this
.
tableData
.
rows
.
forEach
(
item
=>
{
this
.
tableData
.
rows
.
forEach
(
item
=>
{
item
.
registerCapital
=
item
.
registerCapital
==
null
?
null
:
item
.
registerCapital
.
replace
(
/^
\D
*
(\d
*
(?:\.\d{0,6})?)
.*$/g
,
'$1'
)
item
.
registerCapital
=
item
.
registerCapital
==
null
?
null
:
item
.
registerCapital
.
replace
(
/^
\D
*
(\d
*
(?:\.\d{0,6})?)
.*$/g
,
'$1'
)
...
@@ -358,6 +368,7 @@ export default {
...
@@ -358,6 +368,7 @@ export default {
}
else
{
}
else
{
item
.
sq2
=
false
item
.
sq2
=
false
}
}
console
.
log
(
item
)
})
})
})
})
},
},
...
@@ -378,6 +389,7 @@ export default {
...
@@ -378,6 +389,7 @@ export default {
},
},
//翻页
//翻页
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
isSkeleton
=
true
this
.
pldr
=
false
this
.
pldr
=
false
// this.isNew = false
// this.isNew = false
this
.
searchParam
.
pageNum
=
val
this
.
searchParam
.
pageNum
=
val
...
...
dsk-operate-ui/src/views/custom/historicalCustomers/index.vue
View file @
a9450ea2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-card
class=
"box-card noborder"
>
<el-card
class=
"box-card noborder"
>
<div
class=
"tables"
>
<div
class=
"tables"
>
<div
class=
"empty"
v-if=
"tableData.total==0"
>
<div
class=
"empty"
v-if=
"tableData.total==0
&& !isSkeleton
"
>
<img
src=
"@/assets/images/project/empty.png"
>
<img
src=
"@/assets/images/project/empty.png"
>
<div
class=
"p1"
>
抱歉,没找到相关数据
</div>
<div
class=
"p1"
>
抱歉,没找到相关数据
</div>
<div
class=
"p2"
>
建议调整关键词或筛选条件,重新搜索
</div>
<div
class=
"p2"
>
建议调整关键词或筛选条件,重新搜索
</div>
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
<div
class=
"total"
>
共
{{
tableData
.
total
}}
条
</div>
<div
class=
"total"
>
共
{{
tableData
.
total
}}
条
</div>
</div>
</div>
</div>
</div>
<el-table
v-if=
"tableData.total > 0"
<skeleton
v-if=
"isSkeleton"
></skeleton>
<el-table
v-if=
"!isSkeleton&&tableData.total > 0"
:data=
"tableData.rows"
:data=
"tableData.rows"
stripe
border
stripe
border
style=
"width: 100%"
>
style=
"width: 100%"
>
...
@@ -42,13 +43,6 @@
...
@@ -42,13 +43,6 @@
<div
@
click=
"toRL(scope.row)"
><img
class=
"i"
src=
"@/assets/images/project/khrl1.png"
><img
class=
"o"
src=
"@/assets/images/project/khrl2.png"
></div>
<div
@
click=
"toRL(scope.row)"
><img
class=
"i"
src=
"@/assets/images/project/khrl1.png"
><img
class=
"o"
src=
"@/assets/images/project/khrl2.png"
></div>
</div>
</div>
</div>
</div>
<div
class=
"delform"
v-if=
"scope.row.companyName == '重庆市永川区惠通建设发展有限公司'"
>
<div
class=
"words"
>
再次认领将会恢复默认客户数据
</div>
<div>
<div
class=
"btnsmall btn_primary h28"
>
确定
</div>
<div
class=
"btnsmall btn_cancel h28"
>
取消
</div>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -157,8 +151,11 @@
...
@@ -157,8 +151,11 @@
label=
"主营业务"
width=
"400"
>
label=
"主营业务"
width=
"400"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.mainBusiness == null || scope.row.mainBusiness == ''"
>
--
</div>
<div
v-if=
"scope.row.mainBusiness == null || scope.row.mainBusiness == ''"
>
--
</div>
<div
class=
"box"
v-else-if=
"scope.row.sq1==true"
>
{{
scope
.
row
.
mainBusiness1
}}
...
<span
@
click=
"sq1(scope.row,false)"
>
更多
</span></div>
<div
v-if=
"scope.row.mainBusiness1"
>
<div
class=
"box"
v-else
>
{{
scope
.
row
.
mainBusiness
}}
<span
@
click=
"sq1(scope.row,true)"
>
收起
</span></div>
<div
class=
"box"
v-if=
"scope.row.sq1==true"
>
{{
scope
.
row
.
mainBusiness1
}}
...
<span
@
click=
"sq1(scope.row,false)"
>
更多
</span></div>
<div
class=
"box"
v-else
>
{{
scope
.
row
.
mainBusiness
}}
<span
@
click=
"sq1(scope.row,true)"
>
收起
</span></div>
</div>
<div
v-else
>
{{
scope
.
row
.
mainBusiness
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -166,8 +163,11 @@
...
@@ -166,8 +163,11 @@
label=
"发包属性"
width=
"400"
>
label=
"发包属性"
width=
"400"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.companyAttribute == null || scope.row.companyAttribute == ''"
>
--
</div>
<div
v-if=
"scope.row.companyAttribute == null || scope.row.companyAttribute == ''"
>
--
</div>
<div
class=
"box"
v-else-if=
"scope.row.sq2==true"
>
{{
scope
.
row
.
companyAttribute1
}}
...
<span
@
click=
"sq2(scope.row,false)"
>
更多
</span></div>
<div
v-if=
"scope.row.companyAttribute1"
>
<div
class=
"box"
v-else
>
{{
scope
.
row
.
companyAttribute
}}
<span
@
click=
"sq2(scope.row,true)"
>
收起
</span></div>
<div
class=
"box"
v-if=
"scope.row.sq2==true"
>
{{
scope
.
row
.
companyAttribute1
}}
...
<span
@
click=
"sq2(scope.row,false)"
>
更多
</span></div>
<div
class=
"box"
v-else
>
{{
scope
.
row
.
companyAttribute
}}
<span
@
click=
"sq2(scope.row,true)"
>
收起
</span></div>
</div>
<div
v-else
>
{{
scope
.
row
.
companyAttribute
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -188,6 +188,13 @@
...
@@ -188,6 +188,13 @@
:total=
"tableData.total"
>
:total=
"tableData.total"
>
</el-pagination>
</el-pagination>
</div>
</div>
<div
class=
"delform"
v-if=
"RLcompanyName"
>
<div
class=
"words"
>
再次认领将会恢复默认客户数据
</div>
<div>
<div
class=
"btnsmall btn_primary h28"
@
click=
"RL"
>
确定
</div>
<div
class=
"btnsmall btn_cancel h28"
@
click=
"RLcompanyName = ''"
>
取消
</div>
</div>
</div>
</div>
</div>
</el-card>
</el-card>
</div>
</div>
...
@@ -201,15 +208,18 @@
...
@@ -201,15 +208,18 @@
import
{
getEnterprise
,
getDictType
,}
from
'@/api/main'
import
{
getEnterprise
,
getDictType
,}
from
'@/api/main'
import
{
encodeStr
}
from
"@/assets/js/common"
import
{
encodeStr
}
from
"@/assets/js/common"
import
{
historyClaim
}
from
"@/api/common"
//认领
import
{
historyClaim
}
from
"@/api/common"
//认领
import
skeleton
from
'../../project/projectList/component/skeleton'
export
default
{
export
default
{
name
:
'CustomList'
,
name
:
'CustomList'
,
components
:{
skeleton
},
data
()
{
data
()
{
return
{
return
{
encodeStr
,
encodeStr
,
searchParam
:{
searchParam
:{
companyName
:
''
,
companyName
:
''
,
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
20
pageSize
:
20
,
status
:
1
,
},
},
tableData
:
[],
//列表
tableData
:
[],
//列表
...
@@ -226,12 +236,13 @@ export default {
...
@@ -226,12 +236,13 @@ export default {
// isNew:true,
// isNew:true,
showlist
:
false
,
showlist
:
false
,
keys
:
1
,
keys
:
1
,
RLcompanyName
:
''
,
//重新认领企业名称
isSkeleton
:
true
,
}
}
},
},
created
()
{
created
()
{
this
.
getCustomerList
()
this
.
getCustomerList
()
this
.
getDictType
()
this
.
getDictType
()
this
.
prvinceTree
()
},
},
methods
:{
methods
:{
sq1
(
item
,
sq
){
sq1
(
item
,
sq
){
...
@@ -266,6 +277,7 @@ export default {
...
@@ -266,6 +277,7 @@ export default {
//获取客户列表
//获取客户列表
getCustomerList
(){
getCustomerList
(){
getCustomerList
(
this
.
searchParam
).
then
(
result
=>
{
getCustomerList
(
this
.
searchParam
).
then
(
result
=>
{
this
.
isSkeleton
=
false
this
.
tableData
=
result
this
.
tableData
=
result
this
.
tableData
.
rows
.
forEach
(
item
=>
{
this
.
tableData
.
rows
.
forEach
(
item
=>
{
item
.
registerCapital
=
item
.
registerCapital
==
null
?
null
:
item
.
registerCapital
.
replace
(
/^
\D
*
(\d
*
(?:\.\d{0,6})?)
.*$/g
,
'$1'
)
item
.
registerCapital
=
item
.
registerCapital
==
null
?
null
:
item
.
registerCapital
.
replace
(
/^
\D
*
(\d
*
(?:\.\d{0,6})?)
.*$/g
,
'$1'
)
...
@@ -296,13 +308,15 @@ export default {
...
@@ -296,13 +308,15 @@ export default {
},
},
//认领客户
//认领客户
async
toRL
(
row
){
async
toRL
(
row
){
let
param
=
row
.
companyName
this
.
RLcompanyName
=
row
.
companyName
let
res
=
await
historyClaim
(
param
)
},
async
RL
(){
let
res
=
await
historyClaim
(
this
.
RLcompanyName
)
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
this
.
$message
.
success
(
'认领成功!'
)
this
.
$message
.
success
(
'认领成功!'
)
this
.
handleCurrentChange
(
1
)
this
.
handleCurrentChange
(
1
)
this
.
RLcompanyName
=
''
}
}
},
},
clearname
(
value
){
clearname
(
value
){
if
(
value
==
""
){
if
(
value
==
""
){
...
@@ -311,6 +325,7 @@ export default {
...
@@ -311,6 +325,7 @@ export default {
},
},
//翻页
//翻页
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
isSkeleton
=
true
this
.
searchParam
.
pageNum
=
val
this
.
searchParam
.
pageNum
=
val
this
.
getCustomerList
()
this
.
getCustomerList
()
},
},
...
@@ -320,9 +335,14 @@ export default {
...
@@ -320,9 +335,14 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.delform
{
.delform
{
right
:
5px
;
top
:
40px
;
width
:
228px
;
width
:
228px
;
left
:
50%
;
top
:
50%
;
margin-left
:
-114px
;
margin-top
:
-57px
;
.words
{
font-size
:
14px
;
}
}
}
.app-container
{
.app-container
{
height
:
calc
(
100vh
-
134px
)
height
:
calc
(
100vh
-
134px
)
...
...
dsk-operate-ui/src/views/custom/overview/index.vue
View file @
a9450ea2
...
@@ -118,9 +118,10 @@
...
@@ -118,9 +118,10 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
"@/assets/styles/project.scss"
import
'@/assets/styles/project.scss'
import
*
as
echarts
from
'echarts'
import
*
as
echarts
from
'echarts'
export
default
{
export
default
{
name
:
'Overview'
,
name
:
'Overview'
,
data
()
{
data
()
{
return
{
return
{
...
@@ -192,9 +193,9 @@ export default {
...
@@ -192,9 +193,9 @@ export default {
initChart
(){
initChart
(){
//客户级别
//客户级别
this
.
option
=
{
this
.
option
=
{
tooltip
:
{
tooltip
:
{
trigger
:
'item'
trigger
:
'item'
,
extraCssText
:
'border:0'
,
},
},
color
:[
'#8A82F3'
,
'#5B9CF7'
,
'#8DCF96'
,
'#FFDC6B'
,
'#FE9C77'
],
//修改配色
color
:[
'#8A82F3'
,
'#5B9CF7'
,
'#8DCF96'
,
'#FFDC6B'
,
'#FE9C77'
],
//修改配色
series
:
[
series
:
[
...
@@ -203,17 +204,17 @@ export default {
...
@@ -203,17 +204,17 @@ export default {
type
:
'pie'
,
type
:
'pie'
,
radius
:
[
'50%'
,
'70%'
],
radius
:
[
'50%'
,
'70%'
],
data
:
[
data
:
[
{
value
:
23
,
name
:
'集团总部:11%'
},
{
value
:
23
,
name
:
'集团总部:11%'
,
borderWidth
:
0
},
{
value
:
61
,
name
:
'一级单位:29%'
},
{
value
:
61
,
name
:
'一级单位:29%'
,
borderWidth
:
0
},
{
value
:
60
,
name
:
'二级单位:29%'
},
{
value
:
60
,
name
:
'二级单位:29%'
,
borderWidth
:
0
},
{
value
:
21
,
name
:
'三级单位:10%'
},
{
value
:
21
,
name
:
'三级单位:10%'
,
borderWidth
:
0
},
{
value
:
44
,
name
:
'其他单位: 21%'
}
{
value
:
44
,
name
:
'其他单位: 21%'
,
borderWidth
:
0
}
],
],
emphasis
:
{
emphasis
:
{
itemStyle
:
{
itemStyle
:
{
shadowBlur
:
10
,
shadowBlur
:
10
,
shadowOffsetX
:
0
,
shadowOffsetX
:
0
,
shadowColor
:
'rgba(0, 0, 0, 0
.5
)'
shadowColor
:
'rgba(0, 0, 0, 0)'
}
}
}
}
}
}
...
@@ -267,7 +268,14 @@ export default {
...
@@ -267,7 +268,14 @@ export default {
}
}
}
}
}
}
]
],
emphasis
:
{
itemStyle
:
{
// 高亮时点的颜色。
color
:
'rgb(90,146,247)'
},
}
}
}
this
.
option2
&&
this
.
myChart2
.
setOption
(
this
.
option2
)
this
.
option2
&&
this
.
myChart2
.
setOption
(
this
.
option2
)
//客户资质分析
//客户资质分析
...
@@ -317,7 +325,14 @@ export default {
...
@@ -317,7 +325,14 @@ export default {
},
},
}
}
}
}
]
],
emphasis
:
{
itemStyle
:
{
// 高亮时点的颜色。
color
:
'rgb(134,231,231)'
},
}
}
}
this
.
option3
&&
this
.
myChart3
.
setOption
(
this
.
option3
)
this
.
option3
&&
this
.
myChart3
.
setOption
(
this
.
option3
)
...
@@ -358,6 +373,7 @@ export default {
...
@@ -358,6 +373,7 @@ export default {
axisPointer
:{
//悬浮于圆点展示标签
axisPointer
:{
//悬浮于圆点展示标签
type
:
'axis'
type
:
'axis'
},
},
extraCssText
:
'border:0'
,
// trigger: 'axis'
// trigger: 'axis'
},
},
series
:
[
series
:
[
...
...
dsk-operate-ui/src/views/project/overview/index.vue
View file @
a9450ea2
...
@@ -346,6 +346,7 @@ export default {
...
@@ -346,6 +346,7 @@ export default {
axisPointer
:{
//悬浮于圆点展示标签
axisPointer
:{
//悬浮于圆点展示标签
type
:
'axis'
type
:
'axis'
},
},
extraCssText
:
'border:0'
,
// trigger: 'axis'
// trigger: 'axis'
},
},
legend
:
{
legend
:
{
...
...
dsk-operate-ui/src/views/project/projectList/component/gjjl.vue
View file @
a9450ea2
...
@@ -61,69 +61,71 @@
...
@@ -61,69 +61,71 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"recordlist"
v-if=
"showtype=='gjdt'"
>
<skeleton
v-if=
"isSkeleton"
style=
"padding-top: 16px"
></skeleton>
<div
class=
"rec_detail"
v-for=
"(item,index) in recordlist.rows"
>
<div
v-else
>
<div
class=
"delform"
v-if=
"isdel && delID == item.id"
>
<div
class=
"recordlist"
v-if=
"showtype=='gjdt'"
>
<div
class=
"words"
>
是否删除该条记录
</div>
<div
class=
"rec_detail"
v-for=
"(item,index) in recordlist.rows"
>
<div>
<div
class=
"delform"
v-if=
"isdel && delID == item.id"
>
<div
class=
"btnsmall btn_primary h28"
@
click=
"delele"
>
确定
</div>
<div
class=
"words"
>
是否删除该条记录
</div>
<div
class=
"btnsmall btn_cancel h28"
@
click=
"isdel=false"
>
取消
</div>
<div>
<div
class=
"btnsmall btn_primary h28"
@
click=
"delele"
>
确定
</div>
<div
class=
"btnsmall btn_cancel h28"
@
click=
"isdel=false"
>
取消
</div>
</div>
</div>
</div>
</div>
<div
class=
"rec_time"
>
<div
class=
"rec_time"
>
<i
class=
"el-icon-time"
></i>
<i
class=
"el-icon-time"
></i>
<div>
{{
item
.
createTime
&&
item
.
createTime
.
slice
(
0
,
16
)
}}
</div>
<div>
{{
item
.
createTime
&&
item
.
createTime
.
slice
(
0
,
16
)
}}
</div>
<div
class=
"operate"
>
<div
class=
"operate"
>
<!--
<img
src=
"@/assets/images/edit.png"
>
第一期不做编辑-->
<!--
<img
src=
"@/assets/images/edit.png"
>
第一期不做编辑-->
<img
@
click=
"delRecord(item.id)"
src=
"@/assets/images/delete.png"
>
<img
@
click=
"delRecord(item.id)"
src=
"@/assets/images/delete.png"
>
</div>
</div>
</div>
</div
>
<div
class=
"rec_con"
>
<div
class=
"rec_con"
>
<div><strong>
{{
item
.
nickName
}}
</strong>
<span
v-if=
"item.visitMode"
>
(
{{
item
.
visitMode
}}
)
</span></div
>
<div><strong>
{{
item
.
nickName
}}
</strong>
<span
v-if=
"item.visitMode"
>
(
{{
item
.
visitMode
}}
)
</span></div>
<div><span>
{{
item
.
content
}}
</span></div>
<div><span>
{{
item
.
content
}}
</span></div
>
<div
class=
"rec_text"
>
<div
class=
"rec_text"
>
<span
v-if=
"item.name"
>
拜访对象:
{{
item
.
name
||
'--'
}}
</span
>
<span
v-if=
"item.name"
>
拜访对象:
{{
item
.
name
||
'--'
}}
</span>
<span
v-if=
"showtype == 'gjdt' && item.companyName != ''"
>
关联企业:
{{
item
.
companyName
}}
</span>
<span
v-if=
"showtype == 'gjdt' && item.companyName != ''"
>
关联企业:
{{
item
.
companyName
}}
</span>
<span
v-if=
"item.position"
>
职位:
{{
item
.
position
}}
</span>
<span
v-if=
"item.position"
>
职位:
{{
item
.
position
}}
</span>
<span
v-if=
"item.visitTime"
>
拜访时间:
{{
item
.
visitTime
.
slice
(
0
,
10
)
}}
</span>
<span
v-if=
"item.visitTime"
>
拜访时间:
{{
item
.
v
isitTime
.
slice
(
0
,
10
)
}}
</span>
<span
v-if=
"item.nextVisitTime"
>
下次拜访时间:
{{
item
.
nextV
isitTime
.
slice
(
0
,
10
)
}}
</span>
<
span
v-if=
"item.nextVisitTime"
>
下次拜访时间:
{{
item
.
nextVisitTime
.
slice
(
0
,
10
)
}}
</span
>
<
/div
>
</div>
</div>
</div>
</div>
</div>
</div>
</div
>
<div
class=
"recordlist"
v-if=
"showtype=='gjjl' || showtype == 'projectgjdt' && recordlist.total>0"
>
<div
class=
"recordlist"
v-if=
"showtype=='gjjl' || showtype == 'projectgjdt' && recordlist.total>0
"
>
<div
class=
"rec_detail"
v-for=
"(item,index) in recordlist.rows
"
>
<div
class=
"rec_detail"
v-for=
"(item,index) in recordlist.rows
"
>
<div
class=
"delform"
v-if=
"isdel && delID == item.id
"
>
<div
class=
"delform"
v-if=
"isdel && delID == item.id"
>
<div
class=
"words"
>
是否删除该条记录
</div
>
<div
class=
"words"
>
是否删除该条记录
</
div>
<
div>
<
div>
<div
class=
"btnsmall btn_primary h28"
@
click=
"delele"
>
确定
</
div>
<div
class=
"btnsmall btn_primary h28"
@
click=
"delele"
>
确定
</div>
<div
class=
"btnsmall btn_cancel h28"
@
click=
"isdel=false"
>
取消
</div>
<
div
class=
"btnsmall btn_cancel h28"
@
click=
"isdel=false"
>
取消
<
/div>
</div>
</div>
</div>
</div>
<div
class=
"rec_time"
>
<div
class=
"rec_time"
>
<i
class=
"el-icon-time"
></i>
<i
class=
"el-icon-time"
></i>
<div>
{{
item
.
creatTime
}}
</div>
<div>
{{
item
.
creatTime
}}
</div>
<div
class=
"operate"
v-if=
"isDisableds == false"
>
<div
class=
"operate"
v-if=
"isDisableds == false"
>
<!--
<img
src=
"@/assets/images/edit.png"
>
第一期不做编辑-->
<!--
<img
src=
"@/assets/images/edit.png"
>
第一期不做编辑-->
<img
@
click=
"delRecord(item.id)"
src=
"@/assets/images/delete.png"
>
<img
@
click=
"delRecord(item.id)"
src=
"@/assets/images/delete.png"
>
</div>
</div>
</div>
</div
>
<div
class=
"rec_con"
>
<div
class=
"rec_con"
>
<div><strong>
{{
item
.
nickName
}}
</strong>
<span
v-if=
"item.visitWay"
>
(
{{
item
.
visitWay
}}
)
</span></div
>
<div><strong>
{{
item
.
nickName
}}
</strong>
<span
v-if=
"item.visitWay"
>
(
{{
item
.
visitWay
}}
)
</span></div>
<div><span>
{{
item
.
recordInfo
}}
</span></div>
<div><span>
{{
item
.
recordInfo
}}
</span></div
>
<div
class=
"rec_text"
>
<div
class=
"rec_text"
>
<span
v-if=
"item.projectName && showtype == 'projectgjdt'"
>
关联项目:
{{
item
.
projectName
||
'--'
}}
</span
>
<span
v-if=
"item.projectName && showtype == 'projectgjdt'"
>
关联项目:
{{
item
.
projectName
||
'--'
}}
</span>
<span
v-if=
"item.visitPerson"
>
拜访对象:
{{
item
.
visitPerson
||
'--'
}}
</span>
<span
v-if=
"item.visitPerson"
>
拜访对象:
{{
item
.
visitPers
on
||
'--'
}}
</span>
<span
v-if=
"item.position"
>
职位:
{{
item
.
positi
on
||
'--'
}}
</span>
<span
v-if=
"item.position"
>
职位:
{{
item
.
position
||
'--'
}}
</span>
<span
v-if=
"item.visitTime"
>
拜访时间:
{{
item
.
visitTime
}}
</span>
<span
v-if=
"item.visitTime"
>
拜访时间:
{{
item
.
visitTime
}}
</span>
<span
v-if=
"item.nextVisitTime"
>
下次拜访时间:
{{
item
.
nextVisitTime
||
'--'
}}
</span>
<
span
v-if=
"item.nextVisitTime"
>
下次拜访时间:
{{
item
.
nextVisitTime
||
'--'
}}
</span
>
<
/div
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"tables"
v-if=
"recordlist.total>pageSize"
>
<div
class=
"tables"
v-if=
"recordlist.total>pageSize"
>
<div
class=
"bottems"
>
<div
class=
"bottems"
>
<el-pagination
<el-pagination
background
background
...
@@ -135,6 +137,7 @@
...
@@ -135,6 +137,7 @@
</el-pagination>
</el-pagination>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</el-card>
</el-card>
</div>
</div>
...
@@ -145,7 +148,9 @@
...
@@ -145,7 +148,9 @@
import
{
getFollowList
,
addFollowRecord
,
getUserList
,
delFollowRecord
}
from
'@/api/custom/custom'
import
{
getFollowList
,
addFollowRecord
,
getUserList
,
delFollowRecord
}
from
'@/api/custom/custom'
import
{
getGJJL
,
addGJJL
,
delGJJL
,
relateProject
,
allRecord
}
from
'@/api/project/project'
import
{
getGJJL
,
addGJJL
,
delGJJL
,
relateProject
,
allRecord
}
from
'@/api/project/project'
import
{
getEnterprise
,
getDictType
,}
from
'@/api/main'
import
{
getEnterprise
,
getDictType
,}
from
'@/api/main'
import
skeleton
from
'./skeleton'
export
default
{
export
default
{
components
:{
skeleton
},
props
:{
props
:{
types
:
{
//当前组件展示类型
types
:
{
//当前组件展示类型
type
:
String
,
type
:
String
,
...
@@ -191,6 +196,7 @@
...
@@ -191,6 +196,7 @@
projectList
:[],
//关联项目
projectList
:[],
//关联项目
isDisableds
:
this
.
isDisabled
,
isDisableds
:
this
.
isDisabled
,
keys
:
1
,
keys
:
1
,
isSkeleton
:
true
,
}
}
},
},
computed
:
{
computed
:
{
...
@@ -220,6 +226,7 @@
...
@@ -220,6 +226,7 @@
this
.
isDisableds
=
false
this
.
isDisableds
=
false
this
.
projectId
=
null
//项目id暂时清空,必须手选id
this
.
projectId
=
null
//项目id暂时清空,必须手选id
relateProject
(
this
.
userId
).
then
(
res
=>
{
relateProject
(
this
.
userId
).
then
(
res
=>
{
this
.
isSkeleton
=
false
this
.
projectList
=
res
.
data
this
.
projectList
=
res
.
data
})
})
this
.
getGJDT
()
this
.
getGJDT
()
...
@@ -323,6 +330,7 @@
...
@@ -323,6 +330,7 @@
param
.
customerId
=
this
.
customerIds
param
.
customerId
=
this
.
customerIds
}
}
getFollowList
(
param
).
then
(
result
=>
{
getFollowList
(
param
).
then
(
result
=>
{
this
.
isSkeleton
=
false
this
.
recordlist
=
result
.
code
==
200
?
result
:[]
this
.
recordlist
=
result
.
code
==
200
?
result
:[]
this
.
recordlist
.
rows
.
forEach
(
item
=>
{
this
.
recordlist
.
rows
.
forEach
(
item
=>
{
item
.
createTime
=
this
.
gettime
(
item
.
createTime
)
item
.
createTime
=
this
.
gettime
(
item
.
createTime
)
...
@@ -339,6 +347,7 @@
...
@@ -339,6 +347,7 @@
userId
:
this
.
userId
userId
:
this
.
userId
}
}
allRecord
(
param
).
then
(
result
=>
{
allRecord
(
param
).
then
(
result
=>
{
this
.
isSkeleton
=
false
this
.
recordlist
=
result
.
code
==
200
?
result
:[]
this
.
recordlist
=
result
.
code
==
200
?
result
:[]
// this.recordlist.rows.forEach(item=>{
// this.recordlist.rows.forEach(item=>{
// item.createTime = this.gettime(item.createTime)
// item.createTime = this.gettime(item.createTime)
...
@@ -354,10 +363,12 @@
...
@@ -354,10 +363,12 @@
businessId
:
this
.
projectId
businessId
:
this
.
projectId
}
}
getGJJL
(
param
).
then
(
result
=>
{
getGJJL
(
param
).
then
(
result
=>
{
this
.
isSkeleton
=
false
this
.
recordlist
=
result
.
code
==
200
?
result
:[]
this
.
recordlist
=
result
.
code
==
200
?
result
:[]
})
})
},
},
handleCurrentChange
(
val
){
handleCurrentChange
(
val
){
this
.
isSkeleton
=
true
this
.
pageNum
=
val
this
.
pageNum
=
val
if
(
this
.
showtype
==
'gjdt'
){
if
(
this
.
showtype
==
'gjdt'
){
this
.
getGJDTlist
()
this
.
getGJDTlist
()
...
...
dsk-operate-ui/src/views/project/projectList/component/gzdb.vue
View file @
a9450ea2
...
@@ -3,51 +3,53 @@
...
@@ -3,51 +3,53 @@
<el-card
class=
"box-card noborder"
>
<el-card
class=
"box-card noborder"
>
<div
class=
"cardtitles"
>
工作待办
</div>
<div
class=
"cardtitles"
>
工作待办
</div>
<div
class=
"records"
>
<div
class=
"records"
>
<div
class=
"writeIn"
v-if=
"isDisableds == false"
>
<div
class=
"writeIn"
v-if=
"isDisableds == false"
>
<div
class=
"default"
v-if=
"isEdit == false"
@
click=
"getEdit"
>
<div
class=
"default"
v-if=
"isEdit == false"
@
click=
"getEdit"
>
<img
src=
"@/assets/images/project/add_3.png"
>
<div>
新建一条工作代办,如:周五上午预约客户上门拜访
</div>
</div>
<div
class=
"writting"
v-if=
"isEdit == true"
>
<div
class=
"wri_top"
>
<img
src=
"@/assets/images/project/add_3.png"
>
<img
src=
"@/assets/images/project/add_3.png"
>
<
el-input
v-model=
"queryParam.task"
placeholder=
"新建一条跟进记录,如:周五上午预约客户上门拜访"
></el-input
>
<
div>
新建一条工作代办,如:周五上午预约客户上门拜访
</div
>
</div>
</div>
<div
class=
"wr_bot"
>
<div
class=
"writting"
v-if=
"isEdit == true"
>
<div
class=
"times"
><img
src=
"@/assets/images/project/ico_4.png"
>
<div
class=
"wri_top"
>
<el-date-picker
value-format=
"yyyy-MM-dd"
<img
src=
"@/assets/images/project/add_3.png"
>
v-model=
"queryParam.finishTime"
<el-input
v-model=
"queryParam.task"
placeholder=
"新建一条跟进记录,如:周五上午预约客户上门拜访"
></el-input>
type=
"date"
placeholder=
"完成时间"
>
</el-date-picker>
</div>
</div>
<div
class=
"sels"
>
<div
class=
"wr_bot"
>
<img
src=
"@/assets/images/project/ico_2.png"
>
<div
class=
"times"
><img
src=
"@/assets/images/project/ico_4.png"
>
<el-input
v-model=
"queryParam.target"
placeholder=
"拜访对象"
style=
"width: 100px;"
>
<el-date-picker
value-format=
"yyyy-MM-dd"
</el-input>
v-model=
"queryParam.finishTime"
type=
"date"
placeholder=
"完成时间"
>
</el-date-picker>
</div>
<div
class=
"sels"
>
<img
src=
"@/assets/images/project/ico_2.png"
>
<el-input
v-model=
"queryParam.target"
placeholder=
"拜访对象"
style=
"width: 100px;"
>
</el-input>
</div>
<div
class=
"btn btn_primary h32 wc"
@
click=
"add"
:class=
"
{'btn_disabled':queryParam.task == ''}">完成
</div>
</div>
</div>
<div
class=
"btn btn_primary h32 wc"
@
click=
"add"
:class=
"
{'btn_disabled':queryParam.task == ''}">完成
</div>
</div>
</div>
</div>
</div>
</div>
<skeleton
v-if=
"isSkeleton"
style=
"padding-top: 16px"
></skeleton>
<div
class=
"tasktitle"
><strong>
我的任务
</strong><span
@
click=
"getYQ"
>
{{
yqnum
}}
条已逾期
</span>
<!--
<span
class=
"on"
>
4条已逾期
</span>
-->
</div>
<div
v-else
>
<div
class=
"tasklist"
v-for=
"(item,index) in datalist.rows"
>
<div
class=
"tasktitle"
><strong>
我的任务
</strong><span
@
click=
"getYQ"
>
{{
yqnum
}}
条已逾期
</span>
<!--
<span
class=
"on"
>
4条已逾期
</span>
-->
</div>
<div
class=
"task_name"
>
{{
item
.
task
}}
</div>
<div
class=
"tasklist"
v-for=
"(item,index) in datalist.rows"
>
<div
class=
"task_con"
><span>
发起时间:
{{
item
.
createTime
}}
</span><span
v-if=
"item.target"
>
关联客户:
<font
class=
"wordprimary"
>
{{
item
.
target
}}
</font></span><span
v-if=
"item.finishTime"
>
完成时间:
{{
item
.
finishTime
}}
</span></div>
<div
class=
"task_name"
>
{{
item
.
task
}}
</div>
<div
class=
"select"
:class=
"
{'on':item.state == 2}">
<div
class=
"task_con"
><span>
发起时间:
{{
item
.
createTime
}}
</span><span
v-if=
"item.target"
>
关联客户:
<font
class=
"wordprimary"
>
{{
item
.
target
}}
</font></span><span
v-if=
"item.finishTime"
>
完成时间:
{{
item
.
finishTime
}}
</span></div>
<div
class=
"select-popper"
>
<div
class=
"select"
:class=
"
{'on':item.state == 2}">
<span>
<div
class=
"select-popper"
>
{{
item
.
state
==
2
?
"已完成"
:
"未完成"
}}
<span>
<i
class=
"el-icon-caret-bottom"
></i>
{{
item
.
state
==
2
?
"已完成"
:
"未完成"
}}
</span>
<i
class=
"el-icon-caret-bottom"
></i>
<el-select
v-if=
"isDisableds == false"
placeholder=
"请选择"
v-model=
"item.state"
class=
"select-multiple"
@
change=
"changes(item.id,$event)"
>
</span>
<el-option
label=
"未完成"
value=
"1"
></el-option>
<el-select
v-if=
"isDisableds == false"
placeholder=
"请选择"
v-model=
"item.state"
class=
"select-multiple"
@
change=
"changes(item.id,$event)"
>
<el-option
label=
"已完成"
value=
"2"
></el-option>
<el-option
label=
"未完成"
value=
"1"
></el-option>
</el-select>
<el-option
label=
"已完成"
value=
"2"
></el-option>
</div></div>
</el-select>
</div>
</div></div>
</div>
<div
class=
"tables"
v-if=
"datalist.total>searchPram.pageSize"
>
<div
class=
"tables"
v-if=
"datalist.total>searchPram.pageSize"
>
<div
class=
"bottems"
>
<div
class=
"bottems"
>
<el-pagination
<el-pagination
background
background
...
@@ -59,6 +61,7 @@
...
@@ -59,6 +61,7 @@
</el-pagination>
</el-pagination>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</el-card>
</el-card>
</div>
</div>
...
@@ -68,8 +71,10 @@
...
@@ -68,8 +71,10 @@
import
"@/assets/styles/project.scss"
import
"@/assets/styles/project.scss"
import
"@/assets/styles/public.css"
import
"@/assets/styles/public.css"
import
{
addGZDB
,
getGZDB
,
editGZDB
}
from
'@/api/project/project'
import
{
addGZDB
,
getGZDB
,
editGZDB
}
from
'@/api/project/project'
import
skeleton
from
'./skeleton'
export
default
{
export
default
{
components
:{
skeleton
},
name
:
'gjjl'
,
name
:
'gjjl'
,
props
:
{
props
:
{
detailId
:
{
//从企业详情跳转过来ID
detailId
:
{
//从企业详情跳转过来ID
...
@@ -98,6 +103,7 @@
...
@@ -98,6 +103,7 @@
datalist
:[],
datalist
:[],
yqnum
:
0
,
//已逾期数量
yqnum
:
0
,
//已逾期数量
isDisableds
:
this
.
isDisabled
,
isDisableds
:
this
.
isDisabled
,
isSkeleton
:
true
,
}
}
},
},
created
(){
created
(){
...
@@ -124,7 +130,9 @@
...
@@ -124,7 +130,9 @@
})
})
},
},
getList
(){
getList
(){
this
.
isSkeleton
=
true
getGZDB
(
this
.
searchPram
).
then
(
result
=>
{
getGZDB
(
this
.
searchPram
).
then
(
result
=>
{
this
.
isSkeleton
=
false
this
.
datalist
=
result
.
code
==
200
?
result
:[]
this
.
datalist
=
result
.
code
==
200
?
result
:[]
let
num
=
0
let
num
=
0
this
.
datalist
.
rows
.
forEach
(
item
=>
{
this
.
datalist
.
rows
.
forEach
(
item
=>
{
...
...
dsk-operate-ui/src/views/project/projectList/component/lxr.vue
View file @
a9450ea2
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
<div>
<div>
<el-card
class=
"box-card noborder"
>
<el-card
class=
"box-card noborder"
>
<div
class=
"cardtitles"
>
基本信息
</div>
<div
class=
"cardtitles"
>
基本信息
</div>
<div
class=
"tables"
>
<skeleton
v-if=
"isSkeleton"
style=
"padding: 16px"
></skeleton>
<div
class=
"tables"
v-else
>
<el-table
<el-table
:data=
"tableData"
:data=
"tableData"
stripe
border
stripe
border
...
@@ -135,7 +137,9 @@
...
@@ -135,7 +137,9 @@
<
script
>
<
script
>
import
"@/assets/styles/project.scss"
import
"@/assets/styles/project.scss"
import
{
getLXR
,
editLXR
,
addLXR
}
from
'@/api/project/project'
import
{
getLXR
,
editLXR
,
addLXR
}
from
'@/api/project/project'
import
skeleton
from
'./skeleton'
export
default
{
export
default
{
components
:{
skeleton
},
name
:
'lxr'
,
name
:
'lxr'
,
props
:
{
props
:
{
detailId
:
{
//从企业详情跳转过来ID
detailId
:
{
//从企业详情跳转过来ID
...
@@ -163,6 +167,7 @@
...
@@ -163,6 +167,7 @@
projectname
:
this
.
$route
.
query
.
projectname
,
projectname
:
this
.
$route
.
query
.
projectname
,
queryParam
:[],
queryParam
:[],
isDisableds
:
this
.
isDisabled
,
isDisableds
:
this
.
isDisabled
,
isSkeleton
:
true
,
}
}
},
},
created
(){
created
(){
...
@@ -180,7 +185,9 @@
...
@@ -180,7 +185,9 @@
this
.
isnew
=
false
this
.
isnew
=
false
},
},
getList
(){
getList
(){
this
.
isSkeleton
=
true
getLXR
(
this
.
searchParam
).
then
(
result
=>
{
getLXR
(
this
.
searchParam
).
then
(
result
=>
{
this
.
isSkeleton
=
false
this
.
tableData
=
result
.
code
==
200
?
result
.
rows
:[]
this
.
tableData
=
result
.
code
==
200
?
result
.
rows
:[]
this
.
total
=
result
.
code
==
200
?
result
.
total
:
0
this
.
total
=
result
.
code
==
200
?
result
.
total
:
0
})
})
...
...
dsk-operate-ui/src/views/project/projectList/component/skeleton.vue
0 → 100644
View file @
a9450ea2
<
template
>
<el-skeleton
animated
>
<template
slot=
"template"
>
<el-skeleton-item
variant=
"text"
style=
"width: 60%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 60%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
<el-skeleton-item
variant=
"text"
style=
"width: 100%;"
/>
</
template
>
</el-skeleton>
</template>
<
script
>
export
default
{
name
:
'skeleton'
}
</
script
>
<
style
lang=
"scss"
scoped
>
.el-skeleton__item
{
height
:
20px
;
border-radius
:
0
;
margin
:
9px
0
;
background
:
#f0f0f0
;
}
</
style
>
dsk-operate-ui/src/views/project/projectList/component/xgqy.vue
View file @
a9450ea2
...
@@ -14,7 +14,8 @@
...
@@ -14,7 +14,8 @@
<div
class=
"btn btn_primary h32 b3"
@
click=
"opennew"
v-if=
"isDisableds == false"
><div
class=
"img img1"
></div>
添加相关企业
</div>
<div
class=
"btn btn_primary h32 b3"
@
click=
"opennew"
v-if=
"isDisableds == false"
><div
class=
"img img1"
></div>
添加相关企业
</div>
</div>
</div>
<div
class=
"document tables"
>
<div
class=
"document tables"
>
<el-table
<skeleton
v-if=
"isSkeleton"
style=
"padding-top: 16px"
></skeleton>
<el-table
v-else
:data=
"tableData.rows"
:data=
"tableData.rows"
style=
"width: 100%"
style=
"width: 100%"
:default-sort =
"
{prop: 'depth', order: 'descending'}"
:default-sort =
"
{prop: 'depth', order: 'descending'}"
...
@@ -143,7 +144,9 @@
...
@@ -143,7 +144,9 @@
import
"@/assets/styles/project.scss"
import
"@/assets/styles/project.scss"
import
{
getXGQY
,
addXGQY
,
delXGQY
}
from
'@/api/project/project'
import
{
getXGQY
,
addXGQY
,
delXGQY
}
from
'@/api/project/project'
import
{
getDictType
,
getEnterprise
}
from
'@/api/main'
import
{
getDictType
,
getEnterprise
}
from
'@/api/main'
import
skeleton
from
'./skeleton'
export
default
{
export
default
{
components
:{
skeleton
},
name
:
'xgqy'
,
name
:
'xgqy'
,
props
:
{
props
:
{
detailId
:
{
//从企业详情跳转过来ID
detailId
:
{
//从企业详情跳转过来ID
...
@@ -189,6 +192,7 @@
...
@@ -189,6 +192,7 @@
isDisableds
:
this
.
isDisabled
,
isDisableds
:
this
.
isDisabled
,
showlist
:
false
,
showlist
:
false
,
companData
:[],
companData
:[],
isSkeleton
:
true
,
}
}
},
},
created
(){
created
(){
...
@@ -261,8 +265,9 @@
...
@@ -261,8 +265,9 @@
})
})
},
},
getlist
(){
getlist
(){
this
.
isSkeleton
=
true
getXGQY
(
this
.
searchParam
).
then
(
result
=>
{
getXGQY
(
this
.
searchParam
).
then
(
result
=>
{
console
.
log
(
result
)
this
.
isSkeleton
=
false
this
.
tableData
=
result
this
.
tableData
=
result
})
})
},
},
...
...
dsk-operate-ui/src/views/project/projectList/component/zlwd.vue
View file @
a9450ea2
...
@@ -58,7 +58,8 @@
...
@@ -58,7 +58,8 @@
</div>
</div>
</div>
</div>
<div
class=
"document tables"
>
<div
class=
"document tables"
>
<el-table
<skeleton
v-if=
"isSkeleton"
style=
"padding-top: 16px"
></skeleton>
<el-table
v-else
:data=
"fileDatas.rows"
:data=
"fileDatas.rows"
style=
"width: 100%"
style=
"width: 100%"
:default-sort =
"
{prop: 'creatTime', order: 'descending'}"
:default-sort =
"
{prop: 'creatTime', order: 'descending'}"
...
@@ -150,7 +151,9 @@
...
@@ -150,7 +151,9 @@
import
"@/assets/styles/project.scss"
import
"@/assets/styles/project.scss"
import
{
getToken
}
from
"@/utils/auth"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
{
getZLWD
,
delZLWD
}
from
"@/api/project/project"
;
import
{
getZLWD
,
delZLWD
}
from
"@/api/project/project"
;
import
skeleton
from
'./skeleton'
export
default
{
export
default
{
components
:{
skeleton
},
name
:
'zlwd'
,
name
:
'zlwd'
,
props
:
{
props
:
{
detailId
:
{
//从企业详情跳转过来ID
detailId
:
{
//从企业详情跳转过来ID
...
@@ -181,6 +184,7 @@
...
@@ -181,6 +184,7 @@
ondel
:
""
,
ondel
:
""
,
isDisableds
:
this
.
isDisabled
,
isDisableds
:
this
.
isDisabled
,
keys
:
1
,
keys
:
1
,
isSkeleton
:
true
,
}
}
},
},
created
(){
created
(){
...
@@ -195,8 +199,10 @@
...
@@ -195,8 +199,10 @@
this
.
handleCurrentChange
(
1
)
this
.
handleCurrentChange
(
1
)
},
},
getList
(){
getList
(){
this
.
isSkeleton
=
true
getZLWD
(
this
.
param
).
then
(
res
=>
{
getZLWD
(
this
.
param
).
then
(
res
=>
{
this
.
fileDatas
=
res
this
.
fileDatas
=
res
this
.
isSkeleton
=
false
if
(
this
.
fileDatas
.
rows
!=
null
&&
this
.
fileDatas
.
rows
.
length
>
0
){
if
(
this
.
fileDatas
.
rows
!=
null
&&
this
.
fileDatas
.
rows
.
length
>
0
){
this
.
fileDatas
.
rows
.
forEach
(
item
=>
{
this
.
fileDatas
.
rows
.
forEach
(
item
=>
{
let
names
=
item
.
filePath
.
split
(
'/'
)
let
names
=
item
.
filePath
.
split
(
'/'
)
...
...
dsk-operate-ui/src/views/project/projectList/index.vue
View file @
a9450ea2
...
@@ -97,14 +97,16 @@
...
@@ -97,14 +97,16 @@
<el-card
class=
"box-card noborder overflows"
>
<el-card
class=
"box-card noborder overflows"
>
<div
class=
"titles"
>
项目明细
<div
class=
"titles"
>
项目明细
<div
class=
"dc"
>
<div
class=
"dc"
>
<div
class=
"total"
>
共
{{
total
}}
条
</div>
<div
class=
"total"
>
共
{{
total
}}
条
</div>
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"功能正在开发中"
placement=
"top"
>
-->
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"功能正在开发中"
placement=
"top"
>
-->
<div
class=
"btn-export"
@
click=
"dc"
><img
src=
"@/assets/images/EXCEL.png"
>
导出EXCEL
</div>
<div
class=
"btn-export"
@
click=
"dc"
><img
src=
"@/assets/images/EXCEL.png"
>
导出EXCEL
</div>
<!--
</el-tooltip>
-->
<!--
</el-tooltip>
-->
</div>
</div>
</div>
</div>
<div
class=
"tables"
v-if=
"total == 0"
>
<skeleton
v-if=
"isSkeleton"
style=
"padding: 16px"
></skeleton>
<div
class=
"tables"
v-if=
"total == 0 && !isSkeleton"
>
<div
class=
"empty"
>
<div
class=
"empty"
>
<img
src=
"@/assets/images/project/empty.png"
>
<img
src=
"@/assets/images/project/empty.png"
>
<div
class=
"p1"
>
抱歉,没找到相关数据
</div>
<div
class=
"p1"
>
抱歉,没找到相关数据
</div>
...
@@ -113,7 +115,7 @@
...
@@ -113,7 +115,7 @@
<div
class=
"btn btn_primary btn_shallow h36 w88"
@
click=
"pldrs"
>
批量导入
</div>
<div
class=
"btn btn_primary btn_shallow h36 w88"
@
click=
"pldrs"
>
批量导入
</div>
</div>
</div>
</div>
</div>
<div
class=
"datalist"
>
<div
class=
"datalist"
v-if=
"!isSkeleton"
>
<div
class=
"datali"
v-for=
"(item,index) in datalist"
>
<div
class=
"datali"
v-for=
"(item,index) in datalist"
>
<div
class=
"det-title"
@
click=
"toDetail(item.id,'xmsl')"
>
<div
class=
"det-title"
@
click=
"toDetail(item.id,'xmsl')"
>
{{
item
.
projectName
}}
<span
v-if=
"activeName!='first' && item.followTime"
class=
"people"
><i>
{{
item
.
nickName1
}}
</i>
{{
item
.
projectName
}}
<span
v-if=
"activeName!='first' && item.followTime"
class=
"people"
><i>
{{
item
.
nickName1
}}
</i>
...
@@ -182,9 +184,10 @@
...
@@ -182,9 +184,10 @@
import
{
getDictType
,}
from
'@/api/main'
import
{
getDictType
,}
from
'@/api/main'
import
addproject
from
'./component/addProject'
import
addproject
from
'./component/addProject'
import
batchimport
from
'./component/batchImport'
import
batchimport
from
'./component/batchImport'
import
skeleton
from
'./component/skeleton'
export
default
{
export
default
{
name
:
'ProjectList'
,
name
:
'ProjectList'
,
components
:{
addproject
,
batchimport
},
components
:{
addproject
,
batchimport
,
skeleton
},
data
()
{
data
()
{
return
{
return
{
types
:
'project'
,
types
:
'project'
,
...
@@ -240,6 +243,7 @@ export default {
...
@@ -240,6 +243,7 @@ export default {
datalist
:[],
//列表数据
datalist
:[],
//列表数据
ondel
:
-
1
,
ondel
:
-
1
,
total
:
0
,
total
:
0
,
isSkeleton
:
true
}
}
},
},
created
()
{
created
()
{
...
@@ -289,6 +293,7 @@ export default {
...
@@ -289,6 +293,7 @@ export default {
},
},
//获取商机列表
//获取商机列表
getList
(
pageNum
){
getList
(
pageNum
){
this
.
isSkeleton
=
true
this
.
searchParam
.
pageNum
=
pageNum
this
.
searchParam
.
pageNum
=
pageNum
if
(
this
.
activeName
==
'first'
){
if
(
this
.
activeName
==
'first'
){
this
.
searchParam
.
userId
=
this
.
$store
.
state
.
user
.
userId
this
.
searchParam
.
userId
=
this
.
$store
.
state
.
user
.
userId
...
@@ -297,6 +302,7 @@ export default {
...
@@ -297,6 +302,7 @@ export default {
}
}
this
.
searchParam
.
ownerCompany
=
this
.
searchParam
.
projectName
this
.
searchParam
.
ownerCompany
=
this
.
searchParam
.
projectName
getProjectlist
(
this
.
searchParam
).
then
(
result
=>
{
getProjectlist
(
this
.
searchParam
).
then
(
result
=>
{
this
.
isSkeleton
=
false
if
(
result
.
code
==
200
){
if
(
result
.
code
==
200
){
this
.
datalist
=
result
.
rows
this
.
datalist
=
result
.
rows
this
.
total
=
result
.
total
this
.
total
=
result
.
total
...
@@ -382,7 +388,7 @@ export default {
...
@@ -382,7 +388,7 @@ export default {
this
.
$router
.
push
({
path
:
'/project/projectList/detail'
,
query
:
{
id
:
id
,
tag
:
tag
}
});
this
.
$router
.
push
({
path
:
'/project/projectList/detail'
,
query
:
{
id
:
id
,
tag
:
tag
}
});
},
},
handleClick
(){
handleClick
(){
this
.
getList
(
1
)
this
.
reset
(
)
},
},
handleChange
(
value
)
{
handleChange
(
value
)
{
// console.log(value);
// console.log(value);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment