Browse Source

数据字典是否只获取已启用的数据

chenrui 3 years ago
parent
commit
a034799977
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/components/Select/index.js

+ 6 - 1
src/components/Select/index.js

@@ -25,6 +25,10 @@ export default {
     showType: {
       type: String,
       default: 'select'
+    },
+    isEnable: { // 是否只获取已启用的数据
+      type: Boolean,
+      default: false
     }
   }),
   created () {
@@ -33,7 +37,8 @@ export default {
     getLookUpData({
       pageNo: 1,
       pageSize: 1000,
-      lookupCode: _this.code
+      lookupCode: _this.code,
+      isEnable: _this.isEnable ? 1 : undefined
     }).then(res => {
       if (res.status == 200) {
         _this.dataList = res.data.list