界面微调

This commit is contained in:
曹前明 2022-09-15 16:31:39 +08:00
parent 13bca8732e
commit e865a3d45a
6 changed files with 35 additions and 17 deletions

View File

@ -8,8 +8,8 @@ VUE_APP_TITLE = '曲阳金隅安全智能管控平台'
#VUE_APP_API_BASEURL = http://1.203.161.103:2800/api #VUE_APP_API_BASEURL = http://1.203.161.103:2800/api
#VUE_APP_WS_API = 'ws://localhost:8000' #VUE_APP_WS_API = 'ws://localhost:8000'
VUE_APP_API_BASEURL = http://10.99.5.79:20309/api VUE_APP_API_BASEURL = http://10.99.5.79:20309/api
#VUE_APP_API_BASEURL = http://127.0.0.1:8000/api VUE_APP_API_BASEURL = http://127.0.0.1:8000/api
VUE_APP_BASEURL = http://127.0.0.1:8000 #VUE_APP_BASEURL = http://127.0.0.1:8000
# 本地端口 # 本地端口

View File

@ -1,13 +1,24 @@
<template> <template>
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"></div> <div class="left-panel">
<el-date-picker
v-model="timeRange"
type="datetimerange"
range-separator="至"
start-placeholder="请求时间始"
end-placeholder="请求时间止"
value-format="YYYY-MM-DD HH:mm:ss"
@change="handleQuery"
clearable
/>
</div>
<div class="right-panel"> <div class="right-panel">
<div class="right-panel-search"> <div class="right-panel-search">
<el-input <el-input
v-model="query.id" v-model="query.id"
placeholder="logId" placeholder="logId"
clearable @keyup.enter="handleQuery"
></el-input> ></el-input>
<el-button <el-button
type="primary" type="primary"
@ -97,6 +108,7 @@ export default {
data() { data() {
return { return {
apiObj: this.$API.ops.logs.list, apiObj: this.$API.ops.logs.list,
timeRange: [],
query: {}, query: {},
logLists: [], logLists: [],
infoDrawer: false, infoDrawer: false,
@ -106,6 +118,13 @@ export default {
mounted() {}, mounted() {},
methods: { methods: {
handleQuery() { handleQuery() {
if(this.timeRange){
this.query.start_request = this.timeRange[0]
this.query.end_request = this.timeRange[1]
}else{
this.query.start_request = null
this.query.end_request = null
}
this.$refs.table.queryData(this.query); this.$refs.table.queryData(this.query);
}, },
resetQuery() { resetQuery() {

View File

@ -32,7 +32,7 @@
> >
<el-table-column label="#" type="index" width="50"></el-table-column> <el-table-column label="#" type="index" width="50"></el-table-column>
<el-table-column label="名称" prop="name" width="180"></el-table-column> <el-table-column label="名称" prop="name" width="220"></el-table-column>
<el-table-column label="信用代码" prop="number" width="180"> <el-table-column label="信用代码" prop="number" width="180">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -50,8 +50,11 @@
></el-table-column> --> ></el-table-column> -->
<el-table-column <el-table-column
label="管理员" label="管理员"
prop="admin_username" >
></el-table-column> <template #default="scope">
<span v-if="scope.row.admin">{{ scope.row.admin_.name }}-{{scope.row.admin_.phone}}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" align="left" width="200"> <el-table-column label="操作" fixed="right" align="left" width="200">
<template #default="scope"> <template #default="scope">

View File

@ -92,7 +92,7 @@
type="primary" type="primary"
size="small" size="small"
@click="bindCard(scope.row,10)" @click="bindCard(scope.row,10)"
v-auth="'visit.update'" v-auth="'blt_bind.create'"
>绑卡 >绑卡
</el-button> </el-button>
</template> </template>

View File

@ -94,7 +94,7 @@
type="primary" type="primary"
size="small" size="small"
@click="bindCard(scope.row,10)" @click="bindCard(scope.row,10)"
v-auth="'visit.update'" v-auth="'blt_bind.create'"
>绑卡 >绑卡
</el-button> </el-button>
</template> </template>

View File

@ -6,7 +6,6 @@
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@click="handleForm('add')" @click="handleForm('add')"
v-auth="'visit.create'"
></el-button> ></el-button>
<!-- <!--
<el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button> <el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button>
@ -44,27 +43,24 @@
<sc-upload v-model="scope.row.photo" :disabled="true" width="70" height="80"></sc-upload> <sc-upload v-model="scope.row.photo" :disabled="true" width="70" height="80"></sc-upload>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="操作" fixed="right" align="left" width="170"> <el-table-column label="操作" fixed="right" align="left" width="170">
<template #default="scope"> <template #default="scope">
<el-button <el-button
link link
type="warning" type="warning"
size="small" size="small"
@click="handleForm('edit', scope.row)" @click="handleForm('edit', scope.row)">编辑</el-button
v-auth="'visit.update'"
>编辑</el-button
> >
<el-popconfirm <el-popconfirm
title="确定删除该访客吗?" title="确定删除该访客吗?"
@confirm="delVisitor(scope.row)" @confirm="delVisitor(scope.row)"
> >
<template #reference> <template #reference>
<el-button link type="danger" size="small" <el-button link type="danger" size="small">删除</el-button>
v-auth="'visit.delete'">删除</el-button>
</template> </template>
</el-popconfirm> </el-popconfirm>
</template> </template>
</el-table-column> --> </el-table-column>
</scTable> </scTable>
</el-main> </el-main>
</el-container> </el-container>