|  | @@ -44,6 +44,14 @@
 | 
	
		
			
				|  |  |          </el-button>
 | 
	
		
			
				|  |  |          <el-button type="text" icon="el-icon-edit" size="small" @click.stop="rowDel(scope.row, scope.index)">删除
 | 
	
		
			
				|  |  |          </el-button>
 | 
	
		
			
				|  |  | +          <el-button v-if="scope.row.status == 1" type="text" icon="el-icon-turn-off" style="color: #85e967" size="small"
 | 
	
		
			
				|  |  | +                     @click.stop="statusfun(scope.row.id,0)">
 | 
	
		
			
				|  |  | +              启用
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  | +          <el-button v-if="scope.row.status == 0" type="text" icon="el-icon-turn-off" style="color: #e83c3a" size="small"
 | 
	
		
			
				|  |  | +                     @click.stop="statusfun(scope.row.id,1)">
 | 
	
		
			
				|  |  | +              停用
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  |        </template>
 | 
	
		
			
				|  |  |      </avue-crud>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -109,7 +117,8 @@ export default {
 | 
	
		
			
				|  |  |        page: {
 | 
	
		
			
				|  |  |          pageSize: 10,
 | 
	
		
			
				|  |  |          currentPage: 1,
 | 
	
		
			
				|  |  | -        total: 0
 | 
	
		
			
				|  |  | +        total: 0,
 | 
	
		
			
				|  |  | +        ageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        selectionList: [],
 | 
	
		
			
				|  |  |        option: {
 | 
	
	
		
			
				|  | @@ -130,88 +139,8 @@ export default {
 | 
	
		
			
				|  |  |          viewBtn: true,
 | 
	
		
			
				|  |  |          selection: true,
 | 
	
		
			
				|  |  |          dialogClickModal: false,
 | 
	
		
			
				|  |  | +          menuWidth:260,
 | 
	
		
			
				|  |  |          column: [
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "主键",
 | 
	
		
			
				|  |  | -          //   prop: "id",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入主键",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "创建人 Id",
 | 
	
		
			
				|  |  | -          //   prop: "createUser",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入创建人 Id",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "创建人",
 | 
	
		
			
				|  |  | -          //   prop: "createUserName",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入创建人",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "创建部门 Id",
 | 
	
		
			
				|  |  | -          //   prop: "createDept",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入创建部门 Id",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "创建部门",
 | 
	
		
			
				|  |  | -          //   prop: "createDeptName",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入创建部门",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "创建时间",
 | 
	
		
			
				|  |  | -          //   prop: "createTime",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入创建时间",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "修改人 Id",
 | 
	
		
			
				|  |  | -          //   prop: "updateUser",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入修改人 Id",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "修改人",
 | 
	
		
			
				|  |  | -          //   prop: "updateUserName",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入修改人",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "修改时间",
 | 
	
		
			
				|  |  | -          //   prop: "updateTime",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入修改时间",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  |              label: "编码",
 | 
	
		
			
				|  |  |              prop: "code",
 | 
	
	
		
			
				|  | @@ -258,11 +187,6 @@ export default {
 | 
	
		
			
				|  |  |              width: 160,
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            label: "版本",
 | 
	
		
			
				|  |  | -            prop: "version",
 | 
	
		
			
				|  |  | -            display: false,
 | 
	
		
			
				|  |  | -          },
 | 
	
		
			
				|  |  | -          {
 | 
	
		
			
				|  |  |              label: "状态",
 | 
	
		
			
				|  |  |              prop: "status",
 | 
	
		
			
				|  |  |              type: "select",
 | 
	
	
		
			
				|  | @@ -275,15 +199,39 @@ export default {
 | 
	
		
			
				|  |  |              }],
 | 
	
		
			
				|  |  |              value: 0
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  | -          // {
 | 
	
		
			
				|  |  | -          //   label: "是否已删除(0 否 1是)",
 | 
	
		
			
				|  |  | -          //   prop: "isDeleted",
 | 
	
		
			
				|  |  | -          //   rules: [{
 | 
	
		
			
				|  |  | -          //     required: true,
 | 
	
		
			
				|  |  | -          //     message: "请输入是否已删除(0 否 1是)",
 | 
	
		
			
				|  |  | -          //     trigger: "blur"
 | 
	
		
			
				|  |  | -          //   }]
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "创建人",
 | 
	
		
			
				|  |  | +              prop: "createUserName",
 | 
	
		
			
				|  |  | +                display: false,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "创建部门",
 | 
	
		
			
				|  |  | +              prop: "createDeptName",
 | 
	
		
			
				|  |  | +                display: false,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "创建时间",
 | 
	
		
			
				|  |  | +              prop: "createTime",
 | 
	
		
			
				|  |  | +                width: "160",
 | 
	
		
			
				|  |  | +                display: false,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "修改人",
 | 
	
		
			
				|  |  | +              prop: "updateUserName",
 | 
	
		
			
				|  |  | +                display: false,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "修改时间",
 | 
	
		
			
				|  |  | +              prop: "updateTime",
 | 
	
		
			
				|  |  | +                width: "160",
 | 
	
		
			
				|  |  | +                display: false,
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            label: "是否已删除(0 否 1是)",
 | 
	
		
			
				|  |  | +            prop: "isDeleted",
 | 
	
		
			
				|  |  | +              hide: true,
 | 
	
		
			
				|  |  | +              display: false,
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  |              label: "备注",
 | 
	
		
			
				|  |  |              prop: "remarks",
 | 
	
	
		
			
				|  | @@ -320,6 +268,26 @@ export default {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +      // 禁用启用按钮
 | 
	
		
			
				|  |  | +      statusfun(id,status){
 | 
	
		
			
				|  |  | +          this.$confirm("确定将选择数据更改状态?", {
 | 
	
		
			
				|  |  | +              confirmButtonText: "确定",
 | 
	
		
			
				|  |  | +              cancelButtonText: "取消",
 | 
	
		
			
				|  |  | +              type: "warning"
 | 
	
		
			
				|  |  | +          }).then(()=>{
 | 
	
		
			
				|  |  | +              getBtrademodesDetail(id).then(res=>{
 | 
	
		
			
				|  |  | +                  let obj = res.data.data;
 | 
	
		
			
				|  |  | +                  obj.status = status
 | 
	
		
			
				|  |  | +                  updateBtrademodes(obj).then(()=>{
 | 
	
		
			
				|  |  | +                      this.onLoad(this.page);
 | 
	
		
			
				|  |  | +                      this.$message({
 | 
	
		
			
				|  |  | +                          type: "success",
 | 
	
		
			
				|  |  | +                          message: "操作成功!"
 | 
	
		
			
				|  |  | +                      });
 | 
	
		
			
				|  |  | +                  })
 | 
	
		
			
				|  |  | +              })
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |      // 导出
 | 
	
		
			
				|  |  |      handleExport() {
 | 
	
		
			
				|  |  |        var condition = ''
 |