This commit is contained in:
yanran200730
2023-06-09 15:49:47 +08:00
parent 9c45f25e8d
commit 164fe19a4a
11 changed files with 32 additions and 29 deletions

View File

@@ -111,7 +111,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/sysLicense/page", null, {
this.instance.post("/api/sysLicense/page", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
@@ -124,7 +124,7 @@ export default {
saveLicense() {
this.$refs.licenseForm.validate(v => {
if (v) {
this.instance.post("/sysLicense/save", this.dialogForm).then(res => {
this.instance.post("/api/sysLicense/save", this.dialogForm).then(res => {
if (res?.code == 0) {
this.dialog = false;
this.$message.success("保存成功")
@@ -138,7 +138,7 @@ export default {
},
handleDelete(ids) {
this.$confirm("是否要删除该证书信息?").then(() => {
this.instance.post("/sysLicense/delete", null, {
this.instance.post("/api/sysLicense/delete", null, {
params: {ids}
}).then(res => {
if (res?.code == 0) {
@@ -149,7 +149,7 @@ export default {
}).catch(() => 0)
},
handleDownload(id) {
this.instance.post("/sysLicense/create?id="+id, null, {responseType: 'blob'}).then(res => {
this.instance.post("/api/sysLicense/create?id="+id, null, {responseType: 'blob'}).then(res => {
const link = document.createElement('a')
console.log(res.type)
let blob = new Blob([res], {type: res.type})