Commit 2de23999 authored by 李苏's avatar 李苏 💬

添加岗位

parent af704cfe
......@@ -62,6 +62,7 @@ export function doDeleteJcnr(query) {
})
}
/* 已选择 */
export function doQueryFpgw(query) {
return request({
url: '/aqgl/fxyk/fxjcfp/query',
......@@ -69,7 +70,7 @@ export function doQueryFpgw(query) {
data: query||{}
})
}
/* 分配 jcnrid gwlist */
export function doFxjcfp(query) {
return request({
url: '/aqgl/fxyk/fxjcfp/fpgw',
......@@ -78,7 +79,7 @@ export function doFxjcfp(query) {
})
}
/* query */
/* 查询基础数据 */
export function doQueryScgw(query) {
return request({
url: '/aqgl/jcsj/scgw/query',
......@@ -86,12 +87,3 @@ export function doQueryScgw(query) {
data: query||{}
})
}
<template>
<div v-show="queryParams.mid" class="min_full" style="height: calc(84vh - 75px);">
<Fp ref='fp' :app='this' v-if='showDialog'></Fp>
<!-- 分配弹框-->
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
......@@ -14,7 +16,19 @@
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
<template slot="tabCustom">
<el-table-column fixed="right" label="分配操作" width="90" header-align="center" >
<template slot-scope="scope" v-if="scope.row.id" >
<el-button v-if="scope.row.id" style="text-align: center;color: #13ce66;width: 100%;"
@click.native.prevent="apiFp(scope.row)" type="text" size="small">
<i class="el-icon-s-promotion"></i>分配
</el-button>
<!-- <el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
active-color="#13ce66" inactive-color="#eee">
</el-switch> -->
</template>
</el-table-column>
</template>
</TablePager>
</div>
</div>
......@@ -26,10 +40,12 @@
doQueryJcnr,
doAddJcnr,
doUpdateJcnr,
doDeleteJcnr
doDeleteJcnr,
doQueryFpgw
} from '@/api/riskPrecontrol/screeningCriteria';
/* edit页面*/
import Edit from './contentEdit.vue'
import Fp from './contentFp.vue'
import {tableMixin} from 'common'
export default {
mixins: [tableMixin],
......@@ -42,6 +58,9 @@
},
data() {
return {
DialogWidth:'60vw',
showDialog: false,
DialogTitle: '分配',
/*需要的额外参数 */
typeMap: [],
systemType: [],
......@@ -71,11 +90,32 @@
apiUpdate: doUpdateJcnr,
/* 删除操作*/
apiDelete: doDeleteJcnr,
apiFp(row){
let jcnrid=row.id
doQueryFpgw({jcnrid:jcnrid}).then(res=>{
if(res.success){
this.showDialog=true
let gwlist=res.data.records||[]
let newGwlist=[]
gwlist.forEach(e=>{
newGwlist.push(e.gwid)
})
this.$nextTick(()=>{
this.$refs.fp.jcnrid=jcnrid
this.$refs.fp.value=newGwlist
})
}
})
// doQueryFpgw()
// this.showDialog=true
}
/* 初始化赋值操作*/
},
/* 注册组件*/
components: {
Edit
Edit,
Fp
}
}
</script>
......
<template>
<DefaultDialog :app='app'>
<div slot="form" >
<!-- 按钮-->
<RelSelect style="width: 100%;" multiple src='/aqgl/jcsj/scgw/query' :match="{value:'id',label:'name'}" v-model='value' ></RelSelect>
<!-- 表格-->
</div>
<div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer" style="position: absolute;right: 10px;top: 12px;">
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
import {
doFxjcfp
} from '@/api/riskPrecontrol/screeningCriteria';
export default {
props: {
app: {
type: Object,
default: {}
}
},
async mounted() {
},
methods: {
save(){
let params={jcnrid:this.jcnrid,gwlist:this.value}
doFxjcfp(params).then(res=>{
if(res.success){
this.$success('保存成功')
this.app.showDialog=false
}
})
}
},
data() {
return {
value:[],
jcnrid:''
}
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment