考核评分

This commit is contained in:
yanran200730
2022-12-05 17:45:38 +08:00
parent d3c4d69781
commit fc017fcc5a
5 changed files with 1801 additions and 1 deletions

View File

@@ -0,0 +1,69 @@
<template>
<div class="doc-circulation">
<keep-alive :include="['List']">
<component ref="component" :is="component" @change="onChange" :params="params" :instance="instance" :dict="dict"></component>
</keep-alive>
</div>
</template>
<script>
import Add from './components/Add'
import List from './components/List'
export default {
name: 'AppScoringTemplate',
label: '评分模板',
props: {
instance: Function,
dict: Object
},
data () {
return {
component: 'List',
params: {},
include: []
}
},
components: {
List,
Add
},
mounted () {
if (this.$route.query.isAdd === '1') {
this.component = 'Add'
}
},
methods: {
onChange (data) {
if (data.type === 'Add') {
this.component = 'Add'
this.params = data.params
}
if (data.type === 'List') {
this.component = 'List'
this.params = data.params
this.$nextTick(() => {
if (data.isRefresh) {
this.$refs.component.getList()
}
})
}
}
}
}
</script>
<style lang="scss">
.doc-circulation {
height: 100%;
background: #F3F6F9;
overflow: auto;
}
</style>