|
@@ -247,7 +247,7 @@ export default {
|
|
this.knowledgeForm.type = this.$route.query.type
|
|
this.knowledgeForm.type = this.$route.query.type
|
|
this.knowledgeForm.bastype = this.$route.query.type
|
|
this.knowledgeForm.bastype = this.$route.query.type
|
|
}
|
|
}
|
|
- if(this.$route.query.categoryId) {
|
|
|
|
|
|
+ if(this.$route.query.categoryId&&this.$route.query.categoryId!='000') {
|
|
this.knowledgeForm.categoryId = this.$route.query.categoryId.split(',')
|
|
this.knowledgeForm.categoryId = this.$route.query.categoryId.split(',')
|
|
}
|
|
}
|
|
let pkId = this.$route.query.pkId
|
|
let pkId = this.$route.query.pkId
|
|
@@ -329,6 +329,10 @@ export default {
|
|
// 提交数据
|
|
// 提交数据
|
|
handleSaveClick() {
|
|
handleSaveClick() {
|
|
let that = this
|
|
let that = this
|
|
|
|
+ if(this.knowledgeForm.categoryId.slice(-1)[0]=='000'){
|
|
|
|
+ this.$message.error('请选择分类');
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
this.$refs.knowledgeRef.validate(valid => {
|
|
this.$refs.knowledgeRef.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
// 新增
|
|
// 新增
|