flat: signGroup
This commit is contained in:
@@ -165,6 +165,11 @@ export const getMatchServeList =
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
params: params
|
params: params
|
||||||
})
|
})
|
||||||
|
export const getListAllByPolicy = (params) => request({
|
||||||
|
url: '/api/jobslink-api/tenant/talents/listAllByPolicy',
|
||||||
|
method: 'get',
|
||||||
|
params: params
|
||||||
|
})
|
||||||
|
|
||||||
export const getServeAllPolicyList = (params) => request({
|
export const getServeAllPolicyList = (params) => request({
|
||||||
url: '/api/jobslink-api/serve/listAllPolicy',
|
url: '/api/jobslink-api/serve/listAllPolicy',
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
v-for="item in leftServeOptions"
|
v-for="item in leftServeOptions"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.groupName"
|
:label="item.groupName"
|
||||||
:value="item.id">
|
:value="item.value">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button size="small" slot="append" class="input-search" @click="leftSearch">搜索</el-button>
|
<el-button size="small" slot="append" class="input-search" @click="leftSearch">搜索</el-button>
|
||||||
@@ -86,12 +86,21 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getListAllByLabels, getListGroupByLabels, getServeAllPolicyList, getListByids, getSearchAll, pushPolicyUserServe, pushPostUserServe } from "@/api/tenant/serve.js";
|
import {
|
||||||
|
getListAllByLabels,
|
||||||
|
getListGroupByLabels,
|
||||||
|
getServeAllPolicyList,
|
||||||
|
getListByids,
|
||||||
|
getSearchAll,
|
||||||
|
pushPolicyUserServe,
|
||||||
|
pushPostUserServe,
|
||||||
|
getListAllByPolicy
|
||||||
|
} from "@/api/tenant/serve.js";
|
||||||
import TextTooltip from "@/components/text-tooltip/index.vue";
|
import TextTooltip from "@/components/text-tooltip/index.vue";
|
||||||
import {debounce} from '@/util/util'
|
import {debounce} from '@/util/util'
|
||||||
import {DateTime} from "@/util/dateTime";
|
import {DateTime} from "@/util/dateTime";
|
||||||
import CustomLoading from "@/components/Custom-Loading/index.vue";
|
import CustomLoading from "@/components/Custom-Loading/index.vue";
|
||||||
const pages = { pagerCount: 3, total: 0, size: 10, current: 1 }
|
const pages = { pagerCount: 3, total: 0, size: 10, currentPage: 1 }
|
||||||
const baseOptions = {
|
const baseOptions = {
|
||||||
size: 'medium',
|
size: 'medium',
|
||||||
dateBtn: false,
|
dateBtn: false,
|
||||||
@@ -194,7 +203,7 @@ export default {
|
|||||||
onPageLoad() {
|
onPageLoad() {
|
||||||
console.log('row', this.rowData)
|
console.log('row', this.rowData)
|
||||||
if(!this.rowData) return
|
if(!this.rowData) return
|
||||||
this.getLeftServeList()
|
this.getLeftSignGroupList()
|
||||||
this.getLeftUserList()
|
this.getLeftUserList()
|
||||||
// this.getRightListPolicy()
|
// this.getRightListPolicy()
|
||||||
},
|
},
|
||||||
@@ -231,16 +240,19 @@ export default {
|
|||||||
this.getRightSearch()
|
this.getRightSearch()
|
||||||
}, 1000),
|
}, 1000),
|
||||||
leftSearch() {
|
leftSearch() {
|
||||||
console.log('search', this.formInline)
|
this.leftPages.currentPage = 1
|
||||||
this.getLeftUserList('serve')
|
this.getLeftUserList('serve')
|
||||||
|
console.log('leftpages:', this.leftPages)
|
||||||
},
|
},
|
||||||
leftCurrentPageChange(current) {
|
leftCurrentPageChange(current) {
|
||||||
this.leftPages.current = current
|
this.leftPages.currentPage = current
|
||||||
this.getLeftUserList()
|
this.getLeftUserList()
|
||||||
|
console.log('leftpages:', this.leftPages)
|
||||||
},
|
},
|
||||||
leftSizePageChange(current) {
|
leftSizePageChange(current) {
|
||||||
this.leftPages.size = current
|
this.leftPages.size = current
|
||||||
this.getLeftUserList()
|
this.getLeftUserList()
|
||||||
|
console.log('leftpages:', this.leftPages)
|
||||||
},
|
},
|
||||||
leftSelectionChange(val) {
|
leftSelectionChange(val) {
|
||||||
this.leftUserSelections = val
|
this.leftUserSelections = val
|
||||||
@@ -327,35 +339,39 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getLeftUserList(type) {
|
async getLeftUserList(type) {
|
||||||
const {current, size} = this.leftPages
|
const {currentPage, size} = this.leftPages
|
||||||
const createTime = Date.now() + 3000
|
const createTime = Date.now() + 3000
|
||||||
let params = {
|
let params = {
|
||||||
...this.formInline,
|
...this.formInline,
|
||||||
current, size,
|
current: currentPage,
|
||||||
labels: this.rowData.serveLabels,
|
size,
|
||||||
|
labels: this.rowData.talentsNames.join(','),
|
||||||
}
|
}
|
||||||
console.log(params)
|
console.log('params', params)
|
||||||
// params.labels = '未分组'
|
// params.labels = '未分组'
|
||||||
this.leftLoading = true
|
this.leftLoading = true
|
||||||
let resData = await getListAllByLabels(params)
|
let resData = await getListAllByPolicy(params)
|
||||||
if ( resData.data.code === 200 ) {
|
if ( resData.data.code === 200 ) {
|
||||||
const timed = createTime - Date.now() > 0 ? createTime - Date.now() : 0
|
const timed = createTime - Date.now() > 0 ? createTime - Date.now() : 0
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const { records, total, size, current } = resData.data.data
|
const { records, total, size, current } = resData.data.data
|
||||||
this.leftUserDataList = records
|
this.leftUserDataList = records
|
||||||
this.leftPages = { total, size, current }
|
this.leftPages = { total, size, currentPage: current }
|
||||||
|
console.log('leftpages:', this.leftPages)
|
||||||
this.leftLoading = false
|
this.leftLoading = false
|
||||||
}, timed)
|
}, timed)
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getLeftServeList() {
|
async getLeftSignGroupList() {
|
||||||
let params = { labels: this.rowData.serveLabels }
|
const arr = this.rowData.talentsNames.map((v) => ({ groupName: v, value: v }))
|
||||||
|
this.leftServeOptions = [{groupName: '全部' }, ...arr]
|
||||||
|
// let params = { labels: this.rowData.talentsNames.join(',') }
|
||||||
// params.labels = '未分组'
|
// params.labels = '未分组'
|
||||||
let resData = await getListGroupByLabels(params)
|
// let resData = await getListAllByPolicy(params)
|
||||||
if ( resData.data.code === 200 ) {
|
// if ( resData.data.code === 200 ) {
|
||||||
this.leftServeOptions = [{groupName: '全部', value: ''}, ...resData.data.data]
|
// this.leftServeOptions = [{groupName: '全部', value: ''}, ...resData.data.data]
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -945,8 +945,14 @@ export default {
|
|||||||
},
|
},
|
||||||
selectPushService(row) {
|
selectPushService(row) {
|
||||||
console.log('点击')
|
console.log('点击')
|
||||||
this.selectPushServiceData = deepClone(row)
|
detail(row.id).then((res) => {
|
||||||
|
if(res.data.code === 200) {
|
||||||
|
this.selectPushServiceData = res.data.data
|
||||||
this.PushServiceVisible = true
|
this.PushServiceVisible = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// this.selectPushServiceData = deepClone(row)
|
||||||
|
// this.PushServiceVisible = true
|
||||||
},
|
},
|
||||||
handleChange(item) {
|
handleChange(item) {
|
||||||
console.log(item)
|
console.log(item)
|
||||||
|
|||||||
Reference in New Issue
Block a user