|
|
|
@ -20,13 +20,20 @@ |
|
|
|
<!-- 单选列 --> |
|
|
|
<el-table-column width="80" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-radio v-model="selectedId" :label="scope.row.id" class="hide-label" @click.native.stop="handleRadioClick(scope.row)"></el-radio> |
|
|
|
<el-radio v-model="selectedId" :label="scope.row.id" class="hide-label" |
|
|
|
@click.native.stop="handleRadioClick(scope.row)"></el-radio> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="测试用" align="center" prop="sn" /> |
|
|
|
<el-table-column :label="$t('page.system.template.sn')" align="center" prop="showSn" /> |
|
|
|
<el-table-column :label="$t('page.system.template.name')" align="center" prop="name" /> |
|
|
|
<el-table-column :label="$t('page.system.template.department')" align="center" prop="deptName" width="150px"/> |
|
|
|
<el-table-column :label="$t('page.system.template.name')" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="$i18n.locale === 'zh_CN'">{{ cscopeope.row.name }}</span> |
|
|
|
<span v-else>{{ scope.row.nameEn }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('page.system.template.department')" align="center" prop="deptName" |
|
|
|
width="150px" /> |
|
|
|
</el-table> |
|
|
|
<pagination v-show="total > 0" :total="total" :page.sync="searchForm.pageNum" :limit.sync="searchForm.pageSize" |
|
|
|
@pagination="getList" /> |
|
|
|
@ -74,14 +81,14 @@ export default { |
|
|
|
this.selectedId = row.id |
|
|
|
}, |
|
|
|
show(val) { |
|
|
|
this.searchForm=_.merge({}, this.searchForm, val) |
|
|
|
this.selectedId=null |
|
|
|
this.searchForm = _.merge({}, this.searchForm, val) |
|
|
|
this.selectedId = null |
|
|
|
this.search() |
|
|
|
}, |
|
|
|
search() { |
|
|
|
this.searchForm.pageNum = 1; |
|
|
|
this.open = true |
|
|
|
this.selectedId=null |
|
|
|
this.selectedId = null |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
reset() { |
|
|
|
@ -113,7 +120,5 @@ export default { |
|
|
|
</script> |
|
|
|
|
|
|
|
<style rel="stylesheet/scss" lang="scss"> |
|
|
|
.select-template { |
|
|
|
|
|
|
|
} |
|
|
|
.select-template {} |
|
|
|
</style> |