Commit ecf6fcfc by 前端

修复样式覆盖问题

1 parent aad849da
...@@ -60,3 +60,20 @@ export const afterTodayOptions = { ...@@ -60,3 +60,20 @@ export const afterTodayOptions = {
return false return false
} }
} }
/**
* url下载文件
*
*/
export function downLoadFile(url) {
// console.log(row)
// return
const Temp = document.createElement('a')
// Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id
Temp.href = url + '?timestamp=' + new Date().getTime()
// console.log(url)
// console.log(Temp.href)
document.body.append(Temp)
Temp.click()
document.body.removeChild(Temp)
}
...@@ -332,23 +332,6 @@ export const Util = { ...@@ -332,23 +332,6 @@ export const Util = {
} }
} }
/**
* url下载文件
*
*/
export function downLoadFile(url) {
// console.log(row)
// return
const Temp = document.createElement('a')
// Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id
Temp.href = url + '?timestamp=' + new Date().getTime()
// console.log(url)
// console.log(Temp.href)
document.body.append(Temp)
Temp.click()
document.body.removeChild(Temp)
}
export const showModal = Util.msg export const showModal = Util.msg
export const showToast = Util.Info export const showToast = Util.Info
export const showLoading = Util.loading export const showLoading = Util.loading
......
<template> <template>
<div class="shop"> <div class="shop">
<template> <template>
<el-alert title="每月最后一天24:00按当月业务完成情况自动计算员工绩效。" show-icon class="tip-cla"></el-alert> <el-alert title="每月最后一天24:00按当月业务完成情况自动计算员工绩效。"
show-icon
class="tip-cla"></el-alert>
</template> </template>
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" <GLCombiForm ref="showSearch"
:rowNumber="1"
:formObj="searchForm"
:formData="showFormData"
@handleOk="handleSearch"
@handleRest="handleReset"> @handleRest="handleReset">
<div slot="performanceMonth"> <div slot="performanceMonth">
<el-date-picker v-model="searchForm.performanceMonth" type="month" placeholder="选择月" value-format="yyyy-MM" <el-date-picker v-model="searchForm.performanceMonth"
format="yyyy-MM" clearable :picker-options="pickerOption"></el-date-picker> type="month"
placeholder="选择月"
value-format="yyyy-MM"
format="yyyy-MM"
clearable
:picker-options="pickerOption"></el-date-picker>
</div> </div>
</GLCombiForm> </GLCombiForm>
<div class="table-header"> <div class="table-header">
<h2>驻店绩效列表</h2> <h2>驻店绩效列表</h2>
<div> <div>
<el-button size="small" @click="exportExcel_summary" plain>导出汇总表</el-button> <el-button size="small"
<el-button size="small" @click="exportExcel_detail">导出明细</el-button> @click="exportExcel_summary"
<el-button size="small" @click="batchDistribute">批量下发</el-button> plain>导出汇总表</el-button>
<el-button size="small"
@click="exportExcel_detail">导出明细</el-button>
<el-button size="small"
@click="batchDistribute">批量下发</el-button>
</div> </div>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="residentRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" <GLTable ref="residentRef"
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" :getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"> @setTableFinishFun="setTableFinishFun">
<div class="tb-ellipsis" slot="yqMerchantName" slot-scope="scope"> <div class="tb-ellipsis"
<el-popover placement="top" popper-class="base-popper" trigger="hover" :content="scope.scope.yqMerchantName"> slot="yqMerchantName"
slot-scope="scope">
<el-popover placement="top"
popper-class="base-popper"
trigger="hover"
:content="scope.scope.yqMerchantName">
<span slot="reference"> <span slot="reference">
{{ scope.scope.yqMerchantName }} {{ scope.scope.yqMerchantName }}
</span> </span>
</el-popover> </el-popover>
</div> </div>
<div slot="applyStatus" slot-scope="scope" class="flex"> <div slot="applyStatus"
slot-scope="scope"
class="flex">
<div :class="['dot', statusClass[scope.scope.status]]"></div> <div :class="['dot', statusClass[scope.scope.status]]"></div>
{{ reviewStatusObj[scope.scope.status] }} {{ reviewStatusObj[scope.scope.status] }}
</div> </div>
...@@ -42,17 +69,28 @@ ...@@ -42,17 +69,28 @@
:buttonItem="scope.scope" :buttonItem="scope.scope"
:buttonNum="3"></GLTableButton> :buttonNum="3"></GLTableButton>
</div> --> </div> -->
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns"
<el-button type="text" v-if="scope.scope.status == 0" @click="handleCorrection(scope.scope)">校正</el-button> slot="auth-button"
<el-button type="text" v-if="scope.scope.status == 0" @click="distribute(scope.scope)">下发</el-button> slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看明细</el-button> <el-button type="text"
v-if="scope.scope.status == 0"
@click="handleCorrection(scope.scope)">校正</el-button>
<el-button type="text"
v-if="scope.scope.status == 0"
@click="distribute(scope.scope)">下发</el-button>
<el-button type="text"
@click="handleDetail(scope.scope)">查看明细</el-button>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<ResidentDetailDialog v-if="isResidentVisible" :isVisible="isResidentVisible" :recordInfo="recordInfo" <ResidentDetailDialog v-if="isResidentVisible"
:isVisible="isResidentVisible"
:recordInfo="recordInfo"
@handleClose="handleDetail"></ResidentDetailDialog> @handleClose="handleDetail"></ResidentDetailDialog>
<ResidentCorrectionDialog v-if="isCorrectionVisible" :isVisible="isCorrectionVisible" :recordInfo="recordInfo" <ResidentCorrectionDialog v-if="isCorrectionVisible"
:isVisible="isCorrectionVisible"
:recordInfo="recordInfo"
@handleClose="handleCorrectionClose"></ResidentCorrectionDialog> @handleClose="handleCorrectionClose"></ResidentCorrectionDialog>
</div> </div>
</template> </template>
...@@ -60,7 +98,7 @@ ...@@ -60,7 +98,7 @@
<script> <script>
// import * as dayjs from 'dayjs' // import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
// import { downLoadFile } from '@/common/util' import { downLoadFile } from '@/common/format'
import ResidentDetailDialog from './residentDetailDialog.vue' import ResidentDetailDialog from './residentDetailDialog.vue'
import ResidentCorrectionDialog from './residentCorrectionDialog.vue' import ResidentCorrectionDialog from './residentCorrectionDialog.vue'
export default { export default {
...@@ -464,4 +502,5 @@ export default { ...@@ -464,4 +502,5 @@ export default {
.grey { .grey {
background: #999999; background: #999999;
}</style> }
</style>
<template> <template>
<div class="shop"> <div class="shop">
<template> <template>
<el-alert title="每月最后一天24:00按当月业务完成情况自动计算员工绩效。" show-icon class="tip-cla"></el-alert> <el-alert title="每月最后一天24:00按当月业务完成情况自动计算员工绩效。"
show-icon
class="tip-cla"></el-alert>
</template> </template>
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" <GLCombiForm ref="showSearch"
:rowNumber="1"
:formObj="searchForm"
:formData="showFormData"
@handleOk="handleSearch"
@handleRest="handleReset"> @handleRest="handleReset">
<div slot="performanceMonth"> <div slot="performanceMonth">
<el-date-picker v-model="searchForm.performanceMonth" type="month" placeholder="选择月" value-format="yyyy-MM" <el-date-picker v-model="searchForm.performanceMonth"
format="yyyy-MM" clearable :picker-options="pickerOption"></el-date-picker> type="month"
placeholder="选择月"
value-format="yyyy-MM"
format="yyyy-MM"
clearable
:picker-options="pickerOption"></el-date-picker>
</div> </div>
</GLCombiForm> </GLCombiForm>
<div class="table-header"> <div class="table-header">
<h2>技师绩效列表</h2> <h2>技师绩效列表</h2>
<div> <div>
<el-button size="small" @click="exportExcel_summary" plain>导出汇总表</el-button> <el-button size="small"
<el-button size="small" @click="exportExcel_detail">导出明细</el-button> @click="exportExcel_summary"
<el-button size="small" @click="batchDistribute">批量下发</el-button> plain>导出汇总表</el-button>
<el-button size="small"
@click="exportExcel_detail">导出明细</el-button>
<el-button size="small"
@click="batchDistribute">批量下发</el-button>
</div> </div>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="residentRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" <GLTable ref="residentRef"
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" :getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"> @setTableFinishFun="setTableFinishFun">
<div class="tb-ellipsis" slot="yqMerchantName" slot-scope="scope"> <div class="tb-ellipsis"
<el-popover placement="top" popper-class="base-popper" trigger="hover" :content="scope.scope.yqMerchantName"> slot="yqMerchantName"
slot-scope="scope">
<el-popover placement="top"
popper-class="base-popper"
trigger="hover"
:content="scope.scope.yqMerchantName">
<span slot="reference"> <span slot="reference">
{{ scope.scope.yqMerchantName }} {{ scope.scope.yqMerchantName }}
</span> </span>
</el-popover> </el-popover>
</div> </div>
<div slot="applyStatus" slot-scope="scope" class="flex"> <div slot="applyStatus"
slot-scope="scope"
class="flex">
<div :class="['dot', statusClass[scope.scope.status]]"></div> <div :class="['dot', statusClass[scope.scope.status]]"></div>
{{ reviewStatusObj[scope.scope.status] }} {{ reviewStatusObj[scope.scope.status] }}
</div> </div>
...@@ -42,17 +69,28 @@ ...@@ -42,17 +69,28 @@
:buttonItem="scope.scope" :buttonItem="scope.scope"
:buttonNum="3"></GLTableButton> :buttonNum="3"></GLTableButton>
</div> --> </div> -->
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns"
<el-button type="text" v-if="scope.scope.status == 0" @click="handleCorrection(scope.scope)">校正</el-button> slot="auth-button"
<el-button type="text" v-if="scope.scope.status == 0" @click="distribute(scope.scope)">下发</el-button> slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看明细</el-button> <el-button type="text"
v-if="scope.scope.status == 0"
@click="handleCorrection(scope.scope)">校正</el-button>
<el-button type="text"
v-if="scope.scope.status == 0"
@click="distribute(scope.scope)">下发</el-button>
<el-button type="text"
@click="handleDetail(scope.scope)">查看明细</el-button>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<TechnicianDetailDialog v-if="isTechnicianVisible" :isVisible="isTechnicianVisible" :recordInfo="recordInfo" <TechnicianDetailDialog v-if="isTechnicianVisible"
:isVisible="isTechnicianVisible"
:recordInfo="recordInfo"
@handleClose="handleDetail"></TechnicianDetailDialog> @handleClose="handleDetail"></TechnicianDetailDialog>
<TechnicianCorrectionDialog v-if="isCorrectionVisible" :isVisible="isCorrectionVisible" :recordInfo="recordInfo" <TechnicianCorrectionDialog v-if="isCorrectionVisible"
:isVisible="isCorrectionVisible"
:recordInfo="recordInfo"
@handleClose="handleCorrectionClose"></TechnicianCorrectionDialog> @handleClose="handleCorrectionClose"></TechnicianCorrectionDialog>
</div> </div>
</template> </template>
...@@ -60,7 +98,7 @@ ...@@ -60,7 +98,7 @@
<script> <script>
// import * as dayjs from 'dayjs' // import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
// import { downLoadFile } from '@/common/util' import { downLoadFile } from '@/common/format'
import TechnicianDetailDialog from './technicianDetailDialog.vue' import TechnicianDetailDialog from './technicianDetailDialog.vue'
import TechnicianCorrectionDialog from './technicianCorrectionDialog.vue' import TechnicianCorrectionDialog from './technicianCorrectionDialog.vue'
export default { export default {
...@@ -395,4 +433,5 @@ export default { ...@@ -395,4 +433,5 @@ export default {
.grey { .grey {
background: #999999; background: #999999;
}</style> }
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!