From 8d2e62da290ba8c40101f282a60efcdb29b22cd2 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 20 六月 2024 16:17:00 +0800
Subject: [PATCH] 测试完成
---
src/views/knowledge/questionnaire/compilequer/index.vue | 80 +++++++++++++++++++++++++---------------
1 files changed, 50 insertions(+), 30 deletions(-)
diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue
index 195ccbd..040fb82 100644
--- a/src/views/knowledge/questionnaire/compilequer/index.vue
+++ b/src/views/knowledge/questionnaire/compilequer/index.vue
@@ -39,28 +39,48 @@
label-width="100px"
class="demo-ruleForm"
>
- <el-form-item label="闂嵎鍒嗙被" prop="region">
- <el-select
- v-model="ruleForm.categoryid"
- size="medium"
- filterable
- placeholder="璇烽�夋嫨鍒嗙被"
- >
- <el-option-group
- v-for="group in optionsclass"
- :key="group.id"
- :label="group.name"
- >
- <el-option
- v-for="item in group.svyLibTemplateCategoryList"
- :key="item.id"
- :label="item.name"
- :value="item.id"
+ <el-row :gutter="10">
+ <el-col :span="10">
+ <el-form-item label="闂嵎鍒嗙被" prop="region">
+ <el-select
+ v-model="ruleForm.categoryid"
+ size="medium"
+ filterable
+ placeholder="璇烽�夋嫨鍒嗙被"
>
- </el-option>
- </el-option-group>
- </el-select>
- </el-form-item>
+ <el-option-group
+ v-for="group in optionsclass"
+ :key="group.id"
+ :label="group.name"
+ >
+ <el-option
+ v-for="item in group.svyLibTemplateCategoryList"
+ :key="item.id"
+ :label="item.name"
+ :value="item.id"
+ >
+ </el-option>
+ </el-option-group>
+ </el-select>
+ </el-form-item>
+ </el-col>
+ <el-col :span="10">
+ <el-form-item label="璇勪环绫诲瀷">
+ <el-select
+ v-model="ruleForm.scoreType"
+ placeholder="璇烽�夋嫨鍒嗙被"
+ >
+ <el-option
+ v-for="group in appraiselist"
+ :key="group.value"
+ :label="group.label"
+ :value="group.value"
+ >
+ </el-option>
+ </el-select>
+ </el-form-item>
+ </el-col>
+ </el-row>
<el-form-item label="闂嵎鏍囬" prop="name">
<div style="width: 30%">
<el-input v-model="ruleForm.svyname"></el-input>
@@ -393,7 +413,7 @@
<div class="headline">閫夐」璁剧疆</div>
<div
class="topicxq"
- v-for="item in topicobj.svyLibTemplateTargetoptions"
+ v-for="item in topicobj.svyLibScriptOptions"
>
<el-row :gutter="10">
<el-col :span="11"
@@ -657,6 +677,11 @@
{ value: "topic", table: "topic" },
{ value: "topic", table: "topic" },
],
+ appraiselist: [
+ { label: "鍒嗘暟", value: "1" },
+ { label: "ABC绛夌骇", value: "2" },
+ { label: "浼樿壇绛夌骇", value: "3" },
+ ],
fileList: [
{
@@ -799,11 +824,9 @@
this.ruleForm.svyLibScripts = this.ruleForm.svyLibScripts.concat(
this.delScriptVOList
);
- console.log(this.ruleForm.svyLibScripts, "this.ruleForm.svyLibScripts");
const result = this.tempDetpRelevanceslist.map(
(subArr) => subArr[subArr.length - 1]
);
- console.log(result, "result");
// id鏁扮粍鏌ユ暟缁勫璞�
result.forEach((item) => {
const condition = this.ruleForm.tempDetpRelevances.some(
@@ -817,7 +840,6 @@
});
}
});
- console.log(this.ruleForm.tempDetpRelevances);
// 鏁扮粍瀵硅薄鏌d鏁扮粍
this.ruleForm.tempDetpRelevances.forEach((item) => {
const condition = result.some((obj) => obj === item.deptId);
@@ -827,7 +849,6 @@
this.ruleForm.tempDetpRelevances[index].delFlag = 1;
}
});
- console.log(this.ruleForm.tempDetpRelevances);
setTimeout(() => {
this.submitForm();
}, 1000);
@@ -872,10 +893,11 @@
// 鏂板棰樼洰
addtopic(row) {
row.isoperation = 1;
- row.svyLibTemplateTargetoptions.forEach((item) => {
+ row.svyLibScriptOptions.forEach((item) => {
item.isoperation = 1;
});
this.ruleForm.svyLibScripts.push(row);
+ this.$modal.msgSuccess("鏂板鎴愬姛");
},
handleDelete(row) {
let index = this.ruleForm.svyLibScripts.indexOf(row);
@@ -917,9 +939,7 @@
},
// 淇敼棰樼洰淇℃伅
- Submittopicobj() {
-
- },
+ Submittopicobj() {},
// 鏂板鍙橀噺
addvariable() {
this.variablelist.push({
--
Gitblit v1.9.3