Compare commits

..

10 Commits

Author SHA1 Message Date
fit2bot
1a22dbd143 feat: Update v2.28.17 2023-07-26 10:34:52 +08:00
Bai
4e904add32 perf: 优化 API 调用最大超时时间为 2 min 2023-05-25 14:46:03 +08:00
Bai
b85ed8405e perf: 优化忘记密码URL不自动增加 http:// 前缀 2023-05-16 11:28:01 +08:00
“huailei000”
e827deef35 perf: 优化工单消息显示;申请人是自己能关闭工单 2023-05-10 15:18:51 +08:00
Bai
3c2c2ca302 fix: 去掉系统用户列表中资产数量和应用数量的列 2023-03-23 14:15:03 +08:00
Bai
453ca578b5 feat: 支持飞书国际版(lark) 2023-03-10 15:49:18 +08:00
“huailei000”
aa622ff812 perf: 增加license显示信息 2023-03-10 10:45:56 +08:00
Bai
171ceeef3a fix: 修改翻译 2023-03-02 12:25:56 +08:00
吴小白
754e861294 Merge pull request #2370 from jumpserver/pr@v2.28@fix_ticket_create_hasclose
fix: 修复创建工单后没有关闭操作问题;修复工单详情控制台有报错提示问题
2023-01-10 11:48:28 +08:00
“huailei000”
e7b37d43f2 fix: 修复创建工单后没有关闭操作问题;修复工单详情控制台有报错提示问题 2023-01-10 11:22:16 +08:00
12 changed files with 1822 additions and 1780 deletions

2
GITSHA
View File

@@ -1 +1 @@
fd749ef211db3cbaac2c56ea1d95cf0251755580
4e904add32bb32432d3453465266b2316632bc24

View File

@@ -63,6 +63,7 @@
"vue-echarts": "^5.0.0-beta.0",
"vue-i18n": "^8.15.5",
"vue-json-editor": "^1.4.3",
"vue-markdown": "^2.2.4",
"vue-moment": "^4.1.0",
"vue-password-strength-meter": "^1.7.2",
"vue-router": "3.0.6",
@@ -92,6 +93,7 @@
"eslint": "^5.15.3",
"eslint-plugin-vue": "5.2.2",
"eslint-plugin-vue-i18n": "^0.3.0",
"github-markdown-css": "^5.2.0",
"html-webpack-plugin": "3.2.0",
"husky": "^4.2.3",
"less-loader": "^5.0.0",

View File

@@ -0,0 +1,37 @@
<template>
<div class="markdown-body">
<VueMarkdown :source="value" />
</div>
</template>
<script>
import VueMarkdown from 'vue-markdown'
import 'github-markdown-css/github-markdown-light.css'
export default {
components: {
VueMarkdown
},
props: {
value: {
type: String,
default: ''
}
},
data() {
return {}
}
}
</script>
<style lang='scss' scoped>
.markdown-body * {
padding: 10px;
background-color: #f3f3f3;
color: #1a1a1a;
font-size: 13px;
//& >>> .table * {
// background-color: #f3f3f3;
//}
}
</style>

View File

@@ -28,3 +28,4 @@ export { default as AssetRelationCard } from './AssetRelationCard'
export { default as UserConfirmDialog } from './UserConfirmDialog'
export { default as Announcement } from './Announcement'
export { default as CronTab } from './CronTab'
export { default as MarkDown } from './MarkDown'

View File

