Commit 60bfa587 authored by 李苏's avatar 李苏 💬

首页带参跳转

parent 9f47fa96
...@@ -26,13 +26,32 @@ ...@@ -26,13 +26,32 @@
<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>
<RelSelect src='aqgl/rcgl/uaqglry/init/zt' clearable :match="{value:'id',label:'name'}" v-model='queryParams.zt' ></RelSelect> <RelSelect src='aqgl/rcgl/uaqglry/init/zt' clearable :match="{value:'id',label:'name'}"
v-model='queryParams.zt'></RelSelect>
</div> </div>
</el-col> </el-col>
<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>
<RelSelect src='aqgl/rcgl/uaqglry/init/syfw' clearable :match="{value:'id',label:'name'}" v-model='queryParams.syfw' ></RelSelect> <RelSelect src='aqgl/rcgl/uaqglry/init/syfw' clearable :match="{value:'id',label:'name'}"
v-model='queryParams.syfw'></RelSelect>
</div>
</el-col>
</el-row>
<el-row :gutter="30" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">超期情况:</span>
<RelSelect :optionsData="[{
id:'Y',name:'有效期内'
},
{
id:'D',name:'即将到期'
},
{
id:'C',name:'超期'
},
]" clearable :match="{value:'id',label:'name'}" v-model='queryParams.homeCzyjType'></RelSelect>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -44,7 +63,7 @@ ...@@ -44,7 +63,7 @@
<AddButton ref="add" :app='app'></AddButton> <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton> <AttachFileButton :app='app'></AttachFileButton>
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮--> <!-- 额外按钮-->
...@@ -65,7 +84,7 @@ ...@@ -65,7 +84,7 @@
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
doQuery, doQuery,
doAdd, doAdd,
doUpdate, doUpdate,
...@@ -83,6 +102,7 @@ import { ...@@ -83,6 +102,7 @@ import {
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.queryParams.homeCzyjType = this.$route.query.homeCzyjType || ''
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
...@@ -97,24 +117,63 @@ import { ...@@ -97,24 +117,63 @@ import {
baseUrl: '/aqgl/rcgl/uaqglry', baseUrl: '/aqgl/rcgl/uaqglry',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
gsid:'', gsid: '',
code:'', code: '',
user:'', user: '',
syfw:'', syfw: '',
zt:'' zt: '',
homeCzyjType: ''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
// {label: "公司", prop: "gsName", fieldType: "ftString",width:100}, // {label: "公司", prop: "gsName", fieldType: "ftString",width:100},
{label: "状态", prop: "ztName", fieldType: "ftString",width:60}, {
{label: "职工工号", prop: "usercode", fieldType: "ftString",width:140}, label: "状态",
{label: "职工姓名", prop: "username", fieldType: "ftString",width:160}, prop: "ztName",
{label: "证书编号", prop: "code", fieldType: "ftString",width:160}, fieldType: "ftString",
{label: "证书名称", prop: "name", fieldType: "ftString",width:180}, width: 60
{label: "作业类别", prop: "zsflName", fieldType: "ftString", width: 100}, },
{label: "发证日期", prop: "fzrq", fieldType: "ftDateTime"}, {
{label: "有效期", prop: "yxq", fieldType: "float"}, label: "职工工号",
prop: "usercode",
fieldType: "ftString",
width: 140
},
{
label: "职工姓名",
prop: "username",
fieldType: "ftString",
width: 160
},
{
label: "证书编号",
prop: "code",
fieldType: "ftString",
width: 160
},
{
label: "证书名称",
prop: "name",
fieldType: "ftString",
width: 180
},
{
label: "作业类别",
prop: "zsflName",
fieldType: "ftString",
width: 100
},
{
label: "发证日期",
prop: "fzrq",
fieldType: "ftDateTime"
},
{
label: "有效期",
prop: "yxq",
fieldType: "float"
},
{ {
label: "提醒周期(天)", label: "提醒周期(天)",
prop: "txzq" prop: "txzq"
...@@ -124,19 +183,72 @@ import { ...@@ -124,19 +183,72 @@ import {
prop: "txrq", prop: "txrq",
fieldType: "ftDateTime" fieldType: "ftDateTime"
}, },
{label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"}, {
{label: "复审日期1", prop: "fsrq1", fieldType: "ftDateTime"}, label: "截止日期",
{label: "复审日期2", prop: "fsrq2", fieldType: "ftDateTime"}, prop: "jzrq",
{label: "实际复审日期1", prop: "sjfsrq1", fieldType: "ftDateTime"}, fieldType: "ftDateTime"
{label: "实际复审日期2", prop: "sjfsrq2", fieldType: "ftDateTime"}, },
{label: "发证单位", prop: "fzdw", fieldType: "ftString",width:300}, {
label: "复审日期1",
prop: "fsrq1",
fieldType: "ftDateTime"
},
{
label: "复审日期2",
prop: "fsrq2",
fieldType: "ftDateTime"
},
{
label: "实际复审日期1",
prop: "sjfsrq1",
fieldType: "ftDateTime"
},
{
label: "实际复审日期2",
prop: "sjfsrq2",
fieldType: "ftDateTime"
},
{
label: "发证单位",
prop: "fzdw",
fieldType: "ftString",
width: 300
},
// {label: "适用范围", prop: "syfw", fieldType: "ftString",width:60}, // {label: "适用范围", prop: "syfw", fieldType: "ftString",width:60},
{label: "适用范围", prop: "syfwName", fieldType: "ftString",width:160}, {
{label: "备注", prop: "bz", fieldType: "ftString",width:300}, label: "适用范围",
{label: "维护人", prop: "whr", fieldType: "ftString"}, prop: "syfwName",
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, fieldType: "ftString",
{label: "创建人", prop: "cjr", fieldType: "ftString", show: false}, width: 160
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime", show: false} },
{
label: "备注",
prop: "bz",
fieldType: "ftString",
width: 300
},
{
label: "维护人",
prop: "whr",
fieldType: "ftString"
},
{
label: "维护时间",
prop: "whsj",
fieldType: "ftDateTime"
},
{
label: "创建人",
prop: "cjr",
fieldType: "ftString",
show: false
},
{
label: "创建时间",
prop: "cjsj",
fieldType: "ftDateTime",
show: false
}
] ]
} }
......
...@@ -38,6 +38,23 @@ ...@@ -38,6 +38,23 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="30" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">超期情况:</span>
<RelSelect :optionsData="[{
id:'Y',name:'有效期内'
},
{
id:'D',name:'即将到期'
},
{
id:'C',name:'超期'
},
]" clearable :match="{value:'id',label:'name'}" v-model='queryParams.homeCzyjType'></RelSelect>
</div>
</el-col>
</el-row>
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
<el-row class="tool-bar"> <el-row class="tool-bar">
...@@ -85,6 +102,7 @@ ...@@ -85,6 +102,7 @@
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.queryParams.homeCzyjType=this.$route.query.homeCzyjType||''
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
...@@ -103,7 +121,8 @@ ...@@ -103,7 +121,8 @@
code: '', code: '',
user: '', user: '',
syfw: '', syfw: '',
zt: '' zt: '',
homeCzyjType:''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
......
...@@ -35,6 +35,23 @@ ...@@ -35,6 +35,23 @@
<RelSelect src='aqgl/rcgl/utzzyry/init/syfw' clearable :match="{value:'id',label:'name'}" v-model='queryParams.syfw' ></RelSelect> <RelSelect src='aqgl/rcgl/utzzyry/init/syfw' clearable :match="{value:'id',label:'name'}" v-model='queryParams.syfw' ></RelSelect>
</div> </div>
</el-col> </el-col>
</el-row>
<el-row :gutter="30" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">超期情况:</span>
<RelSelect :optionsData="[{
id:'Y',name:'有效期内'
},
{
id:'D',name:'即将到期'
},
{
id:'C',name:'超期'
},
]" clearable :match="{value:'id',label:'name'}" v-model='queryParams.homeCzyjType'></RelSelect>
</div>
</el-col>
</el-row> </el-row>
</div> </div>
<!-- 按钮操作--> <!-- 按钮操作-->
...@@ -83,6 +100,7 @@ import { ...@@ -83,6 +100,7 @@ import {
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.queryParams.homeCzyjType=this.$route.query.homeCzyjType||''
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
...@@ -101,7 +119,8 @@ import { ...@@ -101,7 +119,8 @@ import {
code:'', code:'',
user:'', user:'',
syfw:'', syfw:'',
zt:'' zt:'',
homeCzyjType:''
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
......
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