Commit 4e495a67 by gao_yingdong

问题

parent 710dd072
......@@ -9,6 +9,7 @@
},
"dependencies": {
"core-js": "^3.6.5",
"crypto-js": "^4.1.1",
"driver.js": "^0.9.8",
"echarts": "^4.9.0",
"element-ui": "^2.4.5",
......
......@@ -34,7 +34,7 @@ if (
base.alyIP10 = 'http://10.184.14.193:9001'
base.alyIP11 = 'http://74.6.54.153:8004'
base.alyIP12 = 'http://xzxt-zhyy.dsj.xz:8053'
base.alyIP8 = 'http://xzxt-zhyy.dsj.xz:8058'
base.alyIP8 = 'http://xzxt-zhyy.dsj.xz:8052'
base.alyIP13 = '/apiXssp' // 线索审批管理平台
base.alyIP14 = 'http://xzxt-zhyy.dsj.xz:8051'
}
......
......@@ -1288,9 +1288,7 @@ export default {
if (item.type !== "file") {
//1.1二级字典处理
if (item.type == "lazyCodeTree" || item.type == "codeTree") {
if (
item.multiple
) {
if (item.multiple) {
let str = `#${self.formLabelAlign[item.id].join("#")}`;
if (item.id == "zljsdwdm" || item.id == "kyxsbshlx") {
str = self.formLabelAlign[item.id].join(",");
......@@ -2122,9 +2120,9 @@ export default {
}
this.$emit("insertMessage", boo);
},
"formLabelAlign.cyzjCyzjdm"(val) {
"formLabelAlign.cyzjCyzjdm"(val) {
if (val == 111 && this.pageBs == "addsqfbzl") {
debugger
debugger;
let obj = {
validator: (rule, value, callback) => {
// let patter = new RegExp("/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/");//验证是否身份证号
......@@ -2142,7 +2140,20 @@ export default {
this.$set(this.rules, this.propFormField[0].data[5].id, obj);
} else if (val != 111 && this.pageBs == "addsqfbzl") {
// this.$set(this.rules,this.propFormField[0].data[3].id,null)
this.$delete(this.rules, this.propFormField[0].data[5].id);
let obj = {
validator: (rule, value, callback) => {
if (!value) {
return callback(new Error("不能为空"));
} else {
callback(); //必须有此项回调,否则验证会一直不通过
}
},
trigger: "blur",
required: true,
message: "不能为空",
};
this.$set(this.rules, this.propFormField[0].data[5].id, obj);
// this.$delete(this.rules, this.propFormField[0].data[5].id);
debugger;
}
},
......
......@@ -3063,6 +3063,7 @@ export default {
i != "flwssfhgpdbz" &&
i != "limit" &&
i != "dspbz" &&
i != "cxzd" &&
i != "dwdm"
) {
self.formData[i] = "";
......
......@@ -7,8 +7,8 @@
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
:pageASs='pageASs'
@doQueryBtn='doQueryBtn'
:pageASs="pageASs"
@doQueryBtn="doQueryBtn"
ref="rightContent"
>
<template #ajzcxnpg="scope">
......@@ -130,6 +130,7 @@ export default {
return {
shuju: [],
arrey: [],
arreyAsjzc: [],
data: [
{
label: "案件类别",
......@@ -240,7 +241,7 @@ export default {
activeName: "first",
header: "业务工作效能评估", //头部标题 (模块第一个页面需要)
pageBs: "queryAjzc", //页面名称
pageASs: 'queryAjzc',
pageASs: "queryAjzc",
cxFormData: {
//查询条件
limit: 10,
......@@ -248,12 +249,19 @@ export default {
endTime: "",
startTime: "",
dwdm: "",
cxzd: "ajlbdm",
cxzd: "",
// cxzd: this.arreyAsjzc.length > 0 ? this.arreyAsjzc[0].id : 'ajlbdm',
},
cxzd1: "",
cxzd2: "",
cxzd3: "",
cxzdStr1: "",
cxzdStr2: "",
cxzdStr3: "",
cxQueryField: [
//查询条件
{
name: "时间",
name: "案事件发生时间",
id: "startTime",
id2: "endTime",
type: "zdyDate",
......@@ -261,7 +269,7 @@ export default {
col: "3",
},
{
name: "单位",
name: "登记单位",
id: "dwdm",
type: "codeTreeDialog",
props: "checkEmpty",
......@@ -705,6 +713,11 @@ export default {
this.$store.commit("user/SET_Menu", this.Menu);
this.$store.commit("user/SET_LeftMenu", this.leftMenus);
this.$store.commit("user/SET_Header", this.header);
if (this.arreyAsjzc.length > 0) {
this.cxFormData.cxzd = this.arreyAsjzc[0].id
} else {
this.cxFormData.cxzd = 'ajlbdm'
}
},
mounted() {},
methods: {
......@@ -737,6 +750,7 @@ export default {
if (this.arrey.length > 3) {
this.$message("请选择三条数据");
} else if (this.arrey.length == 3) {
this.arreyAsjzc = this.arrey
getAsjBcByGjc({
startTime: this.cxFormData.startTime,
endTime: this.cxFormData.endTime,
......@@ -761,20 +775,35 @@ export default {
}
},
doQueryBtn() {
debugger
this.getAsjBcByGjc()
debugger;
this.getAsjBcByGjc();
},
getAsjBcByGjc() {
debugger;
if (this.arreyAsjzc.length > 0) {
(this.cxzd1 = this.arreyAsjzc[0].id),
(this.cxzd2 = this.arreyAsjzc[1].id),
(this.cxzd3 = this.arreyAsjzc[2].id),
(this.cxzdStr1 = this.arreyAsjzc[0].label),
(this.cxzdStr2 = this.arreyAsjzc[1].label),
(this.cxzdSt0r3 = this.arreyAsjzc[2].label);
} else {
(this.cxzd1 = "ajlbdm"),
(this.cxzd2 = "ajmc"),
(this.cxzd3 = "asjbh"),
(this.cxzdStr1 = "案件类别"),
(this.cxzdStr2 = "案件名称"),
(this.cxzdSt0r3 = "案事件编号");
}
getAsjBcByGjc({
startTime: this.cxFormData.startTime,
endTime: this.cxFormData.endTime,
cxzd1: "ajlbdm",
cxzd2: "ajmc",
cxzd3: "asjbh",
cxzdStr1: "案件类别",
cxzdStr2: "案件名称",
cxzdStr3: "案事件编号",
cxzd1: this.cxzd1,
cxzd2: this.cxzd2,
cxzd3: this.cxzd3,
cxzdStr1: this.cxzdStr1,
cxzdStr2: this.cxzdStr2,
cxzdStr3: this.cxzdStr3,
}).then((res) => {
if (res.code == "200") {
this.shuju = res.data.rows;
......
......@@ -76,7 +76,7 @@ export default {
cxQueryField: [
//查询条件
{
name: "时间",
name: "登记时间",
id: "startTime",
id2: "endTime",
type: "zdyDates",
......@@ -84,7 +84,7 @@ export default {
col: "3",
},
{
name: "单位",
name: "受理单位",
id: "unitcode",
type: "codeTreeDialog",
props: "checkEmpty",
......
......@@ -40,7 +40,7 @@
node-key="id"
ref="tree"
highlight-current
:props="defaultProps"
:props="defaultProps"
:default-checked-keys="selec"
@check-change="handleCheckChange"
>
......@@ -209,6 +209,7 @@ export default {
this.dialogVisible = false;
},
handleCheckChange(data, checked) {
debugger
if (checked === true) {
this.selectedTree.push(data.id);
} else {
......
......@@ -8,19 +8,32 @@
-->
<template>
<div id="dytj">
<el-date-picker
v-model="value2"
class="datetimerange"
type="datetimerange"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
@change="change"
>
</el-date-picker>
<div class="app">
<el-date-picker
v-model="value2"
class="datetimerange"
type="datetimerange"
value-format="yyyy-MM-dd"
format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
@change="change"
>
</el-date-picker>
<div class="jsdw">
<div>
<span style="font-size: 14px; line-height: 41px">接收单位: </span>
</div>
<select-tree-dialog
style="width: 500px"
:placeholder="'请选择'"
:formData="FPForm"
:currentItem="GD.qsrgajgdm"
/>
</div>
</div>
<div style="margin-bottom: 10px">
<el-button
v-if="SJList.length > 1 && SJcode != ''"
......@@ -28,6 +41,7 @@
@click="back"
>上一级</el-button
>
<el-button type="primary" size="mini" @click="add">查询</el-button>
<el-button size="mini" @click="print">导出</el-button>
</div>
<div id="charts" ref="charts" v-loading="loading"></div>
......@@ -36,7 +50,10 @@
</template>
<script>
import { getTjListPic } from "@/api/zczl/zczl.js";
import SelectTreeDialog from "@c/treeCode_components.vue";
export default {
name: "detailZczl",
components: { SelectTreeDialog },
data() {
return {
value2: [],
......@@ -55,10 +72,66 @@ export default {
getParams: {},
CH: false,
SJcode: "",
FPForm: {
qsrgajgdm: [],
qsrjh: "",
fpgzyq: "",
qsrgajgdm: "",
},
GD: {
qsrgajgdm: {
name: "接收单位",
id: "qsrgajgdm",
type: "codeTreeDialog",
props: "checkEmpty",
value: "460000000000",
placeholder: "请选择",
col: "3",
codeOptions: [],
codeTree: "CODE_UNIT",
// multiple: true,
},
},
SJList: [],
};
},
methods: {
getJson() {
debugger
let self = this;
let unitcode = JSON.parse(sessionStorage.getItem("userInfo")).unitcode;
// let unitcode = '540000050000';
axios.get(`JsonData/CODE_UNIT.json`).then((response) => {
if (response.status == '200') {
debugger;
self.GD.qsrgajgdm.codeOptions = response.data.data.rows;
function liMap(ji) {
let mi;
let gd = "";
if (ji.length) {
mi = ji.filter((item) =>
item.id.includes(unitcode.substring(0, 2))
);
for (let g of mi.values()) {
if (g.id == unitcode) {
gd = g;
self.GD.qsrgajgdm.codeOptions = [gd];
break;
} else {
liMap(g["children"]);
}
}
} else {
gd = ji;
}
return gd;
}
liMap(response.data.data.rows);
// this.loading = false;
}
});
},
print() {
let myChart = this.$echarts.init(this.$refs.charts);
var resultBase64 = myChart.getDataURL({
......@@ -252,11 +325,15 @@ export default {
return myChart;
},
change() {
// this.getChartsData();
},
add() {
this.getChartsData();
},
//echarts
getChartsData(searchDwdm = "") {
this.SJcode = searchDwdm;
getChartsData() {
var userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
this.SJcode = userInfo.unitcode;
let loading = this.$loading({
lock: true,
text: "正在加载...",
......@@ -264,8 +341,9 @@ export default {
background: "rgba(255, 255, 255, 0.7)",
});
let params = new Object();
params["searchDwdm"] = searchDwdm;
this.SJList.push(searchDwdm);
let code = this.FPForm.qsrgajgdm ? this.FPForm.qsrgajgdm : userInfo.unitcode
params["searchDwdm"] = code;
this.SJList.push(userInfo.unitcode);
console.log(this.SJList);
if (!this.value2 || this.value2.length <= 0) {
params.fbsj_s = "";
......@@ -325,6 +403,7 @@ export default {
this.getChartsData();
},
created() {
this.getJson();
this.$store.commit("user/SET_Menu", this.Menu);
},
};
......@@ -332,6 +411,14 @@ export default {
<style lang="scss" scoped>
#dytj {
position: relative;
.app {
display: flex;
margin-top: 9px;
}
.jsdw {
display: flex;
margin: 0 0 0 20px;
}
.datetimerange {
margin-bottom: 10px;
/deep/ {
......
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