| | |
| | | </div> |
| | | </div> |
| | | <!-- 添加类别弹框 --> |
| | | <el-dialog title="新增类别" width="30%" :visible.sync="dialogFormVisible"> |
| | | <el-dialog |
| | | :title="title" |
| | | width="30%" |
| | | :close-on-click-modal="false" |
| | | :visible.sync="dialogFormVisible" |
| | | > |
| | | <div style="text-align: center; margin-bottom: 20px"> |
| | | <el-radio-group v-model="radio"> |
| | | <el-radio-button label="主分类"></el-radio-button> |
| | | <el-radio-button label="子分类"></el-radio-button> |
| | | <el-radio-button label="主分类" v-show="zifon"></el-radio-button> |
| | | <el-radio-button label="子分类" v-show="zufon"></el-radio-button> |
| | | </el-radio-group> |
| | | </div> |
| | | <el-divider></el-divider> |
| | |
| | | // 表格数据 |
| | | userList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | title: "新增类别", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 日期范围 |
| | |
| | | indexid: null, |
| | | inputValue: "", |
| | | radio: "主分类", |
| | | zufon: true, |
| | | zifon: true, |
| | | inputVisible: false, |
| | | illnessVisible: false, //指标疾病弹框 |
| | | deptOptions: [], |
| | |
| | | created() { |
| | | this.getList(); |
| | | this.getDeptTree(); |
| | | this.zufon = true; |
| | | this.zifon = true; |
| | | this.mode = store.getters.mode; |
| | | this.languagelist = store.getters.languagelist; |
| | | this.qyoptions = store.getters.usable; |
| | |
| | | |
| | | console.log(this.userList[0].campus.split(",")); |
| | | }); |
| | | listDept(this.queryParams).then((response) => { |
| | | listDept({ pageNum: 1, pageSize: 10 }).then((response) => { |
| | | this.deptList = this.handleTree(response.data, "deptId"); |
| | | }); |
| | | }, |
| | |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/knowledge/templateku/configurat/", |
| | | query: { id: null }, |
| | | query: { id: null, assortid: this.queryParams.assortid }, |
| | | }); |
| | | }, |
| | | |
| | |
| | | this.dialogFormVisible = true; |
| | | if (!b.pid) { |
| | | this.radio = "主分类"; |
| | | this.title="修改主分类"; |
| | | this.zufon = false; |
| | | } else { |
| | | this.radio = "子分类"; |
| | | this.title="修改子分类"; |
| | | this.zifon = false; |
| | | } |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |