|
@@ -2,6 +2,13 @@ import * as echarts from "echarts";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ treeData:[],
|
|
|
+ tree: [],
|
|
|
+ defaultProps: {
|
|
|
+ children: 'children',
|
|
|
+ label: 'label'
|
|
|
+ },
|
|
|
+ loading_line:false,
|
|
|
fj: "",
|
|
|
fc: "MHS_FDC",
|
|
|
Date1: "",
|
|
@@ -21,6 +28,7 @@ export default {
|
|
|
dialogTableVisible_2: false,
|
|
|
dialogTableVisible_3: false,
|
|
|
dialogTableVisible_sh: false,
|
|
|
+ dialogTableVisible_ls:false,
|
|
|
jdt: 1,
|
|
|
jdt_2: 5,
|
|
|
jdt_3: 1,
|
|
@@ -103,6 +111,7 @@ export default {
|
|
|
if (this.activeName == "serial_1") {
|
|
|
this.weekfitness();
|
|
|
} else if (this.activeName == "serial_2") {
|
|
|
+ this.$store.commit("loadingStore",true);
|
|
|
this.weekfitness();
|
|
|
this.recommenConfirmedList();
|
|
|
} else if (this.activeName == "serial_3") {
|
|
@@ -132,33 +141,38 @@ export default {
|
|
|
return this.BASE.getBzDate(date,0);
|
|
|
},
|
|
|
async weekfitness() {
|
|
|
+ let _this = this;
|
|
|
+ this.loading_line = true;
|
|
|
var digital = new URLSearchParams();
|
|
|
digital.append("wpId", "0");
|
|
|
digital.append("type", 2);
|
|
|
- const weekDateList = await this.API.post(
|
|
|
+ const {data} = await this.API.post(
|
|
|
"/recommen/findAllChartjz",
|
|
|
digital
|
|
|
);
|
|
|
if (this.activeName == "serial_1") {
|
|
|
- this.draw_fitnessRegulate(weekDateList.data);
|
|
|
+ this.draw_fitnessRegulate(data);
|
|
|
} else if (this.activeName == "serial_2") {
|
|
|
- this.draw_fitnessRegulate_2(weekDateList.data);
|
|
|
+ this.draw_fitnessRegulate_2(data);
|
|
|
}
|
|
|
+ this.loading_line = false;
|
|
|
this.$store.commit("loadingStore",false);
|
|
|
},
|
|
|
async monthfitness() {
|
|
|
+ this.loading_line = true;
|
|
|
var digital = new URLSearchParams();
|
|
|
digital.append("wpId", "0");
|
|
|
digital.append("type", 3);
|
|
|
- const weekDateList = await this.API.post(
|
|
|
+ const {data} = await this.API.post(
|
|
|
"/recommen/findAllChartjz",
|
|
|
digital
|
|
|
);
|
|
|
if (this.activeName == "serial_1") {
|
|
|
- this.draw_fitnessRegulate(weekDateList.data);
|
|
|
+ this.draw_fitnessRegulate(data);
|
|
|
} else if (this.activeName == "serial_2") {
|
|
|
- this.draw_fitnessRegulate_2(weekDateList.data);
|
|
|
+ this.draw_fitnessRegulate_2(data);
|
|
|
}
|
|
|
+ this.loading_line = false;
|
|
|
},
|
|
|
affirm_all_check() {
|
|
|
this.$confirm("此操作将无法撤回, 是否继续?", "提示", {
|
|
@@ -177,7 +191,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
fj_all_list(){
|
|
|
- this.$router.push({path:"/healthList"});
|
|
|
+ this.$router.push({path:"/healthList"})
|
|
|
},
|
|
|
async affirm_all() {
|
|
|
var digital = new URLSearchParams();
|
|
@@ -188,7 +202,7 @@ export default {
|
|
|
} else if (this.contraryName == "contrary_3") {
|
|
|
digital.append("typeid", 3);
|
|
|
}
|
|
|
-
|
|
|
+ debugger
|
|
|
const confir = await this.API.post("/recommen/confirpushAll", digital);
|
|
|
if (confir.data.code == 200 && this.contraryName == "contrary_1") {
|
|
|
this.Recommend.splice(0);
|
|
@@ -330,7 +344,6 @@ export default {
|
|
|
await this.API.post(
|
|
|
"/recommen/recommenConfirmedList"
|
|
|
).then((res)=>{
|
|
|
- debugger
|
|
|
this.Confirmed = res.data;
|
|
|
});
|
|
|
|
|
@@ -432,14 +445,36 @@ export default {
|
|
|
this.draw_shouhuan();
|
|
|
},
|
|
|
async Click_lscx_ywc(rname){
|
|
|
- // this.LocationTree = [];
|
|
|
- // var digital = new URLSearchParams();
|
|
|
- // digital.append("wtId", rname.wtid);
|
|
|
- // const LocationTree = await this.$http.post(
|
|
|
- // "/recommen/findLocationTreeByWtId",
|
|
|
- // digital
|
|
|
- // );
|
|
|
- // this.LocationTree = unfinishedList.data.data;
|
|
|
+
|
|
|
+ const {wtid} = rname;
|
|
|
+ var digital = new URLSearchParams();
|
|
|
+ digital.append("wtId", wtid);
|
|
|
+ await this.API.post(
|
|
|
+ "/recommen/findLocationTreeByWtId",
|
|
|
+ digital
|
|
|
+ ).then((res)=>{
|
|
|
+ debugger
|
|
|
+ this.tree = res.data;
|
|
|
+ console.log(this.tree+"---")
|
|
|
+ });
|
|
|
+ this.dialogTableVisible_ls = true;
|
|
|
+ },
|
|
|
+ handleNodeClick(data) {
|
|
|
+ this.treeData = [];
|
|
|
+ const {id} = data;
|
|
|
+ var digital1 = new URLSearchParams();
|
|
|
+ digital1.append("pageNum", 1);
|
|
|
+ digital1.append("pageSize", 10);
|
|
|
+ digital1.append("orderByColumn", "");
|
|
|
+ digital1.append("isAsc", "asc");
|
|
|
+ digital1.append("location", id);
|
|
|
+ this.API.post(
|
|
|
+ "/recommen/findLocationTreeByWtId",
|
|
|
+ digital1
|
|
|
+ ).then((res)=>{
|
|
|
+ debugger
|
|
|
+ this.treeData = res.data;
|
|
|
+ });
|
|
|
},
|
|
|
ditu(){
|
|
|
window.location.href = "http://10.155.32.4:8070/gisweb/ditujiankang.html?LAT="+"106.23507"+"&LNG="+"38.48989"+"&userid="+"1500";
|