Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9cf74068
authored
May 29, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
员工动态接口传参调整
1 parent
f1303fa8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
141 additions
and
136 deletions
linkwe-pc/src/views/friendCircle/index.vue
linkwe-pc/src/views/friendCircle/index.vue
View file @
9cf7406
...
...
@@ -13,7 +13,8 @@
type=
"daterange"
range-separator=
"——"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
<el-form-item
label-width=
"0"
>
<!-- v-hasPermi="['wecom:code:list']" -->
...
...
@@ -37,11 +38,13 @@
:src=
"row.content"
fit=
"fit"
:preview-src-list=
"[row.content]"
style=
"width: 100px; height: 100px"
></el-image>
style=
"width: 100px; height: 100px;"
></el-image>
<video
v-else-if=
"row.contentType === 'video'"
style=
"width: 100px; height: 100px"
:src=
"row.content"
></video>
style=
"width: 100px; height: 100px;"
:src=
"row.content"
></video>
<div
v-else
>
{{
row
.
content
}}
</div>
</
template
>
</el-table-column>
...
...
@@ -67,7 +70,7 @@
<el-table-column
show-overflow-tooltip
prop=
"commentNum"
label=
"评论数"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"100"
>
<
template
slot-scope=
"{ row }"
>
<el-button
type=
"text"
@
click=
"detailFn(row.
momentI
d)"
>
详情
</el-button>
<el-button
type=
"text"
@
click=
"detailFn(row.
i
d)"
>
详情
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -78,7 +81,8 @@
:visible
.
sync=
"dialogVisible"
title=
"组织架构"
:defaultValues=
"userArray"
@
success=
"getSelectUser"
></SelectUser>
@
success=
"getSelectUser"
></SelectUser>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailDialogVisible"
width=
"40%"
>
<el-form
label-position=
"right"
label-width=
"100px"
>
<
template
v-for=
"(data, index) in detail.otherContent"
>
...
...
@@ -86,13 +90,13 @@
{{
data
.
other
}}
</el-form-item>
<el-form-item
:key=
"index"
label=
" "
v-if=
"data.annexType === 'video'"
>
<div
style=
"display: inline-block; margin-right: 10px"
>
<video
style=
"width: 200px; height: 200px"
:src=
"data.annexUrl"
controls
></video>
<div
style=
"display: inline-block; margin-right: 10px
;
"
>
<video
style=
"width: 200px; height: 200px
;
"
:src=
"data.annexUrl"
controls
></video>
</div>
</el-form-item>
<el-form-item
:key=
"index"
label=
" "
v-if=
"data.annexType === 'link'"
>
<div
style=
"display: inline-block; margin-right: 10px"
>
<span
style=
"width: 100px; height: 100px"
>
{{
data
.
annexUrl
}}
</span>
<div
style=
"display: inline-block; margin-right: 10px
;
"
>
<span
style=
"width: 100px; height: 100px
;
"
>
{{
data
.
annexUrl
}}
</span>
</div>
</el-form-item>
</
template
>
...
...
@@ -101,10 +105,11 @@
<div
v-for=
"(data, index) in detail.otherContent"
>
<el-image
class=
"item"
style=
"width: 100px; height: 100px"
style=
"width: 100px; height: 100px
;
"
:preview-src-list=
"[data.annexUrl]"
v-if=
"data.annexType === 'image'"
:src=
"data.annexUrl"
></el-image>
:src=
"data.annexUrl"
></el-image>
</div>
</div>
</el-form-item>
...
...
@@ -123,137 +128,137 @@
</div>
</template>
<
script
>
import
moment
from
'moment'
import
{
getEnterpriceList
,
syncHMoments
,
getDetail
}
from
'@/api/circle'
export
default
{
name
:
'friend-index'
,
components
:
{},
data
()
{
return
{
// disable: false,
value1
:
[],
dialogVisible
:
false
,
userArray
:
[],
name
:
''
,
query
:
{
pageSize
:
10
,
pageNum
:
1
,
beginTime
:
''
,
endTime
:
''
,
creator
:
''
,
type
:
1
,
},
loading
:
false
,
tableData
:
[],
total
:
0
,
lastSyncTime
:
''
,
detailDialogVisible
:
false
,
detail
:
{},
}
},
methods
:
{
setTimeChange
(
e
)
{
if
(
e
)
{
this
.
query
.
beginTime
=
moment
(
e
[
0
]).
format
(
'YYYY-MM-DD'
)
this
.
query
.
endTime
=
moment
(
e
[
1
]).
format
(
'YYYY-MM-DD'
)
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
import
moment
from
'moment'
import
{
getEnterpriceList
,
syncHMoments
,
getDetail
}
from
'@/api/circle'
export
default
{
name
:
'friend-index'
,
components
:
{},
data
()
{
return
{
// disable: false,
value1
:
[],
dialogVisible
:
false
,
userArray
:
[],
name
:
''
,
query
:
{
pageSize
:
10
,
pageNum
:
1
,
beginTime
:
''
,
endTime
:
''
,
creator
:
''
,
type
:
1
},
loading
:
false
,
tableData
:
[],
total
:
0
,
lastSyncTime
:
''
,
detailDialogVisible
:
false
,
detail
:
{}
}
},
detailFn
(
id
)
{
this
.
detailDialogVisible
=
true
getDetail
(
id
).
then
((
dd
)
=>
{
if
(
dd
.
code
===
200
)
{
this
.
detail
=
dd
.
data
}
})
},
syncFn
()
{
syncHMoments
({
filterType
:
1
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
msgSuccess
(
res
.
msg
)
this
.
getList
(
1
)
methods
:
{
setTimeChange
(
e
)
{
if
(
e
)
{
this
.
query
.
beginTime
=
moment
(
e
[
0
]).
format
(
'YYYY-MM-DD'
)
this
.
query
.
endTime
=
moment
(
e
[
1
]).
format
(
'YYYY-MM-DD'
)
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
})
},
getSelectUser
(
data
)
{
this
.
userArray
=
data
this
.
query
.
creator
=
this
.
userArray
.
map
(
function
(
obj
,
index
)
{
return
obj
.
userId
})
.
join
(
','
)
this
.
name
=
this
.
userArray
.
map
(
function
(
obj
,
index
)
{
return
obj
.
name
})
.
join
(
','
)
},
resetQuery
()
{
this
.
name
=
''
;(
this
.
query
=
{
pageSize
:
10
,
pageNum
:
1
,
beginTime
:
''
,
endTime
:
''
,
creator
:
''
,
type
:
1
,
}),
(
this
.
userArray
=
[])
this
.
value1
=
[]
this
.
getList
(
1
)
},
getList
(
type
)
{
type
&&
(
this
.
query
.
pageNum
=
type
)
this
.
loading
=
true
getEnterpriceList
(
this
.
query
)
.
then
((
res
)
=>
{
this
.
tableData
=
res
.
rows
this
.
lastSyncTime
=
res
.
lastSyncTime
// this.setTimeDiff()
this
.
total
=
Number
(
res
.
total
)
this
.
loading
=
false
},
detailFn
(
id
)
{
this
.
detailDialogVisible
=
true
getDetail
(
id
).
then
((
dd
)
=>
{
if
(
dd
.
code
===
200
)
{
this
.
detail
=
dd
.
data
}
})
.
catch
(()
=>
{
this
.
loading
=
false
},
syncFn
()
{
syncHMoments
({
filterType
:
1
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
msgSuccess
(
res
.
msg
)
this
.
getList
(
1
)
}
})
},
getSelectUser
(
data
)
{
this
.
userArray
=
data
this
.
query
.
creator
=
this
.
userArray
.
map
(
function
(
obj
,
index
)
{
return
obj
.
userId
})
.
join
(
','
)
this
.
name
=
this
.
userArray
.
map
(
function
(
obj
,
index
)
{
return
obj
.
name
})
.
join
(
','
)
},
resetQuery
()
{
this
.
name
=
''
;(
this
.
query
=
{
pageSize
:
10
,
pageNum
:
1
,
beginTime
:
''
,
endTime
:
''
,
creator
:
''
,
type
:
1
}),
(
this
.
userArray
=
[])
this
.
value1
=
[]
this
.
getList
(
1
)
},
getList
(
type
)
{
type
&&
(
this
.
query
.
pageNum
=
type
)
this
.
loading
=
true
getEnterpriceList
(
this
.
query
)
.
then
((
res
)
=>
{
this
.
tableData
=
res
.
rows
this
.
lastSyncTime
=
res
.
lastSyncTime
// this.setTimeDiff()
this
.
total
=
Number
(
res
.
total
)
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
// setTimeDiff() {
// if (this.lastSyncTime) {
// let date1 = moment(this.lastSyncTime)
// let date2 = moment()
// let date3 = date2.diff(date1, 'minute')
// const h = Math.floor(date3 / 60)
// console.log(h)
// if (h >= 2) {
// this.disable = false
// } else {
// this.disable = true
// }
// }
// }
},
// setTimeDiff() {
// if (this.lastSyncTime) {
// let date1 = moment(this.lastSyncTime)
// let date2 = moment()
// let date3 = date2.diff(date1, 'minute')
// const h = Math.floor(date3 / 60)
// console.log(h)
// if (h >= 2) {
// this.disable = false
// } else {
// this.disable = true
// }
// }
// }
},
mounted
()
{},
created
()
{
this
.
value1
[
1
]
=
moment
(
new
Date
()).
format
(
'YYYY-MM-DD'
)
this
.
value1
[
0
]
=
moment
(
new
Date
()).
subtract
(
1
,
'months'
).
format
(
'YYYY-MM-DD'
)
this
.
query
.
beginTime
=
moment
(
this
.
value1
[
0
]).
format
(
'YYYY-MM-DD'
)
this
.
query
.
endTime
=
moment
(
this
.
value1
[
1
]).
format
(
'YYYY-MM-DD'
)
this
.
getList
()
},
}
mounted
()
{},
created
()
{
this
.
value1
[
1
]
=
moment
(
new
Date
()).
format
(
'YYYY-MM-DD'
)
this
.
value1
[
0
]
=
moment
(
new
Date
()).
subtract
(
1
,
'months'
).
format
(
'YYYY-MM-DD'
)
this
.
query
.
beginTime
=
moment
(
this
.
value1
[
0
]).
format
(
'YYYY-MM-DD'
)
this
.
query
.
endTime
=
moment
(
this
.
value1
[
1
]).
format
(
'YYYY-MM-DD'
)
this
.
getList
()
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.img_list
{
display
:
flex
;
flex-wrap
:
wrap
;
width
:
330px
;
.item
{
flex
:
1
;
width
:
110px
;
height
:
100px
;
margin-right
:
5px
;
.img_list
{
display
:
flex
;
flex-wrap
:
wrap
;
width
:
330px
;
.item
{
flex
:
1
;
width
:
110px
;
height
:
100px
;
margin-right
:
5px
;
}
}
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment