Commit bc99d9da by lp784568205

新增了跳转可视化的按钮

parent e0a08d53
......@@ -10,7 +10,7 @@
<div
v-if="pageBs != 'rgcbDetail'"
class="Content paneDiv paneDiv2"
style="margin: 10px 22px;border-radius: 4px !important;"
style="margin: 10px 22px; border-radius: 4px !important"
>
<div class="cxtjWrap">
<el-form
......@@ -566,11 +566,11 @@
<i class="el-icon-edit-outline"></i> 详情
</span>
<span
v-if="pageBs == 'dnabzcbxs' && cxFormData.bzgx == 1"
v-show="pageBs == 'dnabzcbxs' && cxFormData.cblx == '0306'"
style="cursor: pointer; color: #096cc9"
@click="rowClick(scope.row, scope.column)"
@click="toRelation(scope.row, scope.column)"
>
<i class="el-icon-edit-outline"></i> 详情
<i class="el-icon-edit-outline"></i> 可视化分析
</span>
</template>
</el-table-column>
......@@ -783,6 +783,14 @@ export default {
// }
// })
},
toRelation(row, column) {
this.$router.pushToTab({
path: "ceshi",
query: {
data: row,
},
});
},
goDetail(scope, type) {
if (type == "detail") {
this.$router.pushToTab({
......@@ -968,11 +976,15 @@ export default {
if (val) {
this.formData.sfhgpdbz = "";
}
if (this.pageBs == "ztsjfxtj" && this.cxFormData.ssjzMin < 10 && this.cxFormData.ssjzMin != "") {
if (
this.pageBs == "ztsjfxtj" &&
this.cxFormData.ssjzMin < 10 &&
this.cxFormData.ssjzMin != ""
) {
this.$message.error("仅供损失十万及以上重大侵财案件专题查询");
} else {
if(this.pageBs == "ztsjfxtj") {
this.$emit("cleanHistoryArr")
if (this.pageBs == "ztsjfxtj") {
this.$emit("cleanHistoryArr");
this.$parent.loading = true;
}
this.formData.page = 1;
......@@ -1029,8 +1041,8 @@ export default {
response.data.iTotalRecords / self.page_size
);
} else {
if(response.data.rows.length == 0) {
this.$message.error("暂无数据显示")
if (response.data.rows.length == 0) {
this.$message.error("暂无数据显示");
}
let xData = response.data.rows.map((i) => ({
name: i.name,
......@@ -1053,7 +1065,11 @@ export default {
// value: i.numWpa,
// }));
//添加到histoy数组
this.$parent.historyArr.push({ x: xData, data: data, cxFormData2: this.cxFormData});
this.$parent.historyArr.push({
x: xData,
data: data,
cxFormData2: this.cxFormData,
});
//刷新图
this.$parent.getCharts(xData, data);
}
......@@ -1070,7 +1086,7 @@ export default {
},
checkNumber(val) {
console.log(val);
if(val != "" && val < 10) {
if (val != "" && val < 10) {
this.$message.info("仅供损失十万及以上重大侵财案件专题查询");
}
},
......@@ -1084,14 +1100,14 @@ export default {
axios
.get(`JsonData/${val.codeTree}.json`)
.then((res) => {
if (val.codeTree == 'CODE_XZQH') {
if (val.codeTree == "CODE_XZQH") {
let newArr = res.data.rows;
let userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
let unicode = userInfo.unitcode;
if (unicode != '010000000000') {
if (unicode != "010000000000") {
newArr = res.data.rows.filter((i) => {
return unicode.indexOf(i.id) == 0;
})
});
}
self.$set(val, "codeOptions", newArr);
} else {
......@@ -1122,12 +1138,12 @@ export default {
watch: {
"cxFormData.bzgx": {
handler(val) {
if (val == 0 && this.pageBs == 'dnabzcbxs') {
this.propdefaultFormThead = [ ...this.cxDefaultFormThead]
if (val == 0 && this.pageBs == "dnabzcbxs") {
this.propdefaultFormThead = [...this.cxDefaultFormThead];
this.propCxUrl = this.cxUrl;
this.doQuery("yes");
}else if(val == 1 && this.pageBs == 'dnabzcbxs') {
this.propdefaultFormThead = [ ...this.cxDefaultFormTheads]
} else if (val == 1 && this.pageBs == "dnabzcbxs") {
this.propdefaultFormThead = [...this.cxDefaultFormTheads];
this.propCxUrl = this.childrenUrl;
this.doQuery("yes");
}
......
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