Browse Source

fix:[模板管理]优化

lkf
15881625488@163.com 2 months ago
parent
commit
13f29b9b8c
1 changed files with 14 additions and 9 deletions
  1. +14
    -9
      src/views/business/comps/select/SelectTemplateDialog.vue

+ 14
- 9
src/views/business/comps/select/SelectTemplateDialog.vue View File

@ -20,13 +20,20 @@
<!-- 单选列 --> <!-- 单选列 -->
<el-table-column width="80" align="center"> <el-table-column width="80" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column label="测试用" align="center" prop="sn" /> <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.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> </el-table>
<pagination v-show="total > 0" :total="total" :page.sync="searchForm.pageNum" :limit.sync="searchForm.pageSize" <pagination v-show="total > 0" :total="total" :page.sync="searchForm.pageNum" :limit.sync="searchForm.pageSize"
@pagination="getList" /> @pagination="getList" />
@ -74,14 +81,14 @@ export default {
this.selectedId = row.id this.selectedId = row.id
}, },
show(val) { show(val) {
this.searchForm=_.merge({}, this.searchForm, val)
this.selectedId=null
this.searchForm = _.merge({}, this.searchForm, val)
this.selectedId = null
this.search() this.search()
}, },
search() { search() {
this.searchForm.pageNum = 1; this.searchForm.pageNum = 1;
this.open = true this.open = true
this.selectedId=null
this.selectedId = null
this.getList(); this.getList();
}, },
reset() { reset() {
@ -113,7 +120,5 @@ export default {
</script> </script>
<style rel="stylesheet/scss" lang="scss"> <style rel="stylesheet/scss" lang="scss">
.select-template {
}
.select-template {}
</style> </style>

Loading…
Cancel
Save