| | |
| | | :sm="24" |
| | | > |
| | | <a-form-item label="控制系统类型"> |
| | | <j-dict-select-tag |
| | | placeholder="请选择控制系统类型" |
| | | <!--<j-dict-select-tag--> |
| | | <!--placeholder="请选择控制系统类型"--> |
| | | <!--v-model="queryParam.controlSystemType"--> |
| | | <!--/>--> |
| | | <a-auto-complete |
| | | v-model="queryParam.controlSystemType" |
| | | dictCode="mdc_driveType" |
| | | :data-source="driveTypeList" |
| | | placeholder="请选择控制系统类型" |
| | | :filter-option="filterOption" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | <mdc-drive-type-param-config-modal |
| | | ref="modalForm" |
| | | @ok="modalFormOk" |
| | | :driveTypeList="driveTypeList" |
| | | ></mdc-drive-type-param-config-modal> |
| | | </a-card> |
| | | </template> |
| | |
| | | import MdcDriveTypeParamConfigModal from './modules/mdcDriveTypeParamConfig/MdcDriveTypeParamConfigModal' |
| | | import { filterMultiDictText } from '@/components/dict/JDictSelectUtil' |
| | | import { filterObj } from '@/utils/util'; |
| | | import api from '@/api/mdc' |
| | | export default { |
| | | name: 'MdcDriveTypeParamConfigList', |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | |
| | | }, |
| | | dictOptions: {}, |
| | | superFieldList: [], |
| | | driveTypeList:[] |
| | | } |
| | | }, |
| | | provide(){ |
| | | return { |
| | | driveTypeList:this.driveTypeList |
| | | } |
| | | }, |
| | | created() { |
| | | this.$set(this.dictOptions, 'showFlag', [{ text: '是', value: 'Y' }, { text: '否', value: 'N' }]) |
| | | this.$set(this.dictOptions, 'curveGenerationFlags', [{ text: '是', value: 'Y' }, { text: '否', value: 'N' }]) |
| | | this.getSuperFieldList(); |
| | | this.getDriveTypeByApi() |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function () { |
| | |
| | | param.pageSize = this.ipagination.pageSize |
| | | return filterObj(param) |
| | | }, |
| | | /** |
| | | * 调用接口获取控制系统类型 |
| | | */ |
| | | getDriveTypeByApi(){ |
| | | api.getDriveTypeApi().then((res)=>{ |
| | | console.log(res) |
| | | this.driveTypeList=res.result.map(item=>item.value) |
| | | }) |
| | | }, |
| | | /** |
| | | * 联想输入框筛选功能 |
| | | * @param input |
| | | * @param option |
| | | * @returns {boolean} |
| | | */ |
| | | filterOption(input, option) { |
| | | return ( |
| | | option.componentOptions.children[0].text.toUpperCase().indexOf(input.toUpperCase()) >= 0 |
| | | ); |
| | | }, |
| | | |
| | | } |
| | | } |