index.js 914 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. var template = ''
  2. $.ajax('../../../component/statistics/LascCervicalColposcopyEntityList/index.html', {
  3. data: {},
  4. dataType: 'html',
  5. cache: false,
  6. timeout: 60000,
  7. async: false,
  8. error: function (res) {},
  9. success: function (res) {
  10. template = res
  11. }
  12. })
  13. Vue.component('lasc-cervical-colposcopy-entity-list', {
  14. props: ['data'],
  15. data: function () {
  16. return {
  17. readonlyTwo: 1,
  18. readonly: true,
  19. isShowPicker: false,
  20. columns: [],
  21. pickType: '',
  22. curItem: '',
  23. isShowDatePicker: false,
  24. activeDateField: '',
  25. date: '',
  26. minDate: moment().add(-100, 'year').toDate(),
  27. form: {
  28. screenId: '', //两癌筛查id
  29. list: []
  30. }
  31. }
  32. },
  33. template: template,
  34. created: function () {
  35. if (this.data.value && this.data.value.length && this.data.value[0].id) {
  36. this.form.list = this.data.value
  37. }
  38. },
  39. methods: {}
  40. })