From 32d659432b0e6627758faf39380fc569e56b9799 Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期一, 11 八月 2025 16:26:48 +0800
Subject: [PATCH] 1
---
src/views/programmgt/programstatistics.vue | 110 ++++++++++++++++++++++++++++++++++++++++++++++---------
1 files changed, 92 insertions(+), 18 deletions(-)
diff --git a/src/views/programmgt/programstatistics.vue b/src/views/programmgt/programstatistics.vue
index bf57dee..6ca78de 100644
--- a/src/views/programmgt/programstatistics.vue
+++ b/src/views/programmgt/programstatistics.vue
@@ -1,33 +1,107 @@
<!--
* @Date: 2025-06-20 20:48:17
* @LastEditors: gaoshp
- * @LastEditTime: 2025-06-20 22:46:35
+ * @LastEditTime: 2025-06-21 11:09:12
* @FilePath: /mdmweb/src/views/programmgt/programstatistics.vue
-->
<template>
<basic-container>
- <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud" @current-change="currentChange"
- @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
+ <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud"
+ @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
<template #menu-left>
<!-- <el-button type="primary" plain @click="exportWebSite">瀵煎嚭鍥炰紶娑夊瘑缃�</el-button> -->
<!-- <el-button type="primary" plain @click="reassign">鎸傝浇杞﹀簥绋嬪簭搴�</el-button> -->
<el-button type="primary" plain @click="exportExcel">瀵煎嚭鍒癊XCEL</el-button>
</template>
<template #menu="scope">
- <!-- <el-button type="primary" text size="default"
- @click.stop="handleAction(scope.row, scope.index)">澶勭悊鎰忚
- </el-button> -->
+ <el-button type="primary" text size="default" @click.stop="handleAction(scope.row, scope.index)">璇︽儏
+ </el-button>
</template>
</avue-crud>
+ <el-dialog title="璇︽儏" append-to-body v-model="viewBox" width="80%">
+ <avue-crud :option="optionView" :table-loading="loading" :data="dataView"
+ ref="crud"
+ @on-load="onLoadView">
+ </avue-crud>
+ <!-- <template #footer>
+ <span class="dialog-footer">
+ <el-button @click="deployBox = false">鍙� 娑�</el-button>
+ <el-button type="primary" @click="handleDoDeploy" :loading="deployLoading">纭� 瀹�</el-button>
+ </span>
+ </template> -->
+ </el-dialog>
</basic-container>
</template>
<script>
- import { getList } from '@/api/tasks/machinereturnfileop.js';
- export default {
+import { getList } from '@/api/programmgt/programstatistics.js';
+export default {
name: 'Timeouts',
data() {
return {
+ dataView: [],
+ optionView: {
+ addBtn: false,
+ editBtn: false,
+ delBtn: false,
+ printBtn: false,
+ exportBtn: true,
+ filterBtn: false,
+ refreshBtn: false,
+ columnBtn: false,
+ gridBtn: false,
+ // viewBtn: true,
+ // columnBtn: false,
+ tip: false,
+ simplePage: true,
+ // searchShow: true,
+ // searchMenuSpan: 4,
+ // dialogWidth: '60%',
+ tree: true,
+ border: true,
+ index: true,
+ // selection: true,
+ // menuWidth: 200,
+ menu: false,
+ // dialogClickModal: false,
+ column: [
+ {
+ label: '鏈哄簥',
+ prop: '',
+ type: 'tree',
+ // search: true,
+ hide: true
+ },
+ {
+ label: '缁勭粐',
+ prop: '',
+ type: 'tree',
+ // search: true,
+ hide: true
+ },
+ {
+ label: '鏈哄簥缂栧彿',
+ prop: '',
+ },
+ {
+ label: '璇曞垏鏁伴噺',
+ prop: '',
+ },
+ {
+ label: '褰掓。鏁伴噺',
+ prop: '',
+ },
+ {
+ label: '璇曞垏绋嬪簭鍗犳瘮',
+ prop: '',
+ },
+ {
+ label: '褰掓。绋嬪簭鍗犳瘮',
+ prop: '',
+ }
+ ]
+ },
+ viewBox: false,
// Define your data properties here
page: {
pageSize: 10,
@@ -42,7 +116,8 @@
addBtn: false,
editBtn: false,
delBtn: false,
- viewBtn: true,
+ // viewBtn: true,
+ exportBtn: true,
columnBtn: false,
tip: false,
// simplePage: true,
@@ -59,10 +134,6 @@
dialogClickModal: false,
column: [
{
- label: '缂栧彿',
- prop: '',
- },
- {
label: '鍙戦�佹椂闂�',
width: 200,
prop: 'processCreateTime',
@@ -72,7 +143,7 @@
search: true,
searchRange: true,
searchSpan: 8,
- // hide: true,
+ hide: true,
},
{
label: '鏈哄簥',
@@ -81,7 +152,7 @@
search: true,
hide: true,
},
- {
+ {
label: '缁勭粐',
prop: '',
type: 'tree',
@@ -113,6 +184,11 @@
};
},
methods: {
+ handleAction() {
+ this.viewBox = true;
+ // console.log('handleAction', row, index);
+ // this.$refs.crud.handleView(row, index);
+ },
// Define your methods here
currentChange(currentPage) {
this.page.currentPage = currentPage;
@@ -160,6 +236,4 @@
}
</script>
-<style lang="scss" scoped>
-
-</style>
\ No newline at end of file
+<style lang="scss" scoped></style>
\ No newline at end of file
--
Gitblit v1.9.3