|
|
|
@ -21,6 +21,7 @@
|
|
|
|
|
<div class="avue-crud__left"></div> |
|
|
|
|
<!-- 头部右侧按钮模块 --> |
|
|
|
|
<div class="avue-crud__right"> |
|
|
|
|
<el-button icon="Download" @click="handleExportData" circle></el-button> |
|
|
|
|
<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> |
|
|
|
@ -134,6 +135,7 @@ import { downloadXls, handleClearTableQuery } from '@/utils/util';
|
|
|
|
|
import { useStore } from 'vuex'; |
|
|
|
|
import { getDictionaryBiz } from '@/api/system/dict'; |
|
|
|
|
import dayjs from 'dayjs'; |
|
|
|
|
import { exportExcel } from '@/utils/exportData'; |
|
|
|
|
const $router = useRouter(); //跳转 |
|
|
|
|
const $useStore = useStore(); //权限 |
|
|
|
|
const $route = useRoute(); //获取地址栏参数 |
|
|
|
@ -406,7 +408,7 @@ const handleSubmit = async () => {
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 删除 |
|
|
|
|
const ViewDelete = (row) => { |
|
|
|
|
const ViewDelete = row => { |
|
|
|
|
ElMessageBox.confirm('是否确认删除数据?', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
@ -423,6 +425,11 @@ const ViewDelete = (row) => {
|
|
|
|
|
}) |
|
|
|
|
.catch(() => {}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** 导出表格 */ |
|
|
|
|
const handleExportData = () => { |
|
|
|
|
exportExcel(details.columnList, details.data, '三方商场 - ' + new Date().getTime()); |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|