|
@@ -14,10 +14,14 @@
|
|
|
<list type="2" :info="info" :dataList="dataList2" :totalRow="totalRow2" @changePage="search" @selectInfo="selectInfo" @searchInfo="searchInfo"></list>
|
|
|
</template>
|
|
|
</list-tab>
|
|
|
+ <el-dialog title="简历详情" center :visible.sync="resumeDialog" :fullscreen="true">
|
|
|
+ <resumes :info="info"></resumes>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import resumes from '@resume/src/views/resume.vue';
|
|
|
import list from './list.vue';
|
|
|
import listTab from '@/layout/list-tab.vue';
|
|
|
import { mapActions, mapState } from 'vuex';
|
|
@@ -27,6 +31,7 @@ export default {
|
|
|
components: {
|
|
|
listTab,
|
|
|
list,
|
|
|
+ resumes,
|
|
|
},
|
|
|
data: () => ({
|
|
|
testList: [{ label: 'test', value: 1 }, { label: 'name', value: 2 }, { label: 'lock', value: 3 }, { label: 'not', value: 4 }],
|
|
@@ -38,6 +43,7 @@ export default {
|
|
|
totalRow1: 10,
|
|
|
dataList2: [],
|
|
|
totalRow2: 50,
|
|
|
+ resumeDialog: false,
|
|
|
}),
|
|
|
created() {
|
|
|
this.search({ type: '0' });
|
|
@@ -48,7 +54,7 @@ export default {
|
|
|
...mapState(['user']),
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapActions(['lettersOperation']),
|
|
|
+ ...mapActions(['lettersOperation', 'resumesOperation']),
|
|
|
async search({ type, currentPage, searchInfo }) {
|
|
|
let skip = 0;
|
|
|
if (currentPage) {
|
|
@@ -68,9 +74,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async searchInfo(id) {
|
|
|
- let result = await this.lettersOperation({ type: 'search', data: { id: id } });
|
|
|
+ let result = await this.resumesOperation({ type: 'search', data: { id: id } });
|
|
|
if (`${result.errcode}` === '0') {
|
|
|
this.$set(this, `info`, result.data);
|
|
|
+ this.resumeDialog = true;
|
|
|
}
|
|
|
},
|
|
|
selectInfo({ type, ids }) {
|