commit
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
<!-- 实施预警 -->
|
||||
<div class="dynamic" style="overflow-y: auto;">
|
||||
<div class="container" :style="containerStyle">
|
||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||
<el-tab-pane label="标准预警" name="STANDARD">
|
||||
<!-- <el-tabs v-model="activeName" @tab-click="handleClick">-->
|
||||
<!-- <el-tab-pane label="标准预警" name="STANDARD">-->
|
||||
<div class="dynamic-content">
|
||||
<h5>实施预警</h5>
|
||||
<div class="more">
|
||||
@@ -293,105 +293,105 @@
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('oldStand', pageSize)"></pagination>
|
||||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="政策预警" name="POLICY">
|
||||
<div class="dynamic-content">
|
||||
<h5>实施预警</h5>
|
||||
<div class="content" style="height: 100%; padding-top: 5px; ">
|
||||
<div class="content-group">
|
||||
<el-divider content-position="left" class="dynamic-child-title">新车型实施日期预警</el-divider>
|
||||
<div class="table-wrap">
|
||||
<el-table
|
||||
:data="newPolicy"
|
||||
:height="tableHeight"
|
||||
border
|
||||
:resizable="false"
|
||||
v-loading="loading.newPolicy"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
>
|
||||
<el-table-column prop="policyId" label="政策编号" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.policyId }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="policyName" label="政策名称" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.policyName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="putTime" label="新车型实施日期" align="center" sortable>
|
||||
<template slot-scope="scope">
|
||||
{{ (scope.row.putTime ? scope.row.putTime.substring(0, 11) : "") }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="150" v-if="isShowBtn">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="danger"
|
||||
@click="cancelWarning(scope.$index, scope.row)">取消预警</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="pageConfig.newPolicyPage"
|
||||
:pageSize="pageConfig.newPolicyPageSize"
|
||||
:total="pageConfig.count5"
|
||||
autoSize
|
||||
@pageChange="page => handlePageChange('newPolicy', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('newPolicy', pageSize)"></pagination>
|
||||
</div>
|
||||
<div class="content-group">
|
||||
<el-divider content-position="left" class="dynamic-child-title">在产车实施日期预警</el-divider>
|
||||
<div class="table-wrap">
|
||||
<el-table
|
||||
:data="oldPolicy"
|
||||
:height="tableHeight"
|
||||
border
|
||||
:resizable="false"
|
||||
v-loading="loading.oldPolicy"
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||
>
|
||||
<el-table-column prop="policyId" label="政策编号" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.policyId }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="policyName" label="政策名称" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.policyName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="putTime" label="在产车实施日期" align="center" sortable>
|
||||
<template slot-scope="scope">
|
||||
{{ (scope.row.putTime ? scope.row.putTime.substring(0, 11) : "") }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="150" v-if="isShowBtn">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="danger"
|
||||
@click="cancelWarning(scope.$index, scope.row)">取消预警</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="pageConfig.oldPolicyPage"
|
||||
:pangSize="pageConfig.oldPolicyPageSize"
|
||||
:total="pageConfig.count6"
|
||||
autoSize
|
||||
@pageChange="page => handlePageChange('oldPolicy', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('oldPolicy', pageSize)"></pagination>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<!-- </el-tab-pane>-->
|
||||
<!-- <el-tab-pane label="政策预警" name="POLICY">-->
|
||||
<!-- <div class="dynamic-content">-->
|
||||
<!-- <h5>实施预警</h5>-->
|
||||
<!-- <div class="content" style="height: 100%; padding-top: 5px; ">-->
|
||||
<!-- <div class="content-group">-->
|
||||
<!-- <el-divider content-position="left" class="dynamic-child-title">新车型实施日期预警</el-divider>-->
|
||||
<!-- <div class="table-wrap">-->
|
||||
<!-- <el-table-->
|
||||
<!-- :data="newPolicy"-->
|
||||
<!-- :height="tableHeight"-->
|
||||
<!-- border-->
|
||||
<!-- :resizable="false"-->
|
||||
<!-- v-loading="loading.newPolicy"-->
|
||||
<!-- :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"-->
|
||||
<!-- >-->
|
||||
<!-- <el-table-column prop="policyId" label="政策编号" align="center">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <a @click="showStandDetails(scope.row)">{{ scope.row.policyId }}</a>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column prop="policyName" label="政策名称" align="center">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <a @click="showStandDetails(scope.row)">{{ scope.row.policyName }}</a>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column prop="putTime" label="新车型实施日期" align="center" sortable>-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ (scope.row.putTime ? scope.row.putTime.substring(0, 11) : "") }}-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="操作" align="center" width="150" v-if="isShowBtn">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="danger"-->
|
||||
<!-- @click="cancelWarning(scope.$index, scope.row)">取消预警</el-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- </el-table>-->
|
||||
<!-- </div>-->
|
||||
<!-- <pagination-->
|
||||
<!-- style="position: static;"-->
|
||||
<!-- :page="pageConfig.newPolicyPage"-->
|
||||
<!-- :pageSize="pageConfig.newPolicyPageSize"-->
|
||||
<!-- :total="pageConfig.count5"-->
|
||||
<!-- autoSize-->
|
||||
<!-- @pageChange="page => handlePageChange('newPolicy', page)"-->
|
||||
<!-- @pageSizeChange="pageSize => handlePageSizeChange('newPolicy', pageSize)"></pagination>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="content-group">-->
|
||||
<!-- <el-divider content-position="left" class="dynamic-child-title">在产车实施日期预警</el-divider>-->
|
||||
<!-- <div class="table-wrap">-->
|
||||
<!-- <el-table-->
|
||||
<!-- :data="oldPolicy"-->
|
||||
<!-- :height="tableHeight"-->
|
||||
<!-- border-->
|
||||
<!-- :resizable="false"-->
|
||||
<!-- v-loading="loading.oldPolicy"-->
|
||||
<!-- :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"-->
|
||||
<!-- >-->
|
||||
<!-- <el-table-column prop="policyId" label="政策编号" align="center">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <a @click="showStandDetails(scope.row)">{{ scope.row.policyId }}</a>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column prop="policyName" label="政策名称" align="center">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <a @click="showStandDetails(scope.row)">{{ scope.row.policyName }}</a>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column prop="putTime" label="在产车实施日期" align="center" sortable>-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- {{ (scope.row.putTime ? scope.row.putTime.substring(0, 11) : "") }}-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="操作" align="center" width="150" v-if="isShowBtn">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="danger"-->
|
||||
<!-- @click="cancelWarning(scope.$index, scope.row)">取消预警</el-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- </el-table>-->
|
||||
<!-- </div>-->
|
||||
<!-- <pagination-->
|
||||
<!-- style="position: static;"-->
|
||||
<!-- :page="pageConfig.oldPolicyPage"-->
|
||||
<!-- :pangSize="pageConfig.oldPolicyPageSize"-->
|
||||
<!-- :total="pageConfig.count6"-->
|
||||
<!-- autoSize-->
|
||||
<!-- @pageChange="page => handlePageChange('oldPolicy', page)"-->
|
||||
<!-- @pageSizeChange="pageSize => handlePageSizeChange('oldPolicy', pageSize)"></pagination>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </el-tab-pane>-->
|
||||
<!-- </el-tabs>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -468,6 +468,7 @@ export default {
|
||||
}, {
|
||||
_this: this
|
||||
},res => {
|
||||
console.log(res.data);
|
||||
const result = res.data[0]
|
||||
for (const field in result) {
|
||||
this[field] = result[field].records
|
||||
@@ -565,16 +566,17 @@ export default {
|
||||
type: 'warning',
|
||||
roundButton: false
|
||||
}).then(() => {
|
||||
console.log(569)
|
||||
this.$http.get('sys/EarlyWarning/ChangePermissions', {
|
||||
id: row.id,
|
||||
}, res => {
|
||||
}, {}, 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()
|
||||
this.getEarlyDate()
|
||||
}
|
||||
)
|
||||
}).catch(() => {
|
||||
@@ -636,28 +638,6 @@ 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 => {
|
||||
// });
|
||||
// },
|
||||
/**
|
||||
* @description: 日期转换
|
||||
* @author: chenxiaoxi
|
||||
|
||||
Reference in New Issue
Block a user