mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 10:19:36 +08:00
1
This commit is contained in:
parent
5a52bd73bf
commit
39f0c1e38b
@ -56,4 +56,15 @@ export function delEquipment (parameter) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function saveDevice(parameter) {
|
||||||
|
return axios({
|
||||||
|
url: api.equipment + '/saveDevice',
|
||||||
|
method: 'post',
|
||||||
|
data: parameter,
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json;charset=UTF-8'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export const equipmentExport = api.equipment + '/export'
|
export const equipmentExport = api.equipment + '/export'
|
||||||
|
@ -77,8 +77,8 @@
|
|||||||
<a-col :md='8' :sm='15'>
|
<a-col :md='8' :sm='15'>
|
||||||
<a-form-item label='公司名称'>
|
<a-form-item label='公司名称'>
|
||||||
<a-select placeholder='请选择公司名称' v-model='personQueryParam.icsCustomerId'>
|
<a-select placeholder='请选择公司名称' v-model='personQueryParam.icsCustomerId'>
|
||||||
<a-select-option :value="null">全部</a-select-option>
|
<a-select-option :value='null'>全部</a-select-option>
|
||||||
<a-select-option :value="item.id" v-for='item in enterpriseList'>{{item.name}}</a-select-option>
|
<a-select-option :value='item.id' v-for='item in enterpriseList'>{{ item.name }}</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@ -126,6 +126,8 @@ import { STable } from '@/components'
|
|||||||
|
|
||||||
import { delEquipment, getEquipmentList, getUserList } from '@/api/admin/meeting/equipment'
|
import { delEquipment, getEquipmentList, getUserList } from '@/api/admin/meeting/equipment'
|
||||||
import { getTicketByCompany } from '@/api/admin/meeting/ticket'
|
import { getTicketByCompany } from '@/api/admin/meeting/ticket'
|
||||||
|
import { saveDevice } from '@/api/admin/meeting/equipment'
|
||||||
|
|
||||||
import EquipmentModal from './modules/EquipmentModal.vue'
|
import EquipmentModal from './modules/EquipmentModal.vue'
|
||||||
import { checkPermission } from '@/utils/permissions'
|
import { checkPermission } from '@/utils/permissions'
|
||||||
import difference from 'lodash/difference'
|
import difference from 'lodash/difference'
|
||||||
@ -263,6 +265,17 @@ export default {
|
|||||||
console.log(this.deviceId)
|
console.log(this.deviceId)
|
||||||
console.log(this.selectedPersonRowKeys)
|
console.log(this.selectedPersonRowKeys)
|
||||||
// 新增用户设备
|
// 新增用户设备
|
||||||
|
saveDevice({
|
||||||
|
id: this.deviceId,
|
||||||
|
userIds: this.selectedPersonRowKeys
|
||||||
|
}).then(res => {
|
||||||
|
console.log('saveDevice', res)
|
||||||
|
if(res.code == 0){
|
||||||
|
this.visible = false;
|
||||||
|
}else{
|
||||||
|
this.$message.error(res.msg);
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
onPersonSelectChange(selectedRowKeys, selectedRows) {
|
onPersonSelectChange(selectedRowKeys, selectedRows) {
|
||||||
this.selectedPersonRowKeys = selectedRowKeys
|
this.selectedPersonRowKeys = selectedRowKeys
|
||||||
|
Loading…
x
Reference in New Issue
Block a user