| | |
| | | |
| | | <script> |
| | | import myTree from '@/components/myTree/index'; |
| | | import { listType, getType, delType, addType, updateType, refreshCache } from '@/api/system/dict/type'; |
| | | import * as DateFormatter from '@/utils/DateFormatter'; |
| | | import MyTableV2 from '@/components/myTable/myTableV2'; |
| | | import SettingIplatform from '@/utils/settingIplatform'; |
| | | import edit from './edit'; |
| | | import * as finsystenant from '@/api/baseSetting/finsystenant'; |
| | | |
| | | export default { |
| | | name: 'Dict', |
| | | components: { MyTableV2, myTree, edit }, |
| | |
| | | dataIndex: 'status', |
| | | label: '状态', |
| | | placeholder: '请选择', |
| | | defaultValue: '0', |
| | | defaultValue: '1', |
| | | options: [ |
| | | { |
| | | value: '0', |
| | | value: '1', |
| | | label: '启用', |
| | | }, |
| | | { |
| | | value: '1', |
| | | value: '0', |
| | | label: '禁用', |
| | | }, |
| | | ], |
| | |
| | | align: 'center', |
| | | width: 100, |
| | | formatter: (row) => { |
| | | return { value: row.status === 0 ? '启用' : '禁用' }; |
| | | return { value: row.status === 1 ? '启用' : '禁用' }; |
| | | }, |
| | | }, |
| | | ], |
| | |
| | | }); |
| | | }, |
| | | nodeClick(param) { |
| | | console.log(param, 'param'); |
| | | this.p = Object.assign( |
| | | {}, |
| | | { |
| | |
| | | // 查询table列表 |
| | | search(pageNum) { |
| | | if (pageNum != undefined) { |
| | | this.$refs.myTable.search(pageNum); |
| | | this.$refs.myTable.search({pageNum}); |
| | | } else { |
| | | this.$refs.myTable.search(); |
| | | } |