|
@@ -42,13 +42,13 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
<el-form-item label="每题分值" class="pull-left">
|
|
<el-form-item label="每题分值" class="pull-left">
|
|
- <el-input
|
|
|
|
|
|
+ <el-input-number
|
|
v-model="paperDetailStruct.score"
|
|
v-model="paperDetailStruct.score"
|
|
- class="search_width"
|
|
|
|
- placeholder="请输入"
|
|
|
|
size="small"
|
|
size="small"
|
|
|
|
+ :precision="1"
|
|
|
|
+ :min="0"
|
|
@change="muli(paperDetailStruct)"
|
|
@change="muli(paperDetailStruct)"
|
|
- ></el-input>
|
|
|
|
|
|
+ ></el-input-number>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -339,6 +339,7 @@
|
|
import { QUESTION_API } from "@/constants/constants";
|
|
import { QUESTION_API } from "@/constants/constants";
|
|
import { QUESTION_TYPES } from "../constants/constants";
|
|
import { QUESTION_TYPES } from "../constants/constants";
|
|
import LinkTitlesCustom from "@/components/LinkTitlesCustom.vue";
|
|
import LinkTitlesCustom from "@/components/LinkTitlesCustom.vue";
|
|
|
|
+import { mapState } from "vuex";
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
LinkTitlesCustom,
|
|
LinkTitlesCustom,
|
|
@@ -364,7 +365,7 @@ export default {
|
|
remark: "", //备注
|
|
remark: "", //备注
|
|
},
|
|
},
|
|
paperDetailStructId: "",
|
|
paperDetailStructId: "",
|
|
- quesTypes: QUESTION_TYPES,
|
|
|
|
|
|
+ quesTypes: [],
|
|
coursePropertyNumberDtos: [],
|
|
coursePropertyNumberDtos: [],
|
|
properties: [],
|
|
properties: [],
|
|
loading: false,
|
|
loading: false,
|
|
@@ -390,7 +391,7 @@ export default {
|
|
},
|
|
},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- computed: {},
|
|
|
|
|
|
+ computed: { ...mapState({ user: (state) => state.user }) },
|
|
watch: {
|
|
watch: {
|
|
count() {
|
|
count() {
|
|
this.paperDetailStruct.totalScore =
|
|
this.paperDetailStruct.totalScore =
|
|
@@ -399,6 +400,18 @@ export default {
|
|
},
|
|
},
|
|
//初始化查询
|
|
//初始化查询
|
|
created() {
|
|
created() {
|
|
|
|
+ var url =
|
|
|
|
+ QUESTION_API +
|
|
|
|
+ "/org/property/" +
|
|
|
|
+ this.user.rootOrgId +
|
|
|
|
+ "/ROOT_ORG_QUESTION_TYPES";
|
|
|
|
+ this.$http.get(url).then((response) => {
|
|
|
|
+ if (response.data && response.data.length > 0) {
|
|
|
|
+ this.quesTypes = QUESTION_TYPES.filter((m) =>
|
|
|
|
+ response.data.includes(m.value)
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ });
|
|
this.paperStructId = this.$route.params.paperStructId;
|
|
this.paperStructId = this.$route.params.paperStructId;
|
|
this.paperDetailStructId = this.$route.params.id;
|
|
this.paperDetailStructId = this.$route.params.id;
|
|
this.searchPaperDetail();
|
|
this.searchPaperDetail();
|