Browse Source

解决编译报错

zhangchuang 1 week ago
parent
commit
1b34d4edaf

+ 0 - 1
src/views/ap/article-display/index.vue

@@ -128,7 +128,6 @@ const {
   fetchList,
   onClickReset,
   handleCurrentChange,
-  onUpdate,
   onFieldChange,
   saveFieldSettings,
   handleCreate,

+ 0 - 1
src/views/ip/patent-management/operate/index.vue

@@ -142,7 +142,6 @@ const {
   onFieldChange,
   saveFieldSettings,
   handleCreate,
-  onDelete,
 } = useDataListInit();
 </script>
 <style lang="scss" scoped>

+ 0 - 3
src/views/ip/trademark-management/amendment/hooks/useData.hook.ts

@@ -1,12 +1,9 @@
 import { ref, reactive, onMounted } from "vue";
-import { useDictStore } from "@/store/modules/useDictStore/index";
 import { getList, deleteProject } from "./useAxios.hook";
 import { ElMessage, ElMessageBox } from "element-plus";
 
 // 数据初始化
 export const useDataListInit = () => {
-  const dictStore = useDictStore();
-
   // 表单相关
   const formInline = reactive({
     logoRegistrationNumber: "",

+ 0 - 7
src/views/ip/trademark-management/cancellation/hooks/useData.hook.ts

@@ -1,12 +1,9 @@
 import { ref, reactive, onMounted } from "vue";
-import { useDictStore } from "@/store/modules/useDictStore/index";
 import { getList, deleteProject } from "./useAxios.hook";
 import { ElMessage, ElMessageBox } from "element-plus";
 
 // 数据初始化
 export const useDataListInit = () => {
-  const dictStore = useDictStore();
-
   // 表单相关
   const formInline = reactive({
     logoRegistrationNumber: "",
@@ -43,10 +40,6 @@ export const useDataListInit = () => {
   // 配置
   const formLabelWidth = "120px";
 
-  // 字典
-  const trademarkClassification = dictStore.dictData.trademark_classification;
-  const logoLegislationType = dictStore.dictData.logo_legislation_type;
-
   // 动态表单字段配置
   const formFields = [
     {

+ 0 - 13
src/views/ip/trademark-management/cancellation/index.vue

@@ -21,23 +21,10 @@
             <el-col v-for="(field, index) in formFields" :key="index" :span="6">
               <el-form-item :label="field.label" :label-width="formLabelWidth">
                 <component
-                  v-if="field.component !== 'el-select'"
                   :is="field.component"
                   v-model="formInline[field.model as keyof typeof formInline]"
                   v-bind="field.attrs"
                 />
-                <el-select
-                  v-else
-                  v-model="formInline[field.model as keyof typeof formInline]"
-                  v-bind="field.attrs"
-                >
-                  <el-option
-                    v-for="option in field.options"
-                    :key="option.value"
-                    :label="option.label"
-                    :value="option.value"
-                  />
-                </el-select>
               </el-form-item>
             </el-col>
           </el-row>

+ 0 - 3
src/views/ip/trademark-management/opposition/hooks/useData.hook.ts

@@ -1,12 +1,9 @@
 import { ref, reactive, onMounted } from "vue";
-import { useDictStore } from "@/store/modules/useDictStore/index";
 import { getList, deleteProject } from "./useAxios.hook";
 import { ElMessage, ElMessageBox } from "element-plus";
 
 // 数据初始化
 export const useDataListInit = () => {
-  const dictStore = useDictStore();
-
   // 表单相关
   const formInline = reactive({
     logoRegistrationNumber: "",

+ 0 - 13
src/views/ip/trademark-management/opposition/index.vue

@@ -21,23 +21,10 @@
             <el-col v-for="(field, index) in formFields" :key="index" :span="6">
               <el-form-item :label="field.label" :label-width="formLabelWidth">
                 <component
-                  v-if="field.component !== 'el-select'"
                   :is="field.component"
                   v-model="formInline[field.model as keyof typeof formInline]"
                   v-bind="field.attrs"
                 />
-                <el-select
-                  v-else
-                  v-model="formInline[field.model as keyof typeof formInline]"
-                  v-bind="field.attrs"
-                >
-                  <el-option
-                    v-for="option in field.options"
-                    :key="option.value"
-                    :label="option.label"
-                    :value="option.value"
-                  />
-                </el-select>
               </el-form-item>
             </el-col>
           </el-row>

+ 0 - 3
src/views/ip/trademark-management/rejection/hooks/useData.hook.ts

@@ -1,12 +1,9 @@
 import { ref, reactive, onMounted } from "vue";
-import { useDictStore } from "@/store/modules/useDictStore/index";
 import { getList, deleteProject } from "./useAxios.hook";
 import { ElMessage, ElMessageBox } from "element-plus";
 
 // 数据初始化
 export const useDataListInit = () => {
-  const dictStore = useDictStore();
-
   // 表单相关
   const formInline = reactive({
     logoRegistrationNumber: "",

+ 0 - 13
src/views/ip/trademark-management/rejection/index.vue

@@ -21,23 +21,10 @@
             <el-col v-for="(field, index) in formFields" :key="index" :span="6">
               <el-form-item :label="field.label" :label-width="formLabelWidth">
                 <component
-                  v-if="field.component !== 'el-select'"
                   :is="field.component"
                   v-model="formInline[field.model as keyof typeof formInline]"
                   v-bind="field.attrs"
                 />
-                <el-select
-                  v-else
-                  v-model="formInline[field.model as keyof typeof formInline]"
-                  v-bind="field.attrs"
-                >
-                  <el-option
-                    v-for="option in field.options"
-                    :key="option.value"
-                    :label="option.label"
-                    :value="option.value"
-                  />
-                </el-select>
               </el-form-item>
             </el-col>
           </el-row>

+ 0 - 1
src/views/ip/trademark-management/renewal/index.vue

@@ -137,7 +137,6 @@ const {
   onFieldChange,
   saveFieldSettings,
   handleCreate,
-  onDelete,
 } = useDataListInit();
 </script>
 <style lang="scss" scoped>