mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
优化
This commit is contained in:
parent
4c22e42513
commit
8f72fa7fb7
@ -2,7 +2,15 @@
|
||||
<div>
|
||||
<el-card>
|
||||
<div class="buttons">
|
||||
<buttons funid="safe_insp" style="margin-bottom:20px" @save="save" />
|
||||
<div class="buttons">
|
||||
<el-button type="primary" @click="create">新增</el-button>
|
||||
<el-button type="primary" @click="del">删除</el-button>
|
||||
<el-button type="primary" @click="save">保存</el-button>
|
||||
<el-button type="primary" @click="audit">提交</el-button>
|
||||
<el-button type="primary" @click="unaudit">反提交</el-button>
|
||||
<el-button type="primary" @click="upload">图文附件</el-button>
|
||||
<el-button type="primary" @click="back">返回列表</el-button>
|
||||
</div>
|
||||
<el-button type="primary" @click="back">返回列表</el-button>
|
||||
</div>
|
||||
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
|
||||
@ -122,14 +130,12 @@
|
||||
<script>
|
||||
import api from '../../api'
|
||||
import publicApi from '@/api/public'
|
||||
import buttons from '@/components/formBtn'
|
||||
import InspDet from '../insp_det'
|
||||
import SelUser from '@/components/selUser'
|
||||
import InspName from '../inspName'
|
||||
export default {
|
||||
name: 'AuditForm',
|
||||
components: {
|
||||
buttons,
|
||||
SelUser,
|
||||
InspDet,
|
||||
InspName
|
||||
@ -294,6 +300,7 @@ export default {
|
||||
}
|
||||
.buttons {
|
||||
display: flex;
|
||||
margin-bottom:20px;
|
||||
.el-button--primary {
|
||||
margin-left: 10px;
|
||||
height: 26.8px;
|
||||
|
@ -14,12 +14,12 @@
|
||||
<el-row>
|
||||
<el-col :span="7">
|
||||
<el-form-item label="巡检单编号">
|
||||
<el-input v-model="form.safe_insp__insp_code" />
|
||||
<el-input v-model="form.safe_insp__insp_code" disabled />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="7">
|
||||
<el-form-item label="巡检状态">
|
||||
<el-select v-model="form.safe_insp__insp_state" placeholder="请选择">
|
||||
<el-select v-model="form.safe_insp__insp_state" disabled placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:key="item.funall_control__value_data"
|
||||
@ -96,7 +96,8 @@
|
||||
</el-row>
|
||||
</el-form>
|
||||
</el-card>
|
||||
<InspDet :id="id" />
|
||||
<InspDet :id="id" @updateList="getList" />
|
||||
<InspDet :id="id" @updateList="getList" />
|
||||
<el-dialog
|
||||
v-if="selUserVisible"
|
||||
title="选择人员"
|
||||
|
@ -268,6 +268,7 @@ export default {
|
||||
this.dialogFormVisible = false
|
||||
this.$refs['form'].resetFields()
|
||||
this.$message.success('保存成功!')
|
||||
this.$emit('updateList')
|
||||
} else {
|
||||
this.$message.error(data.message)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user