d6403da5 by fanguang Committed by lihua

fix

1 parent 8bd6e79d
......@@ -311,5 +311,6 @@ export const deleteStandardCodeFieldsData = (params) => request({
export const exportStandardCodeData = (params) => request({
url: `${import.meta.env.VITE_APP_STANDARD_URL}/standard-code/data/data-export`,
method: 'post',
data: params
data: params,
responseType: 'blob'
})
\ No newline at end of file
......
......@@ -266,7 +266,7 @@ const exportData = (type: any = null) => {
}
exportStandardCodeData(body).then((res:any) => {
if (res && !res.msg) {
download(res, '标准代码表.xlsx', 'excel')
download(res, `${standardName.value}.xlsx`, 'excel')
} else {
res?.msg && ElMessage.error(res?.msg);
}
......@@ -582,6 +582,7 @@ defineExpose({
<el-button @click="batching('delete')" v-preReClick :disabled="loading">批量删除</el-button>
<el-button @click="toolBtnClick({ value: 'import' })" v-preReClick :disabled="loading">导入数据</el-button>
<el-button @click="toolBtnClick({ value: 'export' })" v-preReClick :disabled="loading">导出数据</el-button>
<el-button @click="getFirstPageData" v-preReClick :disabled="loading">刷新结果</el-button>
</div>
<!-- <el-input class="table_search_input" v-model.trim="tableSearchInput" placeholder="输入名称搜索" :suffix-icon="Search" clearable
@change="val => toSearch({})" /> -->
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!