04 2021 档案
摘要:
阅读全文
摘要:首先接口写的时候要这样写 接下来是调用: 调用接口 调用 credentialsDownLoad 接口之前需要先import引入 以下是代码: html页面 import {credentialsDownLoad} from "../../api/supply"; clickCredentialsD
阅读全文
摘要::src="item.url + '?timestamp=' + new Date().getTime()" 一定要给图片加时间戳 我试过加key 好像页面一直刷新,不知道神魔原因
阅读全文
摘要:原因时没有子级的时候后台返回了一个空数字 例如: children:[ ] 这时候需要递归将children为空的赋值为undefined //获取系统分类管理列表 getSystemTypeApi(){ getSystemTypeApi({}).then((res)=>{ if(res.data.
阅读全文
摘要:1.首先点击复选框的时候要将所有的值存起来 // 复选框 handleSelectionChange(data) { this.selectDataForPage[this.tableData.page] = data; this.$emit("selection-change", data, th
阅读全文
摘要:// 下载导出内容,带类型的 export function downloadFile(data, config = {}) { const aLink = document.createElement("a"); let blob = new Blob([data], { // type: 'ap
阅读全文
摘要://下载文件,文件 export function download(data,name) { if (!data) { return; } getUrlBase64(data).then((base64) => { let a = document.createElement("a"); a.st
阅读全文
摘要:注意:一定要深度监听。
阅读全文