Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
Overview
Overview
Details
Activity
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
pseer
gxpt_web
Commits
8cd2a28a
Commit
8cd2a28a
authored
Oct 17, 2024
by
YG8429
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
房间新增房间类型文本录入字段
parent
d35d45a6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
index.vue
src/views/system/room/index.vue
+7
-0
vue.config.js
vue.config.js
+2
-2
No files found.
src/views/system/room/index.vue
View file @
8cd2a28a
...
...
@@ -266,6 +266,9 @@
<!--指定0到30范围的数字-->
<el-input-number
v-model=
"form.sort"
:min=
"0"
:max=
"99"
label=
"排序值"
/>
</el-form-item>
<el-form-item
label=
"房间类型文本"
prop=
"textInput"
required
>
<el-input
v-model=
"form.textInput"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
...
...
@@ -377,6 +380,9 @@ export default {
name
:
[
{
required
:
true
,
message
:
"房间名称不能为空"
,
trigger
:
"blur"
}
],
textInput
:
[
{
required
:
true
,
message
:
"房间类型文本"
,
trigger
:
"blur"
}
],
price
:
[
{
required
:
true
,
message
:
"房间单价不能为空"
,
trigger
:
"blur"
}
],
...
...
@@ -546,6 +552,7 @@ export default {
}
getRoom
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
console
.
log
(
response
.
data
)
this
.
form
.
roomStat
=
response
.
data
.
roomStat
?
response
.
data
.
roomStat
.
toString
()
:
'1'
;
if
(
this
.
form
.
facilities
){
this
.
facilities
=
this
.
form
.
facilities
.
split
(
","
)
...
...
vue.config.js
View file @
8cd2a28a
...
...
@@ -35,8 +35,8 @@ module.exports = {
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
//
target: `http://localhost:8882`,
target
:
"http://192.168.43.21:8882"
,
target
:
`http://localhost:8882`
,
//
target: "http://192.168.43.21:8882",
changeOrigin
:
true
,
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
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