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

View File

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

View File

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

View File

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

View File

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