|
@ -25,7 +25,9 @@ export default { |
|
|
adcd: "", |
|
|
adcd: "", |
|
|
dikeName: "", |
|
|
dikeName: "", |
|
|
dikeType: "", |
|
|
dikeType: "", |
|
|
|
|
|
engScal: "", |
|
|
name: "", |
|
|
name: "", |
|
|
|
|
|
status: "", |
|
|
planDateArr: [], |
|
|
planDateArr: [], |
|
|
}, |
|
|
}, |
|
|
choiceDate: '', |
|
|
choiceDate: '', |
|
@ -37,11 +39,10 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
disabledDate: (time) => {//只能选择5年数据 |
|
|
disabledDate: (time) => {//只能选择5年数据 |
|
|
let curDate = (new Date()).getTime(); |
|
|
|
|
|
let three = 5 * 12 * 30 * 24 * 3600 * 1000; |
|
|
|
|
|
let min = curDate + three; |
|
|
|
|
|
let max = curDate - three; |
|
|
|
|
|
if (this.choiceDate) { |
|
|
if (this.choiceDate) { |
|
|
|
|
|
let three = 5 * 12 * 30 * 24 * 3600 * 1000; |
|
|
|
|
|
let min = this.choiceDate + three; |
|
|
|
|
|
let max = this.choiceDate - three; |
|
|
return time.getTime() < max || time.getTime() > min; |
|
|
return time.getTime() < max || time.getTime() > min; |
|
|
} else { |
|
|
} else { |
|
|
return false; |
|
|
return false; |
|
@ -52,6 +53,7 @@ export default { |
|
|
dialogVisible: false, |
|
|
dialogVisible: false, |
|
|
areasOptions: [], // 行政区划列表 |
|
|
areasOptions: [], // 行政区划列表 |
|
|
embankmentTypeOptions: [], // 堤防类型列表 |
|
|
embankmentTypeOptions: [], // 堤防类型列表 |
|
|
|
|
|
scaleOptions: [], // 堤防类型列表 |
|
|
supplementOptions: [], // 资金来源列表 |
|
|
supplementOptions: [], // 资金来源列表 |
|
|
tableData: [], // 表格列表 |
|
|
tableData: [], // 表格列表 |
|
|
tableCheckData: [], // 选中的数据 |
|
|
tableCheckData: [], // 选中的数据 |
|
@ -148,6 +150,8 @@ export default { |
|
|
: null, |
|
|
: null, |
|
|
dikeName: this.paramsData.dikeName, |
|
|
dikeName: this.paramsData.dikeName, |
|
|
dikeType: this.paramsData.dikeType, |
|
|
dikeType: this.paramsData.dikeType, |
|
|
|
|
|
engScal: this.paramsData.engScal, |
|
|
|
|
|
status: this.paramsData.status, |
|
|
}, |
|
|
}, |
|
|
pageSize: this.pageData.pageSize, |
|
|
pageSize: this.pageData.pageSize, |
|
|
pageNum: this.pageData.pageNum, |
|
|
pageNum: this.pageData.pageNum, |
|
@ -208,6 +212,8 @@ export default { |
|
|
this.paramsData.planDateArr = []; |
|
|
this.paramsData.planDateArr = []; |
|
|
this.paramsData.dikeName = ""; |
|
|
this.paramsData.dikeName = ""; |
|
|
this.paramsData.dikeType = ""; |
|
|
this.paramsData.dikeType = ""; |
|
|
|
|
|
this.paramsData.engScal = ""; |
|
|
|
|
|
this.paramsData.status = ""; |
|
|
|
|
|
|
|
|
this.reqCountCalc(); |
|
|
this.reqCountCalc(); |
|
|
this.pageData.pageNum = 1; |
|
|
this.pageData.pageNum = 1; |
|
@ -235,12 +241,21 @@ export default { |
|
|
}) |
|
|
}) |
|
|
return name; |
|
|
return name; |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 过滤时间日期 |
|
|
|
|
|
formatDate(dateStr) { |
|
|
|
|
|
const date = new Date(dateStr); |
|
|
|
|
|
console.log(date) |
|
|
|
|
|
return date.toISOString().split('T')[0]; |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getTreeData(); |
|
|
this.getTreeData(); |
|
|
this.getDicts("embankment_type").then((response) => { |
|
|
this.getDicts("embankment_type").then((response) => { |
|
|
this.embankmentTypeOptions = response.data; |
|
|
this.embankmentTypeOptions = response.data; |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.getDicts("df-scale").then((response) => { |
|
|
|
|
|
this.scaleOptions = response.data; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
this.getDicts("xs_yh_supplement").then((response) => { |
|
|
this.getDicts("xs_yh_supplement").then((response) => { |
|
|
this.supplementOptions = response.data; |
|
|
this.supplementOptions = response.data; |
|
@ -317,6 +332,26 @@ export default { |
|
|
placeholder="请输入名称" |
|
|
placeholder="请输入名称" |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="search-item flex items-center"> |
|
|
|
|
|
<span class="search-label">工程规模</span> |
|
|
|
|
|
<el-select |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
class="w-202 ml-10" |
|
|
|
|
|
v-model="paramsData.engScal" |
|
|
|
|
|
:popper-append-to-body="false" |
|
|
|
|
|
filterable |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option label="全部" value=""> </el-option> |
|
|
|
|
|
<el-option |
|
|
|
|
|
:label="item.dictLabel" |
|
|
|
|
|
:value="item.dictValue" |
|
|
|
|
|
v-for="(item, index) in scaleOptions" |
|
|
|
|
|
:key="index" |
|
|
|
|
|
></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</div> |
|
|
<div class="search-item flex items-center"> |
|
|
<div class="search-item flex items-center"> |
|
|
<span class="search-label">维养计划日期</span> |
|
|
<span class="search-label">维养计划日期</span> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
@ -330,6 +365,24 @@ export default { |
|
|
value-format="yyyy-MM-dd" |
|
|
value-format="yyyy-MM-dd" |
|
|
></el-date-picker> |
|
|
></el-date-picker> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="search-item flex items-center"> |
|
|
|
|
|
<span class="search-label">计划状态</span> |
|
|
|
|
|
<el-select |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
class="w-202 ml-10" |
|
|
|
|
|
v-model="paramsData.status" |
|
|
|
|
|
:popper-append-to-body="false" |
|
|
|
|
|
filterable |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option label="全部" value=""> </el-option> |
|
|
|
|
|
<el-option label="待提交" value="0"> </el-option> |
|
|
|
|
|
<el-option label="审批中" value="1"> </el-option> |
|
|
|
|
|
<el-option label="已通过" value="2"> </el-option> |
|
|
|
|
|
<el-option label="已驳回" value="3"> </el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</div> |
|
|
<div class="flex-1 flex justify-end search-item"> |
|
|
<div class="flex-1 flex justify-end search-item"> |
|
|
<el-button |
|
|
<el-button |
|
|
size="small" |
|
|
size="small" |
|
@ -381,8 +434,14 @@ export default { |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="name" align="center" label="维养计划名称" /> |
|
|
<el-table-column prop="name" align="center" label="维养计划名称" /> |
|
|
<el-table-column prop="startDate" align="center" label="计划开始时间"> |
|
|
<el-table-column prop="startDate" align="center" label="计划开始时间"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span>{{ formatDate(scope.row.startDate) }}</span> |
|
|
|
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="endDate" align="center" label="计划结束时间"> |
|
|
<el-table-column prop="endDate" align="center" label="计划结束时间"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span>{{ formatDate(scope.row.endDate) }}</span> |
|
|
|
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="supplements" align="center" label="资金来源/万元" > |
|
|
<el-table-column prop="supplements" align="center" label="资金来源/万元" > |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|