Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
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
刘怀志
pet-business-web
Commits
00193f7e
Commit
00193f7e
authored
Jun 27, 2023
by
王飞龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/router/index.js
parent
67e2e881
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
23 deletions
+31
-23
equipment-detail.vue
...ment-management/equipment-management/equipment-detail.vue
+29
-21
equipment-management.vue
...-management/equipment-management/equipment-management.vue
+2
-2
No files found.
src/views/equipment-management/equipment-management/equipment-detail.vue
View file @
00193f7e
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
<el-form-item
prop=
"address"
>
<el-form-item
prop=
"address"
>
<el-input
<el-input
v-model
.
trim=
"form.address"
v-model
.
trim=
"form.address"
placeholder=
"
请输入详细地址地址(街道、楼牌号等)
"
placeholder=
"
暂无数据
"
maxlength=
"40"
maxlength=
"40"
clearable
clearable
style=
"width: 263%"
style=
"width: 263%"
...
@@ -101,20 +101,7 @@
...
@@ -101,20 +101,7 @@
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!--
<el-col
:span=
"8"
>
-->
<!--
<el-form-item
>
-->
<!--
<el-input-->
<!-- v-model.trim="form.address"-->
<!-- placeholder="暂无数据"-->
<!-- maxlength="40"-->
<!-- clearable-->
<!-- disabled-->
<!-- style="width: 263%"-->
<!-- >-->
<!--
<template
v-if=
"addtions.names !== ''"
slot=
"prepend"
>
{{
addtions
.
names
}}
</
template
>
-->
<!-- </el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"单位时段服务数"
>
<el-form-item
label=
"单位时段服务数"
>
<el-input-number
<el-input-number
...
@@ -278,6 +265,14 @@
...
@@ -278,6 +265,14 @@
<el-row>
<el-row>
<el-col>
<el-col>
<el-form-item
label=
"支持服务地区"
>
<el-form-item
label=
"支持服务地区"
>
<!--
<el-input-->
<!-- disabled-->
<!-- type="textarea"-->
<!-- placeholder="暂无数据"-->
<!-- maxlength="200"-->
<!-- style="width:705%;"-->
<!-- :rows="4"-->
<!-- />-->
<el-select
v-model=
"form.serviceArea"
multiple
placeholder=
"请选择支持服务地区"
disabled
style=
"width: 300px"
>
<el-select
v-model=
"form.serviceArea"
multiple
placeholder=
"请选择支持服务地区"
disabled
style=
"width: 300px"
>
<el-option
<el-option
v-for=
"dict in dict.type.service_area"
v-for=
"dict in dict.type.service_area"
...
@@ -628,7 +623,7 @@ import { getDevice, updateDevice } from '@/api/business/device'
...
@@ -628,7 +623,7 @@ import { getDevice, updateDevice } from '@/api/business/device'
import
{
CodeToText
,
regionData
}
from
'element-china-area-data'
import
{
CodeToText
,
regionData
}
from
'element-china-area-data'
import
{
getInfo
}
from
'@/api/login'
import
{
getInfo
}
from
'@/api/login'
import
{
listCheckManage
}
from
'@/api/business/manage'
import
{
listCheckManage
}
from
'@/api/business/manage'
import
{
isEmpty
,
parseTime
}
from
'@/utils/ruoyi'
import
{
isEmpty
,
parseTime
,
selectDictLabels
}
from
'@/utils/ruoyi'
import
{
deepClone
}
from
'@/utils'
import
{
deepClone
}
from
'@/utils'
export
default
{
export
default
{
name
:
'EquipmentDetail'
,
name
:
'EquipmentDetail'
,
...
@@ -645,7 +640,7 @@ export default {
...
@@ -645,7 +640,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
// 日期格式
replace
(
time
)
{
replace
(
time
)
{
return
parseTime
(
time
,
'{y}/{m}/{d}'
)
return
parseTime
(
time
,
'{y}/{m}/{d}'
)
},
},
...
@@ -689,6 +684,8 @@ export default {
...
@@ -689,6 +684,8 @@ export default {
deviceName
:
''
,
deviceName
:
''
,
// appointmentMethod: '',
// appointmentMethod: '',
serviceArea
:
''
,
serviceArea
:
''
,
serviceAreaList
:
[],
checkTypeList
:
[],
head
:
''
,
head
:
''
,
phone
:
''
,
phone
:
''
,
deviceType
:
''
,
deviceType
:
''
,
...
@@ -914,7 +911,7 @@ export default {
...
@@ -914,7 +911,7 @@ export default {
},
},
validaddress
(
rule
,
value
,
callback
)
{
validaddress
(
rule
,
value
,
callback
)
{
console
.
log
(
'validaddress'
,
this
.
form
.
selectedOptions
)
console
.
log
(
'validaddress'
,
this
.
form
.
selectedOptions
)
if
(
this
.
form
.
selectedOptions
.
length
>
0
)
{
if
(
this
.
form
.
selectedOptions
.
length
>
0
)
{
callback
()
callback
()
}
else
{
}
else
{
callback
(
new
Error
(
'请选择服务地点'
))
callback
(
new
Error
(
'请选择服务地点'
))
...
@@ -1070,7 +1067,18 @@ export default {
...
@@ -1070,7 +1067,18 @@ export default {
//
//
// }
// }
// if (this.form.serviceArea != null && this.form.serviceArea !== '') {
// if (this.form.serviceArea != null && this.form.serviceArea !== '') {
console
.
log
(
'this.form.serviceArea'
,
this
.
form
.
serviceArea
)
this
.
form
.
serviceAreaList
=
selectDictLabels
(
this
.
dict
.
type
.
service_area
,
this
.
form
.
serviceArea
)
console
.
log
(
' this.form.serviceAreaList'
,
this
.
form
.
serviceAreaList
)
this
.
form
.
serviceArea
=
response
.
data
.
serviceArea
.
split
(
','
)
this
.
form
.
serviceArea
=
response
.
data
.
serviceArea
.
split
(
','
)
// this.getDicts('service_area').then(response => {
// this.form.serviceAreaList = response.data
// this.form.checkTypeList = this.form.serviceArea.map(dictValue => this.form.serviceAreaList)
// console.log(' this.form.serviceAreaList.', this.form.serviceAreaList)
// console.log("this.form.idlist.", this.form.checkTypeList)
// })
// }
// }
if
(
this
.
form
.
checkType
!=
null
&&
this
.
form
.
checkType
!==
''
)
{
if
(
this
.
form
.
checkType
!=
null
&&
this
.
form
.
checkType
!==
''
)
{
this
.
form
.
checkType
=
response
.
data
.
checkType
.
split
(
','
)
this
.
form
.
checkType
=
response
.
data
.
checkType
.
split
(
','
)
...
@@ -1080,9 +1088,9 @@ export default {
...
@@ -1080,9 +1088,9 @@ export default {
this
.
form
.
useTime
=
JSON
.
parse
(
response
.
data
.
useTime
)
this
.
form
.
useTime
=
JSON
.
parse
(
response
.
data
.
useTime
)
}
}
// this.checkType = response.data.checkType.split(',')
// this.checkType = response.data.checkType.split(',')
console
.
log
(
':fsdfsddddddddd???????'
,
response
.
data
.
addressCode
)
//
console.log(':fsdfsddddddddd???????', response.data.addressCode)
console
.
log
(
'详细个bbbbb'
,
this
.
selectedOptions
)
//
console.log('详细个bbbbb', this.selectedOptions)
console
.
log
(
'详细个ccccccccccc'
,
this
.
form
.
selectedOptions
)
//
console.log('详细个ccccccccccc', this.form.selectedOptions)
console
.
log
(
'详情数据---'
,
this
.
form
)
console
.
log
(
'详情数据---'
,
this
.
form
)
// this.serviceAreaS = this.form.serviceArea.split(';')
// this.serviceAreaS = this.form.serviceArea.split(';')
// this.serviceArea = []
// this.serviceArea = []
...
...
src/views/equipment-management/equipment-management/equipment-management.vue
View file @
00193f7e
...
@@ -282,13 +282,13 @@ export default {
...
@@ -282,13 +282,13 @@ export default {
{
{
id
:
1
,
id
:
1
,
collation
:
'desc'
,
collation
:
'desc'
,
sortedColumn
:
'按创建
时间
倒序'
,
sortedColumn
:
'按创建
日期
倒序'
,
nameColumn
:
'e.create_time'
nameColumn
:
'e.create_time'
},
},
{
{
id
:
2
,
id
:
2
,
collation
:
'asc'
,
collation
:
'asc'
,
sortedColumn
:
'按创建
时间
正序'
,
sortedColumn
:
'按创建
日期
正序'
,
nameColumn
:
'e.create_time'
nameColumn
:
'e.create_time'
},
},
{
{
...
...
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