|
@@ -14,7 +14,7 @@
|
|
|
房间号
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <el-input v-model="form.room_id" placeholder="请输入房间号"></el-input>
|
|
|
+ <el-input v-model="form.room_id" placeholder="请输入房间号" disabled></el-input>
|
|
|
</el-col>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -24,7 +24,7 @@
|
|
|
类型
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <el-input v-model="form.type" placeholder="请输入类型" disabled></el-input>
|
|
|
+ <el-input v-model="form.type" placeholder="请输入类型"></el-input>
|
|
|
</el-col>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -74,14 +74,7 @@
|
|
|
简介
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <el-input
|
|
|
- v-model="form.desc"
|
|
|
- type="textarea"
|
|
|
- maxlength="300"
|
|
|
- show-word-limit
|
|
|
- :autosize="{ minRows: 3, maxRows: 4 }"
|
|
|
- placeholder="请输入简介"
|
|
|
- ></el-input>
|
|
|
+ <el-input v-model="form.desc" type="textarea" placeholder="请输入简介"></el-input>
|
|
|
</el-col>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -97,6 +90,8 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+const { mapActions: markettype } = createNamespacedHelpers('markettype');
|
|
|
+
|
|
|
export default {
|
|
|
metaInfo() {
|
|
|
return { title: this.$route.meta.title };
|
|
@@ -113,8 +108,12 @@ export default {
|
|
|
this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
- search() {
|
|
|
+ ...markettype(['fetch', 'update']),
|
|
|
+ async search() {
|
|
|
this.form = this.user;
|
|
|
+ // console.log(this.form);
|
|
|
+ const res = await this.fetch(this.user.type);
|
|
|
+ this.$set(this.form, `type`, res.data.name);
|
|
|
},
|
|
|
//提交修改
|
|
|
onSubmit(form) {
|