| | |
| | | :default-expanded-keys="treeId" |
| | | highlight-current |
| | | @node-click="handleNodeClick" |
| | | :render-content="renderContent" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | lisXmmc: "", |
| | | proMetering: "", |
| | | proScope: "", |
| | | |
| | | resultType: "", // 初始值 |
| | | |
| | | |
| | | resultType: "", // 初始值 |
| | | }, |
| | | // 表单校验 |
| | | rules: { |
| | |
| | | created() { |
| | | this.getConsumables(); |
| | | this.getDeptList(); |
| | | this.getDeptTree(); |
| | | }, |
| | | mounted() { |
| | | this.getDeptTree(); |
| | | }, |
| | | methods: { |
| | |
| | | this.List = true; |
| | | listSfxm(this.querycharge).then((response) => { |
| | | this.sfxmList = response.rows; |
| | | |
| | | response.rows.forEach((item, index) => { |
| | | item.newID = |
| | | (this.querycharge.pageNum - 1) * this.querycharge.pageSize + |
| | |
| | | |
| | | handleNodecharge(data) { |
| | | this.queryParam.id = data.id; |
| | | |
| | | this.List = false; |
| | | this.getListByXmId(); |
| | | }, |
| | |
| | | this.deptOptions = response.data; |
| | | this.treeId.push(this.deptOptions[0].id); |
| | | }); |
| | | }, |
| | | |
| | | renderContent(h, { node, data }) { |
| | | return h( |
| | | "span", |
| | | { |
| | | style: { |
| | | color: data.status === "1" ? "red" : "inherit", // 动态设置颜色 |
| | | fontSize: "14px", |
| | | }, |
| | | }, |
| | | data.label // 显示节点的 label |
| | | ); |
| | | }, |
| | | |
| | | // 筛选节点 |
| | |
| | | height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */ |
| | | } |
| | | |
| | | |
| | | |
| | | .el-table__header-wrapper .el-checkbox { |
| | | display: none; |
| | | } |
| | | |
| | | .red-text { |
| | | color: red !important; |
| | | } |
| | | |
| | | .pag { |
| | | display: flex; |
| | | justify-content: center; |