设备管理配置接口调整

This commit is contained in:
fan 2022-09-21 14:13:42 +08:00
parent d3a06586ba
commit 61ff3e0c73

View File

@ -84,7 +84,7 @@
</template>
<script>
import { getDeviceDetail, getDevicesByType, setIscsCwConfig, setDeviceConfig } from '@/api/project';
import { getDeviceDetail, getDevicesByType, setDeviceConfig } from '@/api/project';
import { getAllMapOnline, getStationListNeedAttendant } from '@/api/jmap/map';
export default {
name: 'EditConfig',
@ -223,7 +223,7 @@ export default {
} else if (this.data.type === 'ISCS_CW') {
this.$refs.formIscs.validate(() => {
const data = {id: this.data.id, project: this.data.project, code: this.data.code, type: this.data.type, config: JSON.stringify(this.formIscs) };
setIscsCwConfig(data).then(response => {
setDeviceConfig(data).then(response => {
self.$message.success('设置中心综合监控配置成功');
self.handleClose();
self.$emit('reloadTable');