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

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

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