| | |
| | | if (recoveryButton) recoveryButton.hidden = true; |
| | | |
| | | //æ©å±é¡µé¢åå§åæä½ |
| | | this.columns.push({ |
| | | field: 'æä½', |
| | | title: 'æä½', |
| | | width: 70, |
| | | fixed: 'right', |
| | | align: 'center', |
| | | formatter: (row) => { |
| | | return ( |
| | | '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">æ¥ç</i>' |
| | | ); |
| | | }, |
| | | click: (row) => { |
| | | this.$refs.gridBody.open(row); |
| | | } |
| | | }); |
| | | // this.columns.push({ |
| | | // field: 'æä½', |
| | | // title: 'æä½', |
| | | // width: 70, |
| | | // fixed: 'right', |
| | | // align: 'center', |
| | | // formatter: (row) => { |
| | | // return ( |
| | | // '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">æ¥ç</i>' |
| | | // ); |
| | | // }, |
| | | // click: (row) => { |
| | | // this.$refs.gridBody.open(row); |
| | | // } |
| | | // }); |
| | | }, |
| | | onInited() { |
| | | //æ¡æ¶åå§åé
ç½®å |
| | |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'Id', |
| | | key: 'id', |
| | | footer: "Foots", |
| | | cnName: 'ç³»ç»æ¥å¿', |
| | | name: 'Sys_Log', |
| | | url: "/Sys_Log/", |
| | | sortName: "Id" |
| | | sortName: "id" |
| | | }); |
| | | const editFormFields = ref({}); |
| | | const editFormOptions = ref([]); |
| | | const searchFormFields = ref({"BeginDate":"","Url":"","LogType":[],"Success":[],"UserIP":"","ServiceIP":"","Role_Id":""}); |
| | | const searchFormOptions = ref([[{"title":"请æ±å°å","field":"Url","type":"text"},{"title":"ç¨æ·IP","field":"UserIP","type":"text"},{"title":"æå¡å¨IP","field":"ServiceIP","type":"text"}],[{"title":"å¼å§æ¶é´","field":"BeginDate","type":"datetime"},{"dataKey":"restatus","data":[],"title":"ååºç¶æ","field":"Success","type":"selectList"},{"dataKey":"roles","data":[],"title":"è§è²ID","field":"Role_Id","type":"select"}],[{"dataKey":"log","data":[],"title":"æ¥å¿ç±»å","field":"LogType","colSize":12,"type":"checkbox"}]]); |
| | | const columns = ref([{field:'Id',title:'Id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'}, |
| | | {field:'BeginDate',title:'å¼å§æ¶é´',type:'datetime',width:140,align:'left',sortable:true}, |
| | | {field:'UserName',title:'ç¨æ·åç§°',type:'string',width:90,align:'left'}, |
| | | {field:'Url',title:'请æ±å°å',type:'string',width:110,align:'left'}, |
| | | {field:'LogType',title:'æ¥å¿ç±»å',type:'string',bind:{ key:'log',data:[]},width:80,align:'left'}, |
| | | {field:'Success',title:'ååºç¶æ',type:'int',bind:{ key:'restatus',data:[]},width:80,align:'left'}, |
| | | {field:'ElapsedTime',title:'æ¶é¿',type:'int',width:60,align:'left'}, |
| | | {field:'RequestParameter',title:'请æ±åæ°',type:'string',width:70,align:'left'}, |
| | | {field:'ResponseParameter',title:'ååºåæ°',type:'string',width:70,align:'left'}, |
| | | {field:'ExceptionInfo',title:'å¼å¸¸ä¿¡æ¯',type:'string',width:70,align:'left'}, |
| | | {field:'UserIP',title:'ç¨æ·IP',type:'string',width:90,align:'left'}, |
| | | {field:'ServiceIP',title:'æå¡å¨IP',type:'string',width:90,hidden:true,align:'left'}, |
| | | {field:'BrowserType',title:'æµè§å¨ç±»å',type:'string',width:90,align:'left'}, |
| | | {field:'User_Id',title:'ç¨æ·ID',type:'int',width:90,hidden:true,align:'left'}, |
| | | {field:'Role_Id',title:'è§è²ID',type:'int',bind:{ key:'roles',data:[]},width:90,hidden:true,align:'left'}, |
| | | {field:'EndDate',title:'ç»ææ¶é´',type:'datetime',width:150,hidden:true,align:'left',sortable:true}]); |
| | | const searchFormFields = ref({"beginDate":"","url":"","logType":[],"success":[],"userIP":"","serviceIP":"","role_Id":""}); |
| | | const searchFormOptions = ref([[{"title":"请æ±å°å","field":"url","type":"text"},{"title":"ç¨æ·IP","field":"userIP","type":"text"},{"title":"æå¡å¨IP","field":"serviceIP","type":"text"}],[{"title":"å¼å§æ¶é´","field":"beginDate","type":"datetime"},{"dataKey":"restatus","data":[],"title":"ååºç¶æ","field":"success","type":"selectList"},{"dataKey":"roles","data":[],"title":"è§è²ID","field":"role_Id","type":"select"}],[{"dataKey":"log","data":[],"title":"æ¥å¿ç±»å","field":"logType","colSize":12,"type":"checkbox"}]]); |
| | | const columns = ref([{field:'id',title:'Id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'}, |
| | | {field:'beginDate',title:'å¼å§æ¶é´',type:'datetime',width:140,align:'left',sortable:true}, |
| | | {field:'userName',title:'ç¨æ·åç§°',type:'string',width:90,align:'left'}, |
| | | {field:'url',title:'请æ±å°å',type:'string',width:110,align:'left'}, |
| | | {field:'logType',title:'æ¥å¿ç±»å',type:'string',bind:{ key:'log',data:[]},width:80,align:'left'}, |
| | | {field:'success',title:'ååºç¶æ',type:'int',bind:{ key:'restatus',data:[]},width:80,align:'left'}, |
| | | {field:'elapsedTime',title:'æ¶é¿',type:'int',width:60,align:'left'}, |
| | | {field:'requestParameter',title:'请æ±åæ°',type:'string',width:70,align:'left'}, |
| | | {field:'responseParameter',title:'ååºåæ°',type:'string',width:70,align:'left'}, |
| | | {field:'exceptionInfo',title:'å¼å¸¸ä¿¡æ¯',type:'string',width:70,align:'left'}, |
| | | {field:'userIP',title:'ç¨æ·IP',type:'string',width:90,align:'left'}, |
| | | {field:'serviceIP',title:'æå¡å¨IP',type:'string',width:90,hidden:true,align:'left'}, |
| | | {field:'browserType',title:'æµè§å¨ç±»å',type:'string',width:90,align:'left'}, |
| | | {field:'user_Id',title:'ç¨æ·ID',type:'int',width:90,hidden:true,align:'left'}, |
| | | {field:'role_Id',title:'è§è²ID',type:'int',bind:{ key:'roles',data:[]},width:90,hidden:true,align:'left'}, |
| | | {field:'endDate',title:'ç»ææ¶é´',type:'datetime',width:150,hidden:true,align:'left',sortable:true}]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | columns: [], |
| | |
| | | nextAddress: "", |
| | | creater: "", |
| | | createDate: "", |
| | | wmsTaskNum:"" |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "ä»»å¡å·", field: "taskNum", type: "int" }, |
| | | { |
| | | field: "wmsTaskNum", |
| | | title: "WMSä»»å¡å·", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { title: "æçç¼å·", field: "palletCode", type: "like" }, |
| | | { |
| | | title: "ä»»å¡ç±»å", |
| | |
| | | { title: "ä¸ä¸ä½ç½®", field: "nextAddress", type: "like" }, |
| | | ], |
| | | [ |
| | | { title: "å··éå·", field: "roadway", type: "like" }, |
| | | // { title: "å··éå·", field: "roadway", type: "like" }, |
| | | { title: "å建人", field: "creater", type: "like" }, |
| | | { title: "å建æ¶é´", field: "createDate", type: "datetime" }, |
| | | ], |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "wmsTaskNum", |
| | | title: "WMSä»»å¡å·", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "palletCode", |
| | | title: "æçç¼å·", |
| | | type: "string", |
| | | width: 200, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "roadway", |
| | | title: "å··éå·", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "roadway", |
| | | // title: "å··éå·", |
| | | // type: "string", |
| | | // width: 90, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "taskType", |
| | | title: "ä»»å¡ç±»å", |
| | |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "modifier", |
| | | title: "ä¿®æ¹äºº", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "modifier", |
| | | // title: "ä¿®æ¹äºº", |
| | | // type: "string", |
| | | // width: 100, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "modifyDate", |
| | | title: "ä¿®æ¹æ¶é´", |
| | |
| | | Creater = "system", |
| | | tracklog_type = content.Status ? "æå" : "失败", |
| | | tracklog_code = content.Status ? logCode : ("4" + logCode), |
| | | tracklog_des = description, |
| | | tracklog_des = JsonConvert.SerializeObject(content), |
| | | tracklog_message = content.Status ? "" : content.Message, |
| | | tracklog_operator = "system"/*UserContext.Current.UserName*/ |
| | | }; |
| | |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.DB.Models; |
| | | using SqlSugar; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Math; |
| | | |
| | | namespace WIDESEAWCS_Model.Models |
| | | { |
| | |
| | | /// <summary> |
| | | ///ä¸»é® |
| | | /// </summary> |
| | | [Key] |
| | | [Display(Name = "主é®")] |
| | | [Column(TypeName = "int")] |
| | | [Required(AllowEmptyStrings = false)] |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int tracklog_id { get; set; } |
| | | |
| | | /// <summary> |
| | | ///æä½åç§° |
| | | /// </summary> |
| | | [Display(Name = "æä½åç§°")] |
| | | [MaxLength(100)] |
| | | [Column(TypeName = "nvarchar(100)")] |
| | | [Required(AllowEmptyStrings = false)] |
| | | [SugarColumn(IsNullable = false, Length = 100, ColumnDescription = "æä½åç§°")] |
| | | public string tracklog_name { get; set; } |
| | | |
| | | /// <summary> |
| | | ///åæ°ä¼ éå
容 |
| | | /// </summary> |
| | | [Display(Name = "åæ°ä¼ éå
容")] |
| | | [Column(TypeName = "nvarchar(max)")] |
| | | [SugarColumn(IsNullable = false, ColumnDataType = "nvarchar(max)", ColumnDescription = "åæ°ä¼ éå
容")] |
| | | public string tracklog_content { get; set; } |
| | | |
| | | /// <summary> |
| | | ///ç±»å |
| | | /// </summary> |
| | | [Display(Name = "ç±»å")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName = "nvarchar(20)")] |
| | | [Required(AllowEmptyStrings = false)] |
| | | [SugarColumn(IsNullable = false, ColumnDataType = "nvarchar(20)", ColumnDescription = "ç±»å")] |
| | | public string tracklog_type { get; set; } |
| | | |
| | | /// <summary> |
| | | ///æè¿° |
| | | /// </summary> |
| | | [Display(Name = "æè¿°")] |
| | | [Column(TypeName = "nvarchar(max)")] |
| | | [Required(AllowEmptyStrings = false)] |
| | | [SugarColumn(IsNullable = false, ColumnDataType = "nvarchar(max)", ColumnDescription = "æè¿°")] |
| | | public string tracklog_des { get; set; } |
| | | |
| | | /// <summary> |
| | | ///æ¥å¿ä»£ç |
| | | /// </summary> |
| | | [Display(Name = "æ¥å¿ä»£ç ")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName = "nvarchar(20)")] |
| | | [Required(AllowEmptyStrings = false)] |
| | | [SugarColumn(IsNullable = false, ColumnDataType = "nvarchar(20)", ColumnDescription = "æ¥å¿ä»£ç ")] |
| | | public string tracklog_code { get; set; } |
| | | |
| | | /// <summary> |
| | | ///éè¯¯ä¿¡æ¯ |
| | | /// </summary> |
| | | [Display(Name = "é误信æ¯")] |
| | | [Column(TypeName = "nvarchar(max)")] |
| | | [SugarColumn(IsNullable = true, ColumnDataType = "nvarchar(max)", ColumnDescription = "é误信æ¯")] |
| | | public string tracklog_message { get; set; } |
| | | |
| | | /// <summary> |
| | | ///æä½è
|
| | | /// </summary> |
| | | [Display(Name = "æä½è
")] |
| | | [MaxLength(40)] |
| | | [Column(TypeName = "nvarchar(40)")] |
| | | [Required(AllowEmptyStrings = false)] |
| | | [SugarColumn(IsNullable = false, ColumnDataType = "nvarchar(40)", ColumnDescription = "æä½è
")] |
| | | public string tracklog_operator { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å建æ¶é´" |
| | | /// å建æ¶é´ |
| | | /// </summary> |
| | | [Display(Name = "å建æ¶é´")] |
| | | [Column(TypeName = "datetime")] |
| | | [Required(AllowEmptyStrings = false)] |
| | | [SugarColumn(IsNullable = false, ColumnDataType = "datetime", ColumnDescription = "å建æ¶é´")] |
| | | public DateTime tracklog_createtime { get; set; } |
| | | } |
| | | } |
| | |
| | | foreach (var task in item.tasks) |
| | | { |
| | | #region 夿 |
| | | content = TaskHelpMethods.isOkTaskInfo(task, true, true); |
| | | if (!content.Status) |
| | | var contentStatus = TaskHelpMethods.isOkTaskInfo(task, true, true); |
| | | if (!contentStatus.Status) |
| | | { |
| | | objects.Add(new |
| | | { |
| | |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | |
| | | |
| | | public override WebResponseContent DeleteData(object[] keys) |
| | | { |
| | | //æ¥æ¾ææä»»å¡ä¸å
å«è¿ä¸ªidç |
| | | var take= BaseDal.QueryData(x => keys.Contains(x.TaskId)); |
| | | //æå°±å°è¿ä¸ªä»»å¡ç§»å
¥åå²ä¸ |
| | | BaseDal.DeleteAndMoveIntoHty(take, OperateTypeEnum.èªå¨å®æ); |
| | | return base.DeleteData(keys); |
| | | } |
| | | |
| | | } |
| | | } |