Commit f7a10758 authored by zhengke's avatar zhengke

修改

parent 46239881
...@@ -22,6 +22,12 @@ ...@@ -22,6 +22,12 @@
<template v-slot:top="props"> <template v-slot:top="props">
<div class="col-2 q-table__title">咨询信息</div> <div class="col-2 q-table__title">咨询信息</div>
</template> </template>
<template v-slot:body-cell-DealStatusStr="props">
<q-td>
<span v-if="props.row.DealStatus==1" style="color:rgb(103, 194, 58)">{{props.row.DealStatusStr}}</span>
<span v-if="props.row.DealStatus==0" style="color:rgb(233, 82, 82)">{{props.row.DealStatusStr}}</span>
</q-td>
</template>
<template v-slot:bottom> <template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" /> :input="true" @input="changePage" />
...@@ -31,9 +37,9 @@ ...@@ -31,9 +37,9 @@
<q-btn flat size="xs" v-if="props.row.DealStatus==0" icon="edit" color="accent" style="font-weight:400" <q-btn flat size="xs" v-if="props.row.DealStatus==0" icon="edit" color="accent" style="font-weight:400"
label="处理" @click="EditConsult(props.row)" /> label="处理" @click="EditConsult(props.row)" />
<q-btn flat size="xs" icon="iconfont icon-View" color="accent" @click="goView(props.row)" <q-btn flat size="xs" icon="iconfont icon-View" color="accent" @click="goView(props.row)"
style="font-weight:400" label="查看" /> style="font-weight:400" label="查看" />
<q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" <q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" label="删除"
label="删除" @click="delConsult(props.row)" /> @click="delConsult(props.row)" />
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
...@@ -185,17 +191,17 @@ ...@@ -185,17 +191,17 @@
} else { } else {
this.consultObjOption = null this.consultObjOption = null
} }
this.consultObjOption.isView=-1; this.consultObjOption.isView = -1;
this.isShowConsultForm = true this.isShowConsultForm = true
}, },
//点击预览 //点击预览
goView(obj){ goView(obj) {
if (obj) { if (obj) {
this.consultObjOption = obj this.consultObjOption = obj
} else { } else {
this.consultObjOption = null this.consultObjOption = null
} }
this.consultObjOption.isView=1; this.consultObjOption.isView = 1;
this.isShowConsultForm = true this.isShowConsultForm = true
}, },
//关闭弹窗 //关闭弹窗
......
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