Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
refined-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
refined-platform
Commits
21f4e30c
Commit
21f4e30c
authored
Aug 11, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推
parent
5f03309f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
256 additions
and
226 deletions
+256
-226
refined-manager-ui/admin/src/views/appointment/records/list.vue
...d-manager-ui/admin/src/views/appointment/records/list.vue
+165
-153
refined-manager-ui/admin/src/views/device/list.vue
refined-manager-ui/admin/src/views/device/list.vue
+91
-73
No files found.
refined-manager-ui/admin/src/views/appointment/records/list.vue
View file @
21f4e30c
<
template
>
<div
class=
"page"
>
<LayoutTable
notAdd
notDel
:data=
"tableData"
:config=
"tableConfig"
>
<el-button
slot=
"table-head-left2"
style=
"margin-left: 10px"
...
...
@@ -11,7 +10,6 @@
@
click=
"monitorWarn"
>
监测预警
</el-button
>
</LayoutTable>
<drawer-show
ref=
"dataDrawerShow"
/>
...
...
@@ -21,18 +19,18 @@
</
template
>
<
script
>
/** 表单弹出框模式需引入 */
import
dialogShow
from
"
./dialogshow
"
;
import
drawerShow
from
"
./dataDrawerShow
"
;
import
table
from
"
@/assets/mixins/table
"
;
export
default
{
/** 表单弹出框模式需引入 */
import
dialogShow
from
"
./dialogshow
"
;
import
drawerShow
from
"
./dataDrawerShow
"
;
import
table
from
"
@/assets/mixins/table
"
;
export
default
{
name
:
"
AppointmentRecordsList
"
,
components
:
{
dialogShow
,
drawerShow
dialogShow
,
drawerShow
,
},
mixins
:
[
table
],
created
()
{
},
created
()
{},
methods
:
{
/** 重写新增方法 */
toAdd
(
row
)
{
...
...
@@ -52,14 +50,20 @@
},
serviceConstraint
(
row
)
{
let
_this
=
this
this
.
$confirm
(
'
服务约束后,系统将停止向该群众推送此项服务,是否确认?
'
,
"
系统服务
"
,
{
let
_this
=
this
;
this
.
$confirm
(
"
服务约束后,系统将停止向该群众推送此项服务,是否确认?
"
,
"
系统服务
"
,
{
confirmButtonText
:
"
确定
"
,
cancelButtonText
:
"
取消
"
,
type
:
"
warning
"
}).
then
(
function
()
{
type
:
"
warning
"
,
}
)
.
then
(
function
()
{
//todo
_this
.
$post
(
"
/appointment/records
"
,
{
id
:
[
row
.
id
]
})
_this
.
$post
(
"
/appointment/records
"
,
{
id
:
[
row
.
id
]
})
.
then
((
res
)
=>
{
if
(
res
&&
res
.
code
&&
res
.
code
==
1
)
{
_this
.
getList
();
...
...
@@ -69,12 +73,9 @@
.
catch
((
error
)
=>
{
_this
.
$message
.
error
(
error
.
message
);
});
}).
then
(
response
=>
{
})
}
.
then
((
response
)
=>
{});
},
},
data
()
{
return
{
...
...
@@ -104,28 +105,38 @@
label
:
"
姓名
"
,
fuzzy
:
true
,
},
],
columns
:
[
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
{
label
:
"
姓名
"
,
prop
:
"
name
"
},
{
label
:
"
姓名
"
,
prop
:
"
name
"
},
{
label
:
"
联系方式
"
,
prop
:
"
contactInfo
"
},
{
label
:
"
联系方式
"
,
prop
:
"
contactInfo
"
},
{
label
:
"
身份证号码
"
,
prop
:
"
idNumber
"
},
{
label
:
"
身份证号码
"
,
prop
:
"
idNumber
"
},
{
label
:
"
预约业务
"
,
prop
:
"
reservationService
"
},
{
label
:
"
预约业务
"
,
prop
:
"
reservationService
"
},
{
label
:
"
预约编号
"
,
prop
:
"
reservationNumber
"
},
{
label
:
"
预约编号
"
,
prop
:
"
reservationNumber
"
},
{
label
:
"
监测时间
"
,
prop
:
"
monitorTime
"
,
formatter
:
this
.
formatterDate
},
{
label
:
"
监测时间
"
,
prop
:
"
monitorTime
"
,
formatter
:
this
.
formatterDate
,
},
{
label
:
"
监测设备
"
,
prop
:
"
monitorDevice
"
},
{
label
:
"
监测设备
"
,
prop
:
"
monitorDevice
"
},
{
label
:
"
签到方式
"
,
prop
:
"
checkInMethod
"
,
formatter
:
this
.
formatter
},
{
label
:
"
签到方式
"
,
prop
:
"
checkInMethod
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
监测凭证
"
,
prop
:
"
monitorCertificate
"
,
formatter
:
(
row
)
=>
{
{
label
:
"
监测凭证
"
,
prop
:
"
monitorCertificate
"
,
formatter
:
(
row
)
=>
{
return
row
.
monitorCertificate
!=
""
?
(
<
el
-
image
style
=
"
width: 70px; height: 70px
"
...
...
@@ -135,11 +146,12 @@
)
:
(
"
--
"
);
},},
},
},
{
label
:
"
操作
"
,
width
:
240
,
formatter
:
row
=>
{
formatter
:
(
row
)
=>
{
return
(
<
div
>
<
el
-
button
...
...
@@ -154,11 +166,11 @@
<
/el-button
>
<
/div
>
);
}
}
]
}
};
}
},
},
],
},
};
},
};
</
script
>
refined-manager-ui/admin/src/views/device/list.vue
View file @
21f4e30c
<
template
>
<div
class=
"page"
>
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
>
</LayoutTable>
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
>
</LayoutTable>
<dialog-show
ref=
"dialogform"
@
ok=
"getData"
/>
</div>
</
template
>
<
script
>
/** 表单弹出框模式需引入 */
import
dialogShow
from
"
./dialogshow
"
;
import
table
from
"
@/assets/mixins/table
"
;
export
default
{
/** 表单弹出框模式需引入 */
import
dialogShow
from
"
./dialogshow
"
;
import
table
from
"
@/assets/mixins/table
"
;
export
default
{
name
:
"
DeviceList
"
,
components
:
{
dialogShow
},
mixins
:
[
table
],
created
()
{
dialogShow
,
},
mixins
:
[
table
],
created
()
{},
methods
:
{
/** 重写新增方法 */
toAdd
(
row
)
{
...
...
@@ -33,51 +30,72 @@
toView
(
row
)
{
this
.
$refs
.
dialogform
.
view
(
row
);
},
},
data
()
{
return
{
config
:
{
search
:
[
{
name
:
"
deviceName
"
,
type
:
"
text
"
,
label
:
"
设备名称
"
,
fuzzy
:
true
,
},
{
name
:
"
deviceStatus
"
,
type
:
"
select
"
,
label
:
"
设备状态
"
,
},
],
columns
:
[
{
type
:
"
selection
"
,
width
:
60
},
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
{
type
:
"
selection
"
,
width
:
60
},
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
{
label
:
"
设备名称
"
,
prop
:
"
deviceName
"
},
{
label
:
"
设备名称
"
,
prop
:
"
deviceName
"
},
{
label
:
"
设备编码
"
,
prop
:
"
deviceCode
"
},
{
label
:
"
设备编码
"
,
prop
:
"
deviceCode
"
},
{
label
:
"
设备位置
"
,
prop
:
"
deviceLocation
"
},
{
label
:
"
设备位置
"
,
prop
:
"
deviceLocation
"
},
{
label
:
"
经度
"
,
prop
:
"
lon
"
},
{
label
:
"
经度
"
,
prop
:
"
lon
"
},
{
label
:
"
纬度
"
,
prop
:
"
lati
"
},
{
label
:
"
纬度
"
,
prop
:
"
lati
"
},
{
label
:
"
楼层
"
,
prop
:
"
floor
"
,
formatter
:
this
.
formatter
},
{
label
:
"
楼层
"
,
prop
:
"
floor
"
,
formatter
:
this
.
formatter
},
{
label
:
"
楼栋
"
,
prop
:
"
build
"
,
formatter
:
this
.
formatter
},
{
label
:
"
楼栋
"
,
prop
:
"
build
"
,
formatter
:
this
.
formatter
},
/* {label: "超时时间", prop: "timeOutPeriod",formatter: this.formatter},
/* {label: "超时时间", prop: "timeOutPeriod",formatter: this.formatter},
{label: "临近时间", prop: "nearTime",formatter: this.formatter},*/
{
label
:
"
设备状态
"
,
prop
:
"
deviceStatus
"
,
formatter
:
this
.
formatter
},
{
label
:
"
设备状态
"
,
prop
:
"
deviceStatus
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
备注
"
,
prop
:
"
deviceRemark
"
},
{
label
:
"
备注
"
,
prop
:
"
deviceRemark
"
},
{
label
:
"
操作
"
,
width
:
240
,
formatter
:
row
=>
{
formatter
:
(
row
)
=>
{
return
(
<
table
-
buttons
noAdd
noEdit
noDel
row
=
{
row
}
onEdit
=
{
this
.
toEdit
}
onView
=
{
this
.
toView
}
onDel
=
{
this
.
toDel
}
/
>
<
table
-
buttons
noAdd
noEdit
noDel
row
=
{
row
}
onEdit
=
{
this
.
toEdit
}
onView
=
{
this
.
toView
}
onDel
=
{
this
.
toDel
}
/
>
);
}
}
]
}
};
}
},
},
],
},
};
},
};
</
script
>
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