gaoshp
2024-10-05 87b13f5c6a8a633a3f029f2b752749df40646c03
update
已修改1个文件
15 ■■■■ 文件已修改
src/views/console/workstation/CollDialog.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/workstation/CollDialog.vue
@@ -95,13 +95,16 @@
            return this
        },
        getDetailList(params) {
            this.$HTTP.get(`/api/smart-collect/tpl/typelist`, {}, { params }).then(res => {
                this.typeList = res.data || [];
                // return res
            }).finally(() => {
                this.getList(params)
            })
        },
        getList(params) {
                this.$HTTP.get(`/api/blade-cps/workstation/listDatapointsByWorkstationId`, {}, { params }).then(res => {
                    // res.data.records = res?.data?.records.map(v => {
                    //     return {
@@ -113,8 +116,6 @@
                    this.tabledata = res.data.dpConfig || [];
                    // return res
                })
            })
        },
        //表单提交方法
        submit() {
@@ -123,6 +124,12 @@
                dpConfig: JSON.stringify(this.tabledata),
                workstationId: this.params.id,
                type: this.type
            }).then(res => {
                if (res.code === 200) {
                    this.getList({
                        workstationId: this.params.id,
                    })
                }
            })
        },