|
@@ -50,6 +50,14 @@
|
|
<div class="frenquency-container-inner">
|
|
<div class="frenquency-container-inner">
|
|
<div class="header">
|
|
<div class="header">
|
|
<div class="header-title">历史问题</div>
|
|
<div class="header-title">历史问题</div>
|
|
|
|
+ <div class="header-select">
|
|
|
|
+ <div>
|
|
|
|
+ <el-input class="search-input" v-model="allSearchColumn" clearable>
|
|
|
|
+ <i class="el-icon-search" style="cursor: pointer" @click="getContentInfoWhere" slot="append"></i>
|
|
|
|
+ </el-input>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
<!-- <div class="header-select">
|
|
<!-- <div class="header-select">
|
|
<div>
|
|
<div>
|
|
<div class="text">类别 :</div>
|
|
<div class="text">类别 :</div>
|
|
@@ -171,6 +179,8 @@ export default {
|
|
problemType: "",
|
|
problemType: "",
|
|
keyPoint: "",
|
|
keyPoint: "",
|
|
// 立项年度搜索框
|
|
// 立项年度搜索框
|
|
|
|
+ whereStr: "",
|
|
|
|
+ allSearchColumn: "",
|
|
timeSelectVal: "",
|
|
timeSelectVal: "",
|
|
timeOptions: [],
|
|
timeOptions: [],
|
|
tableData: [],
|
|
tableData: [],
|
|
@@ -326,6 +336,70 @@ export default {
|
|
sortList(a, b) {
|
|
sortList(a, b) {
|
|
return a - b;
|
|
return a - b;
|
|
},
|
|
},
|
|
|
|
+ /**
|
|
|
|
+ * 搜索条件拼接
|
|
|
|
+ * @list 符合条件的值
|
|
|
|
+ * @columnName 判断字段名
|
|
|
|
+ * @whereStr 搜索条件字符串
|
|
|
|
+ * */
|
|
|
|
+ appendWhereStr(list, columnName) {
|
|
|
|
+ // 搜索条件拼接
|
|
|
|
+ if (list.length > 0) {
|
|
|
|
+ this.whereStr += " or " + columnName + " in (";
|
|
|
|
+ list.forEach((item, index) => {
|
|
|
|
+ if (list.length > index + 1) {
|
|
|
|
+ this.whereStr += item + ",";
|
|
|
|
+ } else {
|
|
|
|
+ this.whereStr += item + ") ";
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ * 判断已经存在的类型中的code
|
|
|
|
+ * @keyName 类别名称
|
|
|
|
+ * @listNmae 暂存结果对象
|
|
|
|
+ */
|
|
|
|
+ isIndexOfToList(keyName, listNmae) {
|
|
|
|
+ this.classDictMap[keyName].forEach((key, value) => {
|
|
|
|
+ if (key.indexOf(this.allSearchColumn) != -1) {
|
|
|
|
+ listNmae.push(value);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ // 全字段模糊查询
|
|
|
|
+ getContentInfoWhere() {
|
|
|
|
+ // 创建搜索条件对象
|
|
|
|
+ this.whereStr = "where ";
|
|
|
|
+ // 其他字段模糊查询(立项年度、重点审计事项、参与问题定性)
|
|
|
|
+ // this.whereStr += ` c_lxndwt like '%${this.allSearchColumn}%'`;
|
|
|
|
+ this.whereStr += ` c_zdsjsxwt like '%${this.allSearchColumn}%'`;
|
|
|
|
+ this.whereStr += ` or c_ckwtdxwt like '%${this.allSearchColumn}%'`;
|
|
|
|
+ // 创建code暂存对象
|
|
|
|
+ let c_bsjzwt = [];
|
|
|
|
+ let c_sjlbwt = [];
|
|
|
|
+ // 首先判断已经存在的类型中的code
|
|
|
|
+ this.isIndexOfToList("浦东新区行政区划", c_bsjzwt);
|
|
|
|
+ this.isIndexOfToList("审计类别", c_sjlbwt);
|
|
|
|
+ // 搜索条件拼接
|
|
|
|
+ this.appendWhereStr(c_bsjzwt, "c_bsjzwt");
|
|
|
|
+ this.appendWhereStr(c_sjlbwt, "c_sjlbwt");
|
|
|
|
+ console.log("被审计镇和类别可能属于的范围字段", c_bsjzwt, c_sjlbwt);
|
|
|
|
+ this.whereStr += `;`;
|
|
|
|
+ // 创建FormData对象
|
|
|
|
+ let params = new FormData();
|
|
|
|
+ params = {
|
|
|
|
+ columnId: 1127,
|
|
|
|
+ whereStr: this.whereStr
|
|
|
|
+ };
|
|
|
|
+ console.log("whereStr:", this.whereStr);
|
|
|
|
+ // 开始查询
|
|
|
|
+ // this.$Post(this.urlsCollection.getContentInfoWhere, params).then(res => {
|
|
|
|
+ // if (res.code === 200 && res.content.length > 0) {
|
|
|
|
+ // console.log("res:", res);
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ },
|
|
// 切换页
|
|
// 切换页
|
|
getTableData(val) {
|
|
getTableData(val) {
|
|
this.tableData = [];
|
|
this.tableData = [];
|
|
@@ -366,6 +440,7 @@ export default {
|
|
};
|
|
};
|
|
searchParam.push(paramTime);
|
|
searchParam.push(paramTime);
|
|
}
|
|
}
|
|
|
|
+ // 重点审计事项
|
|
if (this.keyPoint) {
|
|
if (this.keyPoint) {
|
|
let paramTime = {
|
|
let paramTime = {
|
|
field: "c_zdsjsxwt",
|
|
field: "c_zdsjsxwt",
|
|
@@ -377,6 +452,7 @@ export default {
|
|
};
|
|
};
|
|
searchParam.push(paramTime);
|
|
searchParam.push(paramTime);
|
|
}
|
|
}
|
|
|
|
+ // 参与问题定性
|
|
if (this.problemType) {
|
|
if (this.problemType) {
|
|
let paramTime = {
|
|
let paramTime = {
|
|
field: "c_ckwtdxwt",
|
|
field: "c_ckwtdxwt",
|
|
@@ -429,8 +505,8 @@ export default {
|
|
let syearsList = yearsList[index];
|
|
let syearsList = yearsList[index];
|
|
let eyearsList = yearsList[index2];
|
|
let eyearsList = yearsList[index2];
|
|
if (syearsList > eyearsList) {
|
|
if (syearsList > eyearsList) {
|
|
- yearsList[index] = eyearsList;
|
|
|
|
- yearsList[index2] = syearsList;
|
|
|
|
|
|
+ yearsList[index] = eyearsList;
|
|
|
|
+ yearsList[index2] = syearsList;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|