From cb442efd16356c29f4edb496a3f30b7a91906efa Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期二, 17 六月 2025 16:38:30 +0800
Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/mdmweb
---
src/views/flowmgr/timeoutQuery.vue | 168 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 168 insertions(+), 0 deletions(-)
diff --git a/src/views/flowmgr/timeoutQuery.vue b/src/views/flowmgr/timeoutQuery.vue
new file mode 100644
index 0000000..4ecd7cf
--- /dev/null
+++ b/src/views/flowmgr/timeoutQuery.vue
@@ -0,0 +1,168 @@
+<template>
+ <basic-container>
+ <avue-form v-model="searchForm" :option="serachOption" @submit="searchSubmit"></avue-form>
+ <avue-crud
+ :addBtn="false"
+ :option="option"
+ :table-loading="loading"
+ :data="data"
+ ref="crud"
+ v-model:search="search"
+ v-model:page="mypage"
+ @search-change="searchChange"
+ @search-reset="searchReset"
+ @current-change="currentChange"
+ @size-change="sizeChange"
+ @refresh-change="refreshChange"
+ @on-load="onLoad"
+ >
+ <template #menu-left>
+ <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleEdit">瀵煎嚭</el-button>
+ </template>
+ </avue-crud>
+ </basic-container>
+</template>
+
+<script>
+export default {
+ data() {
+ return {
+ searchForm: {},
+ serachOption: {
+ labelWidth: 90,
+ menuSpan: 6,
+ submitText: "鏌ヨ",
+ emptyBtn: false,
+ column: [
+ {
+ label: "浠诲姟鏃堕棿",
+ prop: "daterange",
+ type: "daterange",
+ format: 'YYYY-MM-DD',
+ valueFormat: 'YYYY-MM-DD',
+ startPlaceholder: '鏃ユ湡寮�濮嬭寖鍥磋嚜瀹氫箟',
+ endPlaceholder: '鏃ユ湡缁撴潫鑼冨洿鑷畾涔�',
+ span: 6
+ },
+ {
+ label: '鎵ц浜哄憳',
+ prop: 'assigneeName',
+ span: 6
+ },
+ {
+ label: '鍏抽敭瀛�',
+ prop: 'keyword',
+ span: 6
+ }
+ ]
+ },
+ search: {
+ keyword: "",
+ machineGroupCode: ""
+ },
+ loading: true,
+ mypage: {
+ size: 10,
+ current: 1,
+ total: 0,
+ },
+ option: {
+ addBtn: false,
+ editBtn: false,
+ delBtn: false,
+ labelWidth: 120,
+ emptyBtn: false,
+ searchSpan: 8,
+ menu: false,
+ column: [
+ {
+ label: '鎵ц浜哄憳',
+ prop: 'assigneeName',
+ },
+ {
+ label: '浠诲姟鍚嶇О',
+ prop: 'taskName',
+ },
+ {
+ label: '浠诲姟鑺傜偣',
+ prop: 'assignee',
+ },
+ {
+ label: '浠诲姟鍒拌揪鏃堕棿',
+ prop: 'createTime',
+ },
+ {
+ label: '瑕佹眰瀹屾垚鏃堕棿',
+ prop: 'claimTime',
+ },
+ {
+ label: '鍏抽敭瀛�',
+ prop: 'keyword',
+ hide: true
+ }
+ ],
+ },
+ data: [],
+ };
+ },
+ methods: {
+ searchSubmit(params,done) {
+ this.onLoad(params);
+ done();
+ },
+ handleEdit(row,index) {
+
+ },
+ searchReset() {
+ //this.onLoad(this.mypage);
+ },
+ searchChange(params, done) {
+ this.mypage.current = 1;
+ this.onLoad();
+ done();
+ },
+ currentChange(current) {
+ this.mypage.current = current;
+ },
+ sizeChange(size) {
+ this.mypage.size = size;
+ },
+ refreshChange() {
+
+ },
+ onLoad(params) {
+ if(this.searchForm.daterange == undefined) {
+ this.searchForm.createTimeBegin = "";
+ this.searchForm.createTimeEnd = "";
+ }else if(this.searchForm.daterange.length == 1) {
+ this.searchForm.createTimeBegin = this.searchForm.daterange[0];
+ }else if(this.searchForm.daterange.length == 2) {
+ this.searchForm.createTimeBegin = this.searchForm.daterange[0];
+ this.searchForm.createTimeEnd = this.searchForm.daterange[1];
+ }
+ console.log(this.searchForm,111)
+ this.loading = true;
+ axios({
+ url: '/blade-mdm/flow/mgr/overtime-list',
+ method: 'get',
+ params: this.searchForm,
+ }).then(
+ res => {
+ const data = res.data.data;
+ this.mypage.total = data.total;
+ this.data = data.records;
+ this.loading = false;
+ },
+ error => {
+
+ }
+ );
+
+ }
+ },
+};
+</script>
+
+<style lang="scss">
+
+</style>
\ No newline at end of file
--
Gitblit v1.9.3