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

perf: 优化事项管理

parent 5f0a1b74
...@@ -382,7 +382,7 @@ export default { ...@@ -382,7 +382,7 @@ export default {
this.selectedRowKeys = key; this.selectedRowKeys = key;
this.businessIds = data.map((v) => v.id).join(","); this.businessIds = data.map((v) => v.id).join(",");
}, },
// 批量加入 // 一体化业务批量加入站点
handleBatchJoin() { handleBatchJoin() {
if (this.businessIds) { if (this.businessIds) {
this.handleIn(this.businessIds); this.handleIn(this.businessIds);
......
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
let { code, msg } = res.data; let { code, msg } = res.data;
if (code === 1) { if (code === 1) {
this.$message.success(msg); this.$message.success(msg);
this.$emit("editSuccess"); this.$emit("success");
this.handleClose(); this.handleClose();
} }
} }
......
...@@ -641,8 +641,8 @@ export default { ...@@ -641,8 +641,8 @@ export default {
// 上传限制 // 上传限制
beforeUpload(file) { beforeUpload(file) {
let restrict = 10; // 限制文件大小MB let restrict = 10; // 限制文件大小MB
const isJpgOrPng = const fileType = ["image/jpeg", "image/png"]; // 限制文件类型
file.type === "image/jpeg" || file.type === "image/png"; const isJpgOrPng = fileType.includes(file.type);
if (!isJpgOrPng) { if (!isJpgOrPng) {
this.$message.error("请上传jpeg或者png图片!"); this.$message.error("请上传jpeg或者png图片!");
} }
...@@ -702,6 +702,7 @@ export default { ...@@ -702,6 +702,7 @@ export default {
this.formInfo.districtCode, this.formInfo.districtCode,
] = val; ] = val;
}, },
// 获取详细地址经纬度
getAddress(address) { getAddress(address) {
this.$refs.ruleForm.validateField("detailAddress", (errVal) => { this.$refs.ruleForm.validateField("detailAddress", (errVal) => {
if (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