1;日报模板编辑

This commit is contained in:
wangshuai 2024-07-27 09:01:15 +08:00
parent b981b72801
commit 9920db40ad
2 changed files with 52 additions and 40 deletions

View File

@ -20,41 +20,41 @@ public class RyTask {
@Autowired @Autowired
private IBusFifteenInfoService iBusFifteenInfoService; private IBusFifteenInfoService iBusFifteenInfoService;
/** // /**
* 获取订单并解析号码 5分钟 // * 获取订单并解析号码 5分钟
*/ // */
public void getOrders() { // public void getOrders() {
iMeituanService.orderInfoList(); // iMeituanService.orderInfoList();
} // }
//
/** // /**
* 发送AI 1分钟 // * 发送AI 1分钟
* // *
* @throws Exception // * @throws Exception
*/ // */
public void sendToAi() throws Exception { // public void sendToAi() throws Exception {
aiService.sendToAi(); // aiService.sendToAi();
} // }
//
/** // /**
* 获取AI结果 5分钟 // * 获取AI结果 5分钟
*/ // */
public void getAiResult() { // public void getAiResult() {
aiService.queryAiTask(); // aiService.queryAiTask();
} // }
//
/** // /**
* 统计昨日营销数 每天8点执行一次 // * 统计昨日营销数 每天8点执行一次
*/ // */
public void getReturnInfo() { // public void getReturnInfo() {
iMeituanService.getReturnInfo(null); // iMeituanService.getReturnInfo(null);
//
} // }
//
/** // /**
* 清理表 15天前数据 // * 清理表 15天前数据
*/ // */
public void deleteBusFifteenInfo() { // public void deleteBusFifteenInfo() {
iBusFifteenInfoService.deleteBusFifteenInfo(); // iBusFifteenInfoService.deleteBusFifteenInfo();
} // }
} }

View File

@ -325,7 +325,11 @@ export default {
url: response.data.codeUrl url: response.data.codeUrl
}) })
} }
this.attrList = response.data.attrInfoList; // this.attrList = response.data.attrInfoList;
response.data.attrInfoList.forEach((item, index) => {
//this.items[index] = Object.assign({}, item, { attrId: item.attrId, });
this.attrList.push({attrId: item.attrId,attrValue: item.attrValue,attrName:item.attrName});
});
this.open = true; this.open = true;
this.title = "修改模版"; this.title = "修改模版";
}); });
@ -394,11 +398,19 @@ export default {
}, },
listTemplateAttr(){ listTemplateAttr(){
listTemplateAttr({}).then(response => { listTemplateAttr({}).then(response => {
this.attrConfigList = response.data response.data.forEach((item, index) => {
//this.items[index] = Object.assign({}, item, { attrId: item.attrId, });
this.attrConfigList.push({attrId: item.attrId,attrValue: item.attrValue,attrName:item.attrName});
});
// for(response.data.){
// const item = {attrId:};
// this.attrConfigList.push({});
// }
// this.attrConfigList = response.data
}); });
}, },
isElementPresent(item) { isElementPresent(item) {
return this.attrList.indexOf(item); return this.attrList.findIndex(listItem => listItem.attrId === item.attrId);;
} }
} }
}; };