| | |
| | | style="margin-bottom: 20px" /> |
| | | </div> |
| | | <div class="scrollable-container"> |
| | | <div class="content"> |
| | | <el-tree :data="deptOptions" :props="defaultProps" :expand-on-click-node="false" |
| | | <div class="content"> |
| | | <el-tree :data="deptOptions" :props="defaultProps" default-expand-all :expand-on-click-node="false" |
| | | :filter-node-method="filterNode" ref="tree" node-key="id" :default-expanded-keys="treeId" |
| | | highlight-current @node-click="handleNodeClick" /> |
| | | </div> |
| | |
| | | getListByXmId() { |
| | | this.loading = true; |
| | | listRules(this.queryParams).then((response) => { |
| | | response.rows.forEach((item, index) => { |
| | | response.data.rows.forEach((item, index) => { |
| | | item.newID = |
| | | (this.queryParams.pageNum - 1) * this.queryParams.pageSize + |
| | | index + |
| | | 1; |
| | | }); |
| | | this.rulesList = response.rows; |
| | | this.rulesList = response.data.rows; |
| | | console.log(this.rulesList, 999); |
| | | |
| | | this.total = response.total; |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | |
| | | |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | this.getListByXmId() |
| | | }); |
| | | } else { |
| | | addRules(this.form).then((response) => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | this.getListByXmId() |
| | | }); |
| | | } |
| | | } |
| | |
| | | return delRules(ids); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.getListByXmId(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }) |
| | | .catch(() => { }); |