| | |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | proId:"", |
| | | // 病种+意见表格数据 |
| | | ruleAdviceList: [], |
| | | rulesList: [], |
| | |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | getsList() { |
| | | this.loading = true; |
| | | let date = { |
| | | proId: this.proId, |
| | | }; |
| | | getByProId(date).then((response) => { |
| | | response.rows.forEach((item, index) => { |
| | | item.newID = |
| | | (this.queryParams.pageNum - 1) * this.queryParams.pageSize + |
| | | index + |
| | | 1; |
| | | }); |
| | | this.ruleAdviceList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 节点单击事件 |
| | | handleNodeClick(data) { |
| | | this.proId = data.id |
| | | this.loading = true; |
| | | let date = { |
| | | proId: data.id, |
| | |
| | | this.open = true; |
| | | this.title = "添加病种+意见"; |
| | | listRules(this.queryParams).then((response) => { |
| | | this.rulesList = response.rows; |
| | | this.rulesList = response.data.rows; |
| | | }); |
| | | }, |
| | | /** 修改按钮操作 */ |
| | |
| | | bingzhong: query, |
| | | }; |
| | | listRules(data).then((response) => { |
| | | this.rulesList = response.rows; |
| | | this.rulesList = response.data.rows; |
| | | }); |
| | | } |
| | | }, |
| | |
| | | updateRuleAdvice(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | this.getsList(); |
| | | }); |
| | | } else { |
| | | addRuleAdvice(this.form).then((response) => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | this.getsList(); |
| | | }); |
| | | } |
| | | } |