标签:转换成 vue name res app time value 编号 id
效果:
vue代码:
1 created() { 2 if (this.$route.query.app_id) { 3 this.app_id = this.$route.query.app_id; 4 } 5 this.GetSettings(); 6 this.GetByParams(); 7 }, 8 mounted() { 9 this.GetByParams(); 10 } 11 methods: { 12 //查询 13 GetByParams() { 14 if (this.value && this.value != "") { 15 this.start_time = this.value[0]; 16 this.end_time = this.value[1]; 17 } 18 this.params = { 19 startTime: this.start_time, 20 endTime: this.end_time, 21 keyWord: this.keyWord, 22 typeId: this.typeid, 23 appId: this.app_id, 24 }; 25 GetAppDocBYParams(this.params).then((res) => { 26 if (res.code == 1) { 27 res.data.forEach((element) => { 28 var name; 29 for (var i = 0; i < this.docType.length; i++) { 30 if (element.doc_type == this.docType[i].id) 31 name = this.docType[i].name; 32 } 33 element.doc_type_name = name; 34 }); 35 this.doc = res.data; 36 } else { 37 showTip("error", "查询失败"); 38 } 39 }); 40 } 41 }
标签:转换成,vue,name,res,app,time,value,编号,id 来源: https://www.cnblogs.com/chenpanpan/p/14529503.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。