diff --git a/src/views/knowledgeManage/editKnowledge.vue b/src/views/knowledgeManage/editKnowledge.vue
index 10c7d8c..21a4b34 100644
--- a/src/views/knowledgeManage/editKnowledge.vue
+++ b/src/views/knowledgeManage/editKnowledge.vue
@@ -187,8 +187,12 @@
this.knowledgeForm = {
id: '', // 编号
type: '', // 父级编号
- name: ''// 类别名
+ name: '', // 类别名
+ keywords: '', // 关键词
+ info: '', // 内容
+ deptId: ''
}
+ this.fileList = []
},
// 保存数据
saveData: function() {
@@ -216,21 +220,8 @@
this.btnLoading = true
addKnowledge(this.knowledgeForm).then(response => {
if (response.code === 200) {
- this.$confirm('新增成功,是否继续新增?', '提示', {
- confirmButtonText: '是',
- cancelButtonText: '否',
- type: 'info'
- }).then(() => {
- this.btnLoading = false
- this.resetForm()
- this.$nextTick(() => {
- this.$refs['dataForm'].clearValidate()
- this.fetchTypeTree()
- })
- }).catch(() => {
- this.$emit('refresh')
- this.dialogFormVisible = false
- })
+ this.$emit('refresh')
+ this.dialogFormVisible = false
}
}).catch(_ => { // 异常情况,loading置为false
this.btnLoading = false
@@ -272,7 +263,6 @@
},
// 上传前判断文件格式及大小
handleBeforeUpload(file) {
- debugger
console.log('beforeUpload')
let isFile = false
if (file.type === '') {
@@ -290,18 +280,17 @@
this.$message.error('上传文件大小不能超过 10MB!')
res = false
}
- for (const i in this.fileList) {
- if (this.fileList[i].name === file.name) {
- this.$message.error('该文件已上传过,请选择其他文件图片')
- res = false
- }
- }
+ // for (const i in this.fileList) {
+ // if (this.fileList[i].name === file.name) {
+ // this.$message.error('该文件已上传过,请选择其他文件图片')
+ // res = false
+ // }
+ // }
return res
},
// 移除后操作删除文件
handleRemove(file, fileList) {
console.log('handleRemove')
- debugger
for (const i in this.fileList) {
if (this.fileList[i].uid === file.uid) {
this.fileList.splice(i, 1)
@@ -334,7 +323,6 @@
console.log('handleSuccess')
// const base_url = process.env.BASE_API + '/static/'
if (response.code === 200) {
- debugger
this.fileList.push({ uid: file.uid, name: file.file.name, url: response.data })
this.handleChange()
} else {
diff --git a/src/views/knowledgeManage/editKnowledge.vue b/src/views/knowledgeManage/editKnowledge.vue
index 10c7d8c..21a4b34 100644
--- a/src/views/knowledgeManage/editKnowledge.vue
+++ b/src/views/knowledgeManage/editKnowledge.vue
@@ -187,8 +187,12 @@
this.knowledgeForm = {
id: '', // 编号
type: '', // 父级编号
- name: ''// 类别名
+ name: '', // 类别名
+ keywords: '', // 关键词
+ info: '', // 内容
+ deptId: ''
}
+ this.fileList = []
},
// 保存数据
saveData: function() {
@@ -216,21 +220,8 @@
this.btnLoading = true
addKnowledge(this.knowledgeForm).then(response => {
if (response.code === 200) {
- this.$confirm('新增成功,是否继续新增?', '提示', {
- confirmButtonText: '是',
- cancelButtonText: '否',
- type: 'info'
- }).then(() => {
- this.btnLoading = false
- this.resetForm()
- this.$nextTick(() => {
- this.$refs['dataForm'].clearValidate()
- this.fetchTypeTree()
- })
- }).catch(() => {
- this.$emit('refresh')
- this.dialogFormVisible = false
- })
+ this.$emit('refresh')
+ this.dialogFormVisible = false
}
}).catch(_ => { // 异常情况,loading置为false
this.btnLoading = false
@@ -272,7 +263,6 @@
},
// 上传前判断文件格式及大小
handleBeforeUpload(file) {
- debugger
console.log('beforeUpload')
let isFile = false
if (file.type === '') {
@@ -290,18 +280,17 @@
this.$message.error('上传文件大小不能超过 10MB!')
res = false
}
- for (const i in this.fileList) {
- if (this.fileList[i].name === file.name) {
- this.$message.error('该文件已上传过,请选择其他文件图片')
- res = false
- }
- }
+ // for (const i in this.fileList) {
+ // if (this.fileList[i].name === file.name) {
+ // this.$message.error('该文件已上传过,请选择其他文件图片')
+ // res = false
+ // }
+ // }
return res
},
// 移除后操作删除文件
handleRemove(file, fileList) {
console.log('handleRemove')
- debugger
for (const i in this.fileList) {
if (this.fileList[i].uid === file.uid) {
this.fileList.splice(i, 1)
@@ -334,7 +323,6 @@
console.log('handleSuccess')
// const base_url = process.env.BASE_API + '/static/'
if (response.code === 200) {
- debugger
this.fileList.push({ uid: file.uid, name: file.file.name, url: response.data })
this.handleChange()
} else {
diff --git a/src/views/qualityManage/qualityModular/qualityIndexManage.vue b/src/views/qualityManage/qualityModular/qualityIndexManage.vue
index c50c5dd..1451564 100644
--- a/src/views/qualityManage/qualityModular/qualityIndexManage.vue
+++ b/src/views/qualityManage/qualityModular/qualityIndexManage.vue
@@ -9,7 +9,7 @@
新增指标
生效
失效
- 编辑模块
+ 编辑模块
删除模块
*总分:{{ score?score:'未知' }}
diff --git a/src/views/knowledgeManage/editKnowledge.vue b/src/views/knowledgeManage/editKnowledge.vue
index 10c7d8c..21a4b34 100644
--- a/src/views/knowledgeManage/editKnowledge.vue
+++ b/src/views/knowledgeManage/editKnowledge.vue
@@ -187,8 +187,12 @@
this.knowledgeForm = {
id: '', // 编号
type: '', // 父级编号
- name: ''// 类别名
+ name: '', // 类别名
+ keywords: '', // 关键词
+ info: '', // 内容
+ deptId: ''
}
+ this.fileList = []
},
// 保存数据
saveData: function() {
@@ -216,21 +220,8 @@
this.btnLoading = true
addKnowledge(this.knowledgeForm).then(response => {
if (response.code === 200) {
- this.$confirm('新增成功,是否继续新增?', '提示', {
- confirmButtonText: '是',
- cancelButtonText: '否',
- type: 'info'
- }).then(() => {
- this.btnLoading = false
- this.resetForm()
- this.$nextTick(() => {
- this.$refs['dataForm'].clearValidate()
- this.fetchTypeTree()
- })
- }).catch(() => {
- this.$emit('refresh')
- this.dialogFormVisible = false
- })
+ this.$emit('refresh')
+ this.dialogFormVisible = false
}
}).catch(_ => { // 异常情况,loading置为false
this.btnLoading = false
@@ -272,7 +263,6 @@
},
// 上传前判断文件格式及大小
handleBeforeUpload(file) {
- debugger
console.log('beforeUpload')
let isFile = false
if (file.type === '') {
@@ -290,18 +280,17 @@
this.$message.error('上传文件大小不能超过 10MB!')
res = false
}
- for (const i in this.fileList) {
- if (this.fileList[i].name === file.name) {
- this.$message.error('该文件已上传过,请选择其他文件图片')
- res = false
- }
- }
+ // for (const i in this.fileList) {
+ // if (this.fileList[i].name === file.name) {
+ // this.$message.error('该文件已上传过,请选择其他文件图片')
+ // res = false
+ // }
+ // }
return res
},
// 移除后操作删除文件
handleRemove(file, fileList) {
console.log('handleRemove')
- debugger
for (const i in this.fileList) {
if (this.fileList[i].uid === file.uid) {
this.fileList.splice(i, 1)
@@ -334,7 +323,6 @@
console.log('handleSuccess')
// const base_url = process.env.BASE_API + '/static/'
if (response.code === 200) {
- debugger
this.fileList.push({ uid: file.uid, name: file.file.name, url: response.data })
this.handleChange()
} else {
diff --git a/src/views/qualityManage/qualityModular/qualityIndexManage.vue b/src/views/qualityManage/qualityModular/qualityIndexManage.vue
index c50c5dd..1451564 100644
--- a/src/views/qualityManage/qualityModular/qualityIndexManage.vue
+++ b/src/views/qualityManage/qualityModular/qualityIndexManage.vue
@@ -9,7 +9,7 @@
新增指标
生效
失效
- 编辑模块
+ 编辑模块
删除模块
*总分:{{ score?score:'未知' }}
diff --git a/src/views/qualityManage/qualitySound/qualityCheck.vue b/src/views/qualityManage/qualitySound/qualityCheck.vue
index df3c154..858792f 100644
--- a/src/views/qualityManage/qualitySound/qualityCheck.vue
+++ b/src/views/qualityManage/qualitySound/qualityCheck.vue
@@ -83,7 +83,8 @@
modularList: [], // 质检模块列表
textMap: {
first: '质检',
- twice: '质检复核'
+ twice: '质检复核',
+ info: '详情'
}, // 表头显示标题
rules: {
checkModular: [{ required: true, message: '质检模块必选', trigger: ['blur', 'change'] }],