1
0
mirror of https://github.com/jumpserver/lina.git synced 2025-05-11 17:48:57 +00:00

perf: json many to many field, set timeout to submit

This commit is contained in:
ibuler 2024-07-01 14:27:38 +08:00 committed by 老广
parent 92e66981a8
commit fc4ffe53a5
4 changed files with 17 additions and 9 deletions
package.json
src
components
Cards/RelationCard
Form/FormFields/JSONManyToManySelect
styles

View File

@ -1,9 +1,9 @@
{
"name": "vue-admin-template",
"version": "4.2.1",
"description": "A vue admin template with Element UI & axios & iconfont & permission control & lint",
"author": "Pan <panfree23@gmail.com>",
"license": "MIT",
"name": "Lina",
"version": "v4",
"description": "JumpServer Web UI",
"author": "JumpServer Team <support@fit2cloud.com>",
"license": "GPL-3.0-or-later",
"scripts": {
"dev": "vue-cli-service serve",
"serve": "vue-cli-service serve",

View File

@ -41,9 +41,9 @@
</template>
<script>
import Select2 from '@/components/Form/FormFields/Select2.vue'
import IBox from '../../IBox/index.vue'
import { createSourceIdCache } from '@/api/common'
import { Select2 } from '@/components/Form/FormFields'
import IBox from '@/components/IBox/index.vue'
import { mapGetters } from 'vuex'
export default {

View File

@ -18,8 +18,8 @@
</template>
<script>
import DataForm from '@/components/Form/DataForm/index.vue'
import Dialog from '@/components/Dialog/index.vue'
import DataForm from '@/components/Form/DataForm/index.vue'
import ValueField from '@/components/Form/FormFields/JSONManyToManySelect/ValueField.vue'
import { attrMatchOptions, typeMatchMapper } from '@/components/const'
@ -128,7 +128,9 @@ export default {
}
},
onAttrDialogConfirm(form) {
this.$emit('confirm', form)
setTimeout(() => {
this.$emit('confirm', form)
}, 300)
},
updateMatchOptions(attr) {
if (!attr) {

View File

@ -570,3 +570,9 @@ li.rmenu i.fa {
font-weight: 500;
}
}
.el-alert__description {
a {
color: var(--color-link);
}
}