阅行客电子档案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.7 KiB

2 years ago
  1. <template>
  2. <div class="system-base-info" style="display:flex; justify-content: flex-start;">
  3. <div class="base-info-left">
  4. <div class="info-item">
  5. <span>名称</span>
  6. <p>{{ selectedCategory.cnName }}</p>
  7. </div>
  8. <div class="info-item">
  9. <span>节点类型</span>
  10. <p v-if="selectedCategory.isType == 1">文件夹</p>
  11. <p v-else-if="selectedCategory.isType == 2">项目</p>
  12. <p v-else-if="selectedCategory.isType == 3">案卷</p>
  13. <p v-else-if="selectedCategory.isType == 4">卷内</p>
  14. <p v-else-if="selectedCategory.isType == 5">文件</p>
  15. <p v-else />
  16. </div>
  17. <!-- v-if="selectedCategory.pid !== '0'" -->
  18. <div class="info-item">
  19. <span>所属父级</span>
  20. <p>{{ selectedCategory.parentName ? selectedCategory.parentName : '-' }}</p>
  21. </div>
  22. <div class="info-item info-content">
  23. <span>备注</span>
  24. <p>{{ selectedCategory.remark ? selectedCategory.remark : '-' }}</p>
  25. </div>
  26. </div>
  27. <div class="base-info-right">
  28. <!-- <div v-if="selectedCategory.isType !== 1" class="info-item">
  29. <span>档号规则</span>
  30. <p>{{ fileNoFormatStr }}</p>
  31. </div> -->
  32. <div v-if="selectedCategory.isType !== 1" class="info-item">
  33. <span>编码</span>
  34. <p>WS01</p>
  35. </div>
  36. <div v-if="selectedCategory.isType !== 1" class="info-item">
  37. <span>整理方式</span>
  38. <p>按件整理</p>
  39. </div>
  40. <div v-if="selectedCategory.isType !== 1" class="info-item">
  41. <span>是否装盒</span>
  42. <p>装盒</p>
  43. </div>
  44. </div>
  45. </div>
  46. </template>
  47. <script>
  48. import { getNoFormatField } from '@/api/category/fileNoFormat'
  49. export default {
  50. name: 'BaseInfo',
  51. props: {
  52. selectedCategory: {
  53. type: Object,
  54. default: function() {
  55. return {
  56. cnName: '',
  57. isType: '',
  58. parentName: '',
  59. isColumnLength: '',
  60. remark: ''
  61. }
  62. }
  63. }
  64. },
  65. data() {
  66. return {
  67. fileNoFormatStr: ''
  68. }
  69. },
  70. watch: {
  71. selectedCategory: function(newValue, oldValue) {
  72. if (newValue && newValue.id) {
  73. this.initData()
  74. }
  75. }
  76. },
  77. created() {
  78. if (this.selectedCategory && this.selectedCategory.id) {
  79. this.initData()
  80. }
  81. },
  82. methods: {
  83. initData() {
  84. getNoFormatField({ categoryId: this.selectedCategory.id }).then((res) => {
  85. this.fileNoFormatStr = ''
  86. res.forEach((item) => {
  87. this.fileNoFormatStr += item.fieldCnName + item.connector
  88. })
  89. })
  90. }
  91. }
  92. }
  93. </script>
  94. <style lang="scss" scoped>
  95. </style>