@@ -8,6 +8,7 @@
},
"acl": {
"name": "Name",
"ip_group_help_text": "The format is a comma-separated string, * means match all. Example: 192.168.10.1, 192.168.1.0/24, 10.1.1.1-10.1.1.20, 2001:db8:2de::e13, 2001:db8:1a:1110::/64",
"username": "Username",
"ip_group": "IP group",
"action": "Action",

View File

@@ -14,7 +14,7 @@ import { DEFAULT_ORG_ID } from '@/utils/org'
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
timeout: 60 * 1000 // request timeout
timeout: 2 * 60 * 1000 // request timeout
})
function beforeRequestAddToken(config) {

View File

@@ -23,14 +23,14 @@ export default {
url: '/api/v1/assets/system-users/?type=common',
columns: [
'name', 'username', 'username_same_with_user', 'protocol', 'login_mode',
'assets_amount', 'applications_amount', 'priority',
'priority',
'created_by', 'date_created', 'date_updated', 'comment', 'org_name', 'actions'
],
columnsShow: {
min: ['name', 'actions'],
default: [
'name', 'username', 'protocol', 'login_mode', 'assets_amount',
'applications_amount', 'comment', 'actions'
'name', 'username', 'protocol', 'login_mode',
'comment', 'actions'
]
},
columnsMeta: {
@@ -49,12 +49,6 @@ export default {
login_mode: {
width: '120px'
},
assets_amount: {
width: '80px'
},
applications_amount: {
width: '80px'
},
actions: {
formatterArgs: {
onUpdate: ({ row }) => {

View File

@@ -25,17 +25,6 @@ export default {
]
]
],
fieldsMeta: {
FORGOT_PASSWORD_URL: {
on: {
change([value], updateForm) {
if (value && !value.startsWith('http')) {
updateForm({ FORGOT_PASSWORD_URL: 'http://' + value })
}
}
}
}
},
submitMethod() {
return 'patch'
}

View File

@@ -44,7 +44,7 @@ export default {
[
this.$t('common.BasicInfo'),
[
'AUTH_FEISHU', 'FEISHU_APP_ID', 'FEISHU_APP_SECRET'
'AUTH_FEISHU', 'FEISHU_APP_ID', 'FEISHU_APP_SECRET', 'FEISHU_VERSION'
]
]
],

View File

@@ -115,6 +115,14 @@ export default {
{
key: this.$t('setting.Edition'),
value: this.licenseData.edition
},
{
key: this.$t('assets.SerialNumber'),
value: this.licenseData?.serial_no || ''
},
{
key: this.$t('common.Comment'),
value: this.licenseData?.remark || ''
}
]
}

View File

@@ -7,13 +7,13 @@
<div v-for="item in comments" :key="item.id" class="feed-activity-list">
<div class="feed-element">
<a href="#" class="pull-left">
<el-avatar :src="imageUrl" size="30" class="header-avatar" />
<el-avatar :src="imageUrl" :size="30" class="header-avatar" />
</a>
<div class="media-body ">
<strong>{{ item.user_display }}</strong> <small class="text-muted">{{ formatTime(item.date_created) }}</small>
<br>
<small class="text-muted">{{ toSafeLocalDateStr(item.date_created) }}</small>
<div style="padding-top: 10px;" v-html="item.body" />
<MarkDown :value="item.body" />
</div>
</div>
</div>
@@ -68,9 +68,11 @@
import IBox from '@/components/IBox'
import { formatTime, getDateTimeStamp } from '@/utils'
import { toSafeLocalDateStr } from '@/utils/common'
import MarkDown from '@/components/MarkDown'
export default {
name: 'Comments',
components: { IBox },
components: { IBox, MarkDown },
props: {
object: {
type: Object,
@@ -105,7 +107,15 @@ export default {
return this.object.process_map[this.object.approval_step - 1].assignees.indexOf(this.$store.state.users.profile.id) !== -1
},
isSelfTicket() {
return this.object.applicant === this.$store.state.users.profile.id
let applicant
if (this.object.applicant.indexOf('(') > -1) {
const applicantName = this.object.applicant.split('(')[1]
applicant = applicantName.substring(0, applicantName.length - 1)
} else {
applicant = this.object.applicant
}
const userName = this.$store.state.users.profile?.username
return applicant === userName
}
},
mounted() {

3506
yarn.lock

File diff suppressed because it is too large Load Diff