This commit is contained in:
宋伟佳
2021-06-11 14:47:46 +08:00
parent c202c38171
commit 0201ecde23
2 changed files with 50 additions and 28 deletions
+3 -3
View File
@@ -9,13 +9,13 @@
</div>
<div class="menu-wrap">
<enter-card label="国内法规" path="/domesticStandardsAndRegulations" style="margin-left:0px;"></enter-card>
<enter-card label="国外法规" path="/"></enter-card>
<enter-card label="标准清单" path="/"></enter-card>
<enter-card label="国外法规" path="/foreignStandardsAndRegulations"></enter-card>
<enter-card label="标准清单" path="/accessStandardsAndRegulations"></enter-card>
</div>
<div class="menu-wrap">
<enter-card label="国内外政策" path="/" style="margin-left:0px;"></enter-card>
<enter-card label="企业标准" path="/"></enter-card>
<enter-card label="标准预警" path="/"></enter-card>
<enter-card label="标准预警" path="/standardWarning"></enter-card>
</div>
</div>
</div>
+47 -25
View File
@@ -540,7 +540,7 @@ export default {
applyType: this.dynamic.keyword
},{
_this: this,
}, res=> {
}, res => {
const result = res.data[0]
for(const type in result) {
this[type] = result[type].records
@@ -558,6 +558,28 @@ export default {
//取消预警
cancelWarning (index, row) {
console.log(index, row)
this.$confirm('确认取消预警?','提示', {
confirmButtonText: '确定',
confirmButtonClass: 'common-button-primary',
cancelButtonText: '取消',
type: 'warning',
roundButton: false
}).then(() => {
this.$http.get('sys/EarlyWarning/ChangePermissions', {
id: row.id,
}, res => {
this.pageConfig.newItemsPage = 1
this.pageConfig.oldItemsPage = 1
this.pageConfig.newStandPage = 1
this.pageConfig.oldStandPage = 1
this.pageConfig.newPolicyPage = 1
this.pageConfig.oldPolicyPage = 1
this.activeName === 'STANDARD' ? this.getEarlyDate() : this.getPolicyDate()
}
)
}).catch(() => {
this.$message.warning('取消事件')
})
},
showStandDetails(item) {
let getStandId = item.sarId;
@@ -614,28 +636,28 @@ export default {
}, e => {
});
},
queryProductionVehicleByPage() {
this.$http.get("sys/EarlyWarning/StandWarning", {
sarPutType: "ZCCSSRQ",
pageSize: 5
}, {
_this: this
}, res => {
this.productionVehicleDatas = res.data.list;
}, e => {
});
},
queryNewTypeByPage() {
this.$http.get("sys/EarlyWarning/StandWarning", {
sarPutType: "XCXSSRQ",
pageSize: 5
}, {
_this: this
}, res => {
// this.newTypeDatas = res.data.list;
}, e => {
});
},
// queryProductionVehicleByPage() {
// this.$http.get("sys/EarlyWarning/StandWarning", {
// sarPutType: "ZCCSSRQ",
// pageSize: 5
// }, {
// _this: this
// }, res => {
// this.productionVehicleDatas = res.data.list;
// }, e => {
// });
// },
// queryNewTypeByPage() {
// this.$http.get("sys/EarlyWarning/StandWarning", {
// sarPutType: "XCXSSRQ",
// pageSize: 5
// }, {
// _this: this
// }, res => {
// // this.newTypeDatas = res.data.list;
// }, e => {
// });
// },
/**
* @description: 日期转换
* @author: chenxiaoxi
@@ -707,8 +729,8 @@ export default {
window.onresize = () => {
this.height = $(".content").height() * 0.4;
};
this.queryNewTypeByPage();
this.queryProductionVehicleByPage();
// this.queryNewTypeByPage();
// this.queryProductionVehicleByPage();
// 四个预警同时查询,loading全部打开
for (const loading in this.loading) { this.loading[loading] = true }
this.getEarlyDate();