|
@@ -19,7 +19,7 @@
|
|
|
</avue-text-ellipsis>
|
|
|
</template>
|
|
|
<template slot="cnName" slot-scope="scope">
|
|
|
- <div style="color: #1e9fff;cursor: pointer;" @click.stop="editOpen(scope.row,scope.index)">
|
|
|
+ <div style="color: #1e9fff;cursor: pointer;" @click.stop="rowViewfun(scope.row,scope.index)">
|
|
|
<avue-text-ellipsis :text="scope.row.cnName" :height="30" use-tooltip placement="top">
|
|
|
<small slot="more">...</small>
|
|
|
</avue-text-ellipsis>
|
|
@@ -40,11 +40,11 @@
|
|
|
<el-button type="success" size="small" @click="handleExport" icon="el-icon-printer">导出</el-button>
|
|
|
</template>
|
|
|
<template slot-scope="{ row, index }" slot="menu">
|
|
|
- <el-button v-if="row.status == 1" type="text" style="color: #85e967" size="small"
|
|
|
+ <el-button v-if="row.status == 1" type="text" icon="el-icon-turn-off" style="color: #85e967" size="small"
|
|
|
@click.stop="statusfun(row.id,0)">
|
|
|
启用
|
|
|
</el-button>
|
|
|
- <el-button v-if="row.status == 0" type="text" style="color: #e83c3a" size="small"
|
|
|
+ <el-button v-if="row.status == 0" type="text" icon="el-icon-turn-off" style="color: #e83c3a" size="small"
|
|
|
@click.stop="statusfun(row.id,1)">
|
|
|
停用
|
|
|
</el-button>
|
|
@@ -138,7 +138,7 @@ export default {
|
|
|
viewBtn: true,
|
|
|
selection: true,
|
|
|
dialogClickModal: false,
|
|
|
- menuWidth:180,
|
|
|
+ menuWidth:260,
|
|
|
column: [
|
|
|
{
|
|
|
label: "编码",
|
|
@@ -249,7 +249,7 @@ export default {
|
|
|
addBtn: this.vaildData(this.permission.bcountrys_add, false),
|
|
|
// viewBtn: this.vaildData(this.permission.bcountrys_view, false),
|
|
|
// delBtn: this.vaildData(this.permission.bcountrys_delete, false),
|
|
|
- editBtn: this.vaildData(this.permission.bcountrys_edit, false)
|
|
|
+ // editBtn: this.vaildData(this.permission.bcountrys_edit, false)
|
|
|
};
|
|
|
},
|
|
|
ids() {
|
|
@@ -285,8 +285,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 编辑点击打开弹窗
|
|
|
- editOpen(row,index){
|
|
|
- this.$refs.crud.rowEdit(row,index)
|
|
|
+ rowViewfun(row,index){
|
|
|
+ this.$refs.crud.rowView(row,index)
|
|
|
},
|
|
|
// 导出
|
|
|
handleExport() {
|