|
@@ -264,10 +264,10 @@
|
|
</el-radio-group></el-form-item
|
|
</el-radio-group></el-form-item
|
|
>
|
|
>
|
|
<el-form-item label="剩余题数">
|
|
<el-form-item label="剩余题数">
|
|
- {{ form.properties.leftCount }}
|
|
|
|
|
|
+ {{ leftCount }}
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="累计出题数">
|
|
<el-form-item label="累计出题数">
|
|
- {{ form.properties.permitCount }}
|
|
|
|
|
|
+ {{ permitCount }}
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="">
|
|
<el-form-item label="">
|
|
<el-button type="primary" @click="updateAiNums">更新数量</el-button>
|
|
<el-button type="primary" @click="updateAiNums">更新数量</el-button>
|
|
@@ -352,6 +352,8 @@ export default {
|
|
name: "OrgProperty",
|
|
name: "OrgProperty",
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ leftCount: "",
|
|
|
|
+ permitCount: "",
|
|
tab4Entered: false,
|
|
tab4Entered: false,
|
|
treeCheckedCodes: [],
|
|
treeCheckedCodes: [],
|
|
style: {
|
|
style: {
|
|
@@ -418,8 +420,6 @@ export default {
|
|
GEN_PAPER_QUESTION_COUNT: "",
|
|
GEN_PAPER_QUESTION_COUNT: "",
|
|
GEN_PAPER_QUESTION_START: "",
|
|
GEN_PAPER_QUESTION_START: "",
|
|
GEN_PAPER_QUESTION_END: "",
|
|
GEN_PAPER_QUESTION_END: "",
|
|
- leftCount: "",
|
|
|
|
- permitCount: "",
|
|
|
|
},
|
|
},
|
|
},
|
|
},
|
|
timeRange: [],
|
|
timeRange: [],
|
|
@@ -473,11 +473,11 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
initAiNums(msg) {
|
|
initAiNums(msg) {
|
|
getAiNums({
|
|
getAiNums({
|
|
- rootOrgId: this.$store.state.user.rootOrgId,
|
|
|
|
|
|
+ rootOrgId: this.$route.params.rootOrgId,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
if (res.data) {
|
|
if (res.data) {
|
|
- this.form.properties.leftCount = res.data?.leftCount;
|
|
|
|
- this.form.properties.permitCount = res.data?.permitCount;
|
|
|
|
|
|
+ this.leftCount = res.data?.leftCount;
|
|
|
|
+ this.permitCount = res.data?.permitCount;
|
|
if (msg) {
|
|
if (msg) {
|
|
this.$message.success(msg);
|
|
this.$message.success(msg);
|
|
}
|
|
}
|
|
@@ -486,7 +486,7 @@ export default {
|
|
},
|
|
},
|
|
updateAiNums() {
|
|
updateAiNums() {
|
|
updateAiNums({
|
|
updateAiNums({
|
|
- rootOrgId: this.$store.state.user.rootOrgId,
|
|
|
|
|
|
+ rootOrgId: this.$route.params.rootOrgId,
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.initAiNums("更新成功");
|
|
this.initAiNums("更新成功");
|
|
});
|
|
});
|