소스 검색

DVP提交审批审批人搜索

zhangzheng 2 주 전
부모
커밋
390d0f27a0
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/components/SubmitApprovalModal/SubmitApprovalModal.vue

+ 3 - 3
src/components/SubmitApprovalModal/SubmitApprovalModal.vue

@@ -142,8 +142,8 @@
                     >
                       <a-icon slot='suffixIcon' type='search'/>
                       <a-select-option
-                          v-for='(user, uIndex) in userList'
-                          :key='uIndex'
+                          v-for='user in userList'
+                          :key='user.name'
                           :value='user.value'
                       >
                         <a-tooltip placement="right">
@@ -640,7 +640,7 @@ export default {
 		 */
 		handleFilterOption(input, option) {
 			return (
-				option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+          option.key.toLowerCase().indexOf(input.toLowerCase()) >= 0
 			);
 		},
 		/**