|
@@ -94,7 +94,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="query-actions">
|
|
|
+ <div :class="detailShow == 2 ? 'query-actions1 ' : 'query-actions'">
|
|
|
<button class="btn green">搜索</button>
|
|
|
<button class="btn" @click="dbfx">对标分析</button>
|
|
|
<button class="btn">导出</button>
|
|
@@ -178,7 +178,7 @@
|
|
|
>
|
|
|
<dayinfo
|
|
|
:radarValue="radarValue"
|
|
|
- :title="[windNum,windNum2]"
|
|
|
+ :title="[windNum, windNum2]"
|
|
|
:windNum="windNum"
|
|
|
:windNum2="windNum2"
|
|
|
:tabs="tabs"
|
|
@@ -209,6 +209,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
let that = this;
|
|
|
+
|
|
|
return {
|
|
|
tableIdArr: [], //放checkbox的id数组
|
|
|
tableId: [],
|
|
@@ -229,7 +230,7 @@ export default {
|
|
|
template: () => {
|
|
|
return "<input class='check curCheckBox' type='CheckBox' />";
|
|
|
},
|
|
|
- click: function(event, data) {
|
|
|
+ click: function (event, data) {
|
|
|
var dataId = that.tableIdArr[data.index - 1];
|
|
|
if (event.target.checked == false && that.checkLength <= 2) {
|
|
|
that.tableId.forEach((item, i) => {
|
|
@@ -434,27 +435,27 @@ export default {
|
|
|
field: "cz",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- template: function() {
|
|
|
+ template: function () {
|
|
|
return "<a class='action'>详情</a>";
|
|
|
},
|
|
|
- click: function(event, data) {
|
|
|
+ click: function (event, data) {
|
|
|
var dataId = that.tableIdArr[data.index - 1];
|
|
|
that.clearDb();
|
|
|
that.detailShow = 2;
|
|
|
- var that = this;
|
|
|
|
|
|
- api.benchmarkingDetails({
|
|
|
+ api
|
|
|
+ .benchmarkingDetails({
|
|
|
id: dataId,
|
|
|
beginDate: that.value4,
|
|
|
endDate: that.value5,
|
|
|
target: "",
|
|
|
sort: "",
|
|
|
- }).then((res) => {
|
|
|
- var dataTab = [];
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ var dataTab = [];
|
|
|
res.data.forEach((item, index) => {
|
|
|
that.tableIdArr.push(item.id);
|
|
|
|
|
|
- console.log(this,that)
|
|
|
dataTab.push({
|
|
|
//表格
|
|
|
index: index + 1,
|
|
@@ -486,57 +487,7 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
that.tableDataDetail.data = dataTab;
|
|
|
- });
|
|
|
-
|
|
|
- // that.API.requestData({
|
|
|
- // method: "GET",
|
|
|
- // baseURL: "http://10.83.66.220:8020/",
|
|
|
- // subUrl: "benchmarking/details",
|
|
|
- // data: {
|
|
|
- // id: dataId,
|
|
|
- // beginDate: that.value4,
|
|
|
- // endDate: that.value5,
|
|
|
- // target: "",
|
|
|
- // sort: "",
|
|
|
- // },
|
|
|
- // success(res) {
|
|
|
- // var dataTab = [];
|
|
|
- // res.data.forEach((item, index) => {
|
|
|
- // that.tableIdArr.push(item.id);
|
|
|
-
|
|
|
- // dataTab.push({
|
|
|
- // //表格
|
|
|
- // index: index + 1,
|
|
|
- // fdl: item.fdl,
|
|
|
- // name: item.name,
|
|
|
- // zhpm: item.zhpm,
|
|
|
- // gzssdl: item.gzssdl,
|
|
|
- // jxssdlpm: item.jxssdlpm,
|
|
|
- // jxssdl: item.jxssdl,
|
|
|
- // xnssdlpm: item.xnssdlpm,
|
|
|
- // xnssdl: item.xnssdl,
|
|
|
- // xdssdlpm: item.xdssdlpm,
|
|
|
- // xdssdl: item.xdssdl,
|
|
|
- // slssdlpm: item.slssdlpm,
|
|
|
- // slssdl: item.slssdl,
|
|
|
- // fnlylpm: item.fnlylpm,
|
|
|
- // fnlyl: item.fnlyl,
|
|
|
- // gzsslpm: item.gzsslpm,
|
|
|
- // gzssl: item.gzssl,
|
|
|
- // jxsslpm: item.jxsslpm,
|
|
|
- // jxssl: item.jxssl,
|
|
|
- // qflpm: item.qflpm,
|
|
|
- // qfl: item.qfl,
|
|
|
- // xnsslpm: item.xnsslpm,
|
|
|
- // xnssl: item.xnssl,
|
|
|
- // slsslpm: item.slsslpm,
|
|
|
- // slssl: item.slssl,
|
|
|
- // is_light: false,
|
|
|
- // });
|
|
|
- // });
|
|
|
- // that.tableDataDetail.data = dataTab;
|
|
|
- // },
|
|
|
- // });
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
],
|
|
@@ -563,10 +514,10 @@ export default {
|
|
|
field: "check",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
- template: function() {
|
|
|
+ template: function () {
|
|
|
return "<input class='check curCheckBox checkItem' type='CheckBox'/>";
|
|
|
},
|
|
|
- click: function(event, data) {
|
|
|
+ click: function (event, data) {
|
|
|
var dataId = that.tableIdArr[data.index - 1];
|
|
|
if (event.target.checked == false && that.checkLength <= 2) {
|
|
|
that.tableId.forEach((item, i) => {
|
|
@@ -770,15 +721,11 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
ChangZhanVal() {
|
|
|
-
|
|
|
- api.benchmarkingWplist2({
|
|
|
- }).then((res) => {
|
|
|
- // that.value2.push(res.data[0].id);
|
|
|
- this.ChangZhan = res.data;
|
|
|
- // that.AjaxCommon();
|
|
|
- this.XiangMuVal(this.value2);
|
|
|
- console.log("resCHANzhan:", res.data);
|
|
|
- console.log("value2:", this.value2);
|
|
|
+ api.benchmarkingWplist2({}).then((res) => {
|
|
|
+ // that.value2.push(res.data[0].id);
|
|
|
+ this.ChangZhan = res.data;
|
|
|
+ // that.AjaxCommon();
|
|
|
+ this.XiangMuVal(this.value2);
|
|
|
});
|
|
|
|
|
|
// var that = this;
|
|
@@ -799,19 +746,20 @@ export default {
|
|
|
ChangZhanChange(val) {
|
|
|
this.value1 = val;
|
|
|
this.value2 = [];
|
|
|
- // this.value2 = val;
|
|
|
+ // this.value2 = val;
|
|
|
this.value3 = [];
|
|
|
this.AjaxCommon();
|
|
|
this.XiangMuVal(val);
|
|
|
this.clearDb();
|
|
|
},
|
|
|
XiangMuVal(val) {
|
|
|
-
|
|
|
- api.benchmarkingProjectList({
|
|
|
- wpids: val,
|
|
|
- }).then((res) => {
|
|
|
- this.XiangMu = res.data;
|
|
|
- });
|
|
|
+ api
|
|
|
+ .benchmarkingProjectList({
|
|
|
+ wpids: val,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.XiangMu = res.data;
|
|
|
+ });
|
|
|
|
|
|
// var that = this;
|
|
|
// that.API.requestData({
|
|
@@ -831,17 +779,18 @@ export default {
|
|
|
this.value2 = val;
|
|
|
this.value3 = [];
|
|
|
this.AjaxCommon();
|
|
|
- // this.XiangMuVal(val);
|
|
|
+ // this.XiangMuVal(val);
|
|
|
this.XianLuVal(val);
|
|
|
this.clearDb();
|
|
|
},
|
|
|
XianLuVal(val) {
|
|
|
-
|
|
|
- api.benchmarkingLineList({
|
|
|
- projects: val,
|
|
|
- }).then((res) => {
|
|
|
- this.XianLu = res.data;
|
|
|
- });
|
|
|
+ api
|
|
|
+ .benchmarkingLineList({
|
|
|
+ projects: val,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.XianLu = res.data;
|
|
|
+ });
|
|
|
|
|
|
// var that = this;
|
|
|
// that.API.requestData({
|
|
@@ -888,18 +837,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
AjaxCommon() {
|
|
|
-
|
|
|
- api.benchmarkingWxssl({
|
|
|
- wpids: this.value1,
|
|
|
+ api
|
|
|
+ .benchmarkingWxssl({
|
|
|
+ wpids: this.value1,
|
|
|
projectids: this.value2,
|
|
|
lineids: this.value3,
|
|
|
beginDate: this.value4,
|
|
|
endDate: this.value5,
|
|
|
target: "",
|
|
|
sort: "",
|
|
|
- }).then((res) => {
|
|
|
- this.ajaxData = res.data;
|
|
|
- console.log("resData:", res);
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.ajaxData = res.data;
|
|
|
var dataTab = [], //表格
|
|
|
fdl = [],
|
|
|
cz = [],
|
|
@@ -1024,7 +973,7 @@ export default {
|
|
|
this.outerLl = ll;
|
|
|
|
|
|
this.analyis = analyis;
|
|
|
- });
|
|
|
+ });
|
|
|
|
|
|
// var that = this;
|
|
|
// that.API.requestData({
|
|
@@ -1368,6 +1317,10 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|
|
|
+// .actions-B {
|
|
|
+// flex: 0 0 auto;
|
|
|
+// margin-left: 50px;
|
|
|
+// }
|
|
|
.decision-page-2 {
|
|
|
.content .project-table {
|
|
|
tbody {
|