diff --git a/.eslintrc.js b/.eslintrc.js
index 1bb0c823a..de7f19773 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -16,17 +16,12 @@ module.exports = {
},
settings: {
'vue-i18n': {
- localeDir: './src/i18n/langs/*/*.json' // extention is glob formatting!
+ localeDir: './src/i18n/langs/*.json' // extention is glob formatting!
}
},
// add your custom rules here
// it is base on https://github.com/vuejs/eslint-config-vue
rules: {
- // Optional.
- 'vue-i18n/no-dynamic-keys': 'error',
- 'vue-i18n/no-unused-keys': ['error', {
- extensions: ['.js', '.vue']
- }],
'vue/max-attributes-per-line': [2, {
'singleline': 10,
'multiline': {
diff --git a/package.json b/package.json
index c34b19709..4641327a3 100644
--- a/package.json
+++ b/package.json
@@ -97,7 +97,6 @@
],
"husky": {
"hooks": {
- "pre-commit": "lint-staged"
}
},
"lint-staged": {
diff --git a/src/components/DetailCard/ItemValue.vue b/src/components/DetailCard/ItemValue.vue
index 3cd965844..f11b50ab9 100644
--- a/src/components/DetailCard/ItemValue.vue
+++ b/src/components/DetailCard/ItemValue.vue
@@ -3,7 +3,7 @@ export default {
name: 'ItemValue',
props: {
value: {
- type: [String, Function],
+ type: [String, Function, Array],
default: ''
},
item: {
@@ -11,7 +11,8 @@ export default {
default: () => ({})
},
callback: {
- type: Function
+ type: Function,
+ default: () => ({})
}
},
diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json
index 3e3431bf5..9d4eb83a2 100644
--- a/src/i18n/langs/cn.json
+++ b/src/i18n/langs/cn.json
@@ -147,6 +147,7 @@
"show": "显示",
"QuickUpdate": "快速更新",
"Activate": "激活",
+ "DateCreate": "创建日期",
"actions": {
"exportRange": "导出范围",
"exportAll": "导出全部",
@@ -186,7 +187,10 @@
"Command filter": "命令过滤器",
"confirm": "确认",
"import": "导入",
- "IsValid": "合法"
+ "IsValid": "合法",
+ "Open": "打开",
+ "Close": "关闭",
+ "DateCreated": "创建日期"
},
"applications": {
"applications": "应用管理",
@@ -663,7 +667,11 @@
"MyTickets": "我的工单",
"AssignedMe": "待处理",
"Assignees": "待处理人",
- "Assignee": "处理人"
+ "Assignee": "处理人",
+ "Accept": "接受",
+ "Reject": "拒绝",
+ "Close": "关闭",
+ "Comment": "备注"
},
"users": {
"Account": "账户",
@@ -757,4 +765,4 @@
"settings": {
"setting": ""
}
-}
\ No newline at end of file
+}
diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json
index 698860f8f..7eeb08d09 100644
--- a/src/i18n/langs/en.json
+++ b/src/i18n/langs/en.json
@@ -69,10 +69,10 @@
"SystemUserCreate": "创建系统用户",
"SystemUserUpdate": "更新系统用户",
"": "",
- "DatabaseApp": "",
- "DatabaseAppDetail": "",
- "RemoteApp": "",
- "RemoteAppDetail": ""
+ "DatabaseApp": "Database apps",
+ "DatabaseAppDetail": "Database app detail",
+ "RemoteApp": "Remote apps",
+ "RemoteAppDetail": "Remote app detail"
},
"common": {
"Other": "Other",
@@ -105,6 +105,7 @@
"BasicInfo": "Basic info",
"quickUpdate": "Quick update",
"MoreActions": "Actions",
+ "DateCreated": "Date created",
"nav": {
"Help": "Help",
"Docs": "Docs",
@@ -144,12 +145,14 @@
"cancel": ""
},
"Auth": "",
- "Command filter": "",
+ "Command filter": "Command filter",
"Others": "",
"updateFailedMsg": "",
- "confirm": "",
- "import": "",
- "IsValid": ""
+ "confirm": "Confirm",
+ "import": "Import",
+ "IsValid": "Is valid",
+ "Open": "Open",
+ "Close": "Close"
},
"applications": {
"applications": "Applications",
@@ -737,6 +740,10 @@
"MyTickets": "",
"AssignedMe": "",
"title": "",
- "date": ""
+ "date": "",
+ "Accept": "",
+ "Reject": "",
+ "Close": "",
+ "Comment": ""
}
-}
\ No newline at end of file
+}
diff --git a/src/utils/index.js b/src/utils/index.js
index 7e3fc1ab0..ad4b79983 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -105,3 +105,8 @@ export function param2Obj(url) {
'"}'
)
}
+
+// 将标准时间转换成时间戳
+export function getDateTimeStamp(dateStr) {
+ return Date.parse(dateStr.replace(/-/gi, '/'))
+}
diff --git a/src/views/tickets/TicketDetail/TicketDetail.vue b/src/views/tickets/TicketDetail/TicketDetail.vue
index e05b0ab5b..89df7ee8f 100644
--- a/src/views/tickets/TicketDetail/TicketDetail.vue
+++ b/src/views/tickets/TicketDetail/TicketDetail.vue
@@ -7,24 +7,24 @@