123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- var template = ''
- $.ajax('../../../component/statistics/LascCervicalPathologicalExaminationList/index.html', {
- data: {},
- dataType: 'html',
- cache: false,
- timeout: 60000,
- async: false,
- error: function (res) {},
- success: function (res) {
- template = res
- }
- })
- Vue.component('lasc-cervical-pathological-examination-list', {
- template: template,
- props: ['data'],
- data: function () {
- return {
- readonlyTwo: 1,
- readonly: true,
- isShowPicker: false,
- columns: [],
- pickType: '',
- curItem: '',
- isShowDatePicker: false,
- activeDateField: '',
- date: '',
- form: {
- screenId: '', //两癌筛查id
- list: []
- }
- }
- },
- methods: {},
- mounted() {
- if (this.data.value && this.data.value.length && this.data.value[0].id) {
- var form = JSON.parse(JSON.stringify(this.data.value))
- form.forEach(function (v) {
- if (v.pathologicalExaminationResult != 1) {
- var pathologicalExaminationResult = v.pathologicalExaminationResult
- v.pathologicalExaminationResult = []
- if (v.pathologicalExaminationAbnormal) {
- v.pathologicalExaminationAbnormal.split(',').forEach(function (m) {
- v.pathologicalExaminationResult.push(pathologicalExaminationResult + '-' + m)
- })
- }
- } else {
- v.pathologicalExaminationResult = v.pathologicalExaminationResult ? v.pathologicalExaminationResult.split(',') : ''
- }
- })
- this.form.list = form
- console.log('99999999999999999', this.form)
- }
- }
- })
|