Compare commits

..

1 Commits

Author SHA1 Message Date
fit2bot
ce57c6d0a9 feat: Update v2.28.8 2023-03-02 16:24:00 +08:00
11 changed files with 1779 additions and 1818 deletions

2
GITSHA
View File

@@ -1 +1 @@
4e904add32bb32432d3453465266b2316632bc24
171ceeef3af2be631e4a9a865e944ecfbeaed022

View File

@@ -63,7 +63,6 @@
"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",
@@ -93,7 +92,6 @@
"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

@@ -1,37 +0,0 @@
<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,4 +28,3 @@ 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

@@ -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: 2 * 60 * 1000 // request timeout
timeout: 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',
'priority',
'assets_amount', 'applications_amount', 'priority',
'created_by', 'date_created', 'date_updated', 'comment', 'org_name', 'actions'
],
columnsShow: {
min: ['name', 'actions'],
default: [
'name', 'username', 'protocol', 'login_mode',
'comment', 'actions'
'name', 'username', 'protocol', 'login_mode', 'assets_amount',
'applications_amount', 'comment', 'actions'
]
},
columnsMeta: {
@@ -49,6 +49,12 @@ export default {
login_mode: {
width: '120px'
},
assets_amount: {
width: '80px'
},
applications_amount: {
width: '80px'
},
actions: {
formatterArgs: {
onUpdate: ({ row }) => {

View File

@@ -25,6 +25,17 @@ 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', 'FEISHU_VERSION'
'AUTH_FEISHU', 'FEISHU_APP_ID', 'FEISHU_APP_SECRET'
]
]
],

View File

@@ -115,14 +115,6 @@ 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

@@ -13,7 +13,7 @@
<strong>{{ item.user_display }}</strong> <small class="text-muted">{{ formatTime(item.date_created) }}</small>
<br>
<small class="text-muted">{{ toSafeLocalDateStr(item.date_created) }}</small>
<MarkDown :value="item.body" />
<div style="padding-top: 10px;" v-html="item.body" />
</div>
</div>
</div>
@@ -68,11 +68,9 @@
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, MarkDown },
components: { IBox },
props: {
object: {
type: Object,
@@ -107,13 +105,7 @@ export default {
return this.object.process_map[this.object.approval_step - 1].assignees.indexOf(this.$store.state.users.profile.id) !== -1
},
isSelfTicket() {
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 applicant = this.object.applicant.indexOf('(') > -1 ? this.object.applicant.split('(')[0] : this.object.applicant
const userName = this.$store.state.users.profile?.username
return applicant === userName
}

3506
yarn.lock

File diff suppressed because it is too large Load Diff