Commit 09816a70 authored by kzy's avatar kzy

Merge branch 'project1' of http://gitlab.91isoft.com:90/yangshuo/template_vue into project1

parents ff9982ea f0dae9d6
...@@ -117,6 +117,11 @@ export default { ...@@ -117,6 +117,11 @@ export default {
}, },
// 提价时要调的接口 // 提价时要调的接口
submitForm() { submitForm() {
this.$confirm('是否确认提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
addApplication(this.form).then(res => { addApplication(this.form).then(res => {
...@@ -130,6 +135,7 @@ export default { ...@@ -130,6 +135,7 @@ export default {
}) })
} }
}) })
})
}, },
// 调数据字典查询 // 调数据字典查询
getDict() { getDict() {
......
...@@ -303,7 +303,11 @@ export default { ...@@ -303,7 +303,11 @@ export default {
form: { form: {
pn: '', pn: '',
lot: '', lot: '',
plocation: '' plocation: '',
phd: '',
psm: '',
pzl: '',
prank: ''
}, },
defaultProps: { defaultProps: {
children: 'children', children: 'children',
......
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
<script> <script>
import { add, updatadevice } from '@/api/magnagement' import { add, updatadevice } from '@/api/magnagement'
export default { export default {
name: 'Role', name: 'Role',
data() { data() {
...@@ -105,6 +104,11 @@ export default { ...@@ -105,6 +104,11 @@ export default {
}, },
// 提交时要调的接口 // 提交时要调的接口
submitForm() { submitForm() {
this.$confirm('是否确认操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
console.log('form', this.form) console.log('form', this.form)
...@@ -114,8 +118,7 @@ export default { ...@@ -114,8 +118,7 @@ export default {
if (res.code === 200) { if (res.code === 200) {
this.open = false this.open = false
this.$message.success('操作成功') this.$message.success('操作成功')
this.getList() this.resetFrom()
this.reFrom()
} else if (res.code === null) { } else if (res.code === null) {
this.$message.error(res.message) this.$message.error(res.message)
} }
...@@ -125,8 +128,7 @@ export default { ...@@ -125,8 +128,7 @@ export default {
if (res.code === 200) { if (res.code === 200) {
this.open = false this.open = false
this.$message.success('操作成功') this.$message.success('操作成功')
this.getList() this.resetFrom()
this.reFrom()
} else if (res.code === null) { } else if (res.code === null) {
this.$message.error(res.message) this.$message.error(res.message)
} }
...@@ -136,6 +138,7 @@ export default { ...@@ -136,6 +138,7 @@ export default {
// 校验失败,显示错误信息或进行其他操作 // 校验失败,显示错误信息或进行其他操作
} }
}) })
})
}, },
// 调数据字典查询 // 调数据字典查询
getDict() { getDict() {
...@@ -161,7 +164,7 @@ export default { ...@@ -161,7 +164,7 @@ export default {
} }
.button{ .button{
margin-top: 7%; margin-top: 7%;
margin-left: 48%; margin-left: 11%;
} }
} }
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作时间" prop="createDate" :show-overflow-tooltip="true"> <el-table-column label="操作时间" prop="createDate" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.createDate || '-' }} {{ parseTime(scope.row.createDate, '{y}-{m}-{d} {h}:{i}') || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
......
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