c70996d6 by fanguang Committed by lihua

fix

1 parent 15334b20
...@@ -311,5 +311,6 @@ export const deleteStandardCodeFieldsData = (params) => request({ ...@@ -311,5 +311,6 @@ export const deleteStandardCodeFieldsData = (params) => request({
311 export const exportStandardCodeData = (params) => request({ 311 export const exportStandardCodeData = (params) => request({
312 url: `${import.meta.env.VITE_APP_STANDARD_URL}/standard-code/data/data-export`, 312 url: `${import.meta.env.VITE_APP_STANDARD_URL}/standard-code/data/data-export`,
313 method: 'post', 313 method: 'post',
314 data: params 314 data: params,
315 responseType: 'blob'
315 }) 316 })
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -215,7 +215,7 @@ const toolBtnClick = (btn) => { ...@@ -215,7 +215,7 @@ const toolBtnClick = (btn) => {
215 }) 215 })
216 } 216 }
217 }) 217 })
218 } 218 }
219 } 219 }
220 220
221 const tableBtnClick = (scope, btn) => { 221 const tableBtnClick = (scope, btn) => {
...@@ -266,7 +266,7 @@ const exportData = (type: any = null) => { ...@@ -266,7 +266,7 @@ const exportData = (type: any = null) => {
266 } 266 }
267 exportStandardCodeData(body).then((res:any) => { 267 exportStandardCodeData(body).then((res:any) => {
268 if (res && !res.msg) { 268 if (res && !res.msg) {
269 download(res, '标准代码表.xlsx', 'excel') 269 download(res, `${standardName.value}.xlsx`, 'excel')
270 } else { 270 } else {
271 res?.msg && ElMessage.error(res?.msg); 271 res?.msg && ElMessage.error(res?.msg);
272 } 272 }
...@@ -582,6 +582,7 @@ defineExpose({ ...@@ -582,6 +582,7 @@ defineExpose({
582 <el-button @click="batching('delete')" v-preReClick :disabled="loading">批量删除</el-button> 582 <el-button @click="batching('delete')" v-preReClick :disabled="loading">批量删除</el-button>
583 <el-button @click="toolBtnClick({ value: 'import' })" v-preReClick :disabled="loading">导入数据</el-button> 583 <el-button @click="toolBtnClick({ value: 'import' })" v-preReClick :disabled="loading">导入数据</el-button>
584 <el-button @click="toolBtnClick({ value: 'export' })" v-preReClick :disabled="loading">导出数据</el-button> 584 <el-button @click="toolBtnClick({ value: 'export' })" v-preReClick :disabled="loading">导出数据</el-button>
585 <el-button @click="getFirstPageData" v-preReClick :disabled="loading">刷新结果</el-button>
585 </div> 586 </div>
586 <!-- <el-input class="table_search_input" v-model.trim="tableSearchInput" placeholder="输入名称搜索" :suffix-icon="Search" clearable 587 <!-- <el-input class="table_search_input" v-model.trim="tableSearchInput" placeholder="输入名称搜索" :suffix-icon="Search" clearable
587 @change="val => toSearch({})" /> --> 588 @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!