|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
- <el-form :model="queryParams" ref="queryForm" :inline="true" @submit.native.prevent >
|
|
|
|
|
|
+ <el-form :model="queryParams" ref="queryForm" :inline="true" @submit.native.prevent>
|
|
<el-form-item label="合同名称" prop="name">
|
|
<el-form-item label="合同名称" prop="name">
|
|
<el-input v-model="queryParams.name" placeholder="请输入合同名称" @keyup.enter.native="handleQuery" clearable />
|
|
<el-input v-model="queryParams.name" placeholder="请输入合同名称" @keyup.enter.native="handleQuery" clearable />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -20,6 +20,7 @@
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="200" />
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="200" />
|
|
<el-table-column label="操作" align="center" width="200">
|
|
<el-table-column label="操作" align="center" width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-document" @click="op('look', scope.row)">查看合同</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="op('edit', scope.row)" v-hasPermi="['work:contract:edit']">修改</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="op('edit', scope.row)" v-hasPermi="['work:contract:edit']">修改</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -32,6 +33,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import look from './look';
|
|
import edit from './edit';
|
|
import edit from './edit';
|
|
export default {
|
|
export default {
|
|
name: 'Contract',
|
|
name: 'Contract',
|
|
@@ -42,7 +44,6 @@ export default {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
name: null,
|
|
name: null,
|
|
- url: null,
|
|
|
|
state: null,
|
|
state: null,
|
|
orderByColumn: 'id',
|
|
orderByColumn: 'id',
|
|
isAsc: 'desc'
|
|
isAsc: 'desc'
|
|
@@ -70,9 +71,11 @@ export default {
|
|
this.ids = rows.map((item) => item.id);
|
|
this.ids = rows.map((item) => item.id);
|
|
},
|
|
},
|
|
op(tag, row) {
|
|
op(tag, row) {
|
|
|
|
+ if (tag == 'look') {
|
|
|
|
+ this.iframe({ obj: look, param: { url: row.url }, title: '查看合同', width: '55%', height: '85%' });
|
|
|
|
+ }
|
|
if (tag == 'edit') {
|
|
if (tag == 'edit') {
|
|
- const id = row.id || this.ids[0];
|
|
|
|
- this.iframe({ obj: edit, param: { id: id }, title: '编辑合同', width: '35%', height: '40%' });
|
|
|
|
|
|
+ this.iframe({ obj: edit, param: { id: row.id }, title: '编辑合同', width: '35%', height: '40%' });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
del(row) {
|
|
del(row) {
|