var template = '' $.ajax('../../../component/statistics/LascBreastFollowUp/index.html', { data: {}, dataType: 'html', cache: false, timeout: 60000, async: false, error: function (res) {}, success: function (res) { template = res } }) Vue.component('lasc-breast-followUp', { template: template, props: [], data: function () { return { readonly: true, isShowPicker: false, pickType: '', curItem: '', isShowDatePicker: false, activeDateField: '', date: '', // minDate: moment().add(-100, 'year').toDate(), minDate: '', form: { screenId: '', //两癌筛查id type: '', //类型 id: '', name: '', followupOrNot: '', //是否随访 receiveTreat: '', //接受治疗情况 subsist: '', //生存情况 reviewOrNot: '', //是否复查 molybdenumBiRads: '', // 钼靶分级 cduBiRads: '', // 超声分级 reviewValue: [], //复查内容 reviewContentQita: '', // 复查内容其他 clinicalInspect: '', //临床诊断 followupDoctor: '', //随访人员 followupDate: '', //随访日期 followupOrNotOther: '' //其他 }, show: true, showTwo: false, isLoaded4: '0', reviewData: [ { id: '1', text: '乳腺超声' }, { id: '2', text: '钼靶' }, { id: '3', text: '乳腺核磁共振' }, { id: '4', text: '手术或活检' }, { id: '5', text: '不详' }, { id: '6', text: '其他' } ], data: { value: [{}] } } }, methods: {}, mounted() { if (this.data.value && this.data.value.length && this.data.value[0].id) { var first = this.data.value[0] this.form.screenId = first.screenId this.form.id = first.id ? first.id : '' first.reviewValue = first.reviewValue ? first.reviewValue.split(',') : '' this.show = false this.form = first } } })