|
@@ -70,7 +70,7 @@
|
|
|
>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <!-- <el-row :gutter="10" class="mb8">
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -81,16 +81,22 @@
|
|
|
>录入取消原因</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
- </el-row> -->
|
|
|
+ </el-row>
|
|
|
<div class="table">
|
|
|
- <el-table ref="renewalTable" v-loading="loading" :data="dataList">
|
|
|
- <el-table-column prop="id" label="ID" width="80" align="center">
|
|
|
+ <el-table
|
|
|
+ ref="renewalTable"
|
|
|
+ v-loading="loading"
|
|
|
+ :data="dataList"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ >
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column prop="" label="序号" width="80" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <a
|
|
|
- @click="handleUpdate(scope.row, '录入取消原因')"
|
|
|
- style="color: blue; cursor: pointer"
|
|
|
- >{{ scope.row.id }}</a
|
|
|
- >
|
|
|
+ {{
|
|
|
+ scope.$index +
|
|
|
+ (queryParams.pageNum - 1) * queryParams.pageSize +
|
|
|
+ 1
|
|
|
+ }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -98,7 +104,15 @@
|
|
|
align="center"
|
|
|
prop="opContent"
|
|
|
:show-overflow-tooltip="true"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <a
|
|
|
+ @click="handleDetail(scope.row, '明细')"
|
|
|
+ style="color: blue; cursor: pointer"
|
|
|
+ >{{ scope.row.opContent }}</a
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="作业地址"
|
|
|
align="center"
|
|
@@ -211,8 +225,17 @@
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
</el-table>
|
|
|
+ <pagination
|
|
|
+ class="page-box"
|
|
|
+ v-show="total > 0"
|
|
|
+ :total="total"
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
</div>
|
|
|
<WorkPlanModel ref="workPlanModelRef" @refresh="getList()"></WorkPlanModel>
|
|
|
+ <WorkPlanDetailModel ref="workPlanDetailModelRef"></WorkPlanDetailModel>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -220,8 +243,9 @@
|
|
|
import { getWorkPlanList } from "@/api/secure/pdm-work-plan";
|
|
|
import { getWorkUnitList } from "@/api/secure/daily-newspaper";
|
|
|
import WorkPlanModel from "../components/WorkPlanModel.vue";
|
|
|
+import WorkPlanDetailModel from "../components/WorkPlanDetailModel.vue";
|
|
|
export default {
|
|
|
- components: { WorkPlanModel },
|
|
|
+ components: { WorkPlanModel, WorkPlanDetailModel },
|
|
|
data() {
|
|
|
return {
|
|
|
dataList: [],
|
|
@@ -238,6 +262,8 @@ export default {
|
|
|
workTeamNm: "",
|
|
|
workPrincipNm: "",
|
|
|
submitOrgNm: "",
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
},
|
|
|
// 选中数组
|
|
|
selectedRows: [],
|
|
@@ -281,21 +307,25 @@ export default {
|
|
|
);
|
|
|
}
|
|
|
// 记录选择的行
|
|
|
- this.selectedRows = selectedRows;
|
|
|
+ this.selectedRows = [selectedRows[selectedRows.length - 1]];
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row, title) {
|
|
|
this.$refs.workPlanModelRef.openModel({ ...row }, title, 1);
|
|
|
},
|
|
|
+ handleDetail(row, title) {
|
|
|
+ this.$refs.workPlanDetailModelRef.openModel({ ...row }, title, 1);
|
|
|
+ },
|
|
|
/** 查询列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- getWorkPlanList({ ...this.queryParams }).then((response) => {
|
|
|
- this.dataList = response.rows.filter(
|
|
|
- (ite) => ite.planExecStDsc == "已取消"
|
|
|
- );
|
|
|
- this.loading = false;
|
|
|
- });
|
|
|
+ getWorkPlanList({ ...this.queryParams, planExecStDsc: "已取消" }).then(
|
|
|
+ (response) => {
|
|
|
+ this.dataList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.loading = false;
|
|
|
+ }
|
|
|
+ );
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|