| | |
| | | v-hasPermi="['hosp:advicerules:export']">导出 |
| | | </el-button> |
| | | </el-col> --> |
| | | <right-toolbar |
| | | <!-- <right-toolbar |
| | | :showSearch.sync="showSearch" |
| | | @queryTable="getList" |
| | | ></right-toolbar> |
| | | ></right-toolbar> --> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="20" style="display: flex"> |
| | |
| | | > |
| | | <el-form-item label="科室" prop="ks"> |
| | | <el-select |
| | | :rules="rules" |
| | | v-model="form.ks" |
| | | placeholder="请选择科室" |
| | | style="width: 200px" |
| | |
| | | }, |
| | | // 表单参数 |
| | | form: { |
| | | xb: "2", |
| | | // xb: "2", |
| | | }, |
| | | // 表单校验 |
| | | rules: {}, |
| | | rules: { |
| | | ks: [{ required: true, message: " ", trigger: ["blur", "change"] }], |
| | | }, |
| | | upload: { |
| | | // 是否显示弹出层(用户导入) |
| | | open: false, |
| | |
| | | treeId(newVal, oldVal) { |
| | | if (newVal) { |
| | | this.$nextTick(() => { |
| | | document |
| | | .querySelector(".el-tree-node__children .el-tree-node__content") |
| | | .click(); |
| | | const node = document.querySelector( |
| | | ".el-tree-node__children .el-tree-node__content" |
| | | ); |
| | | if (node) { |
| | | node.click(); |
| | | } else { |
| | | console.warn("没有找到 el-tree 节点,无法触发点击"); |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); */ |
| | | |
| | | getTjProAdvicerulesKsList().then((response) => { |
| | | this.deptOptions = response.data.map((name, index) => { |
| | | return { |
| | |
| | | getListByXmId() { |
| | | this.loading = true; |
| | | listAdvicerules(this.queryParams).then((response) => { |
| | | console.log(response,123456); |
| | | |
| | | response.rows.forEach((item, index) => { |
| | | item.newID = |
| | | (this.queryParams.pageNum - 1) * this.queryParams.pageSize + |
| | |
| | | createBy: null, |
| | | updateBy: null, |
| | | deleted: null, |
| | | xb: "2", |
| | | // xb: "2", |
| | | }; |
| | | if (this.$refs.form) { |
| | | this.$refs.form.resetFields(); |
| | |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | this.getListByXmId(); |
| | | }, |
| | | handlecharge() { |
| | | this.querycharge.pageNum = 1; |
| | |
| | | submitForm() { |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | this.form.xb = this.form.xb === "1" ? "1" : null; |
| | | if (this.form.id != null) { |
| | | updateAdvicerules(this.form).then((response) => { |
| | | console.log(response, 1111333); |
| | | |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | this.getListByXmId(); |
| | | }); |
| | | } else { |
| | | addAdvicerules(this.form).then((response) => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | this.getListByXmId(); |
| | | }); |
| | | } |
| | | } |