From adf7c9495ac348644079592059ea4c4d95b84b99 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 21 八月 2024 14:05:38 +0800
Subject: [PATCH] 测试完成
---
src/views/knowledge/education/compilequer/index.vue | 30 ++++++++++++++----------------
1 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/src/views/knowledge/education/compilequer/index.vue b/src/views/knowledge/education/compilequer/index.vue
index dfdea95..8e0f833 100644
--- a/src/views/knowledge/education/compilequer/index.vue
+++ b/src/views/knowledge/education/compilequer/index.vue
@@ -175,22 +175,15 @@
></el-col>
<el-col :span="9">
<el-form-item label="鍙敤鐘舵��" prop="region">
- <el-select
- v-model="ruleForm.isavailable"
- size="medium"
- filterable
- placeholder="璇烽�夋嫨鍒嗙被"
- >
- <el-option
- class="ruleFormaa"
- v-for="item in usable"
- :key="item.value"
- :label="item.label"
- :value="item.value"
+ <el-radio-group v-model="ruleForm.isAvailable">
+ <el-radio
+ v-for="(item, index) in usable"
+ :label="item.value"
+ >{{ item.label }}</el-radio
>
- </el-option>
- </el-select> </el-form-item
- ></el-col>
+ </el-radio-group>
+ </el-form-item></el-col
+ >
</el-row>
<el-form-item label="瀹f暀鏂瑰紡" prop="region">
<el-select
@@ -489,6 +482,8 @@
radioas: "", //濉┖棰樼瓟妗�
// 鎬绘潯鏁�
total: 1,
+ hetype: "",
+ id: null,
ruleForm: {
campus: [],
heLibraryTagList: [],
@@ -573,6 +568,7 @@
getList() {
this.loading = true;
this.id = this.$route.query.id;
+ this.hetype = this.$route.query.hetype;
if (this.id) {
getlibraryinfo({ id: this.id }).then((res) => {
this.ruleForm = res.data[0];
@@ -593,8 +589,9 @@
});
}
// 瀹f暀鍒嗙被
- getheLibraryAssort({}).then((res) => {
+ getheLibraryAssort({ hetype: 2 }).then((res) => {
this.sortlist = res.rows;
+ console.log(this.sortlist);
});
// 閮ㄩ棬
listDept(this.queryParams).then((response) => {
@@ -611,6 +608,7 @@
this.ruleForm.campus = this.ruleForm.campus.join(",");
this.ruleForm.labelInfo = tgs.length != 0 ? tgs.join(", ") : "";
this.ruleForm.otherdata = JSON.stringify(this.variablelist);
+ this.ruleForm.hetype = 2;
console.log(22);
this.ruleForm.suitway =
this.ruleForm.suitway.length != 0
--
Gitblit v1.9.3