Quellcode durchsuchen

feat:app授权

DOVER-GLOBAL\10093976 vor 1 Woche
Ursprung
Commit
b077d53ebe

+ 16 - 0
admin.ui.plus-master/src/views/admin/statement/alarmQuery/index.vue

@@ -72,6 +72,13 @@
               :label="column.label"  
             >
             </el-table-column> 
+            <el-table-column label="操作" fixed="right" header-align="center" align="center" class="right-operation"
+              width="100">
+              <template #default="{ row }">
+                <el-link class="my-el-link mr12 ml12" @click="toPage(row)" type="primary" icon="ele-Tickets"
+                  :underline="false" target="_blank">详情</el-link>
+              </template>
+            </el-table-column>
           </el-table>
           <div class="my-flex my-flex-end" style="margin-top: 20px">
             <el-pagination 
@@ -100,6 +107,7 @@ import { PushDto } from "/@/api/admin/AlarmService/alarmQueryDto";
 import { PageInputAlarmFilterModel } from "/@/api/admin/reportManagement/alarm/alarmDto";
 import { ElMessage, ElTable } from "element-plus";
 import { useRoute } from 'vue-router';
+import router from "/@/router";
 
 const route = useRoute();
 const alarmHistoryID = ref<string | undefined>(route.query.alarmHistoryID as string);
@@ -117,6 +125,10 @@ const state = reactive({
   },
   tableModel: [] as PushDto[],
   dynamicColumns: [
+    { prop: 'name', label: '油机号' },
+    { prop: 'gasStation', label: '油站名称' },
+    { prop: 'alarmType', label: '报警类型' },
+    { prop: 'alarmDevice', label: '报警设备' },
     { prop: 'ruleName', label: '规则名称' },
     { prop: 'pushUser', label: '推送用户' },
     { prop: 'content', label: '推送内容' },
@@ -216,6 +228,10 @@ const onReset = () => {
   init();
 };
 
+const toPage = (row: { fuelId: any; }) => {
+  router.push({ path: `/statement/${row.fuelId}` })
+}
+
 /** 处理推送逻辑 */
 const handlePush = async () => {
   // 获取选中的行

+ 3 - 3
admin.ui.plus-master/src/views/example/application/applicationManage/index.vue

@@ -108,16 +108,16 @@ const onDelete = (row: OauthApply) => {
     .catch(() => {})
 }
 const toRolePage = (row: OauthApply) => {
-  router.push({path:`/platform/application/roleManage/${row.name}`})
+  router.push({path:`/application/roleManage/${row.name}`})
 }
 const toViewPage = (row: OauthApply) => {
-  router.push({path:`/platform/application/viewManage/${row.name}`})
+  router.push({path:`/application/viewManage/${row.name}`})
 }
 const toPermissPage = (row: OauthApply) => {
   router.push({path:`/application/permissionManage/${row.name}`})
 }
 const toEquipmentPage = (row: OauthApply) => {
-  router.push({path:`/platform/application/equipment/${row.name}`})
+  router.push({path:`/application/equipment/${row.name}`})
 }
 </script>