Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhanglw
sensorConsult
Commits
ceaa6ce2
Commit
ceaa6ce2
authored
Jun 14, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
咨询列表
parent
3bf9ee55
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
28 deletions
+36
-28
common.js
src/api/common.js
+7
-0
index.vue
src/views/backstage/guidanceMgt/guidanceTabulate/index.vue
+26
-25
view.vue
src/views/backstage/guidanceMgt/guidanceTabulate/view.vue
+3
-3
No files found.
src/api/common.js
View file @
ceaa6ce2
...
@@ -170,6 +170,13 @@ export const HttpReq = {
...
@@ -170,6 +170,13 @@ export const HttpReq = {
return
res
return
res
})
})
},
},
// 查询咨询信息列表
queryInformation
:
function
(
params
)
{
return
request
({
url
:
'
/api/bsw/information/queryInformation?
'
+
qs
.
stringify
(
params
,
{
indices
:
false
}),
method
:
'
get
'
})
},
xxx
:
null
xxx
:
null
}
}
}
}
...
...
src/views/backstage/guidanceMgt/guidanceTabulate/index.vue
View file @
ceaa6ce2
...
@@ -2,19 +2,19 @@
...
@@ -2,19 +2,19 @@
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<!--工具栏-->
<!--工具栏-->
<div
class=
"head-container"
>
<div
class=
"head-container"
>
<el-select
v-model=
"query.
area"
clearable
placeholder=
"请选择产品分类
"
style=
"width: 150px"
>
<el-select
v-model=
"query.
type"
clearable
placeholder=
"请选择咨询类型
"
style=
"width: 150px"
>
<el-option
v-for=
"item in dict.
produc
t_type"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
<el-option
v-for=
"item in dict.
consul
t_type"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-select>
<el-select
v-model=
"query.
registeredAddressProvince
"
clearable
placeholder=
"请选择地区"
style=
"width: 120px"
>
<el-select
v-model=
"query.
area
"
clearable
placeholder=
"请选择地区"
style=
"width: 120px"
>
<el-option
v-for=
"item in dict.area_province"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
<el-option
v-for=
"item in dict.area_province"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-select>
<el-input
v-model=
"query.
usern
ame"
clearable
placeholder=
"请输入咨询产品名称"
style=
"width:280px;"
/>
<el-input
v-model=
"query.
productN
ame"
clearable
placeholder=
"请输入咨询产品名称"
style=
"width:280px;"
/>
<el-input
v-model=
"query.
username
"
clearable
placeholder=
"请输入产品ID"
style=
"width:150px;"
/>
<el-input
v-model=
"query.
productId
"
clearable
placeholder=
"请输入产品ID"
style=
"width:150px;"
/>
<el-select
v-model=
"query.status"
clearable
placeholder=
"请选择状态"
style=
"width: 120px"
>
<el-select
v-model=
"query.status"
clearable
placeholder=
"请选择状态"
style=
"width: 120px"
>
<el-option
v-for=
"item in dict.consult_status"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
<el-option
v-for=
"item in dict.consult_status"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-select>
<date-range-picker
v-model=
"query.createTime"
start-placeholder=
"咨询开始日期"
style=
"width: 280px"
/>
<date-range-picker
v-model=
"query.createTime"
start-placeholder=
"咨询开始日期"
style=
"width: 280px"
/>
<date-range-picker
v-model=
"query.
creat
eTime"
start-placeholder=
"处理开始日期"
style=
"width: 280px"
/>
<date-range-picker
v-model=
"query.
handl
eTime"
start-placeholder=
"处理开始日期"
style=
"width: 280px"
/>
<el-button
type=
"success"
icon=
"el-icon-search"
@
click=
"toSearch"
>
搜索
</el-button>
<el-button
type=
"success"
icon=
"el-icon-search"
@
click=
"toSearch"
>
搜索
</el-button>
<el-button
type=
"warning"
icon=
"el-icon-refresh"
@
click=
"clearLimit"
>
重置
</el-button>
<el-button
type=
"warning"
icon=
"el-icon-refresh"
@
click=
"clearLimit"
>
重置
</el-button>
</div>
</div>
...
@@ -29,18 +29,18 @@
...
@@ -29,18 +29,18 @@
<el-table
id=
"dataTable"
ref=
"dataTable"
v-loading=
"loading"
:data=
"tableData"
tooltip-effect=
"dark"
style=
"width:auto;min-height: 70vh"
@
selection-change=
"handleSelectionChange"
>
<el-table
id=
"dataTable"
ref=
"dataTable"
v-loading=
"loading"
:data=
"tableData"
tooltip-effect=
"dark"
style=
"width:auto;min-height: 70vh"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
type=
"index"
width=
"55"
label=
"序号"
:index=
"indexMethod"
/>
<el-table-column
type=
"index"
width=
"55"
label=
"序号"
:index=
"indexMethod"
/>
<el-table-column
prop=
"
username"
label=
"咨询产品类型"
width=
"180
"
/>
<el-table-column
prop=
"
type"
label=
"咨询产品类型"
width=
"180"
:formatter=
"(row, col, val)=>
{return dict.label.consult_type[val]}
" />
<el-table-column
prop=
"area"
label=
"地区"
width=
"100"
/>
<el-table-column
prop=
"area"
label=
"地区"
width=
"100"
:formatter=
"(row, col, val)=>
{return dict.label.area_province[val]}"
/>
<el-table-column
prop=
"
xxx
"
label=
"咨询产品名称"
/>
<el-table-column
prop=
"
productName
"
label=
"咨询产品名称"
/>
<el-table-column
prop=
"
username"
label=
"产品ID"
width=
"14
0"
/>
<el-table-column
prop=
"
productId"
label=
"产品ID"
width=
"10
0"
/>
<el-table-column
label=
"状态"
width=
"100"
>
<el-table-column
label=
"状态"
width=
"100"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<div
:style=
"'color:'+textColors[scope.row.status]"
>
{{
dict
.
label
.
consult_status
[
scope
.
row
.
status
]
}}
</div>
<div
:style=
"'color:'+textColors[scope.row.status]"
>
{{
dict
.
label
.
consult_status
[
scope
.
row
.
status
]
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"
xxx"
label=
"咨询日期"
align=
"center"
width=
"10
0"
/>
<el-table-column
prop=
"
createTime"
label=
"咨询日期"
align=
"center"
width=
"18
0"
/>
<el-table-column
prop=
"
xxx"
label=
"处理日期"
align=
"center"
width=
"10
0"
/>
<el-table-column
prop=
"
handleTime"
label=
"处理日期"
align=
"center"
width=
"18
0"
/>
<el-table-column
prop=
"xxx"
label=
"操作"
align=
"right"
width=
"140"
>
<el-table-column
label=
"操作"
align=
"right"
width=
"140"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
v-show=
"scope.row.status==3"
content=
"处理"
><el-button
round
plain
type=
"success"
icon=
"el-icon-finished"
@
click=
"toView(scope.row)"
/></el-tooltip>
<el-tooltip
v-show=
"scope.row.status==3"
content=
"处理"
><el-button
round
plain
type=
"success"
icon=
"el-icon-finished"
@
click=
"toView(scope.row)"
/></el-tooltip>
<el-tooltip
content=
"查看"
><el-button
round
plain
icon=
"el-icon-view"
@
click=
"toView(scope.row)"
/></el-tooltip>
<el-tooltip
content=
"查看"
><el-button
round
plain
icon=
"el-icon-view"
@
click=
"toView(scope.row)"
/></el-tooltip>
...
@@ -60,7 +60,7 @@ import viewPage from './view'
...
@@ -60,7 +60,7 @@ import viewPage from './view'
export
default
{
export
default
{
components
:
{
DateRangePicker
,
viewPage
},
components
:
{
DateRangePicker
,
viewPage
},
dicts
:
[
'
consult_status
'
,
'
produc
t_type
'
,
'
area_province
'
],
dicts
:
[
'
consult_status
'
,
'
consul
t_type
'
,
'
area_province
'
],
data
()
{
data
()
{
return
{
return
{
textColors
:
[
'
#ccc
'
,
'
#32cd32
'
,
'
#000
'
,
'
#ff4949
'
],
textColors
:
[
'
#ccc
'
,
'
#32cd32
'
,
'
#000
'
,
'
#ff4949
'
],
...
@@ -88,17 +88,18 @@ export default {
...
@@ -88,17 +88,18 @@ export default {
this
.
multipleSelection
=
val
this
.
multipleSelection
=
val
},
},
loadData
()
{
loadData
()
{
var
sort
=
'
id,desc
'
// 清除参数无值的情况
var
param
=
{
...
this
.
query
}
Object
.
keys
(
this
.
query
).
length
!==
0
&&
Object
.
keys
(
this
.
query
).
forEach
(
item
=>
{
param
.
page
=
this
.
page
if
(
this
.
query
[
item
]
===
null
||
this
.
query
[
item
]
===
''
)
this
.
query
[
item
]
=
undefined
param
.
pageSize
=
this
.
pageSize
})
param
.
sort
=
sort
HttpReq
.
backstageApi
.
queryInformation
({
this
.
tableData
=
[
page
:
this
.
page
-
1
,
{
username
:
'
张三
'
,
area
:
'
火星
'
,
status
:
1
,
enabled
:
false
,
xxx
:
'
2023-05-09
'
},
pageSize
:
this
.
pageSize
,
{
username
:
'
张三
'
,
area
:
'
火星
'
,
status
:
2
,
enabled
:
false
,
xxx
:
'
2023-05-09
'
},
...
this
.
query
{
username
:
'
张三
'
,
area
:
'
火星
'
,
status
:
3
,
enabled
:
false
,
xxx
:
'
2023-05-09
'
}
}).
then
((
res
)
=>
{
]
this
.
tableData
=
res
.
data
.
data
this
.
total
=
2
this
.
total
=
res
.
data
.
total
})
},
},
batchOperate
(
opt
)
{
batchOperate
(
opt
)
{
if
(
!
this
.
multipleSelection
.
length
)
{
if
(
!
this
.
multipleSelection
.
length
)
{
...
...
src/views/backstage/guidanceMgt/guidanceTabulate/view.vue
View file @
ceaa6ce2
...
@@ -55,14 +55,14 @@
...
@@ -55,14 +55,14 @@
<el-form-item
label=
"处理状态:"
class=
"form-cell"
prop=
"supplierLevel"
>
<el-form-item
label=
"处理状态:"
class=
"form-cell"
prop=
"supplierLevel"
>
<div
class=
"cell-box"
>
<div
class=
"cell-box"
>
<el-select
v-model=
"formData.supplierLevel"
disabled
placeholder=
"无"
class=
"cell-select"
>
<el-select
v-model=
"formData.supplierLevel"
disabled
placeholder=
"无"
class=
"cell-select"
>
<el-option
v-for=
"item in dict.
info
_status"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
<el-option
v-for=
"item in dict.
consult
_status"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-select>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center"
>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center"
>
<el-button
@
click=
"cancelView"
>
关闭
</el-button>
<el-button
@
click=
"cancelView"
>
关闭
</el-button>
<el-button
v-if=
"isReview"
type=
"primary"
@
click=
"submitForm(true)"
>
处理
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm(true)"
>
处理
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
</
template
>
</
template
>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
import
{
HttpReq
}
from
'
@/api/common
'
import
{
HttpReq
}
from
'
@/api/common
'
export
default
{
export
default
{
dicts
:
[
'
product_type
'
,
'
area_province
'
,
'
info
_status
'
],
dicts
:
[
'
product_type
'
,
'
area_province
'
,
'
consult
_status
'
],
data
()
{
data
()
{
return
{
return
{
stampImgSrc
:
''
,
stampImgSrc
:
''
,
...
...
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