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