mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 06:49:37 +08:00
1
This commit is contained in:
parent
5a52bd73bf
commit
39f0c1e38b
@ -4,7 +4,7 @@ const api = {
|
|||||||
equipment: '/meeting/equipment'
|
equipment: '/meeting/equipment'
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getEquipmentList (parameter) {
|
export function getEquipmentList(parameter) {
|
||||||
return axios({
|
return axios({
|
||||||
url: api.equipment + '/list',
|
url: api.equipment + '/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@ -12,23 +12,23 @@ export function getEquipmentList (parameter) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function get (id) {
|
export function get(id) {
|
||||||
return axios({
|
return axios({
|
||||||
url: api.equipment + '/get/'+id,
|
url: api.equipment + '/get/' + id,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {}
|
params: {}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function recordByDeviceId (id) {
|
export function recordByDeviceId(id) {
|
||||||
return axios({
|
return axios({
|
||||||
url: api.equipment + '/recordByDeviceId/'+id,
|
url: api.equipment + '/recordByDeviceId/' + id,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {}
|
params: {}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getUserList(params){
|
export function getUserList(params) {
|
||||||
return axios({
|
return axios({
|
||||||
url: api.equipment + '/getUserList',
|
url: api.equipment + '/getUserList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@ -37,7 +37,7 @@ export function getUserList(params){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function saveEquipment (parameter) {
|
export function saveEquipment(parameter) {
|
||||||
return axios({
|
return axios({
|
||||||
url: api.equipment + (parameter.id > 0 ? '/update' : '/save'),
|
url: api.equipment + (parameter.id > 0 ? '/update' : '/save'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@ -48,7 +48,7 @@ export function saveEquipment (parameter) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function delEquipment (parameter) {
|
export function delEquipment(parameter) {
|
||||||
return axios({
|
return axios({
|
||||||
url: api.equipment + '/remove',
|
url: api.equipment + '/remove',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@ -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'
|
||||||
@ -240,7 +242,7 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
// 查询企业
|
// 查询企业
|
||||||
getTicketByCompany().then(res => {
|
getTicketByCompany().then(res => {
|
||||||
console.log('getTicketByCompany' , res)
|
console.log('getTicketByCompany', res)
|
||||||
this.enterpriseList = res.rows
|
this.enterpriseList = res.rows
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -254,7 +256,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 查询企业下的员工
|
// 查询企业下的员工
|
||||||
searchEnterprisePerson(){
|
searchEnterprisePerson() {
|
||||||
getUserList(this.personQueryParam).then(res => {
|
getUserList(this.personQueryParam).then(res => {
|
||||||
this.personLoadData = res.data
|
this.personLoadData = res.data
|
||||||
})
|
})
|
||||||
@ -262,7 +264,18 @@ export default {
|
|||||||
personHandleOk() {
|
personHandleOk() {
|
||||||
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