工艺流程
This commit is contained in:
parent
bd41a573cd
commit
eecd7cf59a
@ -49,7 +49,7 @@ service.interceptors.request.use(config => {
|
|||||||
const s_url = sessionObj.url; // 请求地址
|
const s_url = sessionObj.url; // 请求地址
|
||||||
const s_data = sessionObj.data; // 请求数据
|
const s_data = sessionObj.data; // 请求数据
|
||||||
const s_time = sessionObj.time; // 请求时间
|
const s_time = sessionObj.time; // 请求时间
|
||||||
const interval = 1000; // 间隔时间(ms),小于此时间视为重复提交
|
const interval = 5000; // 间隔时间(ms),小于此时间视为重复提交
|
||||||
if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url) {
|
if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url) {
|
||||||
const message = '数据正在处理,请勿重复提交';
|
const message = '数据正在处理,请勿重复提交';
|
||||||
console.warn(`[${s_url}]: ` + message)
|
console.warn(`[${s_url}]: ` + message)
|
||||||
|
@ -818,7 +818,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "添加工艺组成";
|
this.title = "添加工艺组成";
|
||||||
listRouteprocess(this.queryParams).then((response) => {
|
listRouteprocess({ routeId: this.routeId }).then((response) => {
|
||||||
this.form.orderNum = response.rows.pop().orderNum + 1;
|
this.form.orderNum = response.rows.pop().orderNum + 1;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -852,12 +852,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
process() {
|
process() {
|
||||||
const queryParamsArr = {
|
listRouteprocess({ routeId: this.routeId }).then((response) => {
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10000,
|
|
||||||
routeId: this.routeId,
|
|
||||||
};
|
|
||||||
listRouteprocess(queryParamsArr).then((response) => {
|
|
||||||
const dataAfterThree = [];
|
const dataAfterThree = [];
|
||||||
response.rows.forEach((item, index) => {
|
response.rows.forEach((item, index) => {
|
||||||
dataAfterThree.push(item);
|
dataAfterThree.push(item);
|
||||||
|
Loading…
Reference in New Issue
Block a user