Commit acbbb671 by liupeng

修改了统计图

parent 4f09ad00
......@@ -1670,7 +1670,7 @@ export default {
this.$emit("rowExpand", row);
},
switchingConditions() {
debugger;
// debugger;
this.toggleZd = !this.toggleZd;
this.propQueryField.forEach((val) => {
if (val.hasOwnProperty("hidden")) {
......@@ -2146,7 +2146,7 @@ export default {
}
}
if (this.pageBs == "xxtkgzxnpg" || this.pageBs == "queryHbyptj") {
debugger;
// debugger;
this.$emit("doQueryBtn", json);
} else {
if (flag) {
......@@ -2180,7 +2180,7 @@ export default {
}
);
} else if (self.pageBs == "bjzycx") {
debugger;
// debugger;
jsonStr.push(self.formData);
let form = new FormData();
if (self.pageBt == "qgasj") {
......@@ -2290,7 +2290,7 @@ export default {
mounted() {
let self = this;
/*获取字典*/
debugger;
// debugger;
self.propQueryField.forEach((val) => {
if (val.type == "codeTree" || val.type == "codeTreeDialog") {
if (val.codeOptions.length == 0) {
......
......@@ -15,7 +15,6 @@
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { deleteDnaById } from "@/api/dswtz/dnaxx.js";
export default {
name: "dnaxx",
components: {
......@@ -79,33 +78,6 @@ export default {
query: { xxzjbh: scope.row.xxzjbh },
});
},
dele(scope) {
console.log(scope);
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteDnaById({
xxzjbh: scope.row.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
toInfor(scope) {
this.$router.push({
path: "/detailRlqbxs",
......
......@@ -318,10 +318,12 @@ export default {
arr = res.data.result;
this.pieEchartsDate = []
arr.map((i) => {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
if(i.count != 0) {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
}
})
console.log(this.pieEchartsDate);
this.startMyEcharts(this.pieEchartsDate);
......
......@@ -318,10 +318,12 @@ export default {
arr = res.data.result;
this.pieEchartsDate = []
arr.map((i) => {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
if(i.count != 0) {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
}
})
console.log(this.pieEchartsDate);
this.startMyEcharts(this.pieEchartsDate);
......
......@@ -319,10 +319,12 @@ export default {
arr = res.data.result;
this.pieEchartsDate = []
arr.map((i) => {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
if(i.count != 0) {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
}
})
console.log(this.pieEchartsDate);
this.startMyEcharts(this.pieEchartsDate);
......
......@@ -353,10 +353,12 @@ export default {
arr = res.data.result;
this.pieEchartsDate = []
arr.map((i) => {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
if(i.count != 0) {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
}
})
console.log(this.pieEchartsDate);
this.startMyEcharts(this.pieEchartsDate);
......
......@@ -284,6 +284,7 @@ export default {
},
getCode() {
let obj = {};
var arr = []
console.log(this.formData.djsjStart);
var params = new FormData();
params.append("djsjStart", this.formData.djsjStart);
......@@ -299,7 +300,12 @@ export default {
});
}
console.log(this.pieEchartsDate);
this.startMyEcharts(this.pieEchartsDate);
this.pieEchartsDate.map((v,index) => {
if( v.value != 0) {
arr.push(v)
}
})
this.startMyEcharts(arr);
});
},
},
......
......@@ -284,6 +284,7 @@ export default {
},
getCode() {
let obj = {};
var arr = []
console.log(this.formData.djsjStart);
var params = new FormData();
params.append("djsjStart", this.formData.djsjStart);
......@@ -299,7 +300,12 @@ export default {
});
}
console.log(this.pieEchartsDate);
this.startMyEcharts(this.pieEchartsDate);
this.pieEchartsDate.map((v,index) => {
if( v.value != 0) {
arr.push(v)
}
})
this.startMyEcharts(arr);
});
},
},
......
......@@ -333,10 +333,12 @@ export default {
arr = res.data.result;
this.pieEchartsDate = []
arr.map((i) => {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
if(i.count != 0) {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
}
})
console.log(this.pieEchartsDate);
this.startMyEcharts(this.pieEchartsDate);
......
......@@ -175,62 +175,62 @@ export default {
{
key: "lg",
name: "旅馆",
value: 1,
value: 0,
},
{
key: "lhjwdw",
name: "来华境外单位",
value: 1,
value: 0,
},
{
key: "jcz",
name: "检查站",
value: 1,
value: 0,
},
{
key: "zdqy",
name: "重点企业",
value: 1,
value: 0,
},
{
key: "wlqy",
name: "物流企业",
value: 1,
value: 0,
},
{
key: "kyz",
name: "客运站",
value: 1,
value: 0,
},
{
key: "hcz",
name: "火车站",
value: 1,
value: 0,
},
{
key: "jc",
name: "机场",
value: 1,
value: 0,
},
{
key: "jycs",
name: "交易场所",
value: 1,
value: 0,
},
{
key: "ggylcs",
name: "公共娱乐场所",
value: 1,
value: 0,
},
{
key: "ylcs",
name: "游览场所",
value: 1,
value: 0,
},
{
key: "jzrfzdd",
key: "jzryfzdd",
name: "居住人员复杂地段",
value: 1,
value: 0,
},
],
};
......@@ -324,22 +324,28 @@ export default {
},
getCode() {
let obj = {};
var arr = []
console.log(this.formData.djsjStart);
var params = new FormData();
params.append("djsjStart", this.formData.djsjStart);
params.append("djsjEnd", this.formData.djsjEnd);
getZdcsResult(params).then((res) => {
console.log(res.data.result);
obj = res.data.result;
for (let key in obj) {
this.pieEchartsDate.map((i) => {
if (i.key == key) {
i.value = obj[key];
}
});
this.pieEchartsDate.map((i) => {
if (i.key == key) {
i.value = obj[key];
console.log(i.value);
}
});
}
console.log(this.pieEchartsDate);
this.startMyEcharts(this.pieEchartsDate);
this.pieEchartsDate.map((v,index) => {
if( v.value != 0) {
arr.push(v)
}
})
this.startMyEcharts(arr);
});
},
},
......
......@@ -333,10 +333,12 @@ export default {
arr = res.data.result;
this.pieEchartsDate = []
arr.map((i) => {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
if(i.count != 0) {
this.pieEchartsDate.push({
name: i.name,
value: i.count,
})
}
})
console.log(this.pieEchartsDate);
this.startMyEcharts(this.pieEchartsDate);
......
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