修改了PC 页面

This commit is contained in:
chendaze 2024-03-28 15:06:49 +08:00
parent 9b86bfeb11
commit c5518047c1
4 changed files with 34 additions and 11 deletions

View File

@ -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: {

View File

@ -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,

View File

@ -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)

View File

@ -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'))