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 df212675
authored
Jul 06, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
全局检索接口增加字段
1 parent
253875cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
30 deletions
linkwe-pc/src/views/conversation/content/global.vue
linkwe-pc/src/views/conversation/content/global.vue
View file @
df21267
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
align=
"right"
align=
"right"
:picker-options=
"pickerOptions"
></el-date-picker>
:picker-options=
"pickerOptions"
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"消息状态"
>
<el-form-item
label=
"消息状态"
>
<el-select
v-model=
"query.action"
class=
"noborder"
>
<el-select
v-model=
"query.action"
class=
"noborder"
>
...
@@ -29,14 +30,15 @@
...
@@ -29,14 +30,15 @@
v-for=
"item in displayOptions"
v-for=
"item in displayOptions"
:key=
"item.value"
:key=
"item.value"
:label=
"item.label"
:label=
"item.label"
:value=
"item.value"
></el-option>
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
<el-button
@
click=
"resetFn"
>
重置
</el-button>
<el-button
@
click=
"resetFn"
>
重置
</el-button>
</el-form-item>
</el-form-item>
<el-form-item
style=
"float: right"
>
<el-form-item
style=
"float: right
;
"
>
<el-button
type=
"primary"
@
click=
"exportList()"
>
导出列表
</el-button>
<el-button
type=
"primary"
@
click=
"exportList()"
>
导出列表
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -83,16 +85,17 @@
...
@@ -83,16 +85,17 @@
:total=
"total"
:total=
"total"
:page
.
sync=
"query.pageNum"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
@
pagination=
"getList()"
/>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getChatList
,
exportList
}
from
'@/api/conversation/content.js'
import
{
getChatList
,
exportList
}
from
'@/api/conversation/content.js'
import
ChatContent
from
'@/components/ChatContent'
import
ChatContent
from
'@/components/ChatContent'
import
{
dateFormat
}
from
'@/utils/index'
import
{
dateFormat
}
from
'@/utils/index'
export
default
{
export
default
{
components
:
{
ChatContent
},
components
:
{
ChatContent
},
data
()
{
data
()
{
return
{
return
{
...
@@ -106,7 +109,7 @@ export default {
...
@@ -106,7 +109,7 @@ export default {
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
orderByColumn
:
't.msg_time'
,
orderByColumn
:
't.msg_time'
,
isAsc
:
'desc'
,
// asc 升序 desc 降序
isAsc
:
'desc'
// asc 升序 desc 降序
},
},
dateRange
:
[],
dateRange
:
[],
total
:
0
,
total
:
0
,
...
@@ -115,22 +118,22 @@ export default {
...
@@ -115,22 +118,22 @@ export default {
displayOptions
:
[
displayOptions
:
[
{
{
value
:
''
,
value
:
''
,
label
:
'全部'
,
label
:
'全部'
},
},
{
{
value
:
'send'
,
value
:
'send'
,
label
:
'已发送'
,
label
:
'已发送'
},
},
{
{
value
:
'recall'
,
value
:
'recall'
,
label
:
'已撤回'
,
label
:
'已撤回'
},
},
{
{
value
:
'switch'
,
value
:
'switch'
,
label
:
'切回企业日志'
,
label
:
'切回企业日志'
},
}
],
],
loading
:
false
,
loading
:
false
}
}
},
},
created
()
{
created
()
{
...
@@ -150,6 +153,7 @@ export default {
...
@@ -150,6 +153,7 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
orderByColumn
:
't.msg_time'
,
orderByColumn
:
't.msg_time'
,
isAsc
:
'desc'
,
isAsc
:
'desc'
,
fullSearch
:
1
}
}
this
.
getList
(
1
)
this
.
getList
(
1
)
},
},
...
@@ -178,7 +182,7 @@ export default {
...
@@ -178,7 +182,7 @@ export default {
let
typeDict
=
{
let
typeDict
=
{
text
:
'content'
,
text
:
'content'
,
image
:
'attachment'
,
image
:
'attachment'
,
text
:
'content'
,
text
:
'content'
}
}
return
contact
[
type
]
return
contact
[
type
]
},
},
...
@@ -186,7 +190,7 @@ export default {
...
@@ -186,7 +190,7 @@ export default {
this
.
$confirm
(
'是否确认导出所有数据项?'
,
'警告'
,
{
this
.
$confirm
(
'是否确认导出所有数据项?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
})
.
then
(()
=>
{
.
then
(()
=>
{
return
exportList
(
this
.
query
)
return
exportList
(
this
.
query
)
...
@@ -209,22 +213,22 @@ export default {
...
@@ -209,22 +213,22 @@ export default {
}
}
})
})
.
catch
(
function
()
{})
.
catch
(
function
()
{})
},
}
},
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.demo-form-inline
{
.demo-form-inline
{
background
:
#f1f1f1
;
background
:
#f1f1f1
;
padding
:
18px
10px
0
10px
;
padding
:
18px
10px
0
10px
;
}
}
.content
{
.content
{
margin-top
:
15px
;
margin-top
:
15px
;
padding
:
10px
;
padding
:
10px
;
}
}
.pers
{
.pers
{
position
:
relative
;
position
:
relative
;
.green
{
.green
{
...
@@ -256,16 +260,16 @@ export default {
...
@@ -256,16 +260,16 @@ export default {
top
:
10px
;
top
:
10px
;
left
:
-8px
;
left
:
-8px
;
}
}
}
}
.noborder
{
.noborder
{
::v-deep
.el-input--mini
.el-input__inner
{
::v-deep
.el-input--mini
.el-input__inner
{
width
:
2px
;
width
:
2px
;
border
:
none
;
border
:
none
;
}
}
}
}
.emcode
::v-deep
em
{
.emcode
::v-deep
em
{
color
:
#ff0000
;
color
:
#ff0000
;
}
}
</
style
>
</
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