| | |
| | | mainHeight: 0,
|
| | | tableHeight: 0,
|
| | | form: {
|
| | | tunittype: '', // 单计量(S) 多计量(M)
|
| | | tunittype: 'S', // 单计量(S) 多计量(M) |
| | | tunitgroupcode: '', // 计量单位组编码
|
| | | prop: 'isGroup', // 排序字段
|
| | | order: 'asc', // 排序字段
|
| | |
| | |
|
| | | }
|
| | | },
|
| | | activated() {
window.addEventListener('resize', this.getHeight)
this.getHeight()
},
created() {
|
| | | activated() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | created() { |
| | |
|
| | | },
|
| | | mounted() {
|
| | | window.addEventListener('resize', this.getHeight)
|
| | | this.getHeight()
|
| | | this.handleGetApi('')
|
| | | this.handleGetApi('S') |
| | | },
|
| | | methods: {
|
| | | async handleGetApi(code) {
|
| | |
| | | }
|
| | | },
|
| | | async getTUnitGroup(code) {
|
| | | const { data: res } = await TUnitGroup()
|
| | | // const { data: res } = await TUnitGroup() |
| | |
|
| | | this.treeLeft = [
|
| | | {
|
| | | code: '', name: '全部', children: [
|
| | | { code: 'S', name: '单计量' },
|
| | | { code: 'M', name: '多计量', children: res }
|
| | | ]
|
| | | code: 'S', name: '计量单位' |
| | | // , children: [ |
| | | // { code: 'S', name: '计量单位' } |
| | | // // { code: 'M', name: '多计量', children: res } |
| | | // ] |
| | | }
|
| | | ]
|
| | | this.$nextTick(() => {
|