1
lzhe
2024-10-23 3eec2bf7d75f25b99b2f00f972b9c889e8dea77c
1
已修改2个文件
8 ■■■■ 文件已修改
src/views/home/widgets/components/mdcRunning.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/widgets/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/widgets/components/mdcRunning.vue
@@ -2,7 +2,7 @@
 * @Author: lzhe lzhe@example.com
 * @Date: 2024-04-16 15:22:46
 * @LastEditors: lzhe lzhe@example.com
 * @LastEditTime: 2024-10-10 10:08:58
 * @LastEditTime: 2024-10-23 16:13:47
 * @FilePath: /CPSnew/smart-web/src/views/home/widgets/components/mdcDeviceStatus.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
src/views/home/widgets/index.vue
@@ -295,13 +295,17 @@
            save(){
                this.customizing = false
                this.$refs.widgets.style.removeProperty('transform')
                this.$TOOL.data.set("grid", this.grid)
                this.$TOOL.data.set("grid", this.grid);
                //this.apiResource.workStationIdList
                //保存接口
                //var copmsList = this.grid.copmsList;
                //var flattened = copmsList.reduce((acc, val) => acc.concat(val), []); //扁平化 
                //var data = this.grid.data.filter(item=>this.nowCompsList.includes(item.cardKey));
                this.grid.data.forEach(item=> {
                    item.layoutConfig = JSON.stringify(this.grid.copmsList);
                    if(item.cardKey == "mdcRunning") {
                        item.apiResource = JSON.stringify({workStationIdList: []})
                    }
                })
                var obj = {
                    workbenchCardAddVOList: this.grid.data,