|  |  |  | 
|---|
|  |  |  | // 新增或修改宣教模版 | 
|---|
|  |  |  | export function compilelibrary(data) { | 
|---|
|  |  |  | return request({ | 
|---|
|  |  |  | url: "/smartor/library/saveOrUpdateScript", | 
|---|
|  |  |  | url: "/smartor/library/saveOrUpdateHeLibrary", | 
|---|
|  |  |  | method: "post", | 
|---|
|  |  |  | data: data, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | 
|---|
|  |  |  | data: data, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | created() { | 
|---|
|  |  |  | this.id = this.$route.query.id; | 
|---|
|  |  |  | this.getuserinfo(); | 
|---|
|  |  |  | this.gettabList(); | 
|---|
|  |  |  | this.$nextTick(function () { | 
|---|
|  |  |  | this.echartdom = document.getElementById("xyeCharts"); | 
|---|
|  |  |  | this.xtechartdom = document.getElementById("xteCharts"); | 
|---|
|  |  |  | 
|---|
|  |  |  | this.xueyangechartsInit(); | 
|---|
|  |  |  | this.twechartsInit(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | this.id = this.$route.query.id; | 
|---|
|  |  |  | this.getuserinfo(); | 
|---|
|  |  |  | this.gettabList(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | 
|---|
|  |  |  | this.userform = response.rows[0]; | 
|---|
|  |  |  | // this.dynamicTags = response.rows[0].tagList; | 
|---|
|  |  |  | this.dynamicTags = response.rows[0].tagList.map(this.processElement); | 
|---|
|  |  |  | console.log(this.dynamicTags); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // 病史信息 | 
|---|
|  |  |  | getmedicalhistory({ pid: this.id }).then((res) => { | 
|---|
|  |  |  | if (res.code == 200 && res.rows[0]) { | 
|---|
|  |  |  | this.form = res.rows[0]; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // 联系信息 | 
|---|
|  |  |  | this.getcontactlist(); | 
|---|
|  |  |  | 
|---|
|  |  |  | this.$modal.msgError("基础信息修改失败"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // 病史是 | 
|---|
|  |  |  | // 病史 | 
|---|
|  |  |  | this.medicalhistory(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 病史 | 
|---|