|
@@ -37,6 +37,9 @@ export default {
|
|
|
orderList: [{ orderName: "按创建时间排序", orderType: "created" }, { orderName: "按更新时间排序", orderType: "updated" }],
|
|
|
currOrderName: "更新时间",
|
|
|
currOrderType: "",
|
|
|
+ currOrderStatus: "项目状态",
|
|
|
+ selOrderType: "",
|
|
|
+ statusList: [{ orderName: "已收到数据", orderStatus: "1" }, { orderName: "未收到数据", orderStatus: "0" }],
|
|
|
shareModel: "",
|
|
|
pageNo: 1,
|
|
|
dataList: [],
|
|
@@ -47,6 +50,11 @@ export default {
|
|
|
remark: '',
|
|
|
clickIndex: -1,
|
|
|
clickItem: null,
|
|
|
+ seen: false,
|
|
|
+ x: 0,
|
|
|
+ y: 0,
|
|
|
+ positionStyle: { top: '20px', left: '20px' },
|
|
|
+ currRemark: "",
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -89,6 +97,7 @@ export default {
|
|
|
this.download(item);
|
|
|
} else if (command == "share") {
|
|
|
console.log("分享");
|
|
|
+ this.clickIndex = index;
|
|
|
this.shareTest(item);
|
|
|
} else if (command == "del") {
|
|
|
console.log("删除");
|
|
@@ -109,7 +118,8 @@ export default {
|
|
|
"orderType": this.currOrderType,
|
|
|
"ownHouseName": this.ownHouseName == "所属项目" ? '' : this.ownHouseName,
|
|
|
"pageNo": this.pageNo++,
|
|
|
- "pageSize": isFirst ? 39 : 40
|
|
|
+ "pageSize": isFirst ? 39 : 40,
|
|
|
+ "houseAnswerStatus": this.selOrderType
|
|
|
}
|
|
|
api.testList(data).then((res) => {
|
|
|
if (res.success) {
|
|
@@ -147,6 +157,12 @@ export default {
|
|
|
this.currOrderType = command.orderType;
|
|
|
this.getTestList(true);
|
|
|
},
|
|
|
+ orderStatus(command) {
|
|
|
+ console.log(command);
|
|
|
+ this.currOrderStatus = command.orderName;
|
|
|
+ this.selOrderType = command.orderStatus;
|
|
|
+ this.getTestList(true);
|
|
|
+ },
|
|
|
createTest() {
|
|
|
this.$router.push({ path: '/cncTestLists' });
|
|
|
},
|
|
@@ -245,7 +261,8 @@ export default {
|
|
|
shareTitle: res.single.shareTitle,
|
|
|
shareContent: res.single.shareContent,
|
|
|
shareImg: res.single.shareImg,
|
|
|
- shareUrl: res.single.shareUrl
|
|
|
+ shareUrl: res.single.shareUrl,
|
|
|
+ remark: item.remark
|
|
|
};
|
|
|
this.isShareSetting = true;
|
|
|
} else {
|
|
@@ -279,6 +296,7 @@ export default {
|
|
|
closeShare() {
|
|
|
this.currItem = "";
|
|
|
this.isShareSetting = false;
|
|
|
+ this.clickIndex = -1;
|
|
|
},
|
|
|
clickEditBtn(item, index) {
|
|
|
this.showDialog = true;
|
|
@@ -303,10 +321,29 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ refreshItem(remark) {
|
|
|
+ this.dataList[this.clickIndex].remark = remark;
|
|
|
+ this.clickIndex = -1;
|
|
|
+ },
|
|
|
clickCancleBtn() {
|
|
|
this.remark = '';
|
|
|
this.clickIndex = -1;
|
|
|
this.showDialog = false;
|
|
|
- }
|
|
|
+ },
|
|
|
+ enterssss(item) {
|
|
|
+ if (item.remark) {
|
|
|
+ this.seen = true;
|
|
|
+ this.currRemark = item.remark;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ leave: function () {
|
|
|
+ this.seen = false;
|
|
|
+ this.currRemark = "";
|
|
|
+ },
|
|
|
+ updateXY: function (event) {
|
|
|
+ this.x = event.pageX;
|
|
|
+ this.y = event.pageY;
|
|
|
+ this.positionStyle = { top: this.y + 20 + 'px', left: this.x + 20 + 'px' };
|
|
|
+ },
|
|
|
},
|
|
|
}
|