fuchengshen
2022-06-24 0924fcc06ead4d10ea5d0d579c8224850a0f37a4
src/cool/modules/basedevice/views/basedevice_group.vue
@@ -48,11 +48,19 @@
            {
               label: "逻辑ID",
               prop: "logic_id",
               value: [],
               component: {
                  name: "el-input"
                  name: "cl-device-select",
                  props: {
                     props: {
                        "multiple-limit": 3
                     }
                  }
               },
               //是否为必填项,注:接口配置字段时没有设置默认值时,都需要选择必填
               required: true
               rules: {
                  required: true,
                  message: "角色不能为空"
               }
            },
            {
               label: "操作人",
@@ -73,7 +81,17 @@
               label: "状态",
               prop: "status",
               component: {
                  name: "el-input"
                  name: "el-radio-group",
                  options: [
                     {
                        label: "未启用",
                        value: 0
                     },
                     {
                        label: "启用",
                        value: 1
                     }
                  ]
               }
            }
         ]
@@ -105,7 +123,28 @@
            },
            {
               label: "状态",
               prop: "status"
               prop: "status",
               dict: [
                  {
                     label: "停用",
                     value: 0,
                     type: "info" //success  warning  danger  info可选
                  },
                  {
                     label: "启用",
                     value: 1
                  }
               ],
               filters: [
                  {
                     text: "停用",
                     value: 0
                  },
                  {
                     text: "启用",
                     value: 1
                  }
               ]
            },
            {
               label: "操作",
@@ -121,11 +160,6 @@
      }
      async function onRefresh(params: any, { next, done, render }: any) {
         // params 是每次请求的参数
         // next(params) 是继续往下执行 page 的请求
         // done() 完成请求,关闭loading
         // render(list, pagination) 渲染列表及分页信息
         let { list, pagination } = await next({});
         list.map((_e: any) => {});