| | |
| | | this.dialogForm.usergroupcode = '' |
| | | this.dialogForm.operation = '' |
| | | this.userTableData = [] |
| | | this.UserTotal = 0 |
| | | // console.log(this.$refs.dialogForm, 'log') |
| | | // this.$nextTick(() => { |
| | | // this.$refs.dialogForm.resetFields() |
| | |
| | | async getUserTableData() { |
| | | const { data: res } = await MesOrderGroupSelectUser({ usergroupcode: this.dialogForm.usergroupcode }) |
| | | this.userTableData = res |
| | | this.UserTotal = res.length |
| | | this.userTableData.forEach(item => { |
| | | let number = Math.random() * Math.random()// 作为删除时的标识符 |
| | | number = number === 0 ? (10 + Math.random()) : number |
| | |
| | | value += item.ratio |
| | | }) |
| | | console.log(value, 1) |
| | | this.UserTotal = this.userTableData.length |
| | | if (value !== total) { |
| | | // let temp = this.userTableData |
| | | // temp[temp.length-1].ratio=temp[temp.length-1].ratio+(total-value) |
| | |
| | | this.userTableData.splice(index, 1) |
| | | } |
| | | }) |
| | | this.UserTotal = this.userTableData.length |
| | | }, |
| | | // 用户列表人员名称值选中 |
| | | usernameChange(val, row) { |