|
@@ -92,7 +92,11 @@
|
|
|
size="mini"
|
|
|
style="margin: 0"
|
|
|
@change="
|
|
|
- handleCheckAllChange($event, 'hotel_spec_tags', hotel_spec_tags_options)
|
|
|
+ handleCheckAllChange(
|
|
|
+ $event,
|
|
|
+ 'hotel_spec_tags',
|
|
|
+ hotel_spec_tags_options
|
|
|
+ )
|
|
|
"
|
|
|
>全选</el-checkbox
|
|
|
>
|
|
@@ -125,7 +129,13 @@
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
- @click="openModal('hotel_spec_tags', '酒店设施', hotel_spec_tags_options)"
|
|
|
+ @click="
|
|
|
+ openModal(
|
|
|
+ 'hotel_spec_tags',
|
|
|
+ '酒店设施',
|
|
|
+ hotel_spec_tags_options
|
|
|
+ )
|
|
|
+ "
|
|
|
>添加</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -179,7 +189,13 @@
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
- @click="openModal('conference_spec_tags', '会议设施', conference_spec_tags_options)"
|
|
|
+ @click="
|
|
|
+ openModal(
|
|
|
+ 'conference_spec_tags',
|
|
|
+ '会议设施',
|
|
|
+ conference_spec_tags_options
|
|
|
+ )
|
|
|
+ "
|
|
|
>添加</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -227,9 +243,11 @@
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<el-button
|
|
|
- size="mini"
|
|
|
+ size="mini"
|
|
|
type="text"
|
|
|
- @click="openModal('room_spec_tags', '客房设施', room_spec_tags_options)"
|
|
|
+ @click="
|
|
|
+ openModal('room_spec_tags', '客房设施', room_spec_tags_options)
|
|
|
+ "
|
|
|
>添加</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -281,9 +299,15 @@
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<el-button
|
|
|
- size="mini"
|
|
|
+ size="mini"
|
|
|
type="text"
|
|
|
- @click="openModal('caterer_spec_tags', '餐饮设施', caterer_spec_tags_options)"
|
|
|
+ @click="
|
|
|
+ openModal(
|
|
|
+ 'caterer_spec_tags',
|
|
|
+ '餐饮设施',
|
|
|
+ caterer_spec_tags_options
|
|
|
+ )
|
|
|
+ "
|
|
|
>添加</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -378,13 +402,17 @@ export default {
|
|
|
|
|
|
async resetFormData() {
|
|
|
// 重置
|
|
|
- await this.$nextTick(() => {
|
|
|
+ await this.$nextTick(async () => {
|
|
|
if (this.$refs.ruleForm) {
|
|
|
this.$refs.ruleForm.resetFields();
|
|
|
this.$refs.ruleForm.clearValidate();
|
|
|
- if (this.sitem && this.sitem.id) {
|
|
|
+
|
|
|
+ const { code, data } = await asyncRequest.detail({
|
|
|
+ store_id: this.store_id,
|
|
|
+ });
|
|
|
+ if (code === 1) {
|
|
|
+ const { row } = data;
|
|
|
const {
|
|
|
- // id,
|
|
|
renovation_date,
|
|
|
park_num,
|
|
|
store_spec_ids,
|
|
@@ -393,8 +421,7 @@ export default {
|
|
|
room_spec_tags,
|
|
|
conference_spec_tags,
|
|
|
store_desc,
|
|
|
- } = this.sitem || {};
|
|
|
- this.hand_name = person || "";
|
|
|
+ } = row || {};
|
|
|
this.ruleForm = {
|
|
|
// id: id || "",
|
|
|
renovation_date: renovation_date || "",
|
|
@@ -406,6 +433,10 @@ export default {
|
|
|
conference_spec_tags: conference_spec_tags || [],
|
|
|
store_desc: store_desc || "",
|
|
|
};
|
|
|
+ } else {
|
|
|
+ this.ruleForm = {
|
|
|
+ ...formItem,
|
|
|
+ };
|
|
|
}
|
|
|
}
|
|
|
});
|