Commit 8cd2a28a by YG8429

房间新增房间类型文本录入字段

parent d35d45a6
...@@ -266,6 +266,9 @@ ...@@ -266,6 +266,9 @@
<!--指定0到30范围的数字--> <!--指定0到30范围的数字-->
<el-input-number v-model="form.sort" :min="0" :max="99" label="排序值"/> <el-input-number v-model="form.sort" :min="0" :max="99" label="排序值"/>
</el-form-item> </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-form-item label="备注" prop="remark">
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" /> <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
</el-form-item> </el-form-item>
...@@ -377,6 +380,9 @@ export default { ...@@ -377,6 +380,9 @@ export default {
name: [ name: [
{ required: true, message: "房间名称不能为空", trigger: "blur" } { required: true, message: "房间名称不能为空", trigger: "blur" }
], ],
textInput: [
{ required: true, message: "房间类型文本", trigger: "blur" }
],
price: [ price: [
{ required: true, message: "房间单价不能为空", trigger: "blur" } { required: true, message: "房间单价不能为空", trigger: "blur" }
], ],
...@@ -546,6 +552,7 @@ export default { ...@@ -546,6 +552,7 @@ export default {
} }
getRoom(id).then(response => { getRoom(id).then(response => {
this.form = response.data; this.form = response.data;
console.log(response.data)
this.form.roomStat = response.data.roomStat ? response.data.roomStat.toString() : '1'; this.form.roomStat = response.data.roomStat ? response.data.roomStat.toString() : '1';
if(this.form.facilities){ if(this.form.facilities){
this.facilities = this.form.facilities.split(",") this.facilities = this.form.facilities.split(",")
......
...@@ -35,8 +35,8 @@ module.exports = { ...@@ -35,8 +35,8 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://localhost:8882`, target: `http://localhost:8882`,
target: "http://192.168.43.21:8882", // target: "http://192.168.43.21:8882",
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment