Commit dcc6b719 authored by 李苏's avatar 李苏 💬

大溪沟调整

parent 2e9072e6
...@@ -26,6 +26,13 @@ ...@@ -26,6 +26,13 @@
:match="{value:'id',label:'name'}" v-model='queryParams.yldj'></RelSelect> :match="{value:'id',label:'name'}" v-model='queryParams.yldj'></RelSelect>
</div> </div>
</el-col> </el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">年度:</span>
<RelYearSelect style="width: 100%;"
v-model='queryParams.year'></RelYearSelect>
</div>
</el-col>
</el-row> </el-row>
</div> </div>
...@@ -85,7 +92,15 @@ ...@@ -85,7 +92,15 @@
name: 'appVersion', name: 'appVersion',
/* 初始额外赋值*/ /* 初始额外赋值*/
created() {
this.queryParams={
...this.queryParams,
...this.$route.query
}
},
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery({ this.$refs['TablePager'].pageQuery({
setFirstCurrent: true setFirstCurrent: true
}) })
...@@ -102,6 +117,7 @@ ...@@ -102,6 +117,7 @@
baseUrl: '/aqgl/yjgl/yjyljh', baseUrl: '/aqgl/yjgl/yjyljh',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
year:'',
yldj: '', yldj: '',
info: '', info: '',
ksrq: new Date().getTime() - 1000 * 60 * 60 * 24 * 30, ksrq: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
......
<template> <template>
<div class="min_full" style="height: 72vh;overflow: auto;" v-show='queryParams.yljhid' > <div class="min_full" style="height: 72vh;overflow: auto;" v-show='queryParams.yljhid' >
<!-- 查询条件--> <!-- 查询条件-->
<!-- <div class="search" v-condition> <div class="search" v-condition>
<SearchButton :app='app'></SearchButton> <SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1"> <el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">分类:</span> <span class="search-span">月份:</span>
<el-input></el-input> <el-select style="width: 100%;" clearable v-model="queryParams.month" placeholder="请选择">
</div> <el-option v-for="(item,index) in 12" :label='`${item}月`' :value="item">
</el-col> </el-option>
<el-col :span="6" class="search-col"> </el-select>
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束日期:</span>
<el-date-picker></el-date-picker>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</div> --> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton> <PrintButton :app='app'></PrintButton>
...@@ -41,7 +32,7 @@ ...@@ -41,7 +32,7 @@
</el-row> </el-row>
<!-- 表格--> <!-- 表格-->
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :ref="'TablePager'" :rowClass='rowClass' :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
</TablePager> </TablePager>
...@@ -69,10 +60,13 @@ ...@@ -69,10 +60,13 @@
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery() this.queryParams.month=this.$route.query.month
// this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
return { return {
/*需要的额外参数 */ /*需要的额外参数 */
showDialog: false, showDialog: false,
DialogName: '', DialogName: '',
...@@ -82,10 +76,19 @@ ...@@ -82,10 +76,19 @@
baseUrl: 'aqgl/yjgl/yjyl', baseUrl: 'aqgl/yjgl/yjyl',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
yljhid: '' yljhid: '',
month:''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label:"状态", prop: "zt",width:80,formatter(row,c,v){
if( row.attachcount>0){
return '完成'
}else{
return '未完成'
}
}},
{label: "月份", prop: "month",width:80},
{label: "演练名称", prop: "name", fieldType: "ftString",width:300}, {label: "演练名称", prop: "name", fieldType: "ftString",width:300},
{label: "分公司", prop: "gsName", fieldType: "ftString",width:192}, {label: "分公司", prop: "gsName", fieldType: "ftString",width:192},
{label: "演练组织单位", prop: "yldwName", fieldType: "ftString",width:192}, {label: "演练组织单位", prop: "yldwName", fieldType: "ftString",width:192},
...@@ -117,7 +120,13 @@ ...@@ -117,7 +120,13 @@
} }
}, },
methods: { methods: {
rowClass({ row, rowIndex }) {
if (row.attachcount == 0) {
return "warning-row";
} else {
return "success-row";
}
},
/* 基础查询*/ /* 基础查询*/
query: doQuery, query: doQuery,
/* 基础增*/ /* 基础增*/
......
...@@ -26,6 +26,13 @@ ...@@ -26,6 +26,13 @@
:match="{value:'id',label:'name'}" v-model='queryParams.pxdj'></RelSelect> :match="{value:'id',label:'name'}" v-model='queryParams.pxdj'></RelSelect>
</div> </div>
</el-col> </el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">年度:</span>
<RelYearSelect style="width: 100%;"
v-model='queryParams.year'></RelYearSelect>
</div>
</el-col>
</el-row> </el-row>
</div> </div>
...@@ -85,6 +92,12 @@ ...@@ -85,6 +92,12 @@
name: 'aqpx', name: 'aqpx',
/* 初始额外赋值*/ /* 初始额外赋值*/
created() {
this.queryParams={
...this.queryParams,
...this.$route.query
}
},
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery({ this.$refs['TablePager'].pageQuery({
setFirstCurrent: true setFirstCurrent: true
......
<template> <template>
<div class="min_full" style="height: 72vh;overflow: auto;" v-show='queryParams.pxjhid' > <div class="min_full" style="height: 72vh;overflow: auto;" v-show='queryParams.pxjhid' >
<!-- 查询条件--> <!-- 查询条件-->
<!-- <div class="search" v-condition> <div class="search" v-condition>
<SearchButton :app='app'></SearchButton> <SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1"> <el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">分类:</span> <span class="search-span">月份:</span>
<el-input></el-input> <el-select style="width: 100%;" clearable v-model="queryParams.month" placeholder="请选择">
</div> <el-option v-for="(item,index) in 12" :label='`${item}月`' :value="item">
</el-col> </el-option>
<el-col :span="6" class="search-col"> </el-select>
<div class="search-item"> </div>
<span class="search-span">开始日期:</span> </el-col>
<el-date-picker></el-date-picker> </el-row>
</div> </div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束日期:</span>
<el-date-picker></el-date-picker>
</div>
</el-col>
</el-row>
</div> -->
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton> <PrintButton :app='app'></PrintButton>
...@@ -41,7 +32,7 @@ ...@@ -41,7 +32,7 @@
</el-row> </el-row>
<!-- 表格--> <!-- 表格-->
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager @getData='getData' :rowClass='rowClass' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
</TablePager> </TablePager>
...@@ -69,7 +60,11 @@ ...@@ -69,7 +60,11 @@
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery() this.queryParams={
...this.queryParams,
...this.$route.query
}
// this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
return { return {
...@@ -82,10 +77,19 @@ ...@@ -82,10 +77,19 @@
baseUrl: 'aqgl/pxgl/uaqpx', baseUrl: 'aqgl/pxgl/uaqpx',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
pxjhid: '' pxjhid: '',
month:''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label:"状态", prop: "zt",width:80,formatter(row,c,v){
if( row.attachcount>0){
return '完成'
}else{
return '未完成'
}
}},
{label: "月份", prop: "month",width:80},
{label: "培训名称", prop: "name", fieldType: "ftString",width:300}, {label: "培训名称", prop: "name", fieldType: "ftString",width:300},
{label: "分公司", prop: "gsName", fieldType: "ftString",width:192}, {label: "分公司", prop: "gsName", fieldType: "ftString",width:192},
{label: "培训组织单位", prop: "pxdwName", fieldType: "ftString",width:192}, {label: "培训组织单位", prop: "pxdwName", fieldType: "ftString",width:192},
...@@ -117,6 +121,13 @@ ...@@ -117,6 +121,13 @@
} }
}, },
methods: { methods: {
rowClass({ row, rowIndex }) {
if (row.attachcount == 0) {
return "warning-row";
} else {
return "success-row";
}
},
/* 基础查询*/ /* 基础查询*/
query: doQuery, query: doQuery,
......
...@@ -90,7 +90,18 @@ ...@@ -90,7 +90,18 @@
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12">
<el-form-item v-rule="{
required: true,
rules:rules
}" label="月份" ref="month" prop="month">
<!-- <el-input type="number" :readonly="readonly" v-model="form.month" ></el-input> -->
<el-select style="width: 100%;" v-model="form.month" placeholder="请选择">
<el-option v-for="(item,index) in 12" :label='`${item}月`' :value="item">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="培训人数" ref="pxrs" prop="pxrs"> <el-form-item label="培训人数" ref="pxrs" prop="pxrs">
<el-input :readonly="readonly" v-model="form.pxrs" ></el-input> <el-input :readonly="readonly" v-model="form.pxrs" ></el-input>
...@@ -132,6 +143,7 @@ ...@@ -132,6 +143,7 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
month:'',
pxrs:'', pxrs:'',
pxdj:'', pxdj:'',
//ID //ID
......
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