|
|
@@ -126,6 +126,7 @@ export default {
|
|
|
sorts: {},
|
|
|
depth: '', // 分类栏层级
|
|
|
treeData: [], // 分类栏数据
|
|
|
+ guanJian: '',
|
|
|
niandu: '', // 年度
|
|
|
startTime: '', // 开始时间
|
|
|
endTime: '', // 结束时间
|
|
|
@@ -142,8 +143,10 @@ export default {
|
|
|
],
|
|
|
searchForm: {
|
|
|
forms: [
|
|
|
+ { prop: 'guanJian', label: '关键字:', width: 50 },
|
|
|
{ prop: 'nianDu', label: '年度:', width: 50 },
|
|
|
{ prop: 'bianZhiShiJian', label: '上传时间:', fieldType: 'daterange', width: 225 },
|
|
|
+
|
|
|
]
|
|
|
},
|
|
|
// 表格字段配置
|
|
|
@@ -154,7 +157,7 @@ export default {
|
|
|
|
|
|
{ prop: 'nian_du_', label: '年度', width: 80 },
|
|
|
{ prop: 'bian_zhi_shi_jian', label: '上传时间', width: 100 },
|
|
|
- // { prop: 'bm_name', label: '上传部门', width: 120 },
|
|
|
+ // { prop: 'bm_name', label: '上传部门', width: 120 },
|
|
|
{ prop: 'ry_name', label: '上传人', width: 100 },
|
|
|
{ prop: 'fu_jian_', label: '附件', slotName: "wenjinachayue", width: 300 }
|
|
|
],
|
|
|
@@ -213,7 +216,10 @@ export default {
|
|
|
) : (
|
|
|
startTimeWhere ? ' where ' + startTimeWhere : ''
|
|
|
)
|
|
|
- let sql = 'select * FROM t_ywyxjlb jl LEFT JOIN lh_bm_ry ry ON ry.ry_id = jl.bian_zhi_ren_' + nianduWhere + ' order by bian_zhi_shi_jian desc'
|
|
|
+ let where = nianduWhere?(this.guanJian ? nianduWhere + ` and (biao_dan_ming_che like '%${this.guanJian}%' or shi_wu_shuo_ming_ like '%${this.guanJian}%')` : nianduWhere):(
|
|
|
+ this.guanJian? ` where biao_dan_ming_che like '%${this.guanJian}%' or shi_wu_shuo_ming_ like '%${this.guanJian}%'`:''
|
|
|
+ )
|
|
|
+ let sql = 'select * FROM t_ywyxjlb jl LEFT JOIN lh_bm_ry ry ON ry.ry_id = jl.bian_zhi_ren_' + where + ' order by bian_zhi_shi_jian desc'
|
|
|
curdPost('sql', sql).then(response => {
|
|
|
let tableDatas = response.variables.data
|
|
|
if (tableDatas.length !== 0) {
|
|
|
@@ -265,7 +271,11 @@ export default {
|
|
|
) : (
|
|
|
nianduWhere ? nianduWhere : ``
|
|
|
)
|
|
|
- let sql = `select * FROM t_ywyxjlb jl LEFT JOIN lh_bm_ry ry ON ry.ry_id = jl.bian_zhi_ren_ ` + idwhere + ` order by bian_zhi_shi_jian desc`
|
|
|
+ let where = idwhere?(this.guanJian ? idwhere + ` and (biao_dan_ming_che like '%${this.guanJian}%' or shi_wu_shuo_ming_ like '%${this.guanJian}%')` : idwhere):(
|
|
|
+ this.guanJian? ` where biao_dan_ming_che like '%${this.guanJian}%' or shi_wu_shuo_ming_ like '%${this.guanJian}%'`:''
|
|
|
+ )
|
|
|
+ let sql = `select * FROM t_ywyxjlb jl LEFT JOIN lh_bm_ry ry ON ry.ry_id = jl.bian_zhi_ren_ ` + where + ` order by bian_zhi_shi_jian desc`
|
|
|
+ console.log('22222')
|
|
|
|
|
|
curdPost('sql', sql).then(response => {
|
|
|
let tableDatas = response.variables.data
|
|
|
@@ -322,10 +332,12 @@ export default {
|
|
|
getSearcFormData() {
|
|
|
const params = this.$refs['crud'] ? this.$refs['crud'].getSearcFormData() : {}
|
|
|
if (JSON.stringify(params) == "{}") {
|
|
|
+ this.guanJian = ''
|
|
|
this.niandu = '' // 年度
|
|
|
this.startTime = '' // 开始时间
|
|
|
this.endTime = '' // 结束时间
|
|
|
} else {
|
|
|
+ this.guanJian = params.guanJian ? params.guanJian : ''
|
|
|
this.niandu = params.nianDu ? params.nianDu : '' // 年度
|
|
|
this.startTime = params.b ? params.b : '' // 开始时间
|
|
|
this.endTime = params.i ? params.i : '' // 结束时间
|