Commit 2190e71d authored by “yiyousong”'s avatar “yiyousong”

perf: 优化事项管理

parent 5f0a1b74
......@@ -382,7 +382,7 @@ export default {
this.selectedRowKeys = key;
this.businessIds = data.map((v) => v.id).join(",");
},
// 批量加入
// 一体化业务批量加入站点
handleBatchJoin() {
if (this.businessIds) {
this.handleIn(this.businessIds);
......
......@@ -114,7 +114,7 @@ export default {
let { code, msg } = res.data;
if (code === 1) {
this.$message.success(msg);
this.$emit("editSuccess");
this.$emit("success");
this.handleClose();
}
}
......
......@@ -641,8 +641,8 @@ export default {
// 上传限制
beforeUpload(file) {
let restrict = 10; // 限制文件大小MB
const isJpgOrPng =
file.type === "image/jpeg" || file.type === "image/png";
const fileType = ["image/jpeg", "image/png"]; // 限制文件类型
const isJpgOrPng = fileType.includes(file.type);
if (!isJpgOrPng) {
this.$message.error("请上传jpeg或者png图片!");
}
......@@ -702,6 +702,7 @@ export default {
this.formInfo.districtCode,
] = val;
},
// 获取详细地址经纬度
getAddress(address) {
this.$refs.ruleForm.validateField("detailAddress", (errVal) => {
if (errVal !== "中心详细地址不能为空") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment