|
@@ -47,6 +47,16 @@
|
|
|
transfer
|
|
|
></DatePicker>
|
|
|
</FormItem>
|
|
|
+ <FormItem v-if="roughLevelEnable">
|
|
|
+ <Select v-model="stage" placeholder="档位类型">
|
|
|
+ <Option
|
|
|
+ v-for="(val, key) in levelTypes"
|
|
|
+ :key="key"
|
|
|
+ :value="key"
|
|
|
+ :label="val"
|
|
|
+ ></Option>
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
<FormItem>
|
|
|
<Button
|
|
|
class="btn-form-search"
|
|
@@ -135,7 +145,8 @@ import {
|
|
|
callbackReport,
|
|
|
subjectList,
|
|
|
areaList,
|
|
|
- userGroupList
|
|
|
+ userGroupList,
|
|
|
+ getParamsSet
|
|
|
} from "@/api";
|
|
|
import EchartRender from "@/components/EchartRender";
|
|
|
import QualityAnalysisExport from "./components/QualityAnalysisExport";
|
|
@@ -163,6 +174,12 @@ export default {
|
|
|
areas: [],
|
|
|
groups: [],
|
|
|
dataReady: false,
|
|
|
+ stage: "LEVEL",
|
|
|
+ roughLevelEnable: false,
|
|
|
+ levelTypes: {
|
|
|
+ ROUGH_LEVEL: "粗分档",
|
|
|
+ LEVEL: "细分档"
|
|
|
+ },
|
|
|
// export
|
|
|
renderExportPage: false,
|
|
|
renderChartData: {},
|
|
@@ -175,6 +192,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async initData() {
|
|
|
+ await this.getParamsSetInfo();
|
|
|
await this.getSubjects();
|
|
|
this.filter.subject = this.subjects[0].subject;
|
|
|
this.filter.areaCode = "";
|
|
@@ -185,6 +203,10 @@ export default {
|
|
|
// 首次打开页面不再立即查询统计
|
|
|
// this.toSearch();
|
|
|
},
|
|
|
+ async getParamsSetInfo() {
|
|
|
+ const data = await getParamsSet(this.$route.params.workId);
|
|
|
+ this.roughLevelEnable = data.levelConfig.roughLevelEnable;
|
|
|
+ },
|
|
|
async getSubjects() {
|
|
|
const data = await subjectList(this.filter.workId);
|
|
|
this.subjects = data.filter(item => item.enable);
|
|
@@ -207,10 +229,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async getGroupList() {
|
|
|
- const data = await userGroupList({
|
|
|
+ let filterData = {
|
|
|
workId: this.filter.workId,
|
|
|
subject: this.filter.subject
|
|
|
- });
|
|
|
+ };
|
|
|
+ if (this.roughLevelEnable) filterData.stage = this.stage;
|
|
|
+
|
|
|
+ const data = await userGroupList(filterData);
|
|
|
this.groups = data.map(item => {
|
|
|
return {
|
|
|
id: item.groupId,
|
|
@@ -265,9 +290,11 @@ export default {
|
|
|
this.distanceReportData = null;
|
|
|
this.deviationReportData = null;
|
|
|
this.callbackReportData = null;
|
|
|
- const datas = filterObjNull({
|
|
|
+ let filterData = {
|
|
|
...this.filter
|
|
|
- });
|
|
|
+ };
|
|
|
+ if (this.roughLevelEnable) filterData.stage = this.stage;
|
|
|
+ const datas = filterObjNull(filterData);
|
|
|
const requests = [
|
|
|
levelsPropReport(datas),
|
|
|
deviationReport(datas),
|