|
|
|
|
@ -154,6 +154,9 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view class="" v-if="tabInfo.active == 0">
|
|
|
|
|
<view class="g_fs_15">
|
|
|
|
|
<view @click="copyJobDetail" v-if="hasJobDetailContent" style="padding-top: 12px;">
|
|
|
|
|
<span class="desp-copy g_c_main g_border_main">复制</span>
|
|
|
|
|
</view>
|
|
|
|
|
<template v-for="(item, index) in templateArr" :key="index">
|
|
|
|
|
<view class="g_flex_row_start flex_center g_fw_600 g_mt_12 g_mb_8 g_fs_18" v-if="item.show">
|
|
|
|
|
<view class="" v-if="item.num == 1">一、</view>
|
|
|
|
|
@ -831,6 +834,12 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
|
hasJobDetailContent() {
|
|
|
|
|
return this.templateArr.some(item => item.show);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
goReport() {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
@ -1713,6 +1722,42 @@ export default {
|
|
|
|
|
dateTime = arr;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 复制职位详情
|
|
|
|
|
copyJobDetail(e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
let text = '';
|
|
|
|
|
that.templateArr.forEach((item) => {
|
|
|
|
|
if (item.show) {
|
|
|
|
|
let sectionText = '';
|
|
|
|
|
if (item.num == 1) sectionText += '一、';
|
|
|
|
|
if (item.num == 2) sectionText += '二、';
|
|
|
|
|
if (item.num == 3) sectionText += '三、';
|
|
|
|
|
if (item.num == 4) sectionText += '四、';
|
|
|
|
|
if (item.num == 5) sectionText += '五、';
|
|
|
|
|
if (item.num == 6) sectionText += '六、';
|
|
|
|
|
sectionText += item.type + '\n';
|
|
|
|
|
item.children.forEach((inner) => {
|
|
|
|
|
if (inner.show) {
|
|
|
|
|
sectionText += inner.num + '. ' + inner.key + ': ' + inner.value + '\n';
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
text += sectionText + '\n';
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
uni.setClipboardData({
|
|
|
|
|
data: text,
|
|
|
|
|
success(res) {
|
|
|
|
|
uni.getClipboardData({
|
|
|
|
|
success(res) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "复制成功",
|
|
|
|
|
icon: "success",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 复制通告
|
|
|
|
|
setCopy(e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
|