申请--- --- 应用系统

This commit is contained in:
gaoyuanwei 2022-08-15 18:06:34 +08:00
parent 3befb49a12
commit f45974d654
3 changed files with 71 additions and 25 deletions

View File

@ -21,7 +21,6 @@ import 'vue3-video-play-emiyagm/dist/style.css' // 引入css
import ElementPlus from 'element-plus' import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue' import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import animate from 'animate.css'
/** /**
* @author chuzhixin 1204505056@qq.com * @author chuzhixin 1204505056@qq.com
* @description 正式环境默认使用mock正式项目记得注释后再打包 * @description 正式环境默认使用mock正式项目记得注释后再打包
@ -43,7 +42,6 @@ app
.use(Antd) .use(Antd)
.use(ElementPlus) .use(ElementPlus)
.mount('#app') .mount('#app')
.use(animate)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) { for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component) app.component(key, component)
} }

View File

@ -82,7 +82,6 @@
<a-select <a-select
v-model:value="formName.applicationSystem" v-model:value="formName.applicationSystem"
show-search show-search
mode="tags"
placeholder="请输入关键字" placeholder="请输入关键字"
style="width: 200px" style="width: 200px"
:options="systemOptions" :options="systemOptions"
@ -317,7 +316,7 @@
num.value > 1 ? '等能力申请' + num.value + '个' : '能力申请' num.value > 1 ? '等能力申请' + num.value + '个' : '能力申请'
) )
: list.value[0].arr[0].resourceName.concat('能力申请'), // : list.value[0].arr[0].resourceName.concat('能力申请'), //
applicationSystem: [], // applicationSystem: '', //
// applicationSystem: [], // // applicationSystem: [], //
applicationScene: [], // applicationScene: [], //
applicationBackground: '', // applicationBackground: '', //
@ -338,7 +337,7 @@
getApplyForm(id).then((res) => { getApplyForm(id).then((res) => {
console.log('修改==============>', res.data.data) console.log('修改==============>', res.data.data)
// formName.id = res.data.data.id || '' // formName.id = res.data.data.id || ''
formName.applicationSystem = res.data.data.applicationSystem || [] formName.applicationSystem = res.data.data.applicationSystem || ''
formName.applicationScene = res.data.data.applicationScene || [] formName.applicationScene = res.data.data.applicationScene || []
formName.applicationBackground = formName.applicationBackground =
res.data.data.applicationBackground || '' res.data.data.applicationBackground || ''
@ -506,7 +505,7 @@
) )
if (formName.system.length !== 0) { if (formName.system.length !== 0) {
if (formName.applicationSystem.length == 0) { if (formName.applicationSystem.length == 0) {
formName.applicationSystem = [] formName.applicationSystem = ''
} }
submitApply(formName).then((res) => { submitApply(formName).then((res) => {
// applySuccess.value = false // applySuccess.value = false
@ -648,7 +647,7 @@
) )
if (formName.system.length !== 0) { if (formName.system.length !== 0) {
if (formName.applicationSystem.length == 0) { if (formName.applicationSystem.length == 0) {
formName.applicationSystem = [] formName.applicationSystem = ''
} }
submitApply(formName).then((res) => { submitApply(formName).then((res) => {
// applySuccess.value = false // applySuccess.value = false
@ -682,7 +681,7 @@
} }
} }
} else { } else {
formName.applicationSystem = [] formName.applicationSystem = ''
applyAllApplication(formName).then((res) => { applyAllApplication(formName).then((res) => {
if (res.data.code == 0) { if (res.data.code == 0) {
message.success('申请提交成功,请到消息中心查看!') message.success('申请提交成功,请到消息中心查看!')
@ -803,11 +802,21 @@
console.log(`selected ${value}`) console.log(`selected ${value}`)
} }
const systemHandleSearch = (value) => { const systemHandleSearch = (value) => {
console.log(`search ${value}`) // console.log(`search ${value}`)
text.value = value // text.value = value
systemOptions.value = systemOptions2.value.filter( // systemOptions.value = systemOptions2.value.filter(
(item) => item.label.search(text.value) > -1 // (item) => item.label.search(text.value) > -1
) // )
let valueArray = []
systemOptions.value.map((val) => {
valueArray.push(val.value)
})
if (valueArray.indexOf(value) == -1) {
systemOptions.value.push({
value: value,
label: value,
})
}
} }
pageWithAttrs({ pageWithAttrs({
pageNum: 1, pageNum: 1,
@ -839,7 +848,14 @@
console.log('focus') console.log('focus')
// console.log(formName.applicationSystem) // console.log(formName.applicationSystem)
// formName.applicationSystem = [] // formName.applicationSystem = []
systemOptions.value = systemOptions2.value let arrId = []
for (var valueIndex of systemOptions2.value) {
if (arrId.indexOf(valueIndex['value']) == -1) {
arrId.push(valueIndex['value'])
systemOptions.value.push(valueIndex)
}
}
// systemOptions.value = systemOptions2.value
// systemOptions.value = [] // systemOptions.value = []
} }
// const filterOption = (input, option) => { // const filterOption = (input, option) => {

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="navigation"> <div class="navigation bg-pan-bl">
<div class="main" v-if="qeihuan"> <div class="main" v-if="qeihuan">
<div class="top"> <div class="top">
<span <span
@ -300,7 +300,7 @@
// justify-content: center; // justify-content: center;
align-items: center; align-items: center;
background: url('~@/assets/newHome/banner-main.jpg') no-repeat; background: url('~@/assets/newHome/banner-main.jpg') no-repeat;
background-size: cover; background-size: 150%;
:deep(.ant-btn) > span { :deep(.ant-btn) > span {
font-size: 0.16rem; font-size: 0.16rem;
} }
@ -538,6 +538,38 @@
} }
} }
} }
.bg-pan-bl {
-webkit-animation: bg-pan-bl 2s both;
animation: bg-pan-bl 2s both;
}
/* ----------------------------------------------
* Generated by Animista on 2022-8-15 15:8:37
* Licensed under FreeBSD License.
* See http://animista.net/license for more info.
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */
/**
* ----------------------------------------
* animation bg-pan-bl
* ----------------------------------------
*/
@-webkit-keyframes bg-pan-bl {
0% {
background-size: 130%;
}
100% {
background-size: 100%;
}
}
@keyframes bg-pan-bl {
0% {
background-size: 130%;
}
100% {
background-size: 100%;
}
}
</style> </style>
<style> <style>
.rc-virtual-list-holder { .rc-virtual-list-holder {