|
@@ -1,17 +1,16 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="growth-records admin-page">
|
|
<div class="growth-records admin-page">
|
|
|
<el-card>
|
|
<el-card>
|
|
|
- <div slot="header">
|
|
|
|
|
- <span>成长记录</span>
|
|
|
|
|
|
|
+ <PageHeader slot="header" title="成长记录">
|
|
|
<el-input v-model="keyword" placeholder="搜索成长记录..." prefix-icon="el-icon-search" style="width:200px" clearable @keyup.enter.native="handleSearch" @clear="handleSearch" />
|
|
<el-input v-model="keyword" placeholder="搜索成长记录..." prefix-icon="el-icon-search" style="width:200px" clearable @keyup.enter.native="handleSearch" @clear="handleSearch" />
|
|
|
- <el-select v-model="sourceFilter" placeholder="来源筛选" clearable size="small" style="float: right; width: 140px; margin-left: 10px;" @change="loadRecords">
|
|
|
|
|
|
|
+ <el-select v-model="sourceFilter" placeholder="来源筛选" clearable size="small" style="width: 140px" @change="loadRecords">
|
|
|
<el-option label="全部" value="" />
|
|
<el-option label="全部" value="" />
|
|
|
<el-option label="手动创建" value="manual" />
|
|
<el-option label="手动创建" value="manual" />
|
|
|
<el-option label="测评录入" value="assessment" />
|
|
<el-option label="测评录入" value="assessment" />
|
|
|
<el-option label="报告上传" value="upload" />
|
|
<el-option label="报告上传" value="upload" />
|
|
|
<el-option label="补充材料" value="supplement" />
|
|
<el-option label="补充材料" value="supplement" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </PageHeader>
|
|
|
<div class="adm-table-wrap">
|
|
<div class="adm-table-wrap">
|
|
|
<el-table :data="filteredRecords" v-loading="loading" border stripe height="100%">
|
|
<el-table :data="filteredRecords" v-loading="loading" border stripe height="100%">
|
|
|
<el-table-column prop="id" label="ID" width="70">
|
|
<el-table-column prop="id" label="ID" width="70">
|
|
@@ -29,7 +28,7 @@
|
|
|
<span class="sort-header" @click.stop="onSortClick('sourceType', $event)">来源<span v-if="sortIndex('sourceType') !== null" class="sort-index" :class="sortClass('sourceType') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('sourceType') }}</span>{{ sortIcon('sourceType') }}</span>
|
|
<span class="sort-header" @click.stop="onSortClick('sourceType', $event)">来源<span v-if="sortIndex('sourceType') !== null" class="sort-index" :class="sortClass('sourceType') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('sourceType') }}</span>{{ sortIcon('sourceType') }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-tag size="mini" :type="sourceTagType(scope.row.sourceType)">{{ sourceLabel(scope.row.sourceType) }}</el-tag>
|
|
|
|
|
|
|
+ <StatusTag size="mini" :type="sourceTagType(scope.row.sourceType)" :text="sourceLabel(scope.row.sourceType)" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="recordTitle" label="标题" min-width="140" show-overflow-tooltip />
|
|
<el-table-column prop="recordTitle" label="标题" min-width="140" show-overflow-tooltip />
|
|
@@ -105,7 +104,7 @@ export default {
|
|
|
return map[type] || (type || '-')
|
|
return map[type] || (type || '-')
|
|
|
},
|
|
},
|
|
|
sourceTagType(type) {
|
|
sourceTagType(type) {
|
|
|
- var map = { manual: 'info', assessment: 'success', upload: 'warning', supplement: '' }
|
|
|
|
|
|
|
+ var map = { manual: 'info', assessment: 'success', upload: 'warning', supplement: 'primary' }
|
|
|
return map[type] || 'info'
|
|
return map[type] || 'info'
|
|
|
},
|
|
},
|
|
|
handleSearch() {},
|
|
handleSearch() {},
|
|
@@ -145,6 +144,6 @@ export default {
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
}
|
|
}
|
|
|
.sort-header:hover {
|
|
.sort-header:hover {
|
|
|
- color: #409eff;
|
|
|
|
|
|
|
+ color: var(--adm-primary);
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|