|
@@ -73,14 +73,28 @@
|
|
|
<div class="table">
|
|
|
<el-table ref="renewalTable" v-loading="loading" :data="dataList">
|
|
|
<el-table-column prop="date" label="序号" width="80" align="center">
|
|
|
- <template slot-scope="scope">{{ scope.$index + 1 }}</template>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{
|
|
|
+ scope.$index +
|
|
|
+ (queryParams.pageNum - 1) * queryParams.pageSize +
|
|
|
+ 1
|
|
|
+ }}</template
|
|
|
+ >
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="作业内容"
|
|
|
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"
|
|
@@ -190,6 +204,7 @@
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
</div>
|
|
|
+ <WorkPlanDetailModel ref="workPlanDetailModelRef"></WorkPlanDetailModel>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -197,7 +212,9 @@
|
|
|
import { getWorkPlanList } from "@/api/secure/pdm-work-plan";
|
|
|
import { getWorkUnitList } from "@/api/secure/daily-newspaper";
|
|
|
import { getRiskRoleList } from "@/api/secure/pdm-risk-role";
|
|
|
+import WorkPlanDetailModel from "../components/WorkPlanDetailModel.vue";
|
|
|
export default {
|
|
|
+ components: { WorkPlanDetailModel },
|
|
|
data() {
|
|
|
return {
|
|
|
dataList: [],
|
|
@@ -265,6 +282,9 @@ export default {
|
|
|
}
|
|
|
);
|
|
|
},
|
|
|
+ handleDetail(row, title) {
|
|
|
+ this.$refs.workPlanDetailModelRef.openModel({ ...row }, title, 3);
|
|
|
+ },
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
this.getList();
|