Commit 23527e94 authored by 黄奎's avatar 黄奎

页面修改

parent 45e6e170
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="stickycreatInsertStr-column-table schedul_Vtable" separator="none" :data="data" :columns="columns" class="stickycreatInsertStr-column-table schedul_Vtable" separator="none" :data="data" :columns="columns"
row-key="name"> row-key="name" :visible-columns="visibleColumns">
<template v-slot:top="props"> <template v-slot:top="props">
<div class="fangkeTitle" ref="fkdj">访客登记</div> <div class="fangkeTitle" ref="fkdj">访客登记</div>
<span class="fangkeNumb">{{data.length}}</span> <span class="fangkeNumb">{{data.length}}</span>
...@@ -157,7 +157,8 @@ ...@@ -157,7 +157,8 @@
<q-btn color="accent" size="sm" @click="isShowVform=!isShowVform,SaveVisitor()" <q-btn color="accent" size="sm" @click="isShowVform=!isShowVform,SaveVisitor()"
style="float:right;margin-bottom:10px;" label="保存" /> style="float:right;margin-bottom:10px;" label="保存" />
</div> </div>
<q-btn color="accent" slot="reference" size="sm" icon="add" @click="clearAddMsg" label="添加访客" v-if="DutyAuthObj.isShowAdd" /> <q-btn color="accent" slot="reference" size="sm" icon="add" @click="clearAddMsg" label="添加访客"
v-if="DutyAuthObj.isShowAdd" />
</el-popover> </el-popover>
</div> </div>
</template> </template>
...@@ -374,6 +375,11 @@ ...@@ -374,6 +375,11 @@
isShowAdd: true, //是否显示新增按钮【默认显示】 isShowAdd: true, //是否显示新增按钮【默认显示】
isShowEdit: true, //是否显示编辑按钮【默认显示】 isShowEdit: true, //是否显示编辑按钮【默认显示】
}, },
//表格可见列
visibleColumns: [
'Name', 'Tel', 'WeChatNum', 'CourseName', 'StudyTime', "LevelType",
"CreateByName", "VisitorStatus", "Evaluate", 'VisitTimes', 'Remark', 'optioned'
], //可见列
} }
}, },
created() { created() {
...@@ -395,6 +401,9 @@ ...@@ -395,6 +401,9 @@
this.DutyAuthObj.isShowEdit = this.authObj.isShowEdit; this.DutyAuthObj.isShowEdit = this.authObj.isShowEdit;
} }
} }
if (!this.DutyAuthObj.isShowEdit) {
this.visibleColumns.splice(this.visibleColumns.length - 1, 1);
}
}, },
//日语基础枚举 //日语基础枚举
getGuestBasics() { getGuestBasics() {
......
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