查看bug修复
parent
594538602b
commit
4f2ce48bb7
|
@ -7,7 +7,7 @@
|
||||||
<el-input v-model="KEYWORDS" placeholder="请输入用户名"/>
|
<el-input v-model="KEYWORDS" placeholder="请输入用户名"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col v-if="false" :span="6">
|
||||||
<el-form-item label="培训状态">
|
<el-form-item label="培训状态">
|
||||||
<el-select v-model="STATUS" placeholder="请选择培训状态" style="width: 100%;" clearable>
|
<el-select v-model="STATUS" placeholder="请选择培训状态" style="width: 100%;" clearable>
|
||||||
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"/>
|
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"/>
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
border
|
border
|
||||||
fit
|
fit
|
||||||
highlight-current-row>
|
highlight-current-row>
|
||||||
<el-table-column :selectable="handleSelectWithDifferentStatus" type="selection" width="55" align="center"/>
|
<el-table-column v-if="false" :selectable="handleSelectWithDifferentStatus" type="selection" width="55" align="center"/>
|
||||||
<el-table-column type="index" label="序号" width="50" align="center"/>
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
<el-table-column prop="USERNAME" label="用户名" align="center"/>
|
<el-table-column prop="USERNAME" label="用户名" align="center"/>
|
||||||
<el-table-column prop="NAME" label="姓名" align="center"/>
|
<el-table-column prop="NAME" label="姓名" align="center"/>
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="page-btn-group">
|
<div class="page-btn-group">
|
||||||
<div>
|
<div>
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">批量推送</el-button>
|
<el-button v-if="false" type="primary" icon="el-icon-plus" @click="handleAdd">批量推送</el-button>
|
||||||
</div>
|
</div>
|
||||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<el-input v-model="KEYWORDS" placeholder="请输入用户名"/>
|
<el-input v-model="KEYWORDS" placeholder="请输入用户名"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col v-if="false" :span="6">
|
||||||
<el-form-item label="培训状态">
|
<el-form-item label="培训状态">
|
||||||
<el-select v-model="STATUS" placeholder="请选择培训状态" style="width: 100%;" clearable>
|
<el-select v-model="STATUS" placeholder="请选择培训状态" style="width: 100%;" clearable>
|
||||||
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"/>
|
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"/>
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
border
|
border
|
||||||
fit
|
fit
|
||||||
highlight-current-row>
|
highlight-current-row>
|
||||||
<el-table-column v-if="false" :selectable="handleSelectWithDifferentStatus" type="selection" width="55" align="center"/>
|
<el-table-column :selectable="handleSelectWithDifferentStatus" type="selection" width="55" align="center"/>
|
||||||
<el-table-column type="index" label="序号" width="50" align="center"/>
|
<el-table-column type="index" label="序号" width="50" align="center"/>
|
||||||
<el-table-column prop="USERNAME" label="用户名" align="center"/>
|
<el-table-column prop="USERNAME" label="用户名" align="center"/>
|
||||||
<el-table-column prop="NAME" label="姓名" align="center"/>
|
<el-table-column prop="NAME" label="姓名" align="center"/>
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="page-btn-group">
|
<div class="page-btn-group">
|
||||||
<div>
|
<div>
|
||||||
<el-button v-if="false" type="primary" icon="el-icon-plus" @click="handleAdd">批量推送</el-button>
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">批量推送</el-button>
|
||||||
</div>
|
</div>
|
||||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -164,29 +164,14 @@ export default {
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
const _selectData = this.$refs.multipleTable.selection
|
const _selectData = this.$refs.multipleTable.selection
|
||||||
if (_selectData == null || _selectData.length == 0) {
|
if (_selectData == null || _selectData.length === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '未勾选培训人员...',
|
message: '未勾选人员...',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
this.$refs.sendUtil.init(_selectData)
|
||||||
var users = []
|
|
||||||
_selectData.map(item => {
|
|
||||||
if (item.STATUS === 0) {
|
|
||||||
users.push(item.USER_ID)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
if (users == null || users.length == 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '勾选人员暂无法提交申请...',
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
this.$refs.apply.init(users)
|
|
||||||
},
|
},
|
||||||
hasButton() {
|
hasButton() {
|
||||||
var keys = 'trainingbatch:add,trainingbatch:del,trainingbatch:edit,fhSms,email,fromExcel,toExcel'
|
var keys = 'trainingbatch:add,trainingbatch:del,trainingbatch:edit,fhSms,email,fromExcel,toExcel'
|
||||||
|
|
|
@ -1,18 +1,21 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-dialog :visible.sync="visible" :append-to-body="appendToBody" :before-close="beforeClose" title="头像" width="370px" destroy-on-close>
|
<el-dialog
|
||||||
<el-form>
|
:visible.sync="visible"
|
||||||
|
:append-to-body="appendToBody"
|
||||||
|
:before-close="beforeClose"
|
||||||
|
title="推送"
|
||||||
|
width="500px"
|
||||||
|
destroy-on-close>
|
||||||
|
<el-form label-position="right" label-width="100px">
|
||||||
<el-form-item prop="TERRITORIALITY" label="集团单位 ">
|
<el-form-item prop="TERRITORIALITY" label="集团单位 ">
|
||||||
<Treeselect
|
<el-select v-model="corp_id" placeholder="请选择集团单位 " style="width: 90%" @change="getInfo">
|
||||||
:options="jituanDanweiTreeData"
|
<el-option
|
||||||
:normalizer="normalizer"
|
v-for="item in jituanDanweiTreeData"
|
||||||
v-model="corp_id"
|
:key="item.CORPINFO_ID"
|
||||||
placeholder="请选择集团单位 "
|
:label="item.CORP_NAME"
|
||||||
no-options-text="暂无数据"
|
:value="JSON.stringify(item)"/>
|
||||||
no-children-text="暂无数据"
|
</el-select>
|
||||||
style="width: 100%;"
|
|
||||||
@select="getInfo($event)"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
|
@ -42,21 +45,16 @@ export default {
|
||||||
jituanDanwei: '',
|
jituanDanwei: '',
|
||||||
loading: false,
|
loading: false,
|
||||||
jituanDanweiTreeData: [],
|
jituanDanweiTreeData: [],
|
||||||
normalizer(node) {
|
|
||||||
return {
|
|
||||||
id: node.id,
|
|
||||||
label: node.name,
|
|
||||||
children: node.nodes
|
|
||||||
}
|
|
||||||
},
|
|
||||||
corp_id: null,
|
corp_id: null,
|
||||||
corp_name: '',
|
corp_name: '',
|
||||||
heirloom: {}
|
heirloom: {},
|
||||||
|
listFlag: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init(e) {
|
init(e) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.listFlag = false
|
||||||
this.getCorpinfo()
|
this.getCorpinfo()
|
||||||
this.heirloom = JSON.stringify(e)
|
this.heirloom = JSON.stringify(e)
|
||||||
},
|
},
|
||||||
|
@ -69,50 +67,31 @@ export default {
|
||||||
}
|
}
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.corpinfo = data.pd
|
this.corpinfo = data.pd
|
||||||
// 河港机械 jtdw002 1e6dbbe16004402f8d2c0e52afd9a676
|
|
||||||
// 河港港工 jtdw003 3a854eefa7894e06aaa1a2611bca80f6
|
|
||||||
// 河港检测 jtdw004 020578a4c1f04bc692ee25145c2efbe5
|
|
||||||
// 方宇物业 jtdw005 90966974de3c4b83aca6f8fd6432d5c2
|
|
||||||
|
|
||||||
if (data.pd.CORP_TYPE == 'jtdw002') {
|
|
||||||
this.jituanDanwei = '1e6dbbe16004402f8d2c0e52afd9a676'
|
|
||||||
}
|
|
||||||
if (data.pd.CORP_TYPE == 'jtdw003') {
|
|
||||||
this.jituanDanwei = '3a854eefa7894e06aaa1a2611bca80f6'
|
|
||||||
}
|
|
||||||
if (data.pd.CORP_TYPE == 'jtdw004') {
|
|
||||||
this.jituanDanwei = '020578a4c1f04bc692ee25145c2efbe5'
|
|
||||||
}
|
|
||||||
if (data.pd.CORP_TYPE == 'jtdw005') {
|
|
||||||
this.jituanDanwei = '90966974de3c4b83aca6f8fd6432d5c2'
|
|
||||||
}
|
|
||||||
this.getTreeData()
|
this.getTreeData()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getTreeData() {
|
getTreeData() {
|
||||||
if (this.jituanDanwei) {
|
|
||||||
requestFN(
|
requestFN(
|
||||||
'/companyApi/department/listTree',
|
'/department/getPreventCrop',
|
||||||
{ CORPINFO_ID: this.jituanDanwei }
|
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.jituanDanweiTreeData = JSON.parse(data.zTreeNodes)
|
this.jituanDanweiTreeData = data.data
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
})
|
})
|
||||||
}
|
|
||||||
},
|
},
|
||||||
getInfo(e) {
|
getInfo(e) {
|
||||||
console.log(e)
|
const info = JSON.parse(e)
|
||||||
this.corp_name = e.name
|
this.corp_name = info.CORP_NAME
|
||||||
},
|
},
|
||||||
beforeClose() {
|
beforeClose() {
|
||||||
this.corp_id = null
|
this.corp_id = null
|
||||||
},
|
},
|
||||||
sendMessage(row) {
|
sendMessage() {
|
||||||
|
const corp_id = JSON.parse(this.corp_id).CORPINFO_ID
|
||||||
requestFN(
|
requestFN(
|
||||||
'/trainingbatch/sendMessage',
|
'/trainingbatch/sendMessage',
|
||||||
{
|
{
|
||||||
list: this.heirloom,
|
list: this.heirloom,
|
||||||
corp_id: this.corp_id,
|
corp_id: corp_id,
|
||||||
corp_name: this.corp_name,
|
corp_name: this.corp_name,
|
||||||
tm: new Date().getTime()
|
tm: new Date().getTime()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue