修改
This commit is contained in:
3
main.js
3
main.js
@@ -16,7 +16,6 @@ import Empty from './components/empty/empty.vue';
|
|||||||
import NoBouncePage from '@/components/NoBouncePage/NoBouncePage.vue'
|
import NoBouncePage from '@/components/NoBouncePage/NoBouncePage.vue'
|
||||||
import MsgTips from '@/components/MsgTips/MsgTips.vue'
|
import MsgTips from '@/components/MsgTips/MsgTips.vue'
|
||||||
import SelectPopupPlugin from '@/components/selectPopup/selectPopupPlugin';
|
import SelectPopupPlugin from '@/components/selectPopup/selectPopupPlugin';
|
||||||
import unieditor from '@/packageB/components/unieditor.vue'
|
|
||||||
import storeRc from './utilsRc/store/index.js'
|
import storeRc from './utilsRc/store/index.js'
|
||||||
import {processFileUrl,} from '@/utilsRc/common.js'
|
import {processFileUrl,} from '@/utilsRc/common.js'
|
||||||
// iconfont.css 已在 App.vue 中通过 @import 引入,无需在此处重复引入
|
// iconfont.css 已在 App.vue 中通过 @import 引入,无需在此处重复引入
|
||||||
@@ -45,7 +44,6 @@ export function createApp() {
|
|||||||
app.component('Empty', Empty)
|
app.component('Empty', Empty)
|
||||||
app.component('NoBouncePage', NoBouncePage)
|
app.component('NoBouncePage', NoBouncePage)
|
||||||
app.component('MsgTips', MsgTips)
|
app.component('MsgTips', MsgTips)
|
||||||
app.component('unieditor', unieditor)
|
|
||||||
|
|
||||||
|
|
||||||
app.config.globalProperties.$processFileUrl = processFileUrl;
|
app.config.globalProperties.$processFileUrl = processFileUrl;
|
||||||
@@ -76,7 +74,6 @@ export function createApp() {
|
|||||||
app.provide('deviceInfo', globalFunction.getdeviceInfo());
|
app.provide('deviceInfo', globalFunction.getdeviceInfo());
|
||||||
|
|
||||||
app.use(SelectPopupPlugin);
|
app.use(SelectPopupPlugin);
|
||||||
// app.use(unieditor);
|
|
||||||
app.use(Pinia.createPinia());
|
app.use(Pinia.createPinia());
|
||||||
// 注册vuex
|
// 注册vuex
|
||||||
app.use(storeRc);
|
app.use(storeRc);
|
||||||
|
|||||||
28
package-lock.json
generated
28
package-lock.json
generated
@@ -1,6 +1,4 @@
|
|||||||
{
|
{
|
||||||
"name": "ks-app-employment-service",
|
|
||||||
"lockfileVersion": 3,
|
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
@@ -15,8 +13,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@dcloudio/uni-ui": {
|
"node_modules/@dcloudio/uni-ui": {
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"dependencies": {
|
||||||
|
"@dcloudio/uni-ui": {
|
||||||
"version": "1.5.11",
|
"version": "1.5.11",
|
||||||
"resolved": "https://registry.npmjs.org/@dcloudio/uni-ui/-/uni-ui-1.5.11.tgz",
|
"resolved": "https://registry.npmmirror.com/@dcloudio/uni-ui/-/uni-ui-1.5.11.tgz",
|
||||||
"integrity": "sha512-DBtk046ofmeFd82zRI7d89SoEwrAxYzUN3WVPm1DIBkpLPG5F5QDNkHMnZGu2wNrMEmGBjBpUh3vqEY1L3jaMw=="
|
"integrity": "sha512-DBtk046ofmeFd82zRI7d89SoEwrAxYzUN3WVPm1DIBkpLPG5F5QDNkHMnZGu2wNrMEmGBjBpUh3vqEY1L3jaMw=="
|
||||||
},
|
},
|
||||||
"node_modules/crypto-js": {
|
"node_modules/crypto-js": {
|
||||||
@@ -26,25 +27,26 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/dayjs": {
|
"node_modules/dayjs": {
|
||||||
|
"crypto-js": {
|
||||||
|
"version": "3.3.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-3.3.0.tgz",
|
||||||
|
"integrity": "sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q=="
|
||||||
|
},
|
||||||
|
"dayjs": {
|
||||||
"version": "1.11.19",
|
"version": "1.11.19",
|
||||||
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz",
|
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.19.tgz",
|
||||||
"integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw=="
|
"integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw=="
|
||||||
},
|
},
|
||||||
"node_modules/jsbn": {
|
"jsbn": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
|
"resolved": "https://registry.npmmirror.com/jsbn/-/jsbn-1.1.0.tgz",
|
||||||
"integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A=="
|
"integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A=="
|
||||||
},
|
},
|
||||||
"node_modules/mp-html": {
|
"sm-crypto": {
|
||||||
"version": "2.5.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/mp-html/-/mp-html-2.5.2.tgz",
|
|
||||||
"integrity": "sha512-45e8c32Qgux4YU4iC3qCSFsOh3y+RwPwZ+iz/vvLkDgSGWk+1zsL4WUzWWQc9w3AsAfkaD/QR0oIufIDngBmXA=="
|
|
||||||
},
|
|
||||||
"node_modules/sm-crypto": {
|
|
||||||
"version": "0.3.13",
|
"version": "0.3.13",
|
||||||
"resolved": "https://registry.npmmirror.com/sm-crypto/-/sm-crypto-0.3.13.tgz",
|
"resolved": "https://registry.npmmirror.com/sm-crypto/-/sm-crypto-0.3.13.tgz",
|
||||||
"integrity": "sha512-ztNF+pZq6viCPMA1A6KKu3bgpkmYti5avykRHbcFIdSipFdkVmfUw2CnpM2kBJyppIalqvczLNM3wR8OQ0pT5w==",
|
"integrity": "sha512-ztNF+pZq6viCPMA1A6KKu3bgpkmYti5avykRHbcFIdSipFdkVmfUw2CnpM2kBJyppIalqvczLNM3wR8OQ0pT5w==",
|
||||||
"dependencies": {
|
"requires": {
|
||||||
"jsbn": "^1.1.0"
|
"jsbn": "^1.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dcloudio/uni-ui": "^1.5.11",
|
"@dcloudio/uni-ui": "^1.5.11",
|
||||||
|
"crypto-js": "^3.3.0",
|
||||||
"dayjs": "^1.11.19",
|
"dayjs": "^1.11.19",
|
||||||
"mp-html": "^2.5.2",
|
|
||||||
"sm-crypto": "^0.3.13"
|
"sm-crypto": "^0.3.13"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -128,7 +128,6 @@ const confirm = () => {
|
|||||||
const params = {
|
const params = {
|
||||||
...fromValue,
|
...fromValue,
|
||||||
};
|
};
|
||||||
debugger
|
|
||||||
if(type.value=='add'){
|
if(type.value=='add'){
|
||||||
$api.myRequest('/train/public/announcement/add', {
|
$api.myRequest('/train/public/announcement/add', {
|
||||||
...fromValue,
|
...fromValue,
|
||||||
|
|||||||
@@ -28,12 +28,12 @@
|
|||||||
<view >
|
<view >
|
||||||
<view class="gk-l-i-bottom" v-html="item.content"></view>
|
<view class="gk-l-i-bottom" v-html="item.content"></view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
|
|
||||||
</AppLayout>
|
</AppLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -42,6 +42,9 @@ import { inject, ref, reactive, onMounted } from "vue";
|
|||||||
const { $api, navTo, navBack, vacanciesTo } = inject("globalFunction");
|
const { $api, navTo, navBack, vacanciesTo } = inject("globalFunction");
|
||||||
import config from "@/config.js";
|
import config from "@/config.js";
|
||||||
import AppLayout from "@/components/AppLayout/AppLayout.vue";
|
import AppLayout from "@/components/AppLayout/AppLayout.vue";
|
||||||
|
import CryptoJS from 'crypto-js'
|
||||||
|
|
||||||
|
|
||||||
const title = ref("");
|
const title = ref("");
|
||||||
const baseUrl = config.imgBaseUrl;
|
const baseUrl = config.imgBaseUrl;
|
||||||
const pageSize=ref(10)
|
const pageSize=ref(10)
|
||||||
@@ -49,7 +52,27 @@ const pageNum=ref(1)
|
|||||||
const totalNum=ref(0)
|
const totalNum=ref(0)
|
||||||
// Tab 控制
|
// Tab 控制
|
||||||
const currentTab = ref("train"); // 默认显示培训公告
|
const currentTab = ref("train"); // 默认显示培训公告
|
||||||
|
async function loginA(){
|
||||||
|
const form={
|
||||||
|
usertype: "2",
|
||||||
|
enterprisecode: '91310101MA1FPX1234',
|
||||||
|
enterprisename: 'tt',
|
||||||
|
contactperson: "",
|
||||||
|
contactphone: "",
|
||||||
|
idno: "",
|
||||||
|
name: ""
|
||||||
|
}
|
||||||
|
//用户信息加密方法待更新
|
||||||
|
// const key = '9zS+DFKrzxvosO82mTcPJQ=='
|
||||||
|
// const secretKey = CryptoJS.enc.Utf8.parse(key);//key 为你的秘钥
|
||||||
|
// const srcs = CryptoJS.enc.Utf8.parse(form.idno);
|
||||||
|
// // AES 加密
|
||||||
|
// const encrypted = CryptoJS.AES.encrypt(srcs, secretKey, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7}).toString()
|
||||||
|
// console.log('AES Encrypted:111', encrypted)
|
||||||
|
// form.idno=encrypted
|
||||||
|
var resLogin = await $api.myRequest('/auth/login2/ks',form,'post',10100);
|
||||||
|
console.log("resLogin",resLogin)
|
||||||
|
}
|
||||||
function switchTab(tabName) {
|
function switchTab(tabName) {
|
||||||
currentTab.value = tabName;
|
currentTab.value = tabName;
|
||||||
getPolicyData('refresh',currentTab)
|
getPolicyData('refresh',currentTab)
|
||||||
@@ -65,6 +88,7 @@ const getBackgroundStyle = (imageName) => ({
|
|||||||
});
|
});
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getPolicyData('refresh',currentTab);
|
getPolicyData('refresh',currentTab);
|
||||||
|
loginA()
|
||||||
});
|
});
|
||||||
const policyList = ref([]);
|
const policyList = ref([]);
|
||||||
function getPolicyData(type = 'add',currentTab='train') {
|
function getPolicyData(type = 'add',currentTab='train') {
|
||||||
@@ -92,7 +116,7 @@ function getPolicyData(type = 'add',currentTab='train') {
|
|||||||
policyList.value=resData.rows
|
policyList.value=resData.rows
|
||||||
totalNum.value=resData.total
|
totalNum.value=resData.total
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (type === 'add' && pageNum.value < maxPage) {
|
if (type === 'add' && pageNum.value < maxPage) {
|
||||||
@@ -200,4 +224,4 @@ function goPolicyDetail(item) {
|
|||||||
margin-top: 12rpx;
|
margin-top: 12rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,42 +1,43 @@
|
|||||||
<template>
|
<template>
|
||||||
<AppLayout :title="title" :show-bg-image="false" >
|
<AppLayout :title="title" :show-bg-image="false" >
|
||||||
<view class="main-list" :style="getBackgroundStyle('k.png')">
|
<view class="main-list" :style="getBackgroundStyle('k.png')" v-if="showVue=='main'">
|
||||||
<view class="list-top">
|
<view class="list-top">
|
||||||
<view class="list-title">
|
<view class="list-title">
|
||||||
<text>帮扶任务分配</text>
|
<text>帮扶任务分配</text>
|
||||||
<view class="title-line"></view>
|
<view class="title-line"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form-container">
|
<view class="form-container">
|
||||||
<uni-forms ref="formRef" v-model="formData" :rules="rules" validate-trigger="submit" >
|
<uni-forms ref="formRef" v-model="formData" :rules="rules" validate-trigger="submit" >
|
||||||
<uni-forms-item label="任务名称:" name="taskName" required >
|
<uni-forms-item label="任务名称:" name="taskName" required >
|
||||||
<uni-easyinput v-model="formData.taskName" placeholder="请输入任务名称"></uni-easyinput>
|
<uni-easyinput v-model="formData.taskName" placeholder="请输入任务名称"></uni-easyinput>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="目标人员:" name="priority" required >
|
<uni-forms-item label="目标人员:" required >
|
||||||
<uni-data-select v-model="formData.priority" placeholder="请选择目标人员" :localdata="followWays" @change="onMethodChange"></uni-data-select>
|
<button class="choice-btn" @click="choicePerson">从帮扶人员库选择目标人员</button>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="目标人数:" name="content" required>
|
<uni-forms-item label="目标人数:" name="goalPersonCount" required>
|
||||||
<uni-easyinput v-model="formData.taskAllocation.goalPersonCount" placeholder="请输入目标人数"></uni-easyinput>
|
<uni-easyinput v-model="formData.goalPersonCount" disabled></uni-easyinput>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="执行区域:" name="executeDeptId" required >
|
<uni-forms-item label="执行区域:" name="executeDeptId" required >
|
||||||
<uni-data-select v-model="formData.taskAllocation.executeDeptId" placeholder="请选择执行区域" :localdata="followWays" @change="onMethodChange"></uni-data-select>
|
<uni-data-select v-model="formData.executeDeptId" placeholder="请选择执行区域" :localdata="executeDeptOptions" @change="executeDeptChange"></uni-data-select>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="分配说明:" name="allocationNote" required>
|
<uni-forms-item label="截止时间:" name="deadline" required>
|
||||||
<uni-easyinput type="textarea" v-model="formData.taskAllocation.allocationNote" placeholder="请输入分配说明"></uni-easyinput>
|
<uni-datetime-picker class="picker-value" type="date" placeholder="请选择截止时间" v-model="formData.deadline" @change="onDateChange" />
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="截止时间:" name="deadline" >
|
<uni-forms-item label="分配说明:" name="allocationNote" >
|
||||||
<uni-datetime-picker class="picker-value" type="date" placeholder="请选择截止时间" v-model="formData.taskAllocation.deadline" @change="onDateChange" />
|
<uni-easyinput type="textarea" v-model="formData.allocationNote" placeholder="请输入分配说明"></uni-easyinput>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
</uni-forms>
|
</uni-forms>
|
||||||
|
|
||||||
<!-- 按钮组 -->
|
<!-- 按钮组 -->
|
||||||
<view class="button-group">
|
<view class="button-group">
|
||||||
<button class="btn submit-btn" @click="handleSubmit">确定</button>
|
<button class="btn submit-btn" @click="handleSubmit">确定</button>
|
||||||
<button class="btn reset-btn" @click="handleReset">取消</button>
|
<button class="btn reset-btn" @click="handleCancel">取消</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="" v-else>
|
||||||
|
<target-personel-choice :allocationId="formData.allocationId" @update:show-vue="handleShowVueChange"></target-personel-choice>
|
||||||
|
</view>
|
||||||
</AppLayout>
|
</AppLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -45,60 +46,55 @@ import { inject, ref, reactive } from 'vue';
|
|||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
const { $api, navTo, navBack } = inject('globalFunction');
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
import config from "@/config.js"
|
import config from "@/config.js"
|
||||||
|
import targetPersonelChoice from './components/targetPersonnelChoice.vue'
|
||||||
|
|
||||||
const title = ref('');
|
const title = ref('');
|
||||||
|
const taskTypeOptions=ref([])
|
||||||
|
const priorityOptions=ref([])
|
||||||
|
const executeDeptOptions=ref([])
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
|
id: '',
|
||||||
|
taskId: '',
|
||||||
taskName: '',
|
taskName: '',
|
||||||
taskType: '',
|
createBy: '',
|
||||||
priority: '',
|
goalPersonCount: null,
|
||||||
taskAllocation: {
|
executeDeptId: '',
|
||||||
goalPersonCount: null,
|
executeDeptName: '',
|
||||||
executeDeptId: '',
|
executeDeptAncestors: '',
|
||||||
executeDeptName: '',
|
allocationStatus: '1',
|
||||||
executeDeptAncestors: '',
|
allocationNote: '',
|
||||||
allocationStatus: '1',
|
deadline: null,
|
||||||
allocationNote: '',
|
goalPersonList: [],
|
||||||
deadline: null,
|
allocationId:''
|
||||||
goalPersonList: []
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
const personInfo=ref({
|
|
||||||
goalPersonId:'',
|
|
||||||
name:'',
|
|
||||||
taskType:'',
|
|
||||||
task_id:''
|
|
||||||
})
|
|
||||||
const followWays = ref([])
|
|
||||||
const followList = ref([])
|
|
||||||
const followListNum=ref(0)
|
|
||||||
// 表单引用
|
// 表单引用
|
||||||
const formRef = ref(null)
|
const formRef = ref(null)
|
||||||
// 校验规则
|
// 校验规则
|
||||||
const rules = {
|
const rules = {
|
||||||
followDate: {
|
taskName: {
|
||||||
rules: [{
|
rules: [{
|
||||||
required: true,
|
required: true,
|
||||||
errorMessage: '请选择跟进日期'
|
errorMessage: '请填写任务名称'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
followWay: {
|
goalPersonCount: {
|
||||||
rules: [{
|
rules: [{
|
||||||
required: true,
|
required: true,
|
||||||
errorMessage: '请选择跟进方式'
|
errorMessage: '请选择目标人员'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
content: {
|
executeDeptId: {
|
||||||
rules: [{
|
rules: [{
|
||||||
required: true,
|
required: true,
|
||||||
errorMessage: '请填写跟进内容'
|
errorMessage: '请选择执行区域'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
result: {
|
deadline:{
|
||||||
rules: [{
|
rules: [{
|
||||||
required: true,
|
required: true,
|
||||||
errorMessage: '请填写跟进结果'
|
errorMessage: '请选择截止时间'
|
||||||
}]
|
}]
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
const baseUrl = config.imgBaseUrl
|
const baseUrl = config.imgBaseUrl
|
||||||
const getBackgroundStyle = (imageName) => ({
|
const getBackgroundStyle = (imageName) => ({
|
||||||
@@ -107,77 +103,84 @@ const getBackgroundStyle = (imageName) => ({
|
|||||||
backgroundPosition: 'center', // 居中
|
backgroundPosition: 'center', // 居中
|
||||||
backgroundRepeat: 'no-repeat'
|
backgroundRepeat: 'no-repeat'
|
||||||
});
|
});
|
||||||
|
const showVue=ref('main')
|
||||||
const onFollowDateChange = (e)=>{
|
function choicePerson(){
|
||||||
formData.followDate=e
|
showVue.value='choice'
|
||||||
}
|
}
|
||||||
const onMethodChange = (e) => {
|
function listNotParam(){
|
||||||
formData.followWay=e
|
|
||||||
}
|
|
||||||
// 事件处理
|
|
||||||
const onDateChange = ( e) => {
|
|
||||||
formData.nextContactDate=e
|
|
||||||
}
|
|
||||||
function getFollowList(){
|
|
||||||
let header={
|
let header={
|
||||||
'Authorization':uni.getStorageSync('fourLevelLinkage-token'),
|
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||||
'Content-Type': "application/x-www-form-urlencoded"
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
}
|
}
|
||||||
let params={
|
let params={}
|
||||||
personId:personInfo.value.person_id,
|
$api.myRequest('/dispatch/dept/listNotParam',params,'get',9100,header).then((resData) => {
|
||||||
taskId:personInfo.value.task_id
|
|
||||||
}
|
|
||||||
$api.myRequest('/dispatch/assist/records/getFollowList', params,'get',9100,header).then((resData) => {
|
|
||||||
console.log("resData",resData)
|
|
||||||
if(resData && resData.code == 200){
|
|
||||||
if(resData.data && resData.data.length>0){
|
|
||||||
followListNum.value=resData.data.length
|
|
||||||
resData.data.forEach(item=>{
|
|
||||||
const obj={
|
|
||||||
title:item.followDate,
|
|
||||||
desc:`跟进方式:${getFollowWaysLabelByValue(item.followWay)}\n跟进人:${item.createByName}\n跟进内容:${item.content}`
|
|
||||||
}
|
|
||||||
followList.value.push(obj)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function getDictionary(){
|
|
||||||
$api.myRequest('/system/public/dict/data/type/assist_follow_way').then((resData) => {
|
|
||||||
if(resData && resData.code == 200){
|
if(resData && resData.code == 200){
|
||||||
resData.data.forEach(item=>{
|
resData.data.forEach(item=>{
|
||||||
const obj = {
|
const obj = {
|
||||||
value: item.dictValue,
|
value: item.deptId,
|
||||||
text: item.dictLabel
|
text: item.deptName,
|
||||||
|
ancestors:item.ancestors
|
||||||
}
|
}
|
||||||
followWays.value.push(obj)
|
executeDeptOptions.value.push(obj)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function getFollowWaysLabelByValue(value) {
|
// 事件处理
|
||||||
if (!Array.isArray(followWays.value)) {
|
function onDateChange(e){
|
||||||
|
formData.deadline=e
|
||||||
|
}
|
||||||
|
function executeDeptChange(e){
|
||||||
|
formData.executeDeptId=e
|
||||||
|
formData.executeDeptName=getLabelByValue(e,executeDeptOptions.value)
|
||||||
|
formData.executeDeptAncestors=getAncestorsByValue(e,executeDeptOptions.value)
|
||||||
|
}
|
||||||
|
function getLabelByValue(value,arr) {
|
||||||
|
if (!Array.isArray(arr)) {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
const item = followWays.value.find(item => item.value === String(value))
|
|
||||||
return item ? item.text : '暂无跟进方式'
|
const item = arr.find(item => item.value === value)
|
||||||
|
return item ? item.text : '暂无'
|
||||||
|
}
|
||||||
|
function getAncestorsByValue(value,arr){
|
||||||
|
if (!Array.isArray(arr)) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
|
const item = arr.find(item => item.value === value)
|
||||||
|
return item ? item.ancestors : ''
|
||||||
|
}
|
||||||
|
function normalizePersonData(dataList) {
|
||||||
|
if (!Array.isArray(dataList)) return [];
|
||||||
|
return dataList.map(obj => {
|
||||||
|
const fullValue = obj;
|
||||||
|
return {
|
||||||
|
personId: String(fullValue) // 确保转为字符串,防止意外类型
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleShowVueChange(newValue){
|
||||||
|
showVue.value=newValue.showVue
|
||||||
|
if(newValue.selectedPersonIds&&newValue.selectedPersonIds.length>0){
|
||||||
|
formData.goalPersonList=normalizePersonData(newValue.selectedPersonIds)
|
||||||
|
formData.goalPersonCount=newValue.selectedPersonIds.length
|
||||||
|
}else{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const handleSubmit = () => {
|
const handleSubmit = () => {
|
||||||
formRef.value?.validate()
|
formRef.value?.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
let header={
|
let header={
|
||||||
'Authorization':uni.getStorageSync('fourLevelLinkage-token')
|
'Authorization':uni.getStorageSync('Padmin-Token')
|
||||||
}
|
}
|
||||||
formData.goalPersonId=personInfo.value.goalPersonId
|
$api.myRequest('/dispatch/assist/task/allocation/allocate', formData,'post',9100,header).then((resData) => {
|
||||||
$api.myRequest('/dispatch/assist/records/addRecords', formData,'post',9100,header).then((resData) => {
|
|
||||||
console.log("resData",resData)
|
|
||||||
if(resData && resData.code == 200){
|
if(resData && resData.code == 200){
|
||||||
handleReset()
|
handleCancel()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '保存成功',
|
title: '分配成功',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
@@ -196,21 +199,40 @@ const handleSubmit = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleReset = () => {
|
const handleCancel = () => {
|
||||||
formData.followDate = '';
|
formData.taskName=''
|
||||||
formData.followWay = '';
|
formData.goalPersonCount=null
|
||||||
formData.content = '';
|
formData.executeDeptId=''
|
||||||
formData.result = '';
|
formData.executeDeptName=''
|
||||||
formData.nextPlan = '';
|
formData.executeDeptAncestors=''
|
||||||
formData.nextContactDate = '';
|
formData.allocationStatus='1'
|
||||||
|
formData.allocationNote=''
|
||||||
|
formData.deadline=null
|
||||||
|
formData.goalPersonList=[]
|
||||||
|
navTo('/packageB/priority/taskAssignment');
|
||||||
|
}
|
||||||
|
function getDetail(id){
|
||||||
|
let header={
|
||||||
|
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||||
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
|
}
|
||||||
|
let params={
|
||||||
|
id:id
|
||||||
|
}
|
||||||
|
$api.myRequest('/dispatch/assist/task/getTask',params,'get',9100,header).then((resData) => {
|
||||||
|
formData.id=resData.data.taskAllocation.id
|
||||||
|
formData.taskName=resData.data.taskName
|
||||||
|
formData.createBy=resData.data.createBy
|
||||||
|
formData.deadline=resData.data.taskAllocation.deadline
|
||||||
|
formData.allocationNote=resData.data.taskAllocation.allocationNote
|
||||||
|
formData.executeDeptAncestors=resData.data.taskAllocation.executeDeptAncestors
|
||||||
|
formData.allocationId=resData.data.taskAllocation.id
|
||||||
|
formData.taskId=resData.data.taskAllocation.taskId
|
||||||
|
});
|
||||||
}
|
}
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
// personInfo.value.person_id=options.person_id
|
listNotParam()
|
||||||
// personInfo.value.name=options.name
|
getDetail(options.id)
|
||||||
// personInfo.value.taskType=options.taskType
|
|
||||||
// personInfo.value.task_id=options.task_id
|
|
||||||
// getDictionary()
|
|
||||||
// getFollowList()
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@@ -220,33 +242,6 @@ onLoad((options) => {
|
|||||||
image
|
image
|
||||||
height: 100%
|
height: 100%
|
||||||
width: 100%
|
width: 100%
|
||||||
.info-box
|
|
||||||
margin: 30rpx 30rpx
|
|
||||||
background: linear-gradient(0deg, #D9ECFF 0%, #F0F7FF 100%)
|
|
||||||
border-radius: 20rpx
|
|
||||||
padding: 40rpx 0
|
|
||||||
display: flex
|
|
||||||
align-items: center
|
|
||||||
.info-img
|
|
||||||
width: 40rpx
|
|
||||||
height: 40rpx
|
|
||||||
margin-bottom: 20rpx
|
|
||||||
.info-line
|
|
||||||
border-right: 2rpx solid #B7D6FF
|
|
||||||
.info-item
|
|
||||||
display: flex
|
|
||||||
flex-direction: column
|
|
||||||
align-items: center
|
|
||||||
justify-content: center
|
|
||||||
width: 50%
|
|
||||||
.info-label
|
|
||||||
font-size: 26rpx
|
|
||||||
color: #6E7E9B
|
|
||||||
margin-bottom: 20rpx
|
|
||||||
.info-value
|
|
||||||
font-weight: bold
|
|
||||||
font-size: 28rpx
|
|
||||||
color: #3D61AC
|
|
||||||
.main-list
|
.main-list
|
||||||
background-color: #ffffff
|
background-color: #ffffff
|
||||||
padding: 20rpx 20rpx 28rpx 20rpx
|
padding: 20rpx 20rpx 28rpx 20rpx
|
||||||
@@ -271,20 +266,6 @@ image
|
|||||||
height: 8rpx
|
height: 8rpx
|
||||||
background: linear-gradient(90deg, #FFAD58 0%, #FF7A5B 100%)
|
background: linear-gradient(90deg, #FFAD58 0%, #FF7A5B 100%)
|
||||||
border-radius: 4rpx
|
border-radius: 4rpx
|
||||||
.title-total
|
|
||||||
font-size: 24rpx
|
|
||||||
color: #999999
|
|
||||||
.total-num
|
|
||||||
color: #3088FF
|
|
||||||
margin-left: 4rpx
|
|
||||||
margin-right: 4rpx
|
|
||||||
font-weight: bold
|
|
||||||
font-size: 26rpx
|
|
||||||
|
|
||||||
.label
|
|
||||||
width: 160rpx
|
|
||||||
font-size: 28rpx
|
|
||||||
color: #404040
|
|
||||||
|
|
||||||
.input,
|
.input,
|
||||||
.picker
|
.picker
|
||||||
@@ -292,10 +273,8 @@ image
|
|||||||
|
|
||||||
.picker-value
|
.picker-value
|
||||||
color: #666
|
color: #666
|
||||||
.list-box
|
|
||||||
margin-top: 40rpx
|
.form-container
|
||||||
|
|
||||||
.form-container
|
|
||||||
margin-top: 30rpx
|
margin-top: 30rpx
|
||||||
:deep(.uni-forms-item__label)
|
:deep(.uni-forms-item__label)
|
||||||
width: 194rpx !important
|
width: 194rpx !important
|
||||||
@@ -324,35 +303,15 @@ image
|
|||||||
background-color: #368BFF;
|
background-color: #368BFF;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
:deep(.uni-steps__column-circle )
|
.choice-btn{
|
||||||
width: 24rpx !important
|
width: 100%;
|
||||||
height: 24rpx !important
|
height: 70rpx;
|
||||||
background: radial-gradient(circle,
|
font-size: 28rpx;
|
||||||
#00C0FA 0%,
|
border-radius: 8rpx;
|
||||||
#015EEA 50%,
|
background-color: #368BFF;
|
||||||
#FFFFFF 51%,
|
color: white;
|
||||||
#FFFFFF 100%) !important
|
margin-left: 0;
|
||||||
border-radius: 50%
|
}
|
||||||
border: 2rpx solid #015EEA
|
|
||||||
:deep(.uni-steps__column-title)
|
|
||||||
font-size: 28rpx !important
|
|
||||||
color: #006CFF !important
|
|
||||||
margin-bottom: 24rpx
|
|
||||||
:deep(.uni-steps__column-desc)
|
|
||||||
font-size: 28rpx
|
|
||||||
color: #898989 !important
|
|
||||||
line-height: 1.5
|
|
||||||
:deep(.uni-steps__column-text )
|
|
||||||
padding: 16rpx 0 !important
|
|
||||||
border: none
|
|
||||||
:deep(.uni-steps__column-line)
|
|
||||||
background-color: #368BFF !important
|
|
||||||
:deep(.uni-steps__column-line--before)
|
|
||||||
background-color:rgba(0,0,0,0) !important
|
|
||||||
:deep(.uni-date-x)
|
|
||||||
background: rgba(0,0,0,0) !important
|
|
||||||
:deep(.uni-stat-box)
|
|
||||||
background: rgba(0,0,0,0) !important
|
|
||||||
:deep(.uni-easyinput__content)
|
:deep(.uni-easyinput__content)
|
||||||
background: rgba(0,0,0,0) !important
|
background: rgba(0,0,0,0) !important
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -233,6 +233,7 @@ const handleCancel = () => {
|
|||||||
emit('update:showView', 'main')
|
emit('update:showView', 'main')
|
||||||
}
|
}
|
||||||
function getDataList(){
|
function getDataList(){
|
||||||
|
console.log("props.currentItem",props.currentItem)
|
||||||
let header={
|
let header={
|
||||||
'Authorization':uni.getStorageSync('Padmin-Token'),
|
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||||
'Content-Type': "application/x-www-form-urlencoded"
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
|
|||||||
@@ -197,8 +197,16 @@ import { onLoad } from '@dcloudio/uni-app';
|
|||||||
const { $api, navTo, navBack } = inject('globalFunction');
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
import config from "@/config.js"
|
import config from "@/config.js"
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
allocationId:{
|
||||||
|
type: String,
|
||||||
|
required: false,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
})
|
||||||
const title = ref('');
|
const title = ref('');
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
|
allocationId:'',
|
||||||
name: '',
|
name: '',
|
||||||
idCard: '',
|
idCard: '',
|
||||||
tagId: '',
|
tagId: '',
|
||||||
@@ -219,7 +227,7 @@ const getBackgroundStyle = (imageName) => ({
|
|||||||
backgroundPosition: 'center', // 居中
|
backgroundPosition: 'center', // 居中
|
||||||
backgroundRepeat: 'no-repeat'
|
backgroundRepeat: 'no-repeat'
|
||||||
});
|
});
|
||||||
const emit = defineEmits(['update:showView'])
|
const emit = defineEmits(['update:showVue'])
|
||||||
function getDictionary(){
|
function getDictionary(){
|
||||||
$api.myRequest('/system/public/dict/data/type/person_database_status').then((resData) => {
|
$api.myRequest('/system/public/dict/data/type/person_database_status').then((resData) => {
|
||||||
if(resData && resData.code == 200){
|
if(resData && resData.code == 200){
|
||||||
@@ -269,13 +277,18 @@ function getabelByValue(value,arr) {
|
|||||||
return item ? item.text : '暂无'
|
return item ? item.text : '暂无'
|
||||||
}
|
}
|
||||||
const handleCancel = () => {
|
const handleCancel = () => {
|
||||||
emit('update:showView', 'main')
|
emit('update:showVue', {
|
||||||
|
showVue: 'main',
|
||||||
|
selectedPersonIds: []
|
||||||
|
});
|
||||||
|
// emit('update:showVue', 'main')
|
||||||
}
|
}
|
||||||
function handleSearch(){
|
function handleSearch(){
|
||||||
dataList.value=[]
|
dataList.value=[]
|
||||||
getDataList()
|
getDataList()
|
||||||
}
|
}
|
||||||
function handleReset(){
|
function handleReset(){
|
||||||
|
formData.allocationId=''
|
||||||
formData.name=''
|
formData.name=''
|
||||||
formData.idCard=''
|
formData.idCard=''
|
||||||
formData.tagId=''
|
formData.tagId=''
|
||||||
@@ -286,11 +299,20 @@ function handleReset(){
|
|||||||
getDataList()
|
getDataList()
|
||||||
}
|
}
|
||||||
function getDataList(){
|
function getDataList(){
|
||||||
|
let url=''
|
||||||
|
if(props.allocationId){
|
||||||
|
formData.allocationId=props.allocationId
|
||||||
|
url='/dispatch/assist/person/database/pageAllocatePersonList'
|
||||||
|
}else{
|
||||||
|
url='/dispatch/assist/person/database/pageList'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
let header={
|
let header={
|
||||||
'Authorization':uni.getStorageSync('Padmin-Token'),
|
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||||
'Content-Type': "application/x-www-form-urlencoded"
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
}
|
}
|
||||||
$api.myRequest('/dispatch/assist/person/database/pageList',formData,'get',9100,header).then((resData) => {
|
$api.myRequest(url,formData,'get',9100,header).then((resData) => {
|
||||||
resData.rows.forEach(item=>{
|
resData.rows.forEach(item=>{
|
||||||
item.tags=item.tagName.split(',')
|
item.tags=item.tagName.split(',')
|
||||||
item.assistStatus=getabelByValue(item.assistStatus,personDatabaseStatusOptions)
|
item.assistStatus=getabelByValue(item.assistStatus,personDatabaseStatusOptions)
|
||||||
@@ -318,8 +340,8 @@ function selectItem(item) {
|
|||||||
}
|
}
|
||||||
// 获取选中的数据
|
// 获取选中的数据
|
||||||
function handlesubmit() {
|
function handlesubmit() {
|
||||||
emit('update:showView', {
|
emit('update:showVue', {
|
||||||
showView: 'main',
|
showVue: 'main',
|
||||||
selectedPersonIds: selectedPersonIds.value
|
selectedPersonIds: selectedPersonIds.value
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<AppLayout :title="title" :show-bg-image="false" >
|
<AppLayout :title="title" :show-bg-image="false" >
|
||||||
<view class="main-list" :style="getBackgroundStyle('k.png')">
|
<view class="main-list" :style="getBackgroundStyle('k.png')" v-if="showVue=='main'">
|
||||||
<view class="list-top">
|
<view class="list-top">
|
||||||
<view class="list-title">
|
<view class="list-title">
|
||||||
<text>创建任务</text>
|
<text>创建任务</text>
|
||||||
@@ -19,16 +19,16 @@
|
|||||||
<uni-data-select v-model="formData.priority" placeholder="请选择优先级" :localdata="priorityOptions" @change="priorityChange"></uni-data-select>
|
<uni-data-select v-model="formData.priority" placeholder="请选择优先级" :localdata="priorityOptions" @change="priorityChange"></uni-data-select>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="目标人员:" required >
|
<uni-forms-item label="目标人员:" required >
|
||||||
<button class="choice-btn">从帮扶人员库选择目标人员</button>
|
<button class="choice-btn" @click="choicePerson">从帮扶人员库选择目标人员</button>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="目标人数:" name="goalPersonCount" required>
|
<uni-forms-item label="目标人数:" name="taskAllocation.goalPersonCount" required>
|
||||||
<uni-easyinput v-model="formData.taskAllocation.goalPersonCount" ></uni-easyinput>
|
<uni-easyinput v-model="formData.taskAllocation.goalPersonCount" disabled></uni-easyinput>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="执行区域:" name="executeDeptId" required >
|
<uni-forms-item label="执行区域:" name="taskAllocation.executeDeptId" required >
|
||||||
<uni-data-select v-model="formData.taskAllocation.executeDeptId" placeholder="请选择执行区域" :localdata="executeDeptOptions" @change="executeDeptChange"></uni-data-select>
|
<uni-data-select v-model="formData.taskAllocation.executeDeptId" placeholder="请选择执行区域" :localdata="executeDeptOptions" @change="executeDeptChange"></uni-data-select>
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="截止时间:" name="deadline" required>
|
<uni-forms-item label="截止时间:" name="taskAllocation.deadline" required>
|
||||||
<uni-datetime-picker class="picker-value" type="date" placeholder="请选择截止时间" v-model="formData.taskAllocation.deadline" @change="onDateChange" />
|
<uni-datetime-picker class="picker-value" type="date" placeholder="请选择截止时间" v-model="formData.taskAllocation.deadline" @change="onDateChange" />
|
||||||
</uni-forms-item>
|
</uni-forms-item>
|
||||||
<uni-forms-item label="分配说明:" name="allocationNote" >
|
<uni-forms-item label="分配说明:" name="allocationNote" >
|
||||||
<uni-easyinput type="textarea" v-model="formData.taskAllocation.allocationNote" placeholder="请输入分配说明"></uni-easyinput>
|
<uni-easyinput type="textarea" v-model="formData.taskAllocation.allocationNote" placeholder="请输入分配说明"></uni-easyinput>
|
||||||
@@ -41,6 +41,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="" v-else>
|
||||||
|
<target-personel-choice @update:show-vue="handleShowVueChange"></target-personel-choice>
|
||||||
|
</view>
|
||||||
</AppLayout>
|
</AppLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -49,6 +52,7 @@ import { inject, ref, reactive } from 'vue';
|
|||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
const { $api, navTo, navBack } = inject('globalFunction');
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
import config from "@/config.js"
|
import config from "@/config.js"
|
||||||
|
import targetPersonelChoice from './targetPersonnelChoice.vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
taskTypeOptions: {
|
taskTypeOptions: {
|
||||||
@@ -105,19 +109,19 @@ const rules = {
|
|||||||
errorMessage: '请选择优先级'
|
errorMessage: '请选择优先级'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
goalPersonCount: {
|
'taskAllocation.goalPersonCount': {
|
||||||
rules: [{
|
rules: [{
|
||||||
required: true,
|
required: true,
|
||||||
errorMessage: '请选择目标人员'
|
errorMessage: '请选择目标人员'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
executeDeptId: {
|
'taskAllocation.executeDeptId': {
|
||||||
rules: [{
|
rules: [{
|
||||||
required: true,
|
required: true,
|
||||||
errorMessage: '请选择执行区域'
|
errorMessage: '请选择执行区域'
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
deadline:{
|
'taskAllocation.deadline':{
|
||||||
rules: [{
|
rules: [{
|
||||||
required: true,
|
required: true,
|
||||||
errorMessage: '请选择截止时间'
|
errorMessage: '请选择截止时间'
|
||||||
@@ -131,25 +135,71 @@ const getBackgroundStyle = (imageName) => ({
|
|||||||
backgroundPosition: 'center', // 居中
|
backgroundPosition: 'center', // 居中
|
||||||
backgroundRepeat: 'no-repeat'
|
backgroundRepeat: 'no-repeat'
|
||||||
});
|
});
|
||||||
|
const showVue=ref('main')
|
||||||
const emit = defineEmits(['update:showView'])
|
const emit = defineEmits(['update:showView'])
|
||||||
|
function choicePerson(){
|
||||||
|
showVue.value='choice'
|
||||||
|
}
|
||||||
// 事件处理
|
// 事件处理
|
||||||
function onDateChange(){}
|
function onDateChange(e){
|
||||||
function taskTypeChange(){}
|
formData.taskAllocation.deadline=e
|
||||||
function priorityChange(){}
|
}
|
||||||
function executeDeptChange(){}
|
function taskTypeChange(e){
|
||||||
|
formData.taskType=e
|
||||||
|
}
|
||||||
|
function priorityChange(e){
|
||||||
|
formData.priority=e
|
||||||
|
}
|
||||||
|
function executeDeptChange(e){
|
||||||
|
formData.taskAllocation.executeDeptId=e
|
||||||
|
formData.taskAllocation.executeDeptName=getLabelByValue(e,props.executeDeptOptions)
|
||||||
|
formData.taskAllocation.executeDeptAncestors=getAncestorsByValue(e,props.executeDeptOptions)
|
||||||
|
}
|
||||||
|
function getLabelByValue(value,arr) {
|
||||||
|
if (!Array.isArray(arr)) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
|
const item = arr.find(item => item.value === value)
|
||||||
|
return item ? item.text : '暂无'
|
||||||
|
}
|
||||||
|
function getAncestorsByValue(value,arr){
|
||||||
|
if (!Array.isArray(arr)) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
|
const item = arr.find(item => item.value === value)
|
||||||
|
return item ? item.ancestors : ''
|
||||||
|
}
|
||||||
|
function normalizePersonData(dataList) {
|
||||||
|
if (!Array.isArray(dataList)) return [];
|
||||||
|
return dataList.map(obj => {
|
||||||
|
const fullValue = obj;
|
||||||
|
return {
|
||||||
|
personId: String(fullValue) // 确保转为字符串,防止意外类型
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function handleShowVueChange(newValue){
|
||||||
|
showVue.value=newValue.showVue
|
||||||
|
if(newValue.selectedPersonIds&&newValue.selectedPersonIds.length>0){
|
||||||
|
formData.taskAllocation.goalPersonList = normalizePersonData(newValue.selectedPersonIds)
|
||||||
|
formData.taskAllocation.goalPersonCount=newValue.selectedPersonIds.length
|
||||||
|
}else{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
const handleSubmit = () => {
|
const handleSubmit = () => {
|
||||||
formRef.value?.validate()
|
formRef.value?.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
let header={
|
let header={
|
||||||
'Authorization':uni.getStorageSync('fourLevelLinkage-token')
|
'Authorization':uni.getStorageSync('Padmin-Token')
|
||||||
}
|
}
|
||||||
$api.myRequest('/dispatch/assist/records/addRecords', formData,'post',9100,header).then((resData) => {
|
$api.myRequest('/dispatch/assist/task/add', formData,'post',9100,header).then((resData) => {
|
||||||
console.log("resData",resData)
|
|
||||||
if(resData && resData.code == 200){
|
if(resData && resData.code == 200){
|
||||||
handleReset()
|
handleCancel()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '保存成功',
|
title: '创建成功',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -176,7 +176,7 @@
|
|||||||
<view class="form-btns">
|
<view class="form-btns">
|
||||||
<button class="mini-btn form-box-btn detail-btn" size="mini" @click="goDetail(item)">详情</button>
|
<button class="mini-btn form-box-btn detail-btn" size="mini" @click="goDetail(item)">详情</button>
|
||||||
<button class="mini-btn form-box-btn follow-btn" size="mini" @click="goTarget(item)">目标人员</button>
|
<button class="mini-btn form-box-btn follow-btn" size="mini" @click="goTarget(item)">目标人员</button>
|
||||||
<button class="mini-btn form-box-btn recommend-btn" size="mini" @click="goRecommend(item)">分配</button>
|
<button class="mini-btn form-box-btn recommend-btn" v-if="item.taskAllocation.allocationStatus == '待分配'" size="mini" @click="goRecommend(item)">分配</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -184,9 +184,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
<view class="" v-else-if="showView=='add'" >
|
<!-- <view class="" v-else-if="showView=='add'" >
|
||||||
<task-created :taskTypeOptions="taskTypeOptions" :priorityOptions="priorityOptions" :executeDeptOptions="executeDeptOptions" @update:show-view="handleShowViewChange"></task-created>
|
<task-created :taskTypeOptions="taskTypeOptions" :priorityOptions="priorityOptions" :executeDeptOptions="executeDeptOptions" @update:show-view="handleShowViewChange"></task-created>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="" v-else-if="showView=='detail'" >
|
<view class="" v-else-if="showView=='detail'" >
|
||||||
<task-detail :currentItem="currentItem" :taskTypeOptions="taskTypeOptions" :priorityOptions="priorityOptions" :executeDeptOptions="executeDeptOptions" :allocationStatusOptions="allocationStatusOptions" @update:show-view="handleShowViewChange"></task-detail>
|
<task-detail :currentItem="currentItem" :taskTypeOptions="taskTypeOptions" :priorityOptions="priorityOptions" :executeDeptOptions="executeDeptOptions" :allocationStatusOptions="allocationStatusOptions" @update:show-view="handleShowViewChange"></task-detail>
|
||||||
</view>
|
</view>
|
||||||
@@ -201,7 +201,7 @@ import { inject, ref, reactive } from 'vue';
|
|||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
const { $api, navTo, navBack } = inject('globalFunction');
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
import config from "@/config.js"
|
import config from "@/config.js"
|
||||||
import taskCreated from './components/taskCreated.vue';
|
// import taskCreated from './components/taskCreated.vue';
|
||||||
import taskDetail from './components/taskDetail.vue';
|
import taskDetail from './components/taskDetail.vue';
|
||||||
import targetPersonnel from './components/targetPersonnel.vue';
|
import targetPersonnel from './components/targetPersonnel.vue';
|
||||||
|
|
||||||
@@ -246,7 +246,8 @@ function listNotParam(){
|
|||||||
resData.data.forEach(item=>{
|
resData.data.forEach(item=>{
|
||||||
const obj = {
|
const obj = {
|
||||||
value: item.deptId,
|
value: item.deptId,
|
||||||
text: item.deptName
|
text: item.deptName,
|
||||||
|
ancestors:item.ancestors
|
||||||
}
|
}
|
||||||
executeDeptOptions.value.push(obj)
|
executeDeptOptions.value.push(obj)
|
||||||
})
|
})
|
||||||
@@ -357,13 +358,14 @@ const handleReset = () => {
|
|||||||
}
|
}
|
||||||
function handleShowViewChange(newValue) {
|
function handleShowViewChange(newValue) {
|
||||||
showView.value = newValue
|
showView.value = newValue
|
||||||
|
dataList.value=[]
|
||||||
|
getDataList()
|
||||||
}
|
}
|
||||||
const creatTask = () => {
|
const creatTask = () => {
|
||||||
showView.value='add'
|
navTo('/packageB/priority/taskCreated');
|
||||||
// navTo('/packageB/priority/taskCreated');
|
|
||||||
}
|
}
|
||||||
const goRecommend = () =>{
|
function goRecommend(item){
|
||||||
navTo('/packageB/priority/allocate');
|
navTo('/packageB/priority/allocate?id='+item.id);
|
||||||
}
|
}
|
||||||
function goDetail(item){
|
function goDetail(item){
|
||||||
currentItem.value=item.id
|
currentItem.value=item.id
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
|
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="btns" @click="jumps('/packageB/train/mockExam/examList')">
|
<view class="btns" @click="jumps('/packageB/train/mockExam/examList')">
|
||||||
<image src="/packageB/static/images/train/mnks-k.png" mode=""></image>
|
<image src="/packageB/static/images/train/mnks-k.png" mode=""></image>
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
|
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="btns" @click="jumps('/packageB/train/wrongAnswer/mistakeNotebook')">
|
<!-- <view class="btns" @click="jumps('/packageB/train/wrongAnswer/mistakeNotebook')">
|
||||||
<image src="/packageB/static/images/train/ctb-k.png" mode=""></image>
|
<image src="/packageB/static/images/train/ctb-k.png" mode=""></image>
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
|
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view> -->
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -57,6 +57,7 @@ import { onLoad, onShow } from '@dcloudio/uni-app';
|
|||||||
const { $api, navTo, vacanciesTo, formatTotal, config } = inject('globalFunction');
|
const { $api, navTo, vacanciesTo, formatTotal, config } = inject('globalFunction');
|
||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
import useDictStore from '@/stores/useDictStore';
|
import useDictStore from '@/stores/useDictStore';
|
||||||
|
import CryptoJS from 'crypto-js'
|
||||||
|
|
||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
thirdLogin()
|
thirdLogin()
|
||||||
@@ -81,6 +82,12 @@ async function thirdLogin(){
|
|||||||
contactperson: "",
|
contactperson: "",
|
||||||
contactphone: "",
|
contactphone: "",
|
||||||
}
|
}
|
||||||
|
//用户信息加密方法待更新
|
||||||
|
// let key = '9zS+DFKrzxvosO82mTcPJQ=='
|
||||||
|
// let secretKey = CryptoJS.enc.Utf8.parse(key);//key 为你的秘钥
|
||||||
|
// let srcs = CryptoJS.enc.Utf8.parse(form.idno);
|
||||||
|
// let encrypted = CryptoJS.AES.encrypt(srcs, secretKey, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7}).toString()
|
||||||
|
// form.idno=encrypted
|
||||||
}else if (uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
}else if (uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
||||||
form={
|
form={
|
||||||
usertype: "2",
|
usertype: "2",
|
||||||
@@ -181,7 +188,7 @@ async function thirdLogin(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -17,12 +17,12 @@
|
|||||||
placeholder="输入"
|
placeholder="输入"
|
||||||
placeholder-class="inputplace"
|
placeholder-class="inputplace"
|
||||||
/>
|
/>
|
||||||
<uni-icons
|
<uni-icons
|
||||||
v-if="searchKeyword"
|
v-if="searchKeyword"
|
||||||
class="clear-icon"
|
class="clear-icon"
|
||||||
type="clear"
|
type="clear"
|
||||||
size="24"
|
size="24"
|
||||||
color="#999"
|
color="#999"
|
||||||
@click="clearSearch"
|
@click="clearSearch"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
@@ -35,8 +35,8 @@
|
|||||||
<view class="title-line"></view>
|
<view class="title-line"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="video-grid" v-if="dataList.length>0">
|
<view class="video-grid" v-if="dataList.length>0">
|
||||||
<view
|
<view
|
||||||
v-for="item in dataList"
|
v-for="item in dataList"
|
||||||
:key="item.category_value"
|
:key="item.category_value"
|
||||||
class="train-item"
|
class="train-item"
|
||||||
>
|
>
|
||||||
@@ -66,6 +66,7 @@ import { inject, ref, reactive } from 'vue';
|
|||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
const { $api, navTo, navBack } = inject('globalFunction');
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
import config from "@/config.js"
|
import config from "@/config.js"
|
||||||
|
import CryptoJS from 'crypto-js'
|
||||||
|
|
||||||
// state
|
// state
|
||||||
const title = ref('');
|
const title = ref('');
|
||||||
@@ -130,7 +131,7 @@ function getDataList(type = 'add') {
|
|||||||
dataList.value=dataList.value.concat(resData.rows)
|
dataList.value=dataList.value.concat(resData.rows)
|
||||||
totalNum.value=resData.total
|
totalNum.value=resData.total
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,6 +158,12 @@ async function thirdLogin(){
|
|||||||
contactperson: "",
|
contactperson: "",
|
||||||
contactphone: "",
|
contactphone: "",
|
||||||
}
|
}
|
||||||
|
//用户信息加密方法待更新
|
||||||
|
// let key = '9zS+DFKrzxvosO82mTcPJQ=='
|
||||||
|
// let secretKey = CryptoJS.enc.Utf8.parse(key);//key 为你的秘钥
|
||||||
|
// let srcs = CryptoJS.enc.Utf8.parse(form.idno);
|
||||||
|
// let encrypted = CryptoJS.AES.encrypt(srcs, secretKey, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7}).toString()
|
||||||
|
// form.idno=encrypted
|
||||||
}else if (uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
}else if (uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
||||||
form={
|
form={
|
||||||
usertype: "2",
|
usertype: "2",
|
||||||
@@ -238,9 +245,9 @@ image {
|
|||||||
line-height: 38rpx;
|
line-height: 38rpx;
|
||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.heng{
|
.heng{
|
||||||
width: 120rpx;
|
width: 120rpx;
|
||||||
|
|||||||
@@ -17,12 +17,12 @@
|
|||||||
placeholder="输入视频名称"
|
placeholder="输入视频名称"
|
||||||
placeholder-class="inputplace"
|
placeholder-class="inputplace"
|
||||||
/>
|
/>
|
||||||
<uni-icons
|
<uni-icons
|
||||||
v-if="searchKeyword"
|
v-if="searchKeyword"
|
||||||
class="clear-icon"
|
class="clear-icon"
|
||||||
type="clear"
|
type="clear"
|
||||||
size="24"
|
size="24"
|
||||||
color="#999"
|
color="#999"
|
||||||
@click="clearSearch"
|
@click="clearSearch"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
@@ -35,16 +35,16 @@
|
|||||||
<view class="title-line"></view>
|
<view class="title-line"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="video-grid" v-if="dataList.length>0">
|
<view class="video-grid" v-if="dataList.length>0">
|
||||||
<view
|
<view
|
||||||
v-for="video in dataList"
|
v-for="video in dataList"
|
||||||
:key="video.id || video.videoId"
|
:key="video.id || video.videoId"
|
||||||
class="video-item"
|
class="video-item"
|
||||||
:style="getItemBackgroundStyle('video-bg.png')"
|
:style="getItemBackgroundStyle('video-bg.png')"
|
||||||
@click="playVideo(video)"
|
@click="playVideo(video)"
|
||||||
>
|
>
|
||||||
<view class="video-cover">
|
<view class="video-cover">
|
||||||
<image
|
<image
|
||||||
:src="trainVideoImgUrl+ video.cover"
|
:src="trainVideoImgUrl+ video.cover"
|
||||||
mode="aspectFill"
|
mode="aspectFill"
|
||||||
></image>
|
></image>
|
||||||
</view>
|
</view>
|
||||||
@@ -63,6 +63,7 @@ import { inject, ref, reactive } from 'vue';
|
|||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
const { $api, navTo, navBack } = inject('globalFunction');
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
import config from "@/config.js"
|
import config from "@/config.js"
|
||||||
|
import CryptoJS from 'crypto-js'
|
||||||
|
|
||||||
// state
|
// state
|
||||||
const title = ref('');
|
const title = ref('');
|
||||||
@@ -133,7 +134,7 @@ function getDataList(type = 'add') {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 播放视频
|
// 播放视频
|
||||||
async function playVideo(video) {
|
async function playVideo(video) {
|
||||||
@@ -155,6 +156,12 @@ async function thirdLogin(){
|
|||||||
contactperson: "",
|
contactperson: "",
|
||||||
contactphone: "",
|
contactphone: "",
|
||||||
}
|
}
|
||||||
|
//用户信息加密方法待更新
|
||||||
|
// let key = '9zS+DFKrzxvosO82mTcPJQ=='
|
||||||
|
// let secretKey = CryptoJS.enc.Utf8.parse(key);//key 为你的秘钥
|
||||||
|
// let srcs = CryptoJS.enc.Utf8.parse(form.idno);
|
||||||
|
// let encrypted = CryptoJS.AES.encrypt(srcs, secretKey, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7}).toString()
|
||||||
|
// form.idno=encrypted
|
||||||
}else if (uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
}else if (uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
||||||
form={
|
form={
|
||||||
usertype: "2",
|
usertype: "2",
|
||||||
|
|||||||
48
pages.json
48
pages.json
@@ -445,6 +445,12 @@
|
|||||||
"navigationBarTitleText": "帮扶任务分配"
|
"navigationBarTitleText": "帮扶任务分配"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "priority/taskCreated",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "创建任务"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "priority/taskIssue",
|
"path": "priority/taskIssue",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -516,48 +522,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "培训机构信息详情"
|
"navigationBarTitleText": "培训机构信息详情"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "institution/trainingInstitutionMaintenance",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "培训机构信息维护"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "components/map",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "选择地址"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "institution/evaluationAgencyMaintenance",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "评价机构信息维护"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "notice/trainingAnnouncement/postedList",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "培训公告发布"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "notice/trainingAnnouncement/postedEdit",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "培训公告"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "notice/evaluateAnnouncement/evaluateList",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "评价公告发布"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "notice/evaluateAnnouncement/evaluateEdit",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "评价公告"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -162,6 +162,7 @@
|
|||||||
} from "@/utils/tabbarManager";
|
} from "@/utils/tabbarManager";
|
||||||
import WxAuthLogin from "@/components/WxAuthLogin/WxAuthLogin.vue";
|
import WxAuthLogin from "@/components/WxAuthLogin/WxAuthLogin.vue";
|
||||||
import config from "@/config.js";
|
import config from "@/config.js";
|
||||||
|
import CryptoJS from 'crypto-js'
|
||||||
const {
|
const {
|
||||||
longitudeVal,
|
longitudeVal,
|
||||||
latitudeVal
|
latitudeVal
|
||||||
@@ -270,6 +271,12 @@
|
|||||||
contactperson: "",
|
contactperson: "",
|
||||||
contactphone: "",
|
contactphone: "",
|
||||||
}
|
}
|
||||||
|
//用户信息加密方法待更新
|
||||||
|
// let key = '9zS+DFKrzxvosO82mTcPJQ=='
|
||||||
|
// let secretKey = CryptoJS.enc.Utf8.parse(key);//key 为你的秘钥
|
||||||
|
// let srcs = CryptoJS.enc.Utf8.parse(form.idno);
|
||||||
|
// let encrypted = CryptoJS.AES.encrypt(srcs, secretKey, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7}).toString()
|
||||||
|
// form.idno=encrypted
|
||||||
}else if (uni.getStorageSync('userInfo') && uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
}else if (uni.getStorageSync('userInfo') && uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
||||||
form={
|
form={
|
||||||
usertype: "2",
|
usertype: "2",
|
||||||
@@ -309,7 +316,7 @@
|
|||||||
// wxAuthLoginRef.value?.open();
|
// wxAuthLoginRef.value?.open();
|
||||||
// });
|
// });
|
||||||
// });
|
// });
|
||||||
watch(() => userInfo.value.userType, (newVal) => {
|
watch(() => userInfo.value.userType, (newVal) => {
|
||||||
if(newVal=='ent'){
|
if(newVal=='ent'){
|
||||||
showTabar.value = true
|
showTabar.value = true
|
||||||
}else{
|
}else{
|
||||||
@@ -408,18 +415,18 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
async function getHeart() {
|
async function getHeart() {
|
||||||
|
|
||||||
|
|
||||||
const raw = uni.getStorageSync("Padmin-Token");
|
const raw = uni.getStorageSync("Padmin-Token");
|
||||||
const token = typeof raw === "string" ? raw.trim() : "";
|
const token = typeof raw === "string" ? raw.trim() : "";
|
||||||
|
|
||||||
var isLogins = await thirdLogin();
|
var isLogins = await thirdLogin();
|
||||||
|
|
||||||
const headers = token ? {
|
const headers = token ? {
|
||||||
Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}`
|
Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}`
|
||||||
} : {};
|
} : {};
|
||||||
|
|
||||||
|
|
||||||
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData) => {
|
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData) => {
|
||||||
if (isLogins) {
|
if (isLogins) {
|
||||||
isLogin.value = true;
|
isLogin.value = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user