소스 검색

用户管理:角色查询条件没写上

lrf 1 년 전
부모
커밋
a0857e3f2a
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/views/user/index.vue

+ 5 - 0
src/views/user/index.vue

@@ -24,6 +24,11 @@
             <span :style="{ color: `${row[item.prop] ? '#67C23A' : '#F56C6C'}` }">{{ row[item.prop] ? '已绑定' : '未绑定' }}</span>
           </template>
         </template>
+        <template #options="{item}">
+          <template v-if="item.prop === 'type'">
+            <el-option v-for="i in roleList" :key="i._id || i.id" :value="i.type" :label="i.name"></el-option>
+          </template>
+        </template>
       </data-table>
     </detail-frame>
     <detail-frame :title="roleTitle" :returns="() => (view = 'list')" v-else>