|
@@ -44,6 +44,7 @@
|
|
<el-select
|
|
<el-select
|
|
:disabled="showGoBack"
|
|
:disabled="showGoBack"
|
|
v-model="formSearch.examId"
|
|
v-model="formSearch.examId"
|
|
|
|
+ @change="searchRecords"
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
@@ -69,8 +70,9 @@
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
:disabled="!hasPermit"
|
|
:disabled="!hasPermit"
|
|
|
|
+ v-show="formSearch.examId != ''"
|
|
@click="openOtherSettingDialog"
|
|
@click="openOtherSettingDialog"
|
|
- >新增其他事项
|
|
|
|
|
|
+ >新增其它事项
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
@@ -172,19 +174,28 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="backupSettingForm.eachPkgPercent"
|
|
v-model="backupSettingForm.eachPkgPercent"
|
|
:disabled="!backupSettingForm.needEachPkg"
|
|
:disabled="!backupSettingForm.needEachPkg"
|
|
- ></el-input>
|
|
|
|
|
|
+ ><template slot="append"
|
|
|
|
+ >%</template
|
|
|
|
+ ></el-input
|
|
|
|
+ >
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="最大" prop="eachPkgMax">
|
|
<el-form-item label="最大" prop="eachPkgMax">
|
|
<el-input
|
|
<el-input
|
|
v-model="backupSettingForm.eachPkgMax"
|
|
v-model="backupSettingForm.eachPkgMax"
|
|
:disabled="!backupSettingForm.needEachPkg"
|
|
:disabled="!backupSettingForm.needEachPkg"
|
|
- ></el-input>
|
|
|
|
|
|
+ ><template slot="append"
|
|
|
|
+ >%</template
|
|
|
|
+ ></el-input
|
|
|
|
+ >
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="最小" prop="eachPkgMin">
|
|
<el-form-item label="最小" prop="eachPkgMin">
|
|
<el-input
|
|
<el-input
|
|
v-model="backupSettingForm.eachPkgMin"
|
|
v-model="backupSettingForm.eachPkgMin"
|
|
:disabled="!backupSettingForm.needEachPkg"
|
|
:disabled="!backupSettingForm.needEachPkg"
|
|
- ></el-input>
|
|
|
|
|
|
+ ><template slot="append"
|
|
|
|
+ >%</template
|
|
|
|
+ ></el-input
|
|
|
|
+ >
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
@@ -213,19 +224,28 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="backupSettingForm.alonePkgPercent"
|
|
v-model="backupSettingForm.alonePkgPercent"
|
|
:disabled="!backupSettingForm.needAlonePkg"
|
|
:disabled="!backupSettingForm.needAlonePkg"
|
|
- ></el-input>
|
|
|
|
|
|
+ ><template slot="append"
|
|
|
|
+ >%</template
|
|
|
|
+ >
|
|
|
|
+ </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="最大" prop="alonePkgMax">
|
|
<el-form-item label="最大" prop="alonePkgMax">
|
|
<el-input
|
|
<el-input
|
|
v-model="backupSettingForm.alonePkgMax"
|
|
v-model="backupSettingForm.alonePkgMax"
|
|
:disabled="!backupSettingForm.needAlonePkg"
|
|
:disabled="!backupSettingForm.needAlonePkg"
|
|
- ></el-input>
|
|
|
|
|
|
+ ><template slot="append"
|
|
|
|
+ >%</template
|
|
|
|
+ ></el-input
|
|
|
|
+ >
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="最小" prop="alonePkgMin">
|
|
<el-form-item label="最小" prop="alonePkgMin">
|
|
<el-input
|
|
<el-input
|
|
v-model="backupSettingForm.alonePkgMin"
|
|
v-model="backupSettingForm.alonePkgMin"
|
|
:disabled="!backupSettingForm.needAlonePkg"
|
|
:disabled="!backupSettingForm.needAlonePkg"
|
|
- ></el-input>
|
|
|
|
|
|
+ ><template slot="append"
|
|
|
|
+ >%</template
|
|
|
|
+ ></el-input
|
|
|
|
+ >
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
@@ -387,7 +407,7 @@ export default {
|
|
type: "number",
|
|
type: "number",
|
|
required: true,
|
|
required: true,
|
|
validator: validateEachPkgPercent,
|
|
validator: validateEachPkgPercent,
|
|
- trigger: "blur"
|
|
|
|
|
|
+ trigger: "change"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
eachPkgMax: [
|
|
eachPkgMax: [
|
|
@@ -395,7 +415,7 @@ export default {
|
|
type: "number",
|
|
type: "number",
|
|
required: true,
|
|
required: true,
|
|
validator: validateEachPkgMax,
|
|
validator: validateEachPkgMax,
|
|
- trigger: "blur"
|
|
|
|
|
|
+ trigger: "change"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
eachPkgMin: [
|
|
eachPkgMin: [
|
|
@@ -403,7 +423,7 @@ export default {
|
|
type: "number",
|
|
type: "number",
|
|
required: true,
|
|
required: true,
|
|
validator: validateEachPkgMin,
|
|
validator: validateEachPkgMin,
|
|
- trigger: "blur"
|
|
|
|
|
|
+ trigger: "change"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
alonePkgPercent: [
|
|
alonePkgPercent: [
|
|
@@ -411,7 +431,7 @@ export default {
|
|
type: "number",
|
|
type: "number",
|
|
required: true,
|
|
required: true,
|
|
validator: validateAlonePkgPercent,
|
|
validator: validateAlonePkgPercent,
|
|
- trigger: "blur"
|
|
|
|
|
|
+ trigger: "change"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
alonePkgMax: [
|
|
alonePkgMax: [
|
|
@@ -419,7 +439,7 @@ export default {
|
|
type: "number",
|
|
type: "number",
|
|
required: true,
|
|
required: true,
|
|
validator: validateAlonePkgMax,
|
|
validator: validateAlonePkgMax,
|
|
- trigger: "blur"
|
|
|
|
|
|
+ trigger: "change"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
alonePkgMin: [
|
|
alonePkgMin: [
|
|
@@ -427,14 +447,14 @@ export default {
|
|
type: "number",
|
|
type: "number",
|
|
required: true,
|
|
required: true,
|
|
validator: validateAlonePkgMin,
|
|
validator: validateAlonePkgMin,
|
|
- trigger: "blur"
|
|
|
|
|
|
+ trigger: "change"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
groupType: [
|
|
groupType: [
|
|
{ required: true, validator: validateGroupType, trigger: "change" }
|
|
{ required: true, validator: validateGroupType, trigger: "change" }
|
|
],
|
|
],
|
|
remark: [
|
|
remark: [
|
|
- { required: true, message: "请输入事项内容!", trigger: "blur" }
|
|
|
|
|
|
+ { required: true, message: "请输入事项内容!", trigger: "change" }
|
|
]
|
|
]
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -514,7 +534,9 @@ export default {
|
|
/* 查询考试列表 */
|
|
/* 查询考试列表 */
|
|
this.formSearch.examId = "";
|
|
this.formSearch.examId = "";
|
|
this.examList = [];
|
|
this.examList = [];
|
|
-
|
|
|
|
|
|
+ this.tableData = [];
|
|
|
|
+ this.projectId = "";
|
|
|
|
+ //console.log("orgId:" + orgId);
|
|
if (!this.isEmptyNumber(orgId)) {
|
|
if (!this.isEmptyNumber(orgId)) {
|
|
let url = PRINT_API + "/printing/project/exam/list?orgId=" + orgId;
|
|
let url = PRINT_API + "/printing/project/exam/list?orgId=" + orgId;
|
|
this.$http.post(url).then(response => {
|
|
this.$http.post(url).then(response => {
|
|
@@ -524,6 +546,24 @@ export default {
|
|
},
|
|
},
|
|
refreshStatistic() {
|
|
refreshStatistic() {
|
|
/* 刷新当前统计信息 */
|
|
/* 刷新当前统计信息 */
|
|
|
|
+ let orgId = this.formSearch.orgId;
|
|
|
|
+ if (this.isEmptyNumber(orgId)) {
|
|
|
|
+ this.$notify({
|
|
|
|
+ message: "请选择学校!",
|
|
|
|
+ type: "warning"
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ let examId = this.formSearch.examId;
|
|
|
|
+ if (this.isEmptyNumber(examId)) {
|
|
|
|
+ this.$notify({
|
|
|
|
+ message: "请选择考试!",
|
|
|
|
+ type: "warning"
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
this.$confirm("刷新当前统计信息?", "提示", {
|
|
this.$confirm("刷新当前统计信息?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
@@ -533,9 +573,9 @@ export default {
|
|
let url =
|
|
let url =
|
|
PRINT_API +
|
|
PRINT_API +
|
|
"/printing/project/statistic/refresh/" +
|
|
"/printing/project/statistic/refresh/" +
|
|
- +this.formSearch.orgId +
|
|
|
|
|
|
+ orgId +
|
|
"/" +
|
|
"/" +
|
|
- this.formSearch.examId;
|
|
|
|
|
|
+ examId;
|
|
this.$http.post(url).then(
|
|
this.$http.post(url).then(
|
|
() => {
|
|
() => {
|
|
this.$notify({
|
|
this.$notify({
|
|
@@ -568,7 +608,7 @@ export default {
|
|
!this.backupSettingForm.needAlonePkg
|
|
!this.backupSettingForm.needAlonePkg
|
|
) {
|
|
) {
|
|
this.$notify({
|
|
this.$notify({
|
|
- message: "请至少选择一种备份方式!",
|
|
|
|
|
|
+ message: "请至少设置一种备份方式!",
|
|
type: "warning"
|
|
type: "warning"
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
@@ -599,7 +639,6 @@ export default {
|
|
this.$http.post(url).then(
|
|
this.$http.post(url).then(
|
|
response => {
|
|
response => {
|
|
this.backupSettingForm = response.data;
|
|
this.backupSettingForm = response.data;
|
|
- this.$refs.backupSettingForm.validate();
|
|
|
|
},
|
|
},
|
|
() => {
|
|
() => {
|
|
this.backupSettingForm = {
|
|
this.backupSettingForm = {
|
|
@@ -614,7 +653,6 @@ export default {
|
|
alonePkgMin: "",
|
|
alonePkgMin: "",
|
|
groupType: ""
|
|
groupType: ""
|
|
};
|
|
};
|
|
- this.$refs.backupSettingForm.validate();
|
|
|
|
}
|
|
}
|
|
);
|
|
);
|
|
this.backupSettingDialog = true;
|
|
this.backupSettingDialog = true;
|
|
@@ -642,7 +680,6 @@ export default {
|
|
},
|
|
},
|
|
error => {
|
|
error => {
|
|
console.log(error);
|
|
console.log(error);
|
|
- this.loading = false;
|
|
|
|
}
|
|
}
|
|
);
|
|
);
|
|
},
|
|
},
|
|
@@ -698,18 +735,28 @@ export default {
|
|
);
|
|
);
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
- //ignore
|
|
|
|
|
|
+ /*ignore*/
|
|
});
|
|
});
|
|
},
|
|
},
|
|
openOtherSettingDialog(row) {
|
|
openOtherSettingDialog(row) {
|
|
/* 打开其它事项弹窗 */
|
|
/* 打开其它事项弹窗 */
|
|
|
|
+ if (this.isEmptyNumber(this.projectId)) {
|
|
|
|
+ this.$notify({
|
|
|
|
+ message: "请选择学校和考试!",
|
|
|
|
+ type: "warning"
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.otherSettingDialog = true;
|
|
this.otherSettingDialog = true;
|
|
this.otherSettingForm.projectId = this.projectId;
|
|
this.otherSettingForm.projectId = this.projectId;
|
|
- if (row) {
|
|
|
|
|
|
+ if (row.id) {
|
|
this.otherSettingForm.id = row.id;
|
|
this.otherSettingForm.id = row.id;
|
|
- this.otherSettingForm.remark = row.remark;
|
|
|
|
} else {
|
|
} else {
|
|
this.otherSettingForm.id = "";
|
|
this.otherSettingForm.id = "";
|
|
|
|
+ }
|
|
|
|
+ if (row.remark) {
|
|
|
|
+ this.otherSettingForm.remark = row.remark;
|
|
|
|
+ } else {
|
|
this.otherSettingForm.remark = "";
|
|
this.otherSettingForm.remark = "";
|
|
}
|
|
}
|
|
},
|
|
},
|