提交 bf8d94cc authored 作者: jinrongbin's avatar jinrongbin

边界校验增加type参数

上级 e1627ade
......@@ -115,6 +115,7 @@
const handleBjChange = async (info) => {
if (info.file.status === 'done') {
if (info.file.response.success && info.file.response.result.code==200) {
createMessage.success(`${info.file.name} 成功`);
const arry = info.file.response.result;
fileListbjgd.value = [{name: info.file.name, url: arry['result'].url}];
......@@ -128,9 +129,14 @@
});
});
} else {
console.log(info.file.response)
fileListbjgd.value = [];
if (info.file.response.message && info.file.response.message.indexOf('拐点生成gis数据错误')>-1) {
} else {
createMessage.error(`${info.file.response.message || info.file.response.result.message}`);
}
}
} else if (info.file.status === 'error') {
fileListbjgd.value = [];
createMessage.error(`${info.file.name} 失败`);
......@@ -424,6 +430,7 @@
scjdbm: props.data.scjdbm,
pgtype: props.data.pgtype,
url: arry[arry.length - 1],
type: 2,
};
const res = await checkShp(param);
let ss = transformation(res.zbx, JSON.parse(res.geomtry));
......@@ -664,6 +671,7 @@
scjdbm: props.data.scjdbm,
pgtype: props.data.pgtype,
url: arry[arry.length - 1],
type: 2,
};
const res = await checkShp(param);
let ss = transformation(res.zbx, JSON.parse(res.geomtry));
......
......@@ -73,7 +73,7 @@ const transform: AxiosTransform = {
// } else {
// createMessage.success(message);
// }
if (message.indexOf('暂不可提交')>-1 || message.indexOf('完成提交')>-1) {
if (message.indexOf('暂不可提交')>-1 || message.indexOf('完成提交')>-1 || message.indexOf('拐点生成gis数据错误')>-1) {
} else {
createMessage.success(message);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论