From 17d137e23c3bdbcb995282016958afd95c1f98a0 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Thu, 17 Feb 2022 15:51:49 +0800
Subject: [PATCH] +随保安单位许可备案审批,附件查看的id 去掉+1
---
src/views/resource/attachOnce.vue | 58 +++++++++++++++++++++++++++++-----------------------------
1 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/src/views/resource/attachOnce.vue b/src/views/resource/attachOnce.vue
index a9cf45f..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,7 +109,7 @@
pageSize: 10,
currentPage: 1,
total: 0,
- ...this.$store.state.control.changePageSize,
+ ...this.$store.state.control.changePageSize
},
attachBox: false,
selectionList: [],
@@ -137,9 +137,9 @@
{
required: true,
message: "请输入附件地址",
- trigger: "blur",
- },
- ],
+ trigger: "blur"
+ }
+ ]
},
{
label: "附件地址",
@@ -148,9 +148,9 @@
{
required: true,
message: "请输入附件地址",
- trigger: "blur",
- },
- ],
+ trigger: "blur"
+ }
+ ]
},
{
label: "附件格式",
@@ -160,17 +160,17 @@
{
required: true,
message: "请输入附件地址",
- trigger: "blur",
- },
- ],
- },
- ],
+ trigger: "blur"
+ }
+ ]
+ }
+ ]
},
data: [],
imgSee: false,
imgUrl: "",
ourData: [],
- seeData: [],
+ seeData: []
};
},
created() {
@@ -200,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() {
@@ -228,7 +228,7 @@
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
- type: "warning",
+ type: "warning"
})
.then(() => {
return remove(row.id);
@@ -237,7 +237,7 @@
this.onLoad(this.page);
this.$message({
type: "success",
- message: "操作成功!",
+ message: "操作成功!"
});
});
},
@@ -249,7 +249,7 @@
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
- type: "warning",
+ type: "warning"
})
.then(() => {
return remove(this.ids);
@@ -258,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;
});
}
@@ -301,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);
@@ -320,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);
@@ -333,7 +333,7 @@
}
}
this.ourData = [
- ...this.data,
+ ...this.data
// ...this.data,
// ...this.data,
// ...this.data,
@@ -399,11 +399,11 @@
"webp",
"psd",
"svg",
- "tiff",
+ "tiff"
].indexOf(ext.toLowerCase()) == -1
);
- },
- },
+ }
+ }
};
</script>
--
Gitblit v1.9.3