提交 7a17b819 authored 作者: matian's avatar matian

格式化页面,清除无用代码

上级 b4f8ad95
......@@ -257,7 +257,6 @@ export default {
.catch((error) => {
this.page.total = 0
this.dataList = []
console.log(error)
})
.finally(() => {
this.loading = false
......
......@@ -105,7 +105,6 @@ export default {
resolve(true)
})
.catch(err => {
console.log(err)
reject(err)
})
})
......
......@@ -183,7 +183,6 @@ export default {
history: {
handler(nv) {
if (nv) {
console.log(nv)
Object.keys(this.form).forEach(key => {
this.form[key] = this.history[key]
})
......
......@@ -43,7 +43,6 @@ export default {
},
methods: {
toDeal(row) {
// console.log(row)
this.$router.push({
name: 'deal',
params: {
......
......@@ -109,7 +109,6 @@ export default {
},
// 确认
fetchConfirmTicketDetail(val) {
console.log(val)
const params = {
confirm_type: val,
id: this.id
......
......@@ -334,7 +334,6 @@ export default {
},
// 开具发票
createPop(row) {
console.log(row)
this.row = row
this.id = row.id
this.ticketVisible = true
......
......@@ -5,15 +5,14 @@
* @returns {null}
*/
export function funDownload(fileUrl, fileName) {
// console.log(fileUrl)
const elink = document.createElement('a')// 创建一个a标签
elink.download = fileName// 设置a标签的下载属性
elink.style.display = 'none'// 将a标签设置为隐藏
elink.href = fileUrl// 把之前处理好的地址赋给a标签的href
document.body.appendChild(elink)// 将a标签添加到body中
elink.click()// 执行a标签的点击方法
const elink = document.createElement('a') // 创建一个a标签
elink.download = fileName // 设置a标签的下载属性
elink.style.display = 'none' // 将a标签设置为隐藏
elink.href = fileUrl // 把之前处理好的地址赋给a标签的href
document.body.appendChild(elink) // 将a标签添加到body中
elink.click() // 执行a标签的点击方法
// URL.revokeObjectURL(elink.href) // 下载完成释放URL 对象
document.body.removeChild(elink)// 移除a标签
document.body.removeChild(elink) // 移除a标签
}
/**
* 分割字符串,取得尾部
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论