|
|
|
@ -4,78 +4,76 @@
|
|
|
|
|
<el-form :inline="true" :model="Topquery" class="el-fr-d"> </el-form> |
|
|
|
|
</el-row> |
|
|
|
|
<!-- 头部右侧按钮模块 --> |
|
|
|
|
<div> |
|
|
|
|
<el-tabs type="border-card" class="top-el-tabs" v-model="tabName" @tab-change="tabchange"> |
|
|
|
|
<el-tab-pane label="全部" :name="1">全部</el-tab-pane> |
|
|
|
|
<el-tab-pane label="临期" :name="2">临期</el-tab-pane> |
|
|
|
|
<el-tab-pane label="到期" :name="3">到期</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
<div> |
|
|
|
|
<div class="el_top_btn"> |
|
|
|
|
<div> |
|
|
|
|
<el-button type="primary" @click="newlyadd" icon="el-icon-plus">新 增</el-button> |
|
|
|
|
<el-button type="primary" icon="el-icon-delete" @click="DeleteInformationAll" |
|
|
|
|
>批量删除</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<div class="avue-crud__right"> |
|
|
|
|
<el-button icon="el-icon-refresh" @click="searchChangeS" circle></el-button> |
|
|
|
|
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> |
|
|
|
|
<el-button icon="Search" @click="searchHide" circle></el-button> |
|
|
|
|
<el-tabs type="border-card" class="top-el-tabs" v-model="tabName" @tab-change="tabchange"> |
|
|
|
|
<el-tab-pane label="全部" :name="1">全部</el-tab-pane> |
|
|
|
|
<el-tab-pane label="临期" :name="2">临期</el-tab-pane> |
|
|
|
|
<el-tab-pane label="到期" :name="3">到期</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
<div> |
|
|
|
|
<div class="el_top_btn"> |
|
|
|
|
<div> |
|
|
|
|
<el-button type="primary" @click="newlyadd" icon="el-icon-plus">新 增</el-button> |
|
|
|
|
<el-button type="primary" icon="el-icon-delete" @click="DeleteInformationAll" |
|
|
|
|
>批量删除</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<div class="avue-crud__right"> |
|
|
|
|
<el-button icon="el-icon-refresh" @click="searchChangeS" circle></el-button> |
|
|
|
|
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button> |
|
|
|
|
<el-button icon="Search" @click="searchHide" circle></el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-row> |
|
|
|
|
<!-- 列表模块 --> |
|
|
|
|
<tablecmt |
|
|
|
|
class="tableNode" |
|
|
|
|
:columnList="details.columnList" |
|
|
|
|
:tableData="data" |
|
|
|
|
:checkselect="selectList" |
|
|
|
|
@inputTxt="inputsc" |
|
|
|
|
@timeCheck="timesc" |
|
|
|
|
@btnCheck="btnsc" |
|
|
|
|
@selectCheck="selectsc" |
|
|
|
|
@selection="selectionChange" |
|
|
|
|
> |
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<template v-if="slotProps.scope.column.label === '操作'"> |
|
|
|
|
<div class="ElBtnClass"> |
|
|
|
|
<el-text |
|
|
|
|
v-if="userInfo == 'admin'" |
|
|
|
|
@click="Expandconfiguration(slotProps.scope.row)" |
|
|
|
|
>扩展配置</el-text |
|
|
|
|
> |
|
|
|
|
<el-text @click="view(slotProps.scope)">查看</el-text> |
|
|
|
|
<el-text @click="edit(slotProps.scope)">编辑</el-text> |
|
|
|
|
<el-text @click="DeleteInformation(slotProps.scope)">删除</el-text> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<!-- 分页模块 --> |
|
|
|
|
<el-row class="el-fy"> |
|
|
|
|
<div class="avue-crud__pagination flex-c-sb" style="width: 100%"> |
|
|
|
|
<div></div> |
|
|
|
|
<el-pagination |
|
|
|
|
align="right" |
|
|
|
|
background |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
@current-change="currentChange" |
|
|
|
|
:current-page="page.currentPage" |
|
|
|
|
:page-sizes="[30, 50, 80, 120]" |
|
|
|
|
:page-size="page.pageSize" |
|
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
|
:total="page.total" |
|
|
|
|
<el-row> |
|
|
|
|
<!-- 列表模块 --> |
|
|
|
|
<tablecmt |
|
|
|
|
class="tableNode" |
|
|
|
|
:columnList="details.columnList" |
|
|
|
|
:tableData="data" |
|
|
|
|
:checkselect="selectList" |
|
|
|
|
@inputTxt="inputsc" |
|
|
|
|
@timeCheck="timesc" |
|
|
|
|
@btnCheck="btnsc" |
|
|
|
|
@selectCheck="selectsc" |
|
|
|
|
@selection="selectionChange" |
|
|
|
|
> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</el-row> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<template v-if="slotProps.scope.column.label === '操作'"> |
|
|
|
|
<div class="ElBtnClass"> |
|
|
|
|
<el-text |
|
|
|
|
v-if="userInfo == 'admin'" |
|
|
|
|
@click="Expandconfiguration(slotProps.scope.row)" |
|
|
|
|
>扩展配置</el-text |
|
|
|
|
> |
|
|
|
|
<el-text @click="view(slotProps.scope)">查看</el-text> |
|
|
|
|
<el-text @click="edit(slotProps.scope)">编辑</el-text> |
|
|
|
|
<el-text @click="DeleteInformation(slotProps.scope)">删除</el-text> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<!-- 分页模块 --> |
|
|
|
|
<el-row class="el-fy"> |
|
|
|
|
<div class="avue-crud__pagination flex-c-sb" style="width: 100%"> |
|
|
|
|
<div></div> |
|
|
|
|
<el-pagination |
|
|
|
|
align="right" |
|
|
|
|
background |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
@current-change="currentChange" |
|
|
|
|
:current-page="page.currentPage" |
|
|
|
|
:page-sizes="[30, 50, 80, 120]" |
|
|
|
|
:page-size="page.pageSize" |
|
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
|
:total="page.total" |
|
|
|
|
> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</el-row> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- 新增弹窗 --> |
|
|
|
@ -1082,8 +1080,10 @@ const beforeAvatarUpload = async rawFile => {
|
|
|
|
|
|
|
|
|
|
const _whiteArr = ['png', 'jpg', 'jpeg']; |
|
|
|
|
|
|
|
|
|
if (!_whiteArr.includes(_name.toLocaleLowerCase())) |
|
|
|
|
return ElMessage.warning('请上传png、jpg、jpeg的类型图片'); |
|
|
|
|
if (!_whiteArr.includes(_name.toLocaleLowerCase())) { |
|
|
|
|
ElMessage.warning('请上传png、jpg、jpeg的类型图片'); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
const res = await compressImageBlob(rawFile); |
|
|
|
|
return res; |
|
|
|
|
}; |
|
|
|
|