|
@@ -107,18 +107,20 @@ export default {
|
|
|
this.getfaultLables();
|
|
|
},
|
|
|
methods: {
|
|
|
- opened(){
|
|
|
- this.getData();
|
|
|
- },
|
|
|
+ opened() {
|
|
|
+ this.getData();
|
|
|
+ },
|
|
|
getData() {
|
|
|
let that = this;
|
|
|
this.API.requestData({
|
|
|
method: "GET",
|
|
|
subUrl: "http://192.168.1.18:9002/case/fault/list",
|
|
|
data: {
|
|
|
- // station: this.selectValue,
|
|
|
- // model: this.selectMoudle,
|
|
|
- st: new Date(new Date().getTime()- 86400000).formatDate("yyyy-MM-dd hh:mm:ss") ,
|
|
|
+ // station: this.selectValue,
|
|
|
+ // model: this.selectMoudle,
|
|
|
+ st: new Date(new Date().getTime() - 86400000).formatDate(
|
|
|
+ "yyyy-MM-dd hh:mm:ss"
|
|
|
+ ),
|
|
|
et: new Date().formatDate("yyyy-MM-dd hh:mm:ss"),
|
|
|
},
|
|
|
success(res) {
|
|
@@ -140,36 +142,37 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
selectChange(data) {
|
|
|
- let params = [];
|
|
|
- data.faulttype = this.faultLists.filter(
|
|
|
- (item) => item.faultcode === data.faultcode
|
|
|
- )[0]?.faulttype,
|
|
|
- params.push(data)
|
|
|
- axios({
|
|
|
- method: "post",
|
|
|
- url: "http://192.168.10.19:9002/case/fault/insert",
|
|
|
- data: params,
|
|
|
- header: {
|
|
|
- "Content-Type": "application/json",
|
|
|
- },
|
|
|
- }).then((res) => {
|
|
|
- if (res.data.code !== 200) {
|
|
|
- this.BASE.showMsg({
|
|
|
- type: "error",
|
|
|
- msg: "标签修改失败",
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ let params = [];
|
|
|
+ (data.faulttype = this.faultLists.filter(
|
|
|
+ (item) => item.faultcode === data.faultcode
|
|
|
+ )[0]?.faulttype),
|
|
|
+ params.push(data);
|
|
|
+ axios({
|
|
|
+ method: "post",
|
|
|
+ url: "http://192.168.10.19:9002/case/fault/insert",
|
|
|
+ data: params,
|
|
|
+ header: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ },
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.data.code !== 200) {
|
|
|
+ this.BASE.showMsg({
|
|
|
+ type: "error",
|
|
|
+ msg: "标签修改失败",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
- getReports(){
|
|
|
- this.reportDisplay = true
|
|
|
+ getReports() {
|
|
|
+ this.reportDisplay = true;
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
-.btn{
|
|
|
+.btn {
|
|
|
width: 106px !important;
|
|
|
}
|
|
|
</style>
|