diff --git a/src/views/modules/code/components/available.vue b/src/views/modules/code/components/available.vue
index 4188044..d811844 100644
--- a/src/views/modules/code/components/available.vue
+++ b/src/views/modules/code/components/available.vue
@@ -1,13 +1,13 @@
- 可用
+ 可用
不可用
diff --git a/src/views/modules/code/components/deliveryInspection-add.vue b/src/views/modules/code/components/deliveryInspection-add.vue
index e7beea4..97279a4 100644
--- a/src/views/modules/code/components/deliveryInspection-add.vue
+++ b/src/views/modules/code/components/deliveryInspection-add.vue
@@ -1,8 +1,8 @@
@@ -321,7 +321,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.samplingPlanList = res.data.list
}
})
@@ -333,7 +332,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.userList = res.data.list
}
})
@@ -345,7 +343,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.productList = res.data.list
}
})
@@ -361,7 +358,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.unitList = res.data.list
}
})
@@ -373,7 +369,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.supplierList = res.data.list
}
})
@@ -385,7 +380,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.factoryList = res.data.list
}
})
@@ -411,7 +405,6 @@ export default {
duration: 500,
onClose: () => {
this.visible = false;
- console.log(1111);
this.$emit("successSubmit");
},
});
diff --git a/src/views/modules/code/components/deliveryInspectionSearch.vue b/src/views/modules/code/components/deliveryInspectionSearch.vue
index 2ab7fe0..151de93 100644
--- a/src/views/modules/code/components/deliveryInspectionSearch.vue
+++ b/src/views/modules/code/components/deliveryInspectionSearch.vue
@@ -1,8 +1,8 @@
@@ -211,7 +211,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.samplingPlanList = res.data.list
}
})
@@ -223,7 +222,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.productList = res.data.list
}
})
@@ -235,7 +233,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.supplierList = res.data.list
}
})
@@ -247,7 +244,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.factoryList = res.data.list
}
})
diff --git a/src/views/modules/code/components/eightDiscipline-add.vue b/src/views/modules/code/components/eightDiscipline-add.vue
index 8ab83a1..6696734 100644
--- a/src/views/modules/code/components/eightDiscipline-add.vue
+++ b/src/views/modules/code/components/eightDiscipline-add.vue
@@ -1,7 +1,7 @@
@@ -155,7 +155,6 @@ export default {
type: "success",
duration: 500,
onClose: () => {
- console.log(1111);
this.visible = false;
this.$emit("successSubmit");
},
diff --git a/src/views/modules/code/components/eightDiscipline-searchs.vue b/src/views/modules/code/components/eightDiscipline-searchs.vue
new file mode 100644
index 0000000..07f58e4
--- /dev/null
+++ b/src/views/modules/code/components/eightDiscipline-searchs.vue
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/code/components/problemType-add.vue b/src/views/modules/code/components/problemType-add.vue
new file mode 100644
index 0000000..1e3f021
--- /dev/null
+++ b/src/views/modules/code/components/problemType-add.vue
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/code/components/productInspection-add.vue b/src/views/modules/code/components/productInspection-add.vue
index 04449bd..a41f7c1 100644
--- a/src/views/modules/code/components/productInspection-add.vue
+++ b/src/views/modules/code/components/productInspection-add.vue
@@ -2,8 +2,8 @@
@@ -322,7 +322,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.samplingPlanList = res.data.list
}
})
@@ -334,7 +333,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.userList = res.data.list
}
})
@@ -346,7 +344,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.productList = res.data.list
}
})
@@ -362,7 +359,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.unitList = res.data.list
}
})
@@ -374,7 +370,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.supplierList = res.data.list
}
})
@@ -386,7 +381,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.factoryList = res.data.list
}
})
@@ -412,7 +406,6 @@ export default {
duration: 500,
onClose: () => {
this.visible = false;
- console.log(1111);
this.$emit("successSubmit");
},
});
diff --git a/src/views/modules/code/components/productInspectionSearch.vue b/src/views/modules/code/components/productInspectionSearch.vue
index c0c91e9..57b4ecb 100644
--- a/src/views/modules/code/components/productInspectionSearch.vue
+++ b/src/views/modules/code/components/productInspectionSearch.vue
@@ -1,8 +1,8 @@
@@ -211,7 +211,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.samplingPlanList = res.data.list
}
})
@@ -223,7 +222,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.productList = res.data.list
}
})
@@ -235,7 +233,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.supplierList = res.data.list
}
})
@@ -247,7 +244,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.factoryList = res.data.list
}
})
diff --git a/src/views/modules/code/components/productRegistration-add.vue b/src/views/modules/code/components/productRegistration-add.vue
index 076dc95..efce992 100644
--- a/src/views/modules/code/components/productRegistration-add.vue
+++ b/src/views/modules/code/components/productRegistration-add.vue
@@ -1,8 +1,8 @@
@@ -480,7 +480,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.samplingPlanList = res.data.list
}
})
@@ -492,7 +491,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.userList = res.data.list
}
})
@@ -504,7 +502,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.productList = res.data.list
}
})
@@ -520,7 +517,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.unitList = res.data.list
}
})
@@ -532,7 +528,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.supplierList = res.data.list
}
})
@@ -544,7 +539,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.factoryList = res.data.list
}
})
diff --git a/src/views/modules/code/components/productRegistrationSearch.vue b/src/views/modules/code/components/productRegistrationSearch.vue
index 540330d..0f78112 100644
--- a/src/views/modules/code/components/productRegistrationSearch.vue
+++ b/src/views/modules/code/components/productRegistrationSearch.vue
@@ -1,8 +1,8 @@
@@ -244,7 +244,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.samplingPlanList = res.data.list
}
})
@@ -256,7 +255,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.productList = res.data.list
}
})
@@ -268,7 +266,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.supplierList = res.data.list
}
})
@@ -280,7 +277,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.userList = res.data.list
}
})
@@ -292,7 +288,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.factoryList = res.data.list
}
})
diff --git a/src/views/modules/code/components/shipmentRegistration-add.vue b/src/views/modules/code/components/shipmentRegistration-add.vue
index 4bb8b91..34a2af8 100644
--- a/src/views/modules/code/components/shipmentRegistration-add.vue
+++ b/src/views/modules/code/components/shipmentRegistration-add.vue
@@ -1,8 +1,8 @@
@@ -480,7 +480,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.samplingPlanList = res.data.list
}
})
@@ -492,7 +491,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.userList = res.data.list
}
})
@@ -504,7 +502,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.productList = res.data.list
}
})
@@ -520,7 +517,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.unitList = res.data.list
}
})
@@ -532,7 +528,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.supplierList = res.data.list
}
})
@@ -544,7 +539,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.factoryList = res.data.list
}
})
diff --git a/src/views/modules/code/components/shipmentRegistrationSearch.vue b/src/views/modules/code/components/shipmentRegistrationSearch.vue
index 19b1dd1..6a26c6d 100644
--- a/src/views/modules/code/components/shipmentRegistrationSearch.vue
+++ b/src/views/modules/code/components/shipmentRegistrationSearch.vue
@@ -1,8 +1,8 @@
@@ -244,7 +244,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.samplingPlanList = res.data.list
}
})
@@ -256,7 +255,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.productList = res.data.list
}
})
@@ -268,7 +266,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.supplierList = res.data.list
}
})
@@ -280,7 +277,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.userList = res.data.list
}
})
@@ -292,7 +288,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.factoryList = res.data.list
}
})
diff --git a/src/views/modules/code/components/startEightDiscipline-add.vue b/src/views/modules/code/components/startEightDiscipline-add.vue
index e9c9f5a..0aab198 100644
--- a/src/views/modules/code/components/startEightDiscipline-add.vue
+++ b/src/views/modules/code/components/startEightDiscipline-add.vue
@@ -1,7 +1,7 @@
@@ -84,9 +84,9 @@
>
@@ -386,13 +386,12 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.teamList = res.data.list;
}
})
.catch(() => {});
this.$http
- .get(this.urlOptions.getDictURL, {
+ .get("code/problemType/page", {
params: {
limit: 999,
page: 1,
@@ -401,7 +400,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.defectList = res.data.list;
}
})
@@ -416,7 +414,6 @@ export default {
})
.then(({ data: res }) => {
if (res.code === 0) {
- console.log(res);
this.dutyList = res.data.list;
}
})
@@ -455,7 +452,6 @@ export default {
type: "success",
duration: 500,
onClose: () => {
- console.log(1111);
this.visible = false;
this.$emit("successSubmit");
},
diff --git a/src/views/modules/code/components/startEightDisciplineTemporaryTreatmentMeasures-add.vue b/src/views/modules/code/components/startEightDisciplineTemporaryTreatmentMeasures-add.vue
index 3c0eb3b..fecca1f 100644
--- a/src/views/modules/code/components/startEightDisciplineTemporaryTreatmentMeasures-add.vue
+++ b/src/views/modules/code/components/startEightDisciplineTemporaryTreatmentMeasures-add.vue
@@ -3,7 +3,7 @@
* @Author: zwq
* @Date: 2023-06-29 14:12:48
* @LastEditors: zwq
- * @LastEditTime: 2023-06-30 09:07:57
+ * @LastEditTime: 2023-07-14 10:20:11
* @Description:
-->
@@ -151,7 +151,6 @@ export default {
formClear() {},
// 表单提交
dataFormSubmit() {
- console.log(this.tableData);
let putData = {
eightDisciplineStatus: 4,
examineStatus: 1,
diff --git a/src/views/modules/code/deliveryInspection.vue b/src/views/modules/code/deliveryInspection.vue
index 60310f6..947e1e0 100644
--- a/src/views/modules/code/deliveryInspection.vue
+++ b/src/views/modules/code/deliveryInspection.vue
@@ -1,8 +1,8 @@
@@ -187,7 +187,6 @@ export default {
this.productOrEditTitle = "";
},
handleCurrentChange(val) {
- console.log(val);
this.productData = val.newVal ? val.newVal: {}
},
setCurrent(index) {
@@ -286,12 +285,10 @@ export default {
})
},
buttonClick(val) {
- console.log(val);
switch (val.btnName) {
case "search":
// this.listQuery.paramCode = val.paramCode;
this.listQuery.key = null;
- console.log(i18n );
this.listQuery.page = 1;
this.getDataList();
break;
@@ -303,7 +300,6 @@ export default {
this.$nextTick(() => {
this.$refs.productOrUpdate.init(this.productData);
});
- console.log(this.productId);
break;
case "add":
this.addOrEditTitle = '新增'
diff --git a/src/views/modules/code/eightDiscipline.vue b/src/views/modules/code/eightDiscipline.vue
index f81679a..ca668ae 100644
--- a/src/views/modules/code/eightDiscipline.vue
+++ b/src/views/modules/code/eightDiscipline.vue
@@ -1,7 +1,7 @@
@@ -10,59 +10,87 @@
- 条件搜索
+ 条件搜索
-
-
+
+
-
+
+
+
+
+
-
+
-
-
+
+
diff --git a/src/views/modules/code/examineAndApprove.vue b/src/views/modules/code/examineAndApprove.vue
index fc00540..8c41fba 100644
--- a/src/views/modules/code/examineAndApprove.vue
+++ b/src/views/modules/code/examineAndApprove.vue
@@ -1,7 +1,7 @@
@@ -167,7 +167,6 @@ export default {
// this.conditionSearchSubmit();
},
handleClick(val) {
- console.log(val);
if (val.type === "delete") {
this.$confirm(`确定对[名称=${val.data.failureTypeName}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
diff --git a/src/views/modules/code/problemType.vue b/src/views/modules/code/problemType.vue
new file mode 100644
index 0000000..add3ff9
--- /dev/null
+++ b/src/views/modules/code/problemType.vue
@@ -0,0 +1,143 @@
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/code/productInspection.vue b/src/views/modules/code/productInspection.vue
index 11f0dc5..5c83d94 100644
--- a/src/views/modules/code/productInspection.vue
+++ b/src/views/modules/code/productInspection.vue
@@ -1,8 +1,8 @@
@@ -186,7 +186,6 @@ export default {
this.productOrEditTitle = "";
},
handleCurrentChange(val) {
- console.log(val);
this.productData = val.newVal ? val.newVal: {}
},
setCurrent(index) {
@@ -285,12 +284,10 @@ export default {
})
},
buttonClick(val) {
- console.log(val);
switch (val.btnName) {
case "search":
// this.listQuery.paramCode = val.paramCode;
this.listQuery.key = null;
- console.log(i18n );
this.listQuery.page = 1;
this.getDataList();
break;
@@ -302,7 +299,6 @@ export default {
this.$nextTick(() => {
this.$refs.productOrUpdate.init(this.productData);
});
- console.log(this.productId);
break;
case "add":
this.addOrEditTitle = '新增'
diff --git a/src/views/modules/code/productRegistration.vue b/src/views/modules/code/productRegistration.vue
index 71d5a8a..707620e 100644
--- a/src/views/modules/code/productRegistration.vue
+++ b/src/views/modules/code/productRegistration.vue
@@ -1,8 +1,8 @@
@@ -203,7 +203,6 @@ export default {
this.productOrEditTitle = "";
},
handleCurrentChange(val) {
- console.log(val);
this.productData = val.newVal ? val.newVal: {}
},
setCurrent(index) {
@@ -302,12 +301,10 @@ export default {
})
},
buttonClick(val) {
- console.log(val);
switch (val.btnName) {
case "search":
// this.listQuery.paramCode = val.paramCode;
this.listQuery.key = null;
- console.log(i18n );
this.listQuery.page = 1;
this.getDataList();
break;
@@ -319,7 +316,6 @@ export default {
this.$nextTick(() => {
this.$refs.productOrUpdate.init(this.productData);
});
- console.log(this.productId);
break;
case "add":
this.addOrEditTitle = '新增'
diff --git a/src/views/modules/code/shipmentRegistration.vue b/src/views/modules/code/shipmentRegistration.vue
index c914c42..b9e80ff 100644
--- a/src/views/modules/code/shipmentRegistration.vue
+++ b/src/views/modules/code/shipmentRegistration.vue
@@ -1,8 +1,8 @@
@@ -203,7 +203,6 @@ export default {
this.productOrEditTitle = "";
},
handleCurrentChange(val) {
- console.log(val);
this.productData = val.newVal ? val.newVal: {}
},
setCurrent(index) {
@@ -302,12 +301,10 @@ export default {
})
},
buttonClick(val) {
- console.log(val);
switch (val.btnName) {
case "search":
// this.listQuery.paramCode = val.paramCode;
this.listQuery.key = null;
- console.log(i18n );
this.listQuery.page = 1;
this.getDataList();
break;
@@ -319,7 +316,6 @@ export default {
this.$nextTick(() => {
this.$refs.productOrUpdate.init(this.productData);
});
- console.log(this.productId);
break;
case "add":
this.addOrEditTitle = '新增'
diff --git a/src/views/modules/code/startEightDiscipline.vue b/src/views/modules/code/startEightDiscipline.vue
index d731667..5ffcb66 100644
--- a/src/views/modules/code/startEightDiscipline.vue
+++ b/src/views/modules/code/startEightDiscipline.vue
@@ -1,7 +1,7 @@
@@ -208,7 +208,6 @@ export default {
// this.conditionSearchSubmit();
},
handleClick(val) {
- console.log(val);
if (val.type === "delete") {
this.$confirm(`确定对[名称=${val.data.failureTypeName}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
diff --git a/src/views/modules/code/startEightDisciplineCreateTeam.vue b/src/views/modules/code/startEightDisciplineCreateTeam.vue
index 5d155ed..350122d 100644
--- a/src/views/modules/code/startEightDisciplineCreateTeam.vue
+++ b/src/views/modules/code/startEightDisciplineCreateTeam.vue
@@ -1,7 +1,7 @@
@@ -189,7 +189,6 @@ export default {
// this.conditionSearchSubmit();
},
handleClick(val) {
- console.log(val);
if (val.type === "delete") {
this.$confirm(`确定对[名称=${val.data.failureTypeName}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
diff --git a/src/views/modules/code/startEightDisciplineDescriptionCorrectiveAction.vue b/src/views/modules/code/startEightDisciplineDescriptionCorrectiveAction.vue
index 4d2b9f7..65036f8 100644
--- a/src/views/modules/code/startEightDisciplineDescriptionCorrectiveAction.vue
+++ b/src/views/modules/code/startEightDisciplineDescriptionCorrectiveAction.vue
@@ -1,7 +1,7 @@
@@ -168,7 +168,6 @@ export default {
// this.conditionSearchSubmit();
},
handleClick(val) {
- console.log(val);
if (val.type === "delete") {
this.$confirm(`确定对[名称=${val.data.failureTypeName}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
diff --git a/src/views/modules/code/startEightDisciplinePreliminaryAnalysis.vue b/src/views/modules/code/startEightDisciplinePreliminaryAnalysis.vue
index 3f4d48d..3d46a23 100644
--- a/src/views/modules/code/startEightDisciplinePreliminaryAnalysis.vue
+++ b/src/views/modules/code/startEightDisciplinePreliminaryAnalysis.vue
@@ -1,7 +1,7 @@
@@ -175,7 +175,6 @@ export default {
// this.conditionSearchSubmit();
},
handleClick(val) {
- console.log(val);
if (val.type === "delete") {
this.$confirm(`确定对[名称=${val.data.failureTypeName}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
diff --git a/src/views/modules/code/startEightDisciplinePreventRecurrence.vue b/src/views/modules/code/startEightDisciplinePreventRecurrence.vue
index 1556074..5c98ee2 100644
--- a/src/views/modules/code/startEightDisciplinePreventRecurrence.vue
+++ b/src/views/modules/code/startEightDisciplinePreventRecurrence.vue
@@ -1,7 +1,7 @@
@@ -168,7 +168,6 @@ export default {
// this.conditionSearchSubmit();
},
handleClick(val) {
- console.log(val);
if (val.type === "delete") {
this.$confirm(`确定对[名称=${val.data.failureTypeName}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
diff --git a/src/views/modules/code/startEightDisciplineTemporaryTreatmentMeasures.vue b/src/views/modules/code/startEightDisciplineTemporaryTreatmentMeasures.vue
index dd8dd2c..5d38931 100644
--- a/src/views/modules/code/startEightDisciplineTemporaryTreatmentMeasures.vue
+++ b/src/views/modules/code/startEightDisciplineTemporaryTreatmentMeasures.vue
@@ -1,7 +1,7 @@
@@ -185,7 +185,6 @@ export default {
// this.conditionSearchSubmit();
},
handleClick(val) {
- console.log(val);
if (val.type === "delete") {
this.$confirm(`确定对[名称=${val.data.failureTypeName}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
diff --git a/src/views/modules/managementCenter/components/line-chart.vue b/src/views/modules/managementCenter/components/line-chart.vue
index 625e678..7475503 100644
--- a/src/views/modules/managementCenter/components/line-chart.vue
+++ b/src/views/modules/managementCenter/components/line-chart.vue
@@ -23,6 +23,10 @@ export default {
return [];
},
},
+ eType: {
+ type: Number,
+ default: 0
+ }
},
data() {
return {
@@ -81,12 +85,11 @@ export default {
this.dataList.forEach((item) => {
const i = option.series.findIndex((c) => c.id === item.productTypeId);
if (i >= 0) {
- option.series[i].data.push(item.productTypeNumber);
+ option.series[i].data.push(this.eType?item.problemTypeNumber:item.productTypeNumber);
} else {
- console.log(item.productTypeName)
const obj = {
- name: item.productTypeName,
- id: item.productTypeId,
+ name: this.eType?item.problemTypeName:item.productTypeName,
+ id: this.eType?item.problemTypeId:item.productTypeId,
type: "bar",
stack: "total",
label: {
@@ -97,7 +100,7 @@ export default {
},
data: [],
};
- obj.data.push(item.productTypeNumber);
+ obj.data.push(this.eType?item.problemTypeNumber:item.productTypeNumber);
option.series.push(obj);
}
})
diff --git a/src/views/modules/managementCenter/components/pie-chart.vue b/src/views/modules/managementCenter/components/pie-chart.vue
index 3c4d783..6e14a7e 100644
--- a/src/views/modules/managementCenter/components/pie-chart.vue
+++ b/src/views/modules/managementCenter/components/pie-chart.vue
@@ -23,6 +23,10 @@ export default {
return [];
},
},
+ eType: {
+ type: Number,
+ default: 0
+ }
},
data() {
return {
@@ -62,8 +66,8 @@ export default {
radius: "50%",
data: this.dataList?.map((item) => {
const obj = {
- value: item.productTypeNumber,
- name: item.productTypeName,
+ value: this.eType?item.problemTypeNumber:item.productTypeNumber,
+ name: this.eType?item.problemTypeName:item.productTypeName,
};
return obj;
}),
diff --git a/src/views/modules/managementCenter/problemTypeDistribution.vue b/src/views/modules/managementCenter/problemTypeDistribution.vue
new file mode 100644
index 0000000..4f55d60
--- /dev/null
+++ b/src/views/modules/managementCenter/problemTypeDistribution.vue
@@ -0,0 +1,194 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file