|
@@ -400,8 +400,13 @@ const resetQuery = () => {
|
|
|
|
|
|
/** 添加/修改操作 */
|
|
|
const formRef = ref()
|
|
|
-const openForm = (type: string, id?: number) => {
|
|
|
- formRef.value.open(type, id)
|
|
|
+const openForm = async (type: string, id?: number) => {
|
|
|
+ const datas =await TypeApi.getTypeTreeList({status: true})
|
|
|
+ if (datas.length===0){
|
|
|
+ alert("暂无上报计划,请联系管理员")
|
|
|
+ }else {
|
|
|
+ formRef.value.open(type, id)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|