From 79d9fc857559982b00b68b2d709807bdc4cd286f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 11 Apr 2022 10:58:17 +0800
Subject: [PATCH] minio 地址修改
---
src/views/resource/attachOnce.vue | 58 ++++++++++++++++++++++++++++++----------------------------
1 files changed, 30 insertions(+), 28 deletions(-)
diff --git a/src/views/resource/attachOnce.vue b/src/views/resource/attachOnce.vue
index 1815ee5..ac270b9 100644
--- a/src/views/resource/attachOnce.vue
+++ b/src/views/resource/attachOnce.vue
@@ -93,7 +93,7 @@
getTemplate,
getList,
getDetail,
- remove,
+ remove
} from "@/api/resource/attachOnce";
import { mapGetters } from "vuex";
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
@@ -109,6 +109,7 @@
pageSize: 10,
currentPage: 1,
total: 0,
+ ...this.$store.state.control.changePageSize
},
attachBox: false,
selectionList: [],
@@ -127,6 +128,7 @@
viewBtn: true,
selection: true,
dialogClickModal: false,
+ ...this.$store.state.control.clearOtherBut,
column: [
{
label: "附件名称",
@@ -135,9 +137,9 @@
{
required: true,
message: "请输入附件地址",
- trigger: "blur",
- },
- ],
+ trigger: "blur"
+ }
+ ]
},
{
label: "附件地址",
@@ -146,9 +148,9 @@
{
required: true,
message: "请输入附件地址",
- trigger: "blur",
- },
- ],
+ trigger: "blur"
+ }
+ ]
},
{
label: "附件格式",
@@ -158,17 +160,17 @@
{
required: true,
message: "请输入附件地址",
- trigger: "blur",
- },
- ],
- },
- ],
+ trigger: "blur"
+ }
+ ]
+ }
+ ]
},
data: [],
imgSee: false,
imgUrl: "",
ourData: [],
- seeData: [],
+ seeData: []
};
},
created() {
@@ -198,16 +200,16 @@
addBtn: false,
editBtn: false,
viewBtn: false,
- delBtn: this.vaildData(this.permission.attach_delete, false),
+ delBtn: this.vaildData(this.permission.attach_delete, false)
};
},
ids() {
let ids = [];
- this.selectionList.forEach((ele) => {
+ this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
- },
+ }
},
methods: {
handleUpload() {
@@ -226,7 +228,7 @@
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
- type: "warning",
+ type: "warning"
})
.then(() => {
return remove(row.id);
@@ -235,7 +237,7 @@
this.onLoad(this.page);
this.$message({
type: "success",
- message: "操作成功!",
+ message: "操作成功!"
});
});
},
@@ -247,7 +249,7 @@
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
- type: "warning",
+ type: "warning"
})
.then(() => {
return remove(this.ids);
@@ -256,14 +258,14 @@
this.onLoad(this.page);
this.$message({
type: "success",
- message: "操作成功!",
+ message: "操作成功!"
});
this.$refs.crud.toggleSelection();
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
- getDetail(this.form.id).then((res) => {
+ getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
@@ -299,12 +301,12 @@
this.loading = true;
this.data = [];
params["ptype"] = this.$route.query.type;
- getTemplate(params, 1, 50).then((res) => {
+ getTemplate(params, 1, 50).then(res => {
//获取模板
const mobel = res.data.data.records;
console.log(mobel);
params["userid"] = this.$route.query.deptid;
- getUseInfor(params).then((res) => {
+ getUseInfor(params).then(res => {
//处理对应数据
const data = res.data.data.records[0];
console.log(data);
@@ -318,7 +320,7 @@
for (let k in links) {
this.data.push({
link: links[k],
- id: +id[k] + 1,
+ id: +id[k]
});
}
console.log(this.data);
@@ -331,7 +333,7 @@
}
}
this.ourData = [
- ...this.data,
+ ...this.data
// ...this.data,
// ...this.data,
// ...this.data,
@@ -397,11 +399,11 @@
"webp",
"psd",
"svg",
- "tiff",
+ "tiff"
].indexOf(ext.toLowerCase()) == -1
);
- },
- },
+ }
+ }
};
</script>
--
Gitblit v1.9.3