|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryForm" :inline="true" @submit.native.prevent v-show="showSearch">
|
|
|
+ <el-form :model="queryParams" ref="queryForm" :inline="true" @submit.native.prevent >
|
|
|
<el-form-item label="合同名称" prop="name">
|
|
|
<el-input v-model="queryParams.name" placeholder="请输入合同名称" @keyup.enter.native="handleQuery" clearable />
|
|
|
</el-form-item>
|
|
@@ -9,14 +9,8 @@
|
|
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-row :gutter="10" class="mb8">
|
|
|
- <el-button type="success" icon="el-icon-edit" :disabled="ids.length != 1" @click="op('edit', ids)" v-hasPermi="['work:contract:edit']">修改</el-button>
|
|
|
- <el-button type="danger" icon="el-icon-delete" :disabled="ids.length == 0" @click="del" v-hasPermi="['work:contract:remove']">删除{{ ids.length > 0 ? '(' + ids.length + ')' : '' }}</el-button>
|
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
- </el-row>
|
|
|
- <el-table :data="response.rows" border @selection-change="selects" height="calc(100vh - 270px)">
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="合同名称" align="left" prop="name" />
|
|
|
+ <el-table :data="response.rows" border height="calc(100vh - 270px)">
|
|
|
+ <el-table-column label="合同名称" align="center" prop="name" />
|
|
|
<el-table-column label="合同状态" align="center" prop="state" width="130">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag type="success" v-if="scope.row.state == 0">启用</el-tag>
|
|
@@ -27,7 +21,6 @@
|
|
|
<el-table-column label="操作" align="center" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<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-delete" @click="del(scope.row)" v-hasPermi="['work:contract:remove']">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<template slot="empty">
|
|
@@ -44,8 +37,6 @@ export default {
|
|
|
name: 'Contract',
|
|
|
data() {
|
|
|
return {
|
|
|
- ids: [],
|
|
|
- showSearch: true,
|
|
|
response: {},
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|