+
-
+
查询
@@ -139,31 +152,71 @@ export default {
type="primary"
@click="handleAdd"
icon="el-icon-plus"
- style="width: 100px; display: flex; justify-content: center; align-items: center;">
+ style="
+ width: 100px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ "
+ >
新增
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
修改
删除
@@ -172,42 +225,86 @@ export default {
-
+
-
-
+
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -215,9 +312,7 @@ export default {
取消
-
- 提交
-
+ 提交
diff --git a/src/pages/demo/diceke/ExcavationQuantityReport.vue b/src/pages/demo/diceke/ExcavationQuantityReport.vue
new file mode 100644
index 0000000..bbdcd8b
--- /dev/null
+++ b/src/pages/demo/diceke/ExcavationQuantityReport.vue
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/demo/diceke/LossDepletionReport.vue b/src/pages/demo/diceke/LossDepletionReport.vue
new file mode 100644
index 0000000..c590af1
--- /dev/null
+++ b/src/pages/demo/diceke/LossDepletionReport.vue
@@ -0,0 +1,197 @@
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/demo/diceke/PlateArea.vue b/src/pages/demo/diceke/PlateArea.vue
index 0258861..a7c8bd9 100644
--- a/src/pages/demo/diceke/PlateArea.vue
+++ b/src/pages/demo/diceke/PlateArea.vue
@@ -4,119 +4,129 @@ import {
deletePlateArea,
findAllPlateArea,
findPlateAreaById,
- updatePlateAreaApi
-} from "@@/apis/tables/diceke/plateArea.js"
+ updatePlateAreaApi,
+} from "@@/apis/tables/diceke/plateArea.js";
export default {
data() {
return {
plateAreaQuerry: null, // 电铲平台数据
updatePlateAreaform: false,
- plateAreaform: null
- }
+ plateAreaform: null,
+ };
},
created() {
// 页面渲染之前执行,一般调用methods定义的方法
- this.getList()
+ this.getList();
},
methods: {
getList() {
findAllPlateArea().then((Response) => {
- console.log(Response)
- this.plateAreaQuerry = Response.data.plateArea
- })
+ console.log(Response);
+ this.plateAreaQuerry = Response.data.plateArea;
+ });
},
// 删除平盘
removeDataById(id) {
- ElMessageBox.confirm(
- "此操作将永久删除平盘记录,是否继续?",
- "提示",
- {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- }
- )
+ ElMessageBox.confirm("此操作将永久删除平盘记录,是否继续?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
.then(() => {
deletePlateArea(id).then(() => {
// 删除成功
ElMessage({
type: "success",
- message: "删除成功!"
- })
+ message: "删除成功!",
+ });
// 重新加载列表
- this.getList()
- })
+ this.getList();
+ });
})
.catch(() => {
ElMessage({
type: "info",
- message: "已取消删除"
- })
- })
+ message: "已取消删除",
+ });
+ });
},
handleAdd() {
- this.isEdit = false // 设置为新增操作
- this.plateAreaform = { plateRange: '' } // 初始化为空数据
- this.updatePlateAreaform = true // 显示弹窗
+ this.isEdit = false; // 设置为新增操作
+ this.plateAreaform = { plateRange: "" }; // 初始化为空数据
+ this.updatePlateAreaform = true; // 显示弹窗
},
/** 修改平盘信息 */
handleEdit(id) {
- this.isEdit = true
- findPlateAreaById(id).then((Response) => {
- this.plateAreaform = Response.data.dicekePlatearea
- this.updatePlateAreaform = true
- }).catch(() => {
- ElMessage.error("查询失败,请稍后重试")
- })
+ this.isEdit = true;
+ findPlateAreaById(id)
+ .then((Response) => {
+ this.plateAreaform = Response.data.dicekePlatearea;
+ this.updatePlateAreaform = true;
+ })
+ .catch(() => {
+ ElMessage.error("查询失败,请稍后重试");
+ });
},
updatePlateArea() {
- if (this.isEdit){
- updatePlateAreaApi(this.plateAreaform).then(() => {
- ElMessage({
- type: "success",
- message: "修改成功!"
+ if (this.isEdit) {
+ updatePlateAreaApi(this.plateAreaform)
+ .then(() => {
+ ElMessage({
+ type: "success",
+ message: "修改成功!",
+ });
+ this.updatePlateAreaform = false;
+ this.getList();
})
- this.updatePlateAreaform = false
- this.getList()
- }).catch(() => {
- ElMessage.error("修改失败,请稍后重试")
- })
- }else {
- addPlateAreaApi(this.plateAreaform).then(() => {
- ElMessage({
- type: "success",
- message: "新增成功!"
+ .catch(() => {
+ ElMessage.error("修改失败,请稍后重试");
+ });
+ } else {
+ addPlateAreaApi(this.plateAreaform)
+ .then(() => {
+ ElMessage({
+ type: "success",
+ message: "新增成功!",
+ });
+ this.updatePlateAreaform = false;
+ this.getList();
})
- this.updatePlateAreaform = false
- this.getList()
- }).catch(() => {
- ElMessage.error("新增失败,请稍后重试")
- })
+ .catch(() => {
+ ElMessage.error("新增失败,请稍后重试");
+ });
}
-
- }
- }
-}
+ },
+ },
+};
-
-
新增平盘
+
+ 新增平盘
-
+
-
-
+
+
修改
删除
@@ -133,12 +143,8 @@ export default {
diff --git a/src/pages/demo/diceke/Precipitation.vue b/src/pages/demo/diceke/Precipitation.vue
index c940e97..b05945d 100644
--- a/src/pages/demo/diceke/Precipitation.vue
+++ b/src/pages/demo/diceke/Precipitation.vue
@@ -4,128 +4,150 @@ import {
deletePrecipitation,
findAllPrecipitation,
findPrecipitationById,
- updatePrecipitationApi
-} from "@@/apis/tables/diceke/Precipitation.ts"
+ updatePrecipitationApi,
+} from "@@/apis/tables/diceke/Precipitation.ts";
export default {
data() {
return {
precipitationQuerry: null, // 电铲平台数据
updateprecipitationform: false,
- precipitationform: null
- }
+ precipitationform: null,
+ };
},
created() {
// 页面渲染之前执行,一般调用methods定义的方法
- this.getList()
+ this.getList();
},
methods: {
getList() {
findAllPrecipitation().then((Response) => {
- console.log(Response)
- this.precipitationQuerry = Response.data.precipitation
- })
+ console.log(Response);
+ this.precipitationQuerry = Response.data.precipitation;
+ });
},
removeDataById(id) {
- ElMessageBox.confirm(
- "此操作将永久删除降水量记录,是否继续?",
- "提示",
- {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- }
- )
+ ElMessageBox.confirm("此操作将永久删除降水量记录,是否继续?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
.then(() => {
deletePrecipitation(id).then(() => {
// 删除成功
ElMessage({
type: "success",
- message: "删除成功!"
- })
+ message: "删除成功!",
+ });
// 重新加载列表
- this.getList()
- })
+ this.getList();
+ });
})
.catch(() => {
ElMessage({
type: "info",
- message: "已取消删除"
- })
- })
+ message: "已取消删除",
+ });
+ });
},
handleAdd() {
- this.isEdit = false // 设置为新增操作
- this.precipitationform = { plateRange: "" } // 初始化为空数据
- this.updateprecipitationform = true // 显示弹窗
+ this.isEdit = false; // 设置为新增操作
+ this.precipitationform = { plateRange: "" }; // 初始化为空数据
+ this.updateprecipitationform = true; // 显示弹窗
},
handleEdit(id) {
- this.isEdit = true
- findPrecipitationById(id).then((Response) => {
- this.precipitationform = Response.data.precipitationById
- console.log(this.precipitationform)
- this.updateprecipitationform = true
- }).catch(() => {
- ElMessage.error("查询失败,请稍后重试")
- })
+ this.isEdit = true;
+ findPrecipitationById(id)
+ .then((Response) => {
+ this.precipitationform = Response.data.precipitationById;
+ console.log(this.precipitationform);
+ this.updateprecipitationform = true;
+ })
+ .catch(() => {
+ ElMessage.error("查询失败,请稍后重试");
+ });
},
formatMonth(dateTime) {
- if (!dateTime) return "-"
- return dateTime.slice(0, 7) // 直接截取 "yyyy-MM"
+ if (!dateTime) return "-";
+ return dateTime.slice(0, 7); // 直接截取 "yyyy-MM"
// 或用 dayjs(需安装):
// return dayjs(dateTime).format('YYYY-MM');
},
updatePrecipitation() {
if (this.isEdit) {
- updatePrecipitationApi(this.precipitationform).then(() => {
- ElMessage({
- type: "success",
- message: "修改成功!"
+ updatePrecipitationApi(this.precipitationform)
+ .then(() => {
+ ElMessage({
+ type: "success",
+ message: "修改成功!",
+ });
+ this.updateprecipitationform = false;
+ this.getList();
})
- this.updateprecipitationform = false
- this.getList()
- }).catch(() => {
- ElMessage.error("修改失败,请稍后重试")
- })
+ .catch(() => {
+ ElMessage.error("修改失败,请稍后重试");
+ });
} else {
- addPrecipitationApi(this.precipitationform).then(() => {
- ElMessage({
- type: "success",
- message: "新增成功!"
+ addPrecipitationApi(this.precipitationform)
+ .then(() => {
+ ElMessage({
+ type: "success",
+ message: "新增成功!",
+ });
+ this.updateprecipitationform = false;
+ this.getList();
})
- this.updateprecipitationform = false
- this.getList()
- }).catch(() => {
- ElMessage.error("新增失败,请稍后重试")
- })
+ .catch(() => {
+ ElMessage.error("新增失败,请稍后重试");
+ });
}
- }
- }
-}
+ },
+ },
+};
-
+
新增降水量
-
+
-
-
-
-
+
+
+
+
-
-
+
+
修改
删除
@@ -134,7 +156,11 @@ export default {
-
+
@@ -152,9 +178,7 @@ export default {