From a071b637e89fccbfde01bc9e4acbd9c6f7482194 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 26 十月 2023 18:27:33 +0800
Subject: [PATCH] 前端代码打包
---
Source/UBCS-WEB/src/views/docking/task.vue | 191 ++++++++++++++++++++++++++++++++++++-----------
1 files changed, 147 insertions(+), 44 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/docking/task.vue b/Source/UBCS-WEB/src/views/docking/task.vue
index 69c2ae8..916feda 100644
--- a/Source/UBCS-WEB/src/views/docking/task.vue
+++ b/Source/UBCS-WEB/src/views/docking/task.vue
@@ -8,6 +8,7 @@
:permission="permissionList"
ref="crud"
@search-change="searchChange"
+ @cell-dblclick="cellDbClick"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@@ -15,19 +16,23 @@
@refresh-change="refreshChange"
@on-load="onLoad">
<template slot="menuLeft">
- <el-button type="primary"
- size="small"
- plain
- icon="el-icon-refresh-right"
- @click="handleSend">鎵嬪姩鎺ㄩ��
- </el-button>
+ <el-button type="primary"
+ size="small"
+ plain
+ icon="el-icon-refresh-right"
+ v-if="permissionList.sendPush"
+ @click="handleSend" >鎵嬪姩鎺ㄩ��
+ </el-button>
+ <div style="float: right;margin-left: 10px">
+ <vci-docking-search :formInline="formInline" :SearchObject="SearchObject" :page="page" :status="status" @getList="dockingGetList"></vci-docking-search>
+ </div>
</template>
</avue-crud>
</basic-container>
</template>
<script>
-import {getList,sendData} from "@/api/docking/task";
+import {getTaskList,sendData} from "@/api/docking/task";
import {validatenull} from "@/util/validate";
import {mapGetters} from "vuex";
import {remove} from "@/api/code/codeSynonym";
@@ -36,6 +41,74 @@
name: "task",
data(){
return {
+ //model缁戝畾
+ formInline:{
+ type:'',
+ stateTask:'',
+ lastDate:'',
+ Date:'',
+ text:'',
+ taskCut:''
+ },
+ //鍚勪釜绫诲瀷鐘舵��
+ status:{
+ type:'task',
+ stateTaskDataFlag:false,
+ dateFlag:false,
+ lastDateFlag:false,
+ sendTypeFlga:false
+ },
+ //闆嗘垚绫诲瀷姝绘暟鎹�
+ SearchObject:{
+ searchData:[
+ {
+ label:'鏁版嵁缂栫爜',
+ prop: "id",
+ value:0
+ },
+ {
+ label:'鍒嗙被浠e彿',
+ prop: 'classifyId',
+ value:1
+ },
+ {
+ label:'鍒嗙被鍚嶇О',
+ prop: 'classifyName',
+ value:2
+ },
+ {
+ label:'闆嗘垚绯荤粺缂栧彿',
+ prop: 'systemCode',
+ value:3
+ },
+ {
+ label:'闆嗘垚绯荤粺鍚嶇О',
+ prop: 'systemName',
+ value:4
+ },
+ {
+ label:'鎺ㄩ�佺被鍨�',
+ prop: 'sendType',
+ value:5
+ },
+ {
+ label:'浠诲姟鍒涘缓鏃堕棿',
+ prop: 'createTime',
+ value:6
+ },
+ {
+ label:'鏈�鍚庢帹閫佹椂闂�',
+ prop: 'lastModifyTime',
+ value:7
+ },
+ {
+ label:'鏄惁鎺ㄩ�佹垚鍔�',
+ prop: 'sendFlag',
+ value:8
+ }
+ ]
+ },
+ value:'',
loading: false,
query: {},
selectionList: [],
@@ -48,9 +121,12 @@
option: {
height:'auto',
calcHeight: 0,
+ columnBtn:false,
tip: false,
+ addBtn:false,
searchShow: false,
- searchMenuSpan: 6,
+ searchShowBtn:false,
+ // searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
@@ -67,61 +143,53 @@
},
{
label: "鍥惧彿",
- prop: "uniquecode",
+ prop: "uniqueCode",
search: true,
+ hide:true,
sortable:true,
width:150
},
{
- label: '鍒嗙被id',
- prop: 'classifyid',
+ label: '鍒嗙被浠e彿',
+ prop: 'classifyId',
search: true,
sortable:true,
width: 250
},
{
label: '鍒嗙被鍚嶇О',
- prop: 'classifyname',
+ prop: 'classifyName',
search: true,
- sortable:true
+ sortable:true,
+ width: 200
},
{
- label: '绯荤粺缂栧彿',
- prop: 'systemcode',
+ label: '闆嗘垚绯荤粺缂栧彿',
+ prop: 'systemCode',
search: true,
sortable:true,
width: 150
},
{
- label: '绯荤粺鍚嶇О',
- prop: 'systemname',
+ label: '闆嗘垚绯荤粺鍚嶇О',
+ prop: 'systemName',
search: true,
sortable:true,
width: 150
},
{
- label: '鏁版嵁鎯呭喌',
- prop: 'sendtype',
+ label: '鎺ㄩ�佺被鍨�',
+ prop: 'sendType',
sortable:true,
- width: 100
- },
- {
- label: '鏄惁鎺ㄩ�佹垚鍔�',
- prop: 'sendflag',
- search: true,
- sortable:true,
- width: 120,
- html:true,
- align:'center',
- type:'select',
- searchLabelWidth:130,
- dicData: [{key:'true',value:'鏄�'},{key:'false',value:'鍚�'}],
- props: {
- label: "value",
- value: "key"
- },
- formatter : function (row, column) {
- return row.sendflag == 'true' || row.sendflag == '1' ? '<i class="el-icon-check" style="color: limegreen"></i>' : '<i class="el-icon-close" style="color: red"></i>'
+ width: 100,
+ formatter: function (row, column) {
+ if (row.sendType === 'Enabled') {
+ return '鍙戝竷';
+ } else if (row.sendType === 'TakeBack') {
+ return '鍥炴敹';
+ } else if (row.sendType === 'Disabled') {
+ return '鍋滅敤';
+ }
}
},
{
@@ -135,7 +203,26 @@
prop: 'lastModifyTime',
sortable:true,
width: 150
- }
+ },
+ {
+ label: '鏄惁鎺ㄩ�佹垚鍔�',
+ prop: 'sendFlag',
+ search: true,
+ sortable:true,
+ width: 120,
+ html:true,
+ align:'center',
+ type:'select',
+ searchLabelWidth:130,
+ dicData: [{key:'true',value:'鏄�'},{key:'false',value:'鍚�'}],
+ props: {
+ label: "value",
+ value: "key"
+ },
+ formatter : function (row, column) {
+ return row.sendFlag == 'true' || row.sendFlag == '1' ? '<i class="el-icon-check" style="color: limegreen;font-size: 20px;font-weight: 800"></i>' : '<i class="el-icon-close" style="color: red;font-size: 20px;font-weight: 800"></i>'
+ }
+ },
]
}
}
@@ -144,10 +231,7 @@
...mapGetters([ "permission"]),
permissionList() {
return {
- addBtn: false,
- viewBtn: false,
- delBtn: false,
- editBtn: false
+ sendPush: this.vaildData(this.permission.task.task_sendPush, false),
};
},
oids() {
@@ -159,6 +243,25 @@
}
},
methods: {
+ dockingGetList(val){
+ this.data=val.records;
+ this.page.pageSize=val.size;
+ this.page.currentPage=val.current;
+ this.page.total=val.total;
+ },
+ async cellDbClick(row, column, cell, event) {
+ for (const key in row) {
+ if (key === column.property) {
+ this.value = row[key];
+ }
+ }
+ try {
+ await this.$copyText(this.value);
+ this.$message.success('澶嶅埗鎴愬姛');
+ } catch (error) {
+ this.$message.warning('澶嶅埗澶辫触');
+ }
+ },
searchReset() {
this.query = {};
this.onLoad(this.page);
@@ -193,7 +296,7 @@
query['conditionMap["' + key + '"]'] = this.query[key];
}
}
- getList(page.currentPage, page.pageSize, Object.assign(params, this.params, query, this.query)).then(res => {
+ getTaskList(page.currentPage, page.pageSize, Object.assign(params, this.params, query, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
--
Gitblit v1.9.3