diff --git a/src/views/andonManagement/AndonAlarmLevel/index.vue b/src/views/andonManagement/AndonAlarmLevel/index.vue
index 63c4b7b..6a2e880 100644
--- a/src/views/andonManagement/AndonAlarmLevel/index.vue
+++ b/src/views/andonManagement/AndonAlarmLevel/index.vue
@@ -7,68 +7,76 @@
* @LastEditTime: (2025-12-10)
-->
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+ // 取消按钮
+ cancel() {
+ this.open = false;
+ this.reset();
+ },
+ // 重置数据表单
+ reset() {
+ this.form = {
+ id: undefined,
+ levelName: undefined,
+ lightColor: undefined,
+ handleTimeout: 0,
+ levelTime: 0,
+ applyScenario: undefined,
+ createdBy: undefined,
+ createdTime: undefined,
+ updatedBy: undefined,
+ updatedTime: undefined,
+ };
+ this.resetForm("form");
+ },
+ // 重置查询操作
+ resetQuery() {
+ this.timeRange = [];
+ this.resetForm("queryForm");
+ this.handleQuery();
+ },
+ // 多选框选中数据
+ handleSelectionChange(selection) {
+ this.ids = selection.map((item) => item.id);
+ this.single = selection.length != 1
+ this.multiple = !selection.length;
+ },
+ handleChange(val) {
+ this.form.handleTimeout = val
+ },
+ // 自定义排序
+ sortChange(column) {
+ if (column.prop == null || column.order == null) {
+ this.queryParams.sort = undefined;
+ this.queryParams.sortType = undefined;
+ } else {
+ this.queryParams.sort = column.prop;
+ this.queryParams.sortType = column.order;
+ }
+
+ this.handleQuery();
+ },
+ /** 搜索按钮操作 */
+ handleQuery() {
+ this.queryParams.pageNum = 1;
+ this.getList();
+ },
+ /** 新增按钮操作 */
+ handleAdd() {
+ this.reset();
+ this.open = true;
+ this.title = "添加";
+
+ this.opertype = 1;
+ },
+ /** 删除按钮操作 */
+ handleDelete(row) {
+ const Ids = row.id || this.ids;
+
+ this.$confirm('是否确认删除参数编号为"' + Ids + '"的数据项?')
+ .then(function () {
+ return delAndonAlarmLevel(Ids);
+ })
+ .then(() => {
+ this.handleQuery();
+ this.msgSuccess("删除成功");
+ })
+ .catch(() => { });
+ },
+ /** 修改按钮操作 */
+ handleUpdate(row) {
+ this.reset();
+ const id = row.id || this.ids;
+ getAndonAlarmLevel(id).then((res) => {
+ const { code, data } = res;
+ if (code == 200) {
+ this.open = true;
+ this.title = "修改数据";
+ this.opertype = 2;
+
+ this.form = {
+ ...data,
+ };
+ }
+ });
+ },
+ /** 提交按钮 */
+ submitForm: function () {
+ this.$refs["form"].validate((valid) => {
+ if (valid) {
+ console.log(JSON.stringify(this.form));
+
+ if (this.form.id != undefined && this.opertype === 2) {
+ updateAndonAlarmLevel(this.form)
+ .then((res) => {
+ this.msgSuccess("修改成功");
+ this.open = false;
+ this.getList();
+ })
+ .catch((err) => {
+ //TODO 错误逻辑
+ });
+ } else {
+ addAndonAlarmLevel(this.form)
+ .then((res) => {
+ this.msgSuccess("新增成功");
+ this.open = false;
+ this.getList();
+ })
+ .catch((err) => {
+ //TODO 错误逻辑
+ });
+ }
+ }
+ });
+ },
+ },
+};
+
\ No newline at end of file
diff --git a/src/views/andonManagement/policeRecord/index.vue b/src/views/andonManagement/policeRecord/index.vue
index fc45440..67ebd00 100644
--- a/src/views/andonManagement/policeRecord/index.vue
+++ b/src/views/andonManagement/policeRecord/index.vue
@@ -92,7 +92,8 @@
+ @change="handleAreaChange" placeholder="请选择区域" clearable>
+
@@ -118,6 +119,7 @@
+