Commit 97d2fd66 authored by zhangyichen's avatar zhangyichen

修改bug // 对话框取消按钮

    cancel() {
      this.upload2.uploadData = false
      // this.reset()
    },
parent afe3a9d1
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
</el-link> </el-link>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button class="canleBtn" @click="cancel">取 消 Cancel</el-button> <el-button class="canleBtn" @click="cancel1">取 消 Cancel</el-button>
<el-button type="danger" class="redBtn" @click="submitForm">确 定 Confirm</el-button> <el-button type="danger" class="redBtn" @click="submitForm">确 定 Confirm</el-button>
</div> </div>
</el-dialog> </el-dialog>
...@@ -637,6 +637,10 @@ export default { ...@@ -637,6 +637,10 @@ export default {
this.upload2.uploadData = false this.upload2.uploadData = false
// this.reset() // this.reset()
}, },
// 对话框取消按钮
cancel1() {
this.reset()
},
// 对话框确定按钮 // 对话框确定按钮
compare(prop) { compare(prop) {
return function(obj1, obj2) { return function(obj1, obj2) {
...@@ -690,26 +694,6 @@ export default { ...@@ -690,26 +694,6 @@ export default {
this.$refs['form'].validate(valid => { this.$refs['form'].validate(valid => {
if (valid) { if (valid) {
if (rules) { if (rules) {
// const fileList = []
// this.fileList.forEach(item => {
// fileList.push({
// ossId: parseInt(item.id),
// materId: parseInt(this.materId),
// fileName: item.name
// })
// })
// const params = {
// ...this.form,
// nltMaterOssList: fileList
// }
// switch (params.softwareType) {
// case '1':
// params.nltMaterOssList = []
// break
// case '2':
// params.softwareVer = ''
// break
// }
updateMaterial(this.form).then(response => { updateMaterial(this.form).then(response => {
if (response.code === 200) { if (response.code === 200) {
this.$message({ this.$message({
......
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