mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 03:19:36 +08:00
修改了PC 页面
This commit is contained in:
parent
9b86bfeb11
commit
c5518047c1
@ -42,7 +42,19 @@ export function getStaffListByUser (parameter) {
|
||||
|
||||
export function updateStaff (parameter) {
|
||||
return axios({
|
||||
url: api.icsCustomerStaff + '/update',
|
||||
url: api.icsCustomerStaff + '/updateStaff',
|
||||
method: 'post',
|
||||
data: parameter,
|
||||
headers: {
|
||||
'Content-Type': 'application/json;charset=UTF-8'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function updateStaffByCustomer (parameter) {
|
||||
return axios({
|
||||
url: api.icsCustomerStaff + '/updateStaffByCustomer',
|
||||
method: 'post',
|
||||
data: parameter,
|
||||
headers: {
|
||||
|
@ -20,6 +20,15 @@ export function get(id) {
|
||||
})
|
||||
}
|
||||
|
||||
export function getRoomList (parameter) {
|
||||
return axios({
|
||||
url: api.equipment + '/getRoomList',
|
||||
method: 'get',
|
||||
params: parameter
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function recordByDeviceId(id) {
|
||||
return axios({
|
||||
url: api.equipment + '/recordByDeviceId/' + id,
|
||||
|
@ -323,9 +323,8 @@ import {
|
||||
saveCustomer,
|
||||
getCustomer,
|
||||
getQiXinBasicInfo,
|
||||
getCustomerContactsList,
|
||||
getStaffList,
|
||||
delCustomerContacts
|
||||
updateStaffByCustomer
|
||||
} from '@/api/admin/customer'
|
||||
import {
|
||||
getFloorList,
|
||||
@ -607,11 +606,12 @@ export default {
|
||||
},
|
||||
// 删除联系人
|
||||
handleDeleteContact(contactInfo) {
|
||||
delCustomerContacts({ ids: contactInfo.id }).then(res => {
|
||||
console.log(contactInfo)
|
||||
// contactInfo.
|
||||
updateStaffByCustomer(contactInfo).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$message.success('删除成功')
|
||||
this.deleteVisible = false
|
||||
this.deletingContact = {}
|
||||
this.getContastsList()
|
||||
} else {
|
||||
this.$message.error(res.msg)
|
||||
|
@ -128,9 +128,9 @@
|
||||
</a-modal>
|
||||
</template>
|
||||
<script>
|
||||
import { saveEquipment, get,recordByDeviceId } from '@/api/admin/meeting/equipment'
|
||||
import { saveEquipment, get,recordByDeviceId,getRoomList } from '@/api/admin/meeting/equipment'
|
||||
import pick from 'lodash.pick'
|
||||
import { getFloorList, getRoomListByFloorId } from '@/api/admin/meeting/roomContent'
|
||||
import { getFloorList } from '@/api/admin/meeting/roomContent'
|
||||
import storage from 'store'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
|
||||
@ -189,10 +189,7 @@ export default {
|
||||
})
|
||||
},
|
||||
getRoomList(value) {
|
||||
let param = {
|
||||
'buildingDetailId': value
|
||||
}
|
||||
getRoomListByFloorId(param).then((res) => {
|
||||
getRoomList({ 'buildingDetailId': value, }).then((res) => {
|
||||
this.roomList = res.data
|
||||
})
|
||||
},
|
||||
@ -255,6 +252,11 @@ export default {
|
||||
if (this.mdl.pic) {
|
||||
this.imageUrl = process.env.VUE_APP_API_BASE_URL + this.mdl.pic
|
||||
}
|
||||
|
||||
getRoomList({ 'buildingDetailId': this.mdl.buildId, }).then((res) => {
|
||||
this.roomList = res.data
|
||||
})
|
||||
|
||||
this.visible = true
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(pick(this.mdl, 'id', 'type', 'equipmentName', 'status', 'createDate', 'equipmentNum','buildId','ip','roomId', 'pic', 'deleteFlag', 'createBy', 'createTime', 'updateBy', 'updateTime'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user