Commit 76c544f0 authored by 黄奎's avatar 黄奎

页面修改

parent 43d5758b
......@@ -10,12 +10,12 @@
</q-card-section>
<div class="row wrap">
<template v-if="ChoiceType==3">
<q-input filled stack-label :dense="false" v-model="msg.remark" type="textarea" class="col-12" label="备注" />
<q-input filled stack-label :dense="false" v-model="msg.Remark" type="textarea" class="col-12" label="备注" />
</template>
<template v-if="ChoiceType==2">
<q-select filled stack-label option-value="Id" option-label="Name" v-model="chooseLiudan"
ref="remark" :options="reasonList" label="流单原因" :dense="false" class="col-12 q-pb-lg"
emit-value map-options multiple />
<q-select filled stack-label option-value="Id" option-label="Name" v-model="chooseLiudan" ref="remark"
:options="reasonList" label="流单原因" :dense="false" class="col-12 q-pb-lg" emit-value map-options
multiple />
</template>
</div>
</div>
......@@ -37,9 +37,9 @@
props: {
ChoiceType: {
type: Number,
default: null
default: 2
},
saveObj: {
saveObj: {
type: Object,
default: null
}
......@@ -49,46 +49,76 @@
persistent: true,
saveLoading: false,
msg: {
remark: ''
Id: 0,
ReserveStatus: 0,
Remark: '',
},
chooseLiudan:[],
chooseLiudan: [],
reasonList: [{
Id: 1,
Id: "教学环境",
Name: '教学环境'
}, {
Id: 2,
Id: "教学内容",
Name: '教学内容'
}, {
Id: 3,
Id: "讲师",
Name: '讲师'
}, {
Id: 4,
Id: "价格",
Name: '价格'
}, {
Id: 5,
Id: "销售跟进",
Name: '销售跟进'
}, {
Id: 6,
Id: "同行竞争",
Name: '同行竞争'
}, {
Id: 7,
Id: "其他",
Name: '其他'
}]
}
},
mounted() {},
mounted() {
if (this.saveObj) {
if (this.saveObj.Id) {
this.msg.Id = this.saveObj.Id;
}
}
},
methods: {
//关闭弹窗
closeSaveForm() {
this.$emit('close')
this.persistent = false
this.persistent = false;
},
//保存菜单
saveYueke() {
this.saveLoading = true;
if(this.ChoiceType==2){
this.msg.remark = this.chooseLiudan.toString();
if (this.ChoiceType == 2) {
this.msg.ReserveStatus = 2;
}
if (this.ChoiceType == 3) {
this.msg.ReserveStatus = 3;
}
if (this.ChoiceType == 2) {
this.msg.remark = this.chooseLiudan.toString();
}
setVisitorReserveStatus(this.msg).then(res => {
if (res.Code == 1) {
this.saveLoading = false
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '数据保存成功!',
position: 'top'
})
this.$emit("success")
this.closeSaveForm()
}
}).catch(() => {
this.saveLoading = false
});
},
}
}
......
......@@ -35,7 +35,7 @@
:input="true" @input="changePage" />
</template>
</q-table>
<yuekeForm v-if="isShowYue" :ChoiceType="ChoiceType" :save-obj="classObjOption" @close="closeYuekeForm" @success="refreshPage"></yuekeForm>
<yuekeForm v-if="isShowYue" :ChoiceType="ChoiceType" :save-obj="visitorItem" @close="closeYuekeForm" @success="refreshPage"></yuekeForm>
</div>
</template>
......
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