zhangzengfei
2021-12-08 1a7fa21afabfd85bc760390dd4cb734a9cb2c703
src/views/project/index.vue
@@ -74,7 +74,6 @@
      stripe
      :data="list"
      :element-loading-text="elementLoadingText"
      :height="height"
      @selection-change="setSelectRows"
      @expand-change="expandChange"
    >
@@ -84,7 +83,10 @@
            :data="props.row.pkgList"
            :show-header="false"
            style="width: 100%"
            row-class-name="expand-row"
            :highlight-current-row="false"
          >
            >
            <el-table-column prop="fileName"></el-table-column>
            <el-table-column prop="version" width="150"></el-table-column>
            <el-table-column prop="commit" width="150"></el-table-column>
@@ -100,7 +102,7 @@
            <el-table-column width="300">
              <template #default="scope">
                <el-button
                  v-show="props.row.type == 'os'"
                  v-show="props.row.type == 'os' || props.row.type == 'algo'"
                  size="small"
                  @click="handlePublish(scope.row)"
                  >发布</el-button
@@ -126,15 +128,22 @@
      <el-table-column
        show-overflow-tooltip
        prop="name"
        label="项目名称"
        label="名称"
        width="150"
      ></el-table-column>
      <el-table-column
        show-overflow-tooltip
        prop="desc"
        label="描述"
      ></el-table-column>
      <el-table-column
        show-overflow-tooltip
        prop="srcUrl"
        label="项目地址"
        label="地址"
        width="500"
      ></el-table-column>
      <el-table-column show-overflow-tooltip prop="branch" label="分支">
      </el-table-column>
      <el-table-column show-overflow-tooltip prop="type" label="类型">
        <template #default="{ row }">
          <el-tag>{{ typeOptions[row.type] }}</el-tag>
@@ -156,7 +165,7 @@
      <el-table-column
        label="创建时间"
        prop="createdAt"
        width="200"
        width="150"
      ></el-table-column>
      <el-table-column label="操作" width="180px">
        <template #default="{ row }">
@@ -363,3 +372,8 @@
  },
};
</script>
<style>
.el-table .expand-row {
  background-color: oldlace;
}
</style>