|  | @@ -19,9 +19,11 @@
 | 
	
		
			
				|  |  |                  </avue-text-ellipsis>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |              <template slot="cnName" slot-scope="scope">
 | 
	
		
			
				|  |  | -                <avue-text-ellipsis :text="scope.row.cnName" :height="30" use-tooltip placement="top">
 | 
	
		
			
				|  |  | -                    <small slot="more">...</small>
 | 
	
		
			
				|  |  | -                </avue-text-ellipsis>
 | 
	
		
			
				|  |  | +                <div style="color: #1e9fff;cursor: pointer;" @click.stop="editOpen(scope.row,scope.index)">
 | 
	
		
			
				|  |  | +                    <avue-text-ellipsis :text="scope.row.cnName" :height="30" use-tooltip placement="top">
 | 
	
		
			
				|  |  | +                        <small slot="more">...</small>
 | 
	
		
			
				|  |  | +                    </avue-text-ellipsis>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |              <template slot="enName" slot-scope="scope">
 | 
	
		
			
				|  |  |                  <avue-text-ellipsis :text="scope.row.enName" :height="30" use-tooltip placement="top">
 | 
	
	
		
			
				|  | @@ -37,6 +39,16 @@
 | 
	
		
			
				|  |  |                  </el-button>
 | 
	
		
			
				|  |  |                  <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"
 | 
	
		
			
				|  |  | +                           @click.stop="statusfun(row.id,0)">
 | 
	
		
			
				|  |  | +                    启用
 | 
	
		
			
				|  |  | +                </el-button>
 | 
	
		
			
				|  |  | +                <el-button v-if="row.status == 0" type="text" style="color: #e83c3a" size="small"
 | 
	
		
			
				|  |  | +                           @click.stop="statusfun(row.id,1)">
 | 
	
		
			
				|  |  | +                    停用
 | 
	
		
			
				|  |  | +                </el-button>
 | 
	
		
			
				|  |  | +            </template>
 | 
	
		
			
				|  |  |          </avue-crud>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -103,7 +115,8 @@ export default {
 | 
	
		
			
				|  |  |              page: {
 | 
	
		
			
				|  |  |                  pageSize: 10,
 | 
	
		
			
				|  |  |                  currentPage: 1,
 | 
	
		
			
				|  |  | -                total: 0
 | 
	
		
			
				|  |  | +                total: 0,
 | 
	
		
			
				|  |  | +                pageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              selectionList: [],
 | 
	
		
			
				|  |  |              option: {},
 | 
	
	
		
			
				|  | @@ -125,6 +138,7 @@ export default {
 | 
	
		
			
				|  |  |                  viewBtn: true,
 | 
	
		
			
				|  |  |                  selection: true,
 | 
	
		
			
				|  |  |                  dialogClickModal: false,
 | 
	
		
			
				|  |  | +                menuWidth:180,
 | 
	
		
			
				|  |  |                  column: [
 | 
	
		
			
				|  |  |                      {
 | 
	
		
			
				|  |  |                          label: "编码",
 | 
	
	
		
			
				|  | @@ -169,12 +183,6 @@ export default {
 | 
	
		
			
				|  |  |                          }]
 | 
	
		
			
				|  |  |                      },
 | 
	
		
			
				|  |  |                      {
 | 
	
		
			
				|  |  | -                        label: "版本",
 | 
	
		
			
				|  |  | -                        prop: "version",
 | 
	
		
			
				|  |  | -                        hide: true,
 | 
	
		
			
				|  |  | -                        display: false,
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    {
 | 
	
		
			
				|  |  |                          label: "状态",
 | 
	
		
			
				|  |  |                          prop: "status",
 | 
	
		
			
				|  |  |                          type: 'select',
 | 
	
	
		
			
				|  | @@ -187,29 +195,11 @@ export default {
 | 
	
		
			
				|  |  |                          }],
 | 
	
		
			
				|  |  |                      },
 | 
	
		
			
				|  |  |                      {
 | 
	
		
			
				|  |  | -                        label: "主键",
 | 
	
		
			
				|  |  | -                        prop: "id",
 | 
	
		
			
				|  |  | -                        hide: true,
 | 
	
		
			
				|  |  | -                        display: false,
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    {
 | 
	
		
			
				|  |  | -                        label: "创建人 Id",
 | 
	
		
			
				|  |  | -                        prop: "createUser",
 | 
	
		
			
				|  |  | -                        hide: true,
 | 
	
		
			
				|  |  | -                        display: false,
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    {
 | 
	
		
			
				|  |  |                          label: "创建人",
 | 
	
		
			
				|  |  |                          prop: "createUserName",
 | 
	
		
			
				|  |  |                          display: false,
 | 
	
		
			
				|  |  |                      },
 | 
	
		
			
				|  |  |                      {
 | 
	
		
			
				|  |  | -                        label: "创建部门 Id",
 | 
	
		
			
				|  |  | -                        prop: "createDept",
 | 
	
		
			
				|  |  | -                        hide: true,
 | 
	
		
			
				|  |  | -                        display: false,
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    {
 | 
	
		
			
				|  |  |                          label: "创建部门",
 | 
	
		
			
				|  |  |                          prop: "createDeptName",
 | 
	
		
			
				|  |  |                          display: false,
 | 
	
	
		
			
				|  | @@ -217,13 +207,7 @@ export default {
 | 
	
		
			
				|  |  |                      {
 | 
	
		
			
				|  |  |                          label: "创建时间",
 | 
	
		
			
				|  |  |                          prop: "createTime",
 | 
	
		
			
				|  |  | -                        hide: true,
 | 
	
		
			
				|  |  | -                        display: false,
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    {
 | 
	
		
			
				|  |  | -                        label: "修改人 Id",
 | 
	
		
			
				|  |  | -                        prop: "updateUser",
 | 
	
		
			
				|  |  | -                        hide: true,
 | 
	
		
			
				|  |  | +                        width: 160,
 | 
	
		
			
				|  |  |                          display: false,
 | 
	
		
			
				|  |  |                      },
 | 
	
		
			
				|  |  |                      {
 | 
	
	
		
			
				|  | @@ -234,6 +218,7 @@ export default {
 | 
	
		
			
				|  |  |                      {
 | 
	
		
			
				|  |  |                          label: "修改时间",
 | 
	
		
			
				|  |  |                          prop: "updateTime",
 | 
	
		
			
				|  |  | +                        width: 160,
 | 
	
		
			
				|  |  |                          display: false,
 | 
	
		
			
				|  |  |                      },
 | 
	
		
			
				|  |  |                      {
 | 
	
	
		
			
				|  | @@ -264,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() {
 | 
	
	
		
			
				|  | @@ -279,6 +264,30 @@ export default {
 | 
	
		
			
				|  |  |          this.option = await this.getColumnData(this.getColumnName(287), this.optionBack);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      methods: {
 | 
	
		
			
				|  |  | +        // 禁用启用按钮
 | 
	
		
			
				|  |  | +        statusfun(id,status){
 | 
	
		
			
				|  |  | +            this.$confirm("确定将选择数据更改状态?", {
 | 
	
		
			
				|  |  | +                confirmButtonText: "确定",
 | 
	
		
			
				|  |  | +                cancelButtonText: "取消",
 | 
	
		
			
				|  |  | +                type: "warning"
 | 
	
		
			
				|  |  | +            }).then(()=>{
 | 
	
		
			
				|  |  | +                bcountrysDetail(id).then(res=>{
 | 
	
		
			
				|  |  | +                    let obj = res.data.data;
 | 
	
		
			
				|  |  | +                    obj.status = status
 | 
	
		
			
				|  |  | +                    bcountrysSubmit(obj).then(()=>{
 | 
	
		
			
				|  |  | +                        this.onLoad(this.page);
 | 
	
		
			
				|  |  | +                        this.$message({
 | 
	
		
			
				|  |  | +                            type: "success",
 | 
	
		
			
				|  |  | +                            message: "操作成功!"
 | 
	
		
			
				|  |  | +                        });
 | 
	
		
			
				|  |  | +                    })
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        // 编辑点击打开弹窗
 | 
	
		
			
				|  |  | +        editOpen(row,index){
 | 
	
		
			
				|  |  | +            this.$refs.crud.rowEdit(row,index)
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  |          // 导出
 | 
	
		
			
				|  |  |          handleExport() {
 | 
	
		
			
				|  |  |              var condition = ''
 |