|
|
@@ -14,7 +14,7 @@
|
|
|
hidePagination=" ">
|
|
|
<div slot="custom">
|
|
|
<div style="disply:flex">
|
|
|
- <span style="font-size:14px;color:#666666">业务对象: </span>
|
|
|
+ <span style="font-size:14px;color:#666666">{{$t(`业务对象`)}}: </span>
|
|
|
<el-select v-model="selectTarget" style="margin-right:10px" placeholder="请选择" size="small" @change="change">
|
|
|
<el-option
|
|
|
v-for="item in objectList"
|
|
|
@@ -27,13 +27,13 @@
|
|
|
</div>
|
|
|
<template v-slot:tbList="scope">
|
|
|
<div v-if="scope.data.column.columnname == 'tag'">
|
|
|
- <span style="margin-right:10px">{{scope.data.column.data[scope.data.column.columnname]}}</span>
|
|
|
- <el-tag v-if="scope.data.column.data['issystem']" size="mini">系统</el-tag>
|
|
|
+ <span style="margin-right:10px">{{$t(scope.data.column.data[scope.data.column.columnname])}}</span>
|
|
|
+ <el-tag v-if="scope.data.column.data['issystem']" size="mini">{{$t(`系统`)}}</el-tag>
|
|
|
</div>
|
|
|
<div v-else-if="scope.data.column.columnname == 'mutextags'">
|
|
|
<span v-if="scope.data.column.data[scope.data.column.columnname].length > 0">
|
|
|
<el-tag style="margin-right:10px" size="mini" v-for="(item,index) in scope.data.column.data[scope.data.column.columnname]" :key="index">
|
|
|
- {{item.tag}}
|
|
|
+ {{$t(item.tag)}}
|
|
|
</el-tag>
|
|
|
</span>
|
|
|
<span v-else>--</span>
|
|
|
@@ -42,7 +42,7 @@
|
|
|
</template>
|
|
|
<template v-slot:tbOpreation="scope">
|
|
|
<Edit class="inline-16" v-if="tool.checkAuth($route.name,'update')" :allData="allData.filter(item=>item.tag!=scope.data.data.tag)" @onSuccess="$refs.basicLayout.listData()" :data="scope.data.data"/>
|
|
|
- <el-button size="mini" type="text" v-if="tool.checkAuth($route.name,'delete') && scope.data.data.issystem == 0" @click="deleteRow(scope.data.data)">删 除</el-button>
|
|
|
+ <el-button size="mini" type="text" v-if="tool.checkAuth($route.name,'delete') && scope.data.data.issystem == 0" @click="deleteRow(scope.data.data)">{{$t(`删 除`)}}</el-button>
|
|
|
</template>
|
|
|
</basicLayout>
|
|
|
</div>
|
|
|
@@ -74,9 +74,9 @@ export default {
|
|
|
},
|
|
|
methods:{
|
|
|
deleteRow (data) {
|
|
|
- this.$confirm('确定删除当前数据吗?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
+ this.$confirm(this.$t('确定删除当前数据吗')+'?', '提示', {
|
|
|
+ confirmButtonText: this.$t('确定'),
|
|
|
+ cancelButtonText: this.$t('取消'),
|
|
|
type: 'warning'
|
|
|
}).then(async() => {
|
|
|
let res = await this.$api.requested({
|
|
|
@@ -91,7 +91,7 @@ export default {
|
|
|
}).catch(() => {
|
|
|
this.$message({
|
|
|
type: 'info',
|
|
|
- message: '已取消删除'
|
|
|
+ message: this.$t('已取消删除')
|
|
|
});
|
|
|
});
|
|
|
},
|