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

页面修改

parent 43d5758b
...@@ -10,12 +10,12 @@ ...@@ -10,12 +10,12 @@
</q-card-section> </q-card-section>
<div class="row wrap"> <div class="row wrap">
<template v-if="ChoiceType==3"> <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>
<template v-if="ChoiceType==2"> <template v-if="ChoiceType==2">
<q-select filled stack-label option-value="Id" option-label="Name" v-model="chooseLiudan" <q-select filled stack-label option-value="Id" option-label="Name" v-model="chooseLiudan" ref="remark"
ref="remark" :options="reasonList" label="流单原因" :dense="false" class="col-12 q-pb-lg" :options="reasonList" label="流单原因" :dense="false" class="col-12 q-pb-lg" emit-value map-options
emit-value map-options multiple /> multiple />
</template> </template>
</div> </div>
</div> </div>
...@@ -37,9 +37,9 @@ ...@@ -37,9 +37,9 @@
props: { props: {
ChoiceType: { ChoiceType: {
type: Number, type: Number,
default: null default: 2
}, },
saveObj: { saveObj: {
type: Object, type: Object,
default: null default: null
} }
...@@ -49,46 +49,76 @@ ...@@ -49,46 +49,76 @@
persistent: true, persistent: true,
saveLoading: false, saveLoading: false,
msg: { msg: {
remark: '' Id: 0,
ReserveStatus: 0,
Remark: '',
}, },
chooseLiudan:[], chooseLiudan: [],
reasonList: [{ reasonList: [{
Id: 1, Id: "教学环境",
Name: '教学环境' Name: '教学环境'
}, { }, {
Id: 2, Id: "教学内容",
Name: '教学内容' Name: '教学内容'
}, { }, {
Id: 3, Id: "讲师",
Name: '讲师' Name: '讲师'
}, { }, {
Id: 4, Id: "价格",
Name: '价格' Name: '价格'
}, { }, {
Id: 5, Id: "销售跟进",
Name: '销售跟进' Name: '销售跟进'
}, { }, {
Id: 6, Id: "同行竞争",
Name: '同行竞争' Name: '同行竞争'
}, { }, {
Id: 7, Id: "其他",
Name: '其他' Name: '其他'
}] }]
} }
}, },
mounted() {}, mounted() {
if (this.saveObj) {
if (this.saveObj.Id) {
this.msg.Id = this.saveObj.Id;
}
}
},
methods: { methods: {
//关闭弹窗 //关闭弹窗
closeSaveForm() { closeSaveForm() {
this.$emit('close') this.$emit('close')
this.persistent = false this.persistent = false;
}, },
//保存菜单 //保存菜单
saveYueke() { saveYueke() {
this.saveLoading = true; this.saveLoading = true;
if(this.ChoiceType==2){ if (this.ChoiceType == 2) {
this.msg.remark = this.chooseLiudan.toString(); 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 @@ ...@@ -35,7 +35,7 @@
:input="true" @input="changePage" /> :input="true" @input="changePage" />
</template> </template>
</q-table> </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> </div>
</template> </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