Commit 8ce251c9 by gao_yingdong

冲突修改

parent 1b3cc256
...@@ -77,6 +77,28 @@ ...@@ -77,6 +77,28 @@
> >
</el-date-picker> </el-date-picker>
</div> </div>
<div
class="zdyInputW zdyInputCol2"
v-else-if="item.type == 'texts'"
>
<el-input
type="text"
autosize
resize="none"
:placeholder="item.placeholder"
v-model="formData[item.id]"
>
</el-input>
-
<el-input
type="text"
autosize
resize="none"
:placeholder="item.placeholder"
v-model="formData[item.id2]"
>
</el-input>
</div>
<!--下拉框--> <!--下拉框-->
<el-select <el-select
v-model="formData[item.id]" v-model="formData[item.id]"
...@@ -218,6 +240,20 @@ ...@@ -218,6 +240,20 @@
<!-- <!--
<span @click="switchingConditions" class="color1 mg10"><i :class="toggleZd ? 'fa fa-angle-up fa-zdy20':'fa fa-angle-down fa-zdy20'"></i>{{toggleZd ? '收起条件':'更多条件'}}</span> <span @click="switchingConditions" class="color1 mg10"><i :class="toggleZd ? 'fa fa-angle-up fa-zdy20':'fa fa-angle-down fa-zdy20'"></i>{{toggleZd ? '收起条件':'更多条件'}}</span>
--> -->
<div
@click="switchingConditions"
v-if="pageBs == 'bjzycx'"
style="color: #007aff; margin: 6px"
>
<i
:class="
toggleZd
? 'fa fa-angle-up fa-zdy20'
: 'fa fa-angle-down fa-zdy20'
"
></i>
{{ toggleZd == false ? "更多条件" : "收起条件" }}
</div>
<div @click="clearData" class="zdybtn">重置</div> <div @click="clearData" class="zdybtn">重置</div>
<div <div
@click="doQueryBtn(true)" @click="doQueryBtn(true)"
...@@ -314,6 +350,7 @@ ...@@ -314,6 +350,7 @@
pageBs != 'queryCheckBj' && pageBs != 'queryCheckBj' &&
pageBs != 'queryZj' && pageBs != 'queryZj' &&
pageBs != 'queryWl' && pageBs != 'queryWl' &&
pageBs != 'bjzycx' &&
pageBs != 'queryDx' pageBs != 'queryDx'
" "
> >
...@@ -818,8 +855,8 @@ ...@@ -818,8 +855,8 @@
:width="pageBs == 'zdxxgl' || pageBs == 'gzrygl' ? '460' : '200'" :width="pageBs == 'zdxxgl' || pageBs == 'gzrygl' ? '460' : '200'"
:fixed="pageBs == 'rySp' ? 'right' : false" :fixed="pageBs == 'rySp' ? 'right' : false"
v-if=" v-if="
pageBs == 'wfqdzczl' || pageBs == 'wfqdzczl' ||
pageBs == 'xywspdzczl' || pageBs == 'xywspdzczl' ||
!( !(
pageBs == 'gnsyrz' || pageBs == 'gnsyrz' ||
pageBs == 'jdcxsGl' || pageBs == 'jdcxsGl' ||
...@@ -1319,6 +1356,7 @@ export default { ...@@ -1319,6 +1356,7 @@ export default {
}, },
props: { props: {
pageBs: String, pageBs: String,
pageBt: String,
cxQueryField: { cxQueryField: {
type: Array, type: Array,
default: () => [], default: () => [],
...@@ -1335,6 +1373,7 @@ export default { ...@@ -1335,6 +1373,7 @@ export default {
}, },
data() { data() {
return { return {
toggleZd: false,
srcList: [], srcList: [],
tagType: ["danger", "success", "warning", "info", ""], tagType: ["danger", "success", "warning", "info", ""],
tPage: null, tPage: null,
...@@ -1427,6 +1466,16 @@ export default { ...@@ -1427,6 +1466,16 @@ export default {
}; };
}, },
methods: { methods: {
switchingConditions() {
debugger;
this.toggleZd = !this.toggleZd;
this.propQueryField.forEach((val) => {
if (val.hasOwnProperty("hidden")) {
this.$set(val, "hidden", !this.toggleZd); /*修改对象得值并触发视图*/
console.log(val, "/*修改对象得值并触发视图*/");
}
});
},
bjBack(ajbh, type, bzzt) { bjBack(ajbh, type, bzzt) {
var obj = { var obj = {
ajbh, ajbh,
...@@ -1797,17 +1846,22 @@ export default { ...@@ -1797,17 +1846,22 @@ export default {
} }
}, },
doQueryBtn(val) { doQueryBtn(val) {
if (val) { if (this.pageBs == "bjzycx") {
this.formData.sfhgpdbz = ""; this.doQuery("yes");
} } else {
if (this.formData.isFirst) { if (val) {
this.formData.isFirst = ""; this.formData.sfhgpdbz = "";
}
if (this.formData.isFirst) {
this.formData.isFirst = "";
}
this.formData.page = 1;
this.doQuery("yes");
} }
this.formData.page = 1;
this.doQuery("yes");
}, },
doQuery(flag) { doQuery(flag) {
this.showLoading(); this.showLoading();
var jsonStr = [];
let self = this, let self = this,
json = {}; json = {};
for (let i in self.formData) { for (let i in self.formData) {
...@@ -1858,6 +1912,30 @@ export default { ...@@ -1858,6 +1912,30 @@ export default {
self.closeLoading(); self.closeLoading();
} }
}); });
} else if (self.pageBs == "bjzycx") {
debugger;
jsonStr.push(self.formData);
let form = new FormData();
if (self.pageBt == "qgasj") {
form.append("zylx", "asj");
} else if (self.pageBt == "qgfzxyr") {
form.append("zylx", "fzxyr");
} else if (self.pageBt == "qgxzgzry") {
form.append("zylx", "asxzgzryj");
}
form.append("jsonStr", JSON.stringify(jsonStr));
postform(`${url.alyIP2}${this.cxUrl}`, form).then((response) => {
if (response.success === true) {
self.tableData = response.data.rows;
self.tableDataLength = response.data.total;
self.tPage = Math.ceil(response.data.total / self.page_size);
self.talbeBhgCount = response.data.bhgCount;
self.talbehgCount = response.data.hgCount;
self.closeLoading();
} else {
self.closeLoading();
}
});
} else { } else {
self.doQueryRequest(json).then((response) => { self.doQueryRequest(json).then((response) => {
if (response.success === true) { if (response.success === true) {
...@@ -1923,11 +2001,11 @@ export default { ...@@ -1923,11 +2001,11 @@ export default {
} }
}); });
self.tableData = response.data.rows; self.tableData = response.data.rows;
for (let t in self.transformFormTable){ for (let t in self.transformFormTable) {
self.tableData.map(res=>{ self.tableData.map((res) => {
console.log(res); console.log(res);
res[t] = self.transformFormTable[t][res[t]] res[t] = self.transformFormTable[t][res[t]];
}) });
} }
self.tableDataLength = response.data.total; self.tableDataLength = response.data.total;
self.tPage = Math.ceil(response.data.total / self.page_size); self.tPage = Math.ceil(response.data.total / self.page_size);
...@@ -1958,6 +2036,11 @@ export default { ...@@ -1958,6 +2036,11 @@ export default {
}); });
} }
} }
if (val.hidden) {
self.toggleZd = false;
} else {
self.toggleZd = true;
}
}); });
if (self.pageBs != "dytj") { if (self.pageBs != "dytj") {
self.doQuery("yes"); self.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