| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-04-18 18:07:47 |
| | | * @LastEditTime: 2024-04-19 18:18:19 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | </template> |
| | | <script> |
| | | import { useTransitionFallthroughEmits } from 'element-plus'; |
| | | import saveDialog from './add-feedback' |
| | | import saveDialog from './add-feedback' |
| | | export default { |
| | | name: "state-feedback", |
| | | data(){ |
| | |
| | | getfeedBackStatusList() { |
| | | this.$HTTP.get("/api/blade-cps/global_wcs/wcs-achievements").then(res=> { |
| | | if(res.code == 200) { |
| | | this.feedBackStatusList.push(res.data[0]); |
| | | this.feedBackStatusList.push(res.data[1]); |
| | | res.data.forEach(item=> { |
| | | if(item.type == "4") { |
| | | this.feedBackStatusList.push(item); |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | } |
| | | this.$HTTP.post("/api/blade-cps/group/groupWorkstation/type",obj).then(res=> { |
| | | if(res.code == 200) { |
| | | if (res.code == 200) { |
| | | var treeDisabled = this.addTreeDisable(res.data); |
| | | this.tableData = this.buildTree(treeDisabled); //从扁平化变为树状结构 |
| | | this.$nextTick(()=> { |
| | | this.lastLevelId = this.getLastLevelIds(this.tableData).lastLevelId; |
| | | this.$refs.treeRef.setCurrentKey(this.lastLevelId); //第一个节点的第一个子节点最后一级默认选中 |
| | | this.getlist(); //渲染反馈列表 |
| | | }) |
| | | |
| | | } |
| | | var treeDisabled = this.addTreeDisable(res.data); |
| | | this.tableData = this.buildTree(treeDisabled); //从扁平化变为树状结构 |
| | | this.$nextTick(()=> { |
| | | this.lastLevelId = this.getLastLevelIds(this.tableData).lastLevelId; |
| | | this.$refs.treeRef.setCurrentKey(this.lastLevelId); //第一个节点的第一个子节点最后一级默认选中 |
| | | this.getlist(); //渲染反馈列表 |
| | | }) |
| | | } |
| | | }) |
| | | }, |