Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
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 8b0f3772
authored
May 31, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改搜索框
1 parent
a43f6108
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
142 additions
and
168 deletions
src/components/search-form/index.vue
src/styles/common.scss
src/views/alarmCenter/removeAlarm.vue
src/views/reportManage/index.vue
src/views/specialShop/index.vue
src/views/testDrive/checkList.vue
src/views/toDo/index.vue
src/views/vehicleManage/index.vue
src/views/vehicleSubmit/index.vue
src/views/vehicleSubmit/vehicleCheck/index.vue
src/components/search-form/index.vue
View file @
8b0f377
...
...
@@ -42,8 +42,8 @@
v-model=
"formModel[item.prop]"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期
"
end-placeholder=
"结束日期
"
:start-placeholder=
"item.startPlaceholder || '开始日期'
"
:end-placeholder=
"item.endPlaceholder || '结束日期'
"
value-format=
"yyyy-MM-dd"
:picker-options=
"item.pickerOptions ||
{}"
>
...
...
@@ -81,23 +81,16 @@
>
</el-date-picker>
</
template
>
<
template
name=
"self"
slot-scope=
"scope"
>
<slot
:scope=
"scope"
>
</slot>
</
template
>
</template>
</el-form-item>
<slot
name=
"self"
>
</slot>
<el-form-item>
<
template
name=
"form-slot"
slot-scope=
"scope"
>
<slot
:scope=
"scope"
>
</slot>
</
template
>
<slot
name=
"form-slot"
>
<
template
>
</
template
>
</slot>
</el-form-item>
</el-form>
</div>
...
...
@@ -123,18 +116,18 @@ export default {
</
script
>
<
style
lang=
"scss"
>
.search-form
{
padding
:
20px
20px
0
;
padding
:
20px
;
.el-form-item
{
display
:
inline-block
;
//
float
:
left
;
//
width
:
50%
;
width
:
calc
(
50%
-
20px
)
;
max-width
:
420px
;
margin-right
:
18px
;
}
.el-form-item__content
{
//
width
:
100%
;
width
:
100%
;
}
}
</
style
>
\ No newline at end of file
src/styles/common.scss
View file @
8b0f377
...
...
@@ -10,6 +10,10 @@
margin-left
:
20px
;
}
.inline-b
{
display
:
inline-block
;
}
.table-btn
{
margin-bottom
:
20px
;
}
...
...
src/views/alarmCenter/removeAlarm.vue
View file @
8b0f377
...
...
@@ -6,7 +6,10 @@
:formModel=
"searchForm"
:formList=
"todoFormList"
>
<slot
name=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
:size=
"btn_size"
...
...
@@ -18,7 +21,7 @@
:size=
"btn_size"
icon=
"el-icon-refresh"
>
重置
</el-button>
</s
lot
>
</s
pan
>
</search-form>
<h3>
上牌资料信息
<div
class=
"pull-right"
>
...
...
@@ -58,16 +61,16 @@ export default {
searchDataForm
:
{},
todoFormList
:
[
{
label
:
'关键字:'
,
type
:
'input'
,
inputType
:
'text'
,
prop
:
'keywords'
,
placeholder
:
'特约店编码|店名称 | 设备号 | 车型'
,
},
{
label
:
'报警时间:'
,
type
:
'daterange'
,
prop
:
'daterange'
,
startPlaceholder
:
'报警开始时间'
,
endPlaceholder
:
'报警结束时间'
// pickerOptions: {
// disabledDate(time) {
// return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
...
...
@@ -168,12 +171,3 @@ export default {
},
}
</
script
>
<
style
>
.removeAlarm
.el-form
.el-input__inner
{
width
:
300px
;
}
.removeAlarm
.el-range-separator
{
width
:
10%
;
}
</
style
>
\ No newline at end of file
src/views/reportManage/index.vue
View file @
8b0f377
...
...
@@ -6,7 +6,10 @@
:formModel=
"searchForm"
:formList=
"reportFormList"
>
<slot
name=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
:size=
"btn_size"
...
...
@@ -19,7 +22,7 @@
icon=
"el-icon-refresh"
>
重置
</el-button>
</s
lot
>
</s
pan
>
</search-form>
<h3>
有效试驾信息
...
...
@@ -64,7 +67,7 @@ export default {
type
:
'singleDate'
,
dateType
:
'month'
,
prop
:
'date'
,
placeholder
:
'
月份
'
,
placeholder
:
'
请选择年月
'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
<
new
Date
(
_this
.
date
).
getTime
()
...
...
src/views/specialShop/index.vue
View file @
8b0f377
<
template
>
<div
class=
"system-container
vehicle
"
>
<div
class=
"system-container
special-shop
"
>
<div
class=
"container"
>
<search-form
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"shopFormList"
>
<slot
name=
"self"
>
<el-select
v-model=
"searchForm.area"
placeholder=
"请选择"
@
change=
"change('area', searchForm.area)"
clearable
>
<el-option
v-for=
"item in areaList"
:key=
"item.id"
:label=
"item.departmentName"
:value=
"item.id"
<span
slot=
"self"
>
<el-form-item>
<el-select
v-model=
"searchForm.area"
placeholder=
"请选择大区"
@
change=
"change('area', searchForm.area)"
clearable
>
</el-option>
</el-select>
<el-select
v-model=
"searchForm.provinc
e"
placeholder=
"请选择
"
@
change=
"change('province', searchForm.province)"
clearable
>
<el-
option
v-
for=
"item in provinceList
"
:key=
"item.id
"
:label=
"item.departmentName
"
:value=
"item.id"
<el-option
v-for=
"item in areaList"
:key=
"item.id"
:label=
"item.departmentNam
e"
:value=
"item.id
"
>
</el-option>
</el-select
>
<el-
select
v-
model=
"searchForm.province
"
placeholder=
"请选择省
"
@
change=
"change('province', searchForm.province)
"
clearable
>
</el-option>
</el-select>
<el-select
v-model=
"searchForm.city
"
placeholder=
"请选择
"
clearable
>
<
el-option
v-for=
"item in cityList"
:key=
"item.id
"
:label=
"item.departmentName
"
:value=
"item.id"
<el-option
v-for=
"item in provinceList"
:key=
"item.id"
:label=
"item.departmentName
"
:value=
"item.id
"
>
</el-option
>
<
/el-select>
<el-select
v-model=
"searchForm.city
"
placeholder=
"请选择市
"
clearable
>
</el-option>
</el-select>
</slot>
<slot
name=
"form-slot"
>
<el-option
v-for=
"item in cityList"
:key=
"item.id"
:label=
"item.departmentName"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
</span>
<span
slot=
"form-slot"
>
<el-button
style=
"margin-left: 20px;"
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-search"
...
...
@@ -63,7 +64,7 @@
icon=
"el-icon-refresh"
@
click=
"reset"
>
重置
</el-button>
</s
lot
>
</s
pan
>
</search-form>
<h3>
<el-button
...
...
@@ -119,7 +120,6 @@ export default {
searchForm
:
{},
shopFormList
:
[
{
label
:
'关键字:'
,
type
:
'input'
,
inputType
:
'text'
,
prop
:
'term'
,
...
...
@@ -240,9 +240,9 @@ export default {
})
break
case
'delete'
:
deleteSpecialShop
({
shopId
}).
then
(
res
=>
{
deleteSpecialShop
({
shopId
}).
then
(
res
=>
{
const
{
code
,
message
}
=
res
;
if
(
code
==
200
)
{
if
(
code
==
200
)
{
this
.
$refs
.
shopTable
.
refreshTable
()
}
else
{
this
.
$message
({
...
...
@@ -271,13 +271,13 @@ export default {
</
script
>
<
style
scope
>
.s
earch-form
.el-form-item
{
max-width
:
none
!important
;
.s
pecial-shop
.el-select
{
width
:
33%
;
}
.el-select
{
width
:
auto
;
/* .search-form .el-form-item
{
max-width: none !important
;
}
.vehicle .el-form .el-select .el-input {
width: 150px;
}
}
*/
</
style
>
\ No newline at end of file
src/views/testDrive/checkList.vue
View file @
8b0f377
...
...
@@ -6,7 +6,10 @@
:formModel=
"searchForm"
:formList=
"checkFormList"
>
<slot
name=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
:size=
"btn_size"
...
...
@@ -19,9 +22,9 @@
icon=
"el-icon-refresh"
@
click=
"refresh"
>
重置
</el-button>
</s
lot
>
</s
pan
>
</search-form>
<basic-table
ref=
"testDriveForm"
:tableParams=
"testDriveTableParams"
...
...
@@ -90,14 +93,12 @@ export default {
},
checkFormList
:
[
{
label
:
'关键字:'
,
type
:
'input'
,
inputType
:
'text'
,
prop
:
'keywords'
,
placeholder
:
'特约店编码|店名称'
,
},
{
label
:
'审核状态:'
,
type
:
'select'
,
prop
:
'approvalStatus'
,
placeholder
:
'请选择审核状态'
,
...
...
@@ -214,8 +215,8 @@ export default {
break
case
'view'
:
let
query
=
{
fenceId
:
scope
.
bizId
,
readonlyStatus
:
true
fenceId
:
scope
.
bizId
,
readonlyStatus
:
true
};
const
path
=
'/oEshield#/monitor/editFence'
;
history
.
pushState
(
query
,
path
,
path
);
...
...
@@ -223,30 +224,30 @@ export default {
}
},
showRejectRemarks
()
{
this
.
$prompt
(
'请输入驳回原因'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
}).
then
(({
value
})
=>
{
this
.
approvalParams
.
remark
=
value
;
this
.
updateFenceApproval
();
}).
catch
(()
=>
{
});
this
.
$prompt
(
'请输入驳回原因'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
}).
then
(({
value
})
=>
{
this
.
approvalParams
.
remark
=
value
;
this
.
updateFenceApproval
();
}).
catch
(()
=>
{
});
},
updateFenceApproval
()
{
updateFenceApproval
(
this
.
approvalParams
).
then
(
res
=>
{
const
{
code
,
message
}
=
res
;
if
(
code
==
200
)
{
this
.
$message
({
type
:
'success'
,
message
:
'操作成功!'
});
this
.
$refs
.
testDriveForm
.
refreshTable
()
}
else
{
this
.
$message
({
type
:
'error'
,
message
});
}
const
{
code
,
message
}
=
res
;
if
(
code
==
200
)
{
this
.
$message
({
type
:
'success'
,
message
:
'操作成功!'
});
this
.
$refs
.
testDriveForm
.
refreshTable
()
}
else
{
this
.
$message
({
type
:
'error'
,
message
});
}
})
},
refresh
()
{
...
...
@@ -258,9 +259,3 @@ export default {
},
}
</
script
>
<
style
>
.testDrive
.el-form
.el-input__inner
{
width
:
300px
;
}
</
style
>
\ No newline at end of file
src/views/toDo/index.vue
View file @
8b0f377
...
...
@@ -6,7 +6,10 @@
:formModel=
"searchForm"
:formList=
"todoFormList"
>
<slot
name=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
:size=
"btn_size"
...
...
@@ -19,7 +22,7 @@
icon=
"el-icon-refresh"
@
click=
"reset"
>
重置
</el-button>
</s
lot
>
</s
pan
>
</search-form>
<basic-table
ref=
"todoTable"
...
...
@@ -60,11 +63,10 @@ import { getTodoList } from 'services/approval'
export
default
{
data
()
{
return
{
searchForm
:
{},
searchForm
:
{
status
:
1
},
ITEMTYPE
:
this
.
$Constants
.
ITEM_TYPE
,
todoFormList
:
[
{
label
:
'处理状态:'
,
type
:
'select'
,
prop
:
'status'
,
placeholder
:
'请选择'
,
...
...
@@ -80,7 +82,6 @@ export default {
}]
},
{
label
:
'事项类型:'
,
type
:
'select'
,
prop
:
'busType'
,
placeholder
:
'请选择'
,
...
...
src/views/vehicleManage/index.vue
View file @
8b0f377
...
...
@@ -6,7 +6,10 @@
:formModel=
"searchForm"
:formList=
"vehicleFormList"
>
<slot
name=
"form-slot"
>
<span
class=
"sinline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
:size=
"btn_size"
...
...
@@ -18,7 +21,7 @@
:size=
"btn_size"
icon=
"el-icon-refresh"
>
重置
</el-button>
</s
lot
>
</s
pan
>
</search-form>
<h3>
试驾车辆信息
<div
class=
"pull-right"
>
...
...
@@ -192,7 +195,6 @@ export default {
searchForm
:
{},
vehicleFormList
:
[
{
label
:
'关键字:'
,
type
:
'input'
,
inputType
:
'text'
,
prop
:
'searchKey'
,
...
...
@@ -560,10 +562,4 @@ export default {
},
},
}
</
script
>
<
style
scope
>
.vehicle
.el-form
.el-input__inner
{
width
:
350px
;
}
</
style
>
\ No newline at end of file
</
script
>
\ No newline at end of file
src/views/vehicleSubmit/index.vue
View file @
8b0f377
...
...
@@ -6,7 +6,10 @@
:formModel=
"searchForm"
:formList=
"submitFormList"
>
<slot
name=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
:size=
"btn_size"
...
...
@@ -19,7 +22,7 @@
icon=
"el-icon-refresh"
@
click=
"reset"
>
重置
</el-button>
</s
lot
>
</s
pan
>
</search-form>
<h3>
上牌资料信息
</h3>
<basic-table
...
...
@@ -65,24 +68,21 @@ export default {
searchForm
:
{},
submitFormList
:
[
{
label
:
'关键字:'
,
type
:
'input'
,
inputType
:
'text'
,
prop
:
'keywords'
,
placeholder
:
'特约店编码|店名称|围栏名称'
,
},
{
label
:
'提交状态:'
,
type
:
'select'
,
prop
:
'submitStatus'
,
placeholder
:
'请选择'
,
placeholder
:
'请选择
提交状态
'
,
options
:
[]
},
{
label
:
'审核状态:'
,
type
:
'select'
,
prop
:
'approvalStatus'
,
placeholder
:
'请选择'
,
placeholder
:
'请选择
审核状态
'
,
options
:
[]
}
],
...
...
@@ -182,10 +182,4 @@ export default {
},
},
}
</
script
>
<
style
>
.vehicle
.el-form
.el-input__inner
{
width
:
300px
;
}
</
style
>
\ No newline at end of file
</
script
>
\ No newline at end of file
src/views/vehicleSubmit/vehicleCheck/index.vue
View file @
8b0f377
...
...
@@ -6,7 +6,10 @@
:formModel=
"searchForm"
:formList=
"checkFormList"
>
<slot
name=
"form-slot"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
type=
"primary"
:size=
"btn_size"
...
...
@@ -19,7 +22,7 @@
icon=
"el-icon-refresh"
@
click=
"reset"
>
重置
</el-button>
</s
lot
>
</s
pan
>
</search-form>
<h3>
上牌资料审核
<el-button
...
...
@@ -81,24 +84,21 @@ export default {
searchForm
:
{},
checkFormList
:
[
{
label
:
'关键字:'
,
type
:
'input'
,
inputType
:
'text'
,
prop
:
'keywords'
,
placeholder
:
'特约店编码|店名称|围栏名称'
,
},
// {
// type: 'select',
// prop: 'submitStatus',
// placeholder: '请选择',
// options: []
// },
{
label
:
'提交状态:'
,
type
:
'select'
,
prop
:
'submitStatus'
,
placeholder
:
'请选择'
,
options
:
[]
},
{
label
:
'审核状态:'
,
type
:
'select'
,
prop
:
'approvalStatus'
,
placeholder
:
'请选择'
,
placeholder
:
'请选择
审核状态
'
,
options
:
[]
}
],
...
...
@@ -220,9 +220,3 @@ export default {
},
}
</
script
>
<
style
>
.vehicle
.el-form
.el-input__inner
{
width
:
300px
;
}
</
style
>
\ No newline at end of file
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