| | |
| | | >新增</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | :disabled = "xiugais" |
| | | type="primary" |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleUpdate1" |
| | | v-hasPermi="['hosp:project:add']" |
| | | >修改</el-button |
| | | > |
| | | </el-col> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" v-hasPermi="['hosp:project:edit']">修改</el-button> |
| | | </el-col> --> |
| | |
| | | v-model="form.proSex" |
| | | placeholder="请选择体检人性别" |
| | | style="width: 200px" |
| | | clearable |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.sys_user_sex" |
| | |
| | | ProjectTree, |
| | | deptTree, |
| | | deptTree111, |
| | | getAllChildListById |
| | | getAllChildListById, |
| | | getInfoByProId |
| | | } from "@/api/hosp/project"; |
| | | import { listDept } from "@/api/system/dept"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | |
| | | } |
| | | }; |
| | | return { |
| | | xiugais:true, |
| | | xiugaiList:[], |
| | | // 部门树选项 |
| | | deptOptions: undefined, |
| | | dialogTableVisible: false, |
| | |
| | | proName: this.queryParams.proName, |
| | | checkType: this.queryParams.checkType, |
| | | deptId: this.queryParams.deptId, |
| | | proId: this.queryParams.proId, |
| | | }; |
| | | getAllChildListById(data).then((response) => { |
| | | // this.projectList = this.handleTree(response.data.list, "proId"); |
| | |
| | | }, |
| | | // 节点单击事件 |
| | | handleNodeClick(date) { |
| | | if(date.$treeNodeId == 3){ |
| | | this.xiugais = true; |
| | | }else{ |
| | | this.xiugais = false; |
| | | } |
| | | let proId = date.id; |
| | | getInfoByProId(proId).then((response)=>{ |
| | | this.xiugaiList = response.data; |
| | | console.log(this.xiugaiList,222); |
| | | }) |
| | | console.log(date,111); |
| | | this.id = date.id; |
| | | this.queryParams.proId = date.id; |
| | | let data = { |
| | | proId: this.queryParams.proId, |
| | | proName:this.queryParams.proNamez |
| | | }; |
| | | this.loading = true; |
| | | getAllChildListById(data).then((response) => { |
| | |
| | | this.form.tjStandardList.splice(index, 1); |
| | | } |
| | | }, |
| | | handleUpdate1(){ |
| | | this.open = true; |
| | | this.form = this.xiugaiList; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.reset(); |