Commit 231755e4 authored by jiaxu.yan's avatar jiaxu.yan

修改配置文件

parent 3349e797
{ {
"name": "ruoyi", "name": "jiaxu.yan",
"version": "3.8.6", "version": "0.0.1",
"description": "中汽研安全检测平台管理系统", "description": "中汽研安全检测平台管理系统",
"author": "中汽研安全检测平台", "author": "中汽研安全检测平台",
"license": "MIT", "license": "MIT",
......
<template>
<page-standard>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
<el-form-item label="部门名称" prop="deptName">
<el-input v-model="queryParams.deptName" placeholder="请输入部门名称" clearable
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="状态" prop="status">
<el-input v-model="queryParams.deptName" placeholder="请输入部门名称" clearable
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb10">
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['setting:rules:add']">新增</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="loadData"></right-toolbar>
</el-row>
<el-table style="width: 100%;min-height: 50vh;" border v-if="refreshTable"
:default-sort="{ prop: 'createTime', order: 'descending' }" v-loading="loading" :data="tableData">
<el-table-column width="60" label="序号" sortable align="center">
<template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span>
</template>
</el-table-column>
<el-table-column label="创建时间" align="left" sortable prop="createTime">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="left" sortable class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button size="mini" type="primary" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['setting:rules:update']" plain>修改</el-button>
<el-button size="mini" type="danger" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['setting:rules:delete']" plain>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.size"
@pagination="loadData">
</pagination>
<yan-dialog :dialogManger="dialogManger"></yan-dialog>
</page-standard>
</template>
<script>
import page from '@/mixins/page'
import dialog from './components/dialog.vue'
export default {
components: {
'yan-dialog': dialog
},
mixins: [page],
data() {
return {
listUrl: "/system/role/list",
showSearch: true,
tableData: [],
dialogManger: {
dialogVisible: false,
refreshList: false,
source: {
}
}
};
},
methods: {
handleAdd() {
this.dialogManger.dialogVisible = true
this.dialogManger.source = {}
},
handleDelete() {
},
handleUpdate(row) {
this.dialogManger.dialogVisible = true
this.dialogManger.source = row
},
},
watch: {
"dialogManger.refreshList": function (val) {
if (val) {
this.loadData()
this.dialogManger.refreshList = false
}
}
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment