Commit 6668c319 authored by mzx's avatar mzx

标准库管理模态框功能完善

parent 69ef9128
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
}, },
computed: { computed: {
modelTitle() { modelTitle() {
return this.dialogManger.source.id ? '编辑' : '新增' + '标准' return this.dialogManger.source.id ? '编辑标准' : '新增标准'
} }
}, },
methods: { methods: {
...@@ -107,6 +107,7 @@ export default { ...@@ -107,6 +107,7 @@ export default {
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
if (valid) { if (valid) {
console.log(valid) console.log(valid)
console.log('车型审查')
} }
}) })
} }
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
}, },
computed: { computed: {
modelTitle() { modelTitle() {
return this.dialogManger.source.id ? '编辑' : '新增' + '标准' return this.dialogManger.source.id ? '编辑标准' : '新增标准'
} }
}, },
methods: { methods: {
...@@ -149,6 +149,7 @@ export default { ...@@ -149,6 +149,7 @@ export default {
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
if (valid) { if (valid) {
console.log(valid) console.log(valid)
console.log('检验测试')
} }
}) })
} }
......
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
}, },
computed: { computed: {
modelTitle() { modelTitle() {
return this.dialogManger.source.id ? '编辑' : '新增' + '标准' return this.dialogManger.source.id ? '编辑标准' : '新增标准'
} }
}, },
methods: { methods: {
...@@ -107,6 +107,7 @@ export default { ...@@ -107,6 +107,7 @@ export default {
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
if (valid) { if (valid) {
console.log(valid) console.log(valid)
console.log('体系审查')
} }
}) })
} }
......
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
}, },
computed: { computed: {
modelTitle() { modelTitle() {
return this.dialogManger.source.id ? '编辑' : '新增' + '标准' return this.dialogManger.source.id ? '编辑标准' : '新增标准'
} }
}, },
methods: { methods: {
...@@ -118,6 +118,7 @@ export default { ...@@ -118,6 +118,7 @@ export default {
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
if (valid) { if (valid) {
console.log(valid) console.log(valid)
console.log('文档审查')
} }
}) })
} }
......
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(1, scope.row)"
>修改</el-button >修改</el-button
> >
<el-button <el-button
...@@ -265,7 +265,7 @@ ...@@ -265,7 +265,7 @@
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(2, scope.row)"
>修改</el-button >修改</el-button
> >
<el-button <el-button
...@@ -350,7 +350,7 @@ ...@@ -350,7 +350,7 @@
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(3, scope.row)"
>修改</el-button >修改</el-button
> >
<el-button <el-button
...@@ -436,7 +436,7 @@ ...@@ -436,7 +436,7 @@
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(4, scope.row)"
>修改</el-button >修改</el-button
> >
<el-button <el-button
...@@ -525,10 +525,28 @@ export default { ...@@ -525,10 +525,28 @@ export default {
}, },
watch: { watch: {
'dialogManger.refreshList'(val) { 'TixiDialogManger.refreshList'(val) {
if (val) { if (val) {
this.loadData() this.loadData()
this.dialogManger.refreshList = false this.TixiDialogManger.refreshList = false
}
},
'ChexingDialogManger.refreshList'(val) {
if (val) {
this.loadData()
this.ChexingDialogManger.refreshList = false
}
},
'WendangDialogManger.refreshList'(val) {
if (val) {
this.loadData()
this.WendangDialogManger.refreshList = false
}
},
'JianyanDialogManger.refreshList'(val) {
if (val) {
this.loadData()
this.JianyanDialogManger.refreshList = false
} }
} }
}, },
...@@ -595,9 +613,25 @@ export default { ...@@ -595,9 +613,25 @@ export default {
}) })
.catch(() => {}) .catch(() => {})
}, },
handleUpdate(row) { handleUpdate(type, row) {
this.dialogManger.dialogVisible = true switch (type) {
this.dialogManger.source = row case 1:
this.TixiDialogManger.dialogVisible = true
this.TixiDialogManger.source = row
break
case 2:
this.ChexingDialogManger.dialogVisible = true
this.ChexingDialogManger.source = row
break
case 3:
this.WendangDialogManger.dialogVisible = true
this.WendangDialogManger.source = row
break
case 4:
this.JianyanDialogManger.dialogVisible = true
this.JianyanDialogManger.source = row
break
}
} }
} }
} }
......
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