|
@@ -135,7 +135,7 @@
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
|
|
|
- <el-select v-model="classifyForm.reportType" style="width:400px" :disabled="classifyForm.classify_id||classifyForm.parent_id">
|
|
|
+ <el-select v-model="classifyForm.reportType" style="width:400px" :disabled="classifyForm.classify_id||(classifyForm.parent_id&&!classifyForm.hasClassifyChild)">
|
|
|
<el-option label="研报" :value="1"/>
|
|
|
<el-option label="PPT" :value="2"/>
|
|
|
</el-select>
|
|
@@ -268,7 +268,8 @@ export default {
|
|
|
variety:'',//关联的品种
|
|
|
reportType: 1,
|
|
|
isReportWarn: 0,
|
|
|
- warnTime:'09:00'
|
|
|
+ warnTime:'09:00',
|
|
|
+ hasClassifyChild:false
|
|
|
},
|
|
|
formRules: {
|
|
|
classify_name: [{ required:true,message:this.$t('ReportManage.CategoryList.category_name_hint'),trigger:'blur'}]
|
|
@@ -319,7 +320,10 @@ export default {
|
|
|
let item = this.$refs.classifyRef.getCheckedNodes(true)
|
|
|
console.log(item)
|
|
|
if(item&&item[0]) {
|
|
|
- this.classifyForm.reportType = item[0].data.ClassifyType
|
|
|
+ this.classifyForm.reportType = item[0].data.ClassifyType;
|
|
|
+ this.classifyForm.hasClassifyChild = item[0].data.HasChild ? true : false;
|
|
|
+ }else {
|
|
|
+ this.classifyForm.hasClassifyChild = false
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -347,7 +351,8 @@ export default {
|
|
|
variety:'',//关联的品种
|
|
|
reportType: 1,
|
|
|
isReportWarn: 0,
|
|
|
- warnTime:'09:00'
|
|
|
+ warnTime:'09:00',
|
|
|
+ hasClassifyChild:false
|
|
|
}
|
|
|
},
|
|
|
async handleEdit(item){
|
|
@@ -359,7 +364,8 @@ export default {
|
|
|
isLastLevel: !item.Child,
|
|
|
reportType: item.ClassifyType,
|
|
|
isReportWarn: item.IsRemind,
|
|
|
- warnTime: item.RemindTime
|
|
|
+ warnTime: item.RemindTime,
|
|
|
+ hasClassifyChild:false
|
|
|
}
|
|
|
},
|
|
|
async setClassifyHandle(){
|