gaoluyang
2025-03-14 d227937627b296131a5135914163a8f714612554
管理体系文件按需加载
已修改2个文件
18 ■■■■■ 文件已修改
src/views/CNAS/systemManagement/documentControl/components/FileList.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/CNAS/systemManagement/documentControl/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/CNAS/systemManagement/documentControl/components/FileList.vue
@@ -121,10 +121,18 @@
        {
          label: "类别", prop: "type", width: "120px", dataType: "tag",
          formatData: (params) => {
            if (this.fileType.find((m) => m.value == params)) {
            return this.fileType.find((m) => m.value == params).label;
            } else {
              return null
            }
          },
          formatType: (params) => {
            if (this.fileType.find((m) => m.value == params)) {
            return this.fileType.find((m) => m.value == params).type;
            } else {
              return null
            }
          },
        },
        {
@@ -137,10 +145,18 @@
        {
          label: "文件状态", prop: "state", dataType: "tag",
          formatData: (params) => {
            if (this.fileState.find((m) => m.value == params)) {
            return this.fileState.find((m) => m.value == params).label;
            } else {
              return null
            }
          },
          formatType: (params) => {
            if (this.fileState.find((m) => m.value == params)) {
            return this.fileState.find((m) => m.value == params).type;
            } else {
              return null
            }
          },
        },
        {
src/views/CNAS/systemManagement/documentControl/index.vue
@@ -3,7 +3,7 @@
    <el-tabs type="border-card" v-model="activeName" style="height: 100%;">
      <el-tab-pane :label="item.name" :name="item.component" v-for="(item, index) in tabList" :key="index"
        style="height: 100%;">
        <component :is="item.component" :key="item.component"></component>
        <component :is="item.component" :key="item.component" v-if="activeName === item.component"></component>
      </el-tab-pane>
    </el-tabs>
  </div>