|
|
@ -1,6 +1,6 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
|
<el-form-item label="项目名称" prop="name">
|
|
|
|
<el-form-item label="项目名称" prop="name">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.name"
|
|
|
|
v-model="queryParams.name"
|
|
|
@ -123,7 +123,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改项目对话框 -->
|
|
|
|
<!-- 添加或修改项目对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
|
<el-form-item label="项目名称" prop="name">
|
|
|
|
<el-form-item label="项目名称" prop="name">
|
|
|
|
<el-input v-model="form.name" placeholder="请输入项目名称" />
|
|
|
|
<el-input v-model="form.name" placeholder="请输入项目名称" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -146,9 +146,6 @@
|
|
|
|
placeholder="选择项目结束时间">
|
|
|
|
placeholder="选择项目结束时间">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="删除标志" prop="delFlag">
|
|
|
|
|
|
|
|
<el-input v-model="form.delFlag" placeholder="请输入删除标志" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
@ -159,7 +156,15 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listProject, getProject, delProject, addProject, updateProject, exportProject } from "@/api/system/project";
|
|
|
|
import {
|
|
|
|
|
|
|
|
listProject,
|
|
|
|
|
|
|
|
getProject,
|
|
|
|
|
|
|
|
delProject,
|
|
|
|
|
|
|
|
addProject,
|
|
|
|
|
|
|
|
updateProject,
|
|
|
|
|
|
|
|
exportProject,
|
|
|
|
|
|
|
|
optionProject
|
|
|
|
|
|
|
|
} from "@/api/system/project";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Project",
|
|
|
|
name: "Project",
|
|
|
@ -200,24 +205,12 @@ export default {
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
name: [
|
|
|
|
name: [
|
|
|
|
{ required: true, message: "项目名称不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "项目名称不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
|
|
|
|
startDate: [
|
|
|
|
|
|
|
|
{ required: true, message: "项目开始时间不能为空", trigger: "blur" }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
delFlag: [
|
|
|
|
|
|
|
|
{ required: true, message: "删除标志不能为空", trigger: "blur" }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
updateTime: [
|
|
|
|
|
|
|
|
{ required: true, message: "更新时间不能为空", trigger: "blur" }
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
updateBy: [
|
|
|
|
|
|
|
|
{ required: true, message: "更新人不能为空", trigger: "blur" }
|
|
|
|
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
activated() {
|
|
|
|
this.getList();
|
|
|
|
this.optionList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
/** 查询项目列表 */
|
|
|
|
/** 查询项目列表 */
|
|
|
@ -228,6 +221,14 @@ export default {
|
|
|
|
this.total = response.total;
|
|
|
|
this.total = response.total;
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}, /** 查询项目列表 */
|
|
|
|
|
|
|
|
optionList() {
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
optionProject().then(response => {
|
|
|
|
|
|
|
|
this.projectList = response.rows;
|
|
|
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 取消按钮
|
|
|
|
// 取消按钮
|
|
|
|
cancel() {
|
|
|
|
cancel() {
|
|
|
|