值班中心
@@ -106,6 +108,11 @@ import ModifyDutyInformationTable from "./components/ModifyDutyInformationTable.
import ButtonGradient from '@screen/components/Buttons/ButtonGradient.vue';
import InputSearch from '@screen/components/InputSearch/index.vue';
+import { searchFormList } from "./data";
+import request from "@/utils/request";
+import { setLoading } from "@screen/utils/index.js"
+import { delay } from "@screen/utils/common";
+
export default {
name: 'DutyOfficer',
components: {
@@ -115,6 +122,7 @@ export default {
ButtonGradient,
InputSearch
},
+ inject: ['getPagination', 'setTotal'],
data() {
return {
columns: [
@@ -139,24 +147,54 @@ export default {
width: "510px"
},
],
- data: Array.from({ length: 15 }).map((_, index) => ({
- "id": index,
- "值班日期": "2023-12-21",
- "驻点": "驻点",
- "白班": "甘易玫",
- "夜班": "甘易玫",
- })),
+ // data: Array.from({ length: 15 }).map((_, index) => ({
+ // "id": index,
+ // "值班日期": "2023-12-21",
+ // "驻点": "驻点",
+ // "白班": "甘易玫",
+ // "夜班": "甘易玫",
+ // })),
+ data: [],
operateRecordVisible: false,
modifyDutyInformationTableVisible: false
}
},
+ created() {
+ this.getData();
+ },
methods: {
handleOperateRecord(bool) {
this.operateRecordVisible = bool;
},
handleModifyDutyInformationTable(bool) {
this.modifyDutyInformationTableVisible = bool;
+ },
+ handleSearch(data) {
+ this.searchData = data;
+ this.getData();
+ },
+ async getData() {
+ const closeLoading = setLoading();
+
+ await delay(150);
+
+ closeLoading();
+
+ // request({
+ // url: `/business/employees/list`,
+ // method: "get",
+ // params: {
+ // ...this.searchData,
+ // ...this.getPagination()
+ // }
+ // }).then(result => {
+ // if (result.code != 200) return;
+ // this.data = result.rows;
+ // this.total = result.total;
+ // }).finally(() => {
+ // closeLoading();
+ // })
}
}
}
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/data.js
new file mode 100644
index 00000000..896354e5
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/data.js
@@ -0,0 +1,27 @@
+// import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js";
+
+export const searchFormList = [
+ {
+ label: "机构类型:",
+ key: "organizationType",
+ type: "select",
+ options: {
+ clearable: true,
+ options: [
+ {
+ key: 1,
+ label: "运营中心",
+ },
+ {
+ key: 2,
+ label: "驻点",
+ },
+ ],
+ },
+ },
+ {
+ label: "机构名称:",
+ key: "organizationName",
+ type: "input",
+ },
+];
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/index.vue
index 20720dc2..c572b8e7 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/emergencyAgencies/index.vue
@@ -14,7 +14,7 @@
导出
-
+
@@ -22,20 +22,25 @@
-