|
@@ -3,7 +3,7 @@
|
|
|
<el-container>
|
|
|
<el-header class="patent-keywords-highlight-header">
|
|
|
<el-switch v-model="form.ifEnable" active-color="#13ce66" @change="onChange2"></el-switch>
|
|
|
- <div v-if="this.projectType != 3 && !this.outside">
|
|
|
+ <div v-if="this.projectType != 3 && !this.outside && projectId">
|
|
|
<el-button type="primary" size="small" @click="handleAdd" :loading="btnLoading">新增</el-button>
|
|
|
<el-button type="success" size="small" @click="handleSave">保存</el-button>
|
|
|
</div>
|
|
@@ -67,7 +67,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
// 从产品进入进入projectType为3,从接口检索进入为outside为true
|
|
|
- if (this.projectType != 3 && !this.outside) {
|
|
|
+ if (this.projectType != 3 && !this.outside && this.projectId) {
|
|
|
this.getList()
|
|
|
} else {
|
|
|
this.defaultData()
|