Selaa lähdekoodia

删除不必要的文件

zhuliu 1 vuosi sitten
vanhempi
commit
76d7bb70a3

+ 0 - 176
src/views/home/components/carousels/carousel_1.vue

@@ -1,176 +0,0 @@
-<template>
-    <div>
-        <div style="display:flex;flex-direction: column;align-items: center;">
-            <p>遇到知识产权事情了怎么办?</p>
-            <p>没关系,请<el-link type="primary" style="font-size: 16px;vertical-align:baseline" @click="open">点击</el-link>我,让我来帮助你</p>
-        </div>
-        <el-dialog
-            :visible.sync="dialogVisible"
-            width="600px"
-            custom-class="event"
-            :before-close="handleClose"
-            append-to-body>
-            <!-- <el-carousel ref="carouselRef" trigger="click" height="200px" width="300px" arrow="never" :autoplay="false" indicator-position="none">
-                <el-carousel-item v-for="item in step" :key="item" style="text-align:center;">
-                    <div v-if="index == 0" class="items">
-                        <div>
-                            <p>您遇到的事情是什么:</p>
-                            <el-input v-model="form.questionName" placeholder="请输入事件"></el-input>
-                        </div>
-                    </div>
-                    <div v-if="index == 1"  class="items">
-                        <div>
-                            <p>什么时间遇到的:</p>
-                            <el-date-picker
-                                v-model="form.eventDate"
-                                type="date"
-                                value-format="yyyy-MM-dd"
-                                placeholder="选择日期">
-                            </el-date-picker>
-                        </div>
-                    </div>
-                    <div v-if="index == 2"  class="items">
-                        <div>
-                            <p>什么场景下遇到的:</p>
-                            <el-select v-model="form.applicationScenarios" multiple  style="width: 100%;" placeholder="请选择事件场景">
-                                <el-option
-                                    v-for="item in commonData.ENTERPRISE_APPLICATION_SCENARIO ? commonData.ENTERPRISE_APPLICATION_SCENARIO : []"
-                                    :key="parseInt(item.value)" :label="item.label" :value="parseInt(item.value)"
-                                >
-                                </el-option>
-                            </el-select>
-                        </div>
-                    </div>
-                </el-carousel-item>
-            </el-carousel> -->
-            <addQuestion @formData="handleFormData" :type="type" @resetClose="handleClose"></addQuestion>
-            <!-- <span slot="footer" class="dialog-footer">
-                <el-button @click="setActiveItem(0)" v-if="index!=0">上一步</el-button>
-                <el-button @click="setActiveItem(1)" v-if="index!=step && index!=step-1">下一步</el-button>
-                <el-button type="primary" @click="submit" v-if="index==step-1" style="width:84px">确认</el-button>
-            </span> -->
-        </el-dialog>
-    </div>
-  
-</template>
-
-<script>
-import addQuestion from '@/views/questionEvent/components/addQuestion.vue';
-export default {
-  components: {
-    addQuestion
-  },
-  props: {},
-  data() {
-    return {
-        index:0,
-        step:3,
-        dialogVisible:false,
-        form:{},
-        commonData:{},
-        type:1
-    };
-  },
-  watch: {},
-  computed: {},
-  created() {},
-  mounted() {},
-  methods: {
-    setActiveItem(val){
-        if(val){
-            this.index +=1
-        }else{
-            this.index -=1
-        }
-        const carousel = this.$refs.carouselRef;
-        carousel.setActiveItem(this.index);
-    },
-    open(){
-        this.type = 0
-        this.$nextTick(()=>{
-            this.type=1
-            this.dialogVisible = true
-            this.getCommonData()
-        })
-        
-    },
-    submit(){
-        console.log(this.form)
-        this.$router.push({
-            path: '/questionEvent'
-        })
-    },
-    handleClose(){
-        this.dialogVisible = false
-        this.index = 0
-    },
-    async getCommonData() {
-      await this.$api.getCommonData({ keys: 'QUERY_GROUP,ENTERPRISE_APPLICATION_SCENARIO,INVESTIGATION_TYPE' }).then(response => {
-        this.commonData = response.data
-      })
-    },
-
-    //新增事件
-    handleFormData({ list, option,edit }) {
-      let lists = JSON.parse(JSON.stringify(list))
-      if(lists.length == 0){
-        this.handleClose()
-        return false
-      }
-      this.forms = {
-        projectId: this.projectId,
-        eventAddNewDTOs:lists
-      }
-      if(edit){
-        return false
-      }
-      this.$api.eventAddNew(this.forms).then(res => {
-        if (res.code == 200) {
-        //   this.getList()
-          this.$message.success('事件新增成功')
-          this.visualRouter(lists)//跳转
-          this.handleClose()
-        }
-      }).catch(error => {
-        this.$message.error(error.message)
-      })
-
-    },
-    visualRouter(val){
-        if(val.length ==1){
-            if( val[0].applicationScenarios.length == 0){
-                return false
-            }
-            var visuals = {
-                Scenario:null,
-                eventId:null,
-                eventName:val[0].questionName
-            }
-            this.$router.push({
-                path:'/eventVisual',
-                query:{
-                    visuals:JSON.stringify(visuals)
-                }
-            })
-        }
-    },
-  },
-};
-</script>
-<style lang="scss">
-    .event{
-        .el-dialog__body{
-            padding:20px 20px ;
-        }
-    }
-</style>
-<style lang="scss" scoped>
-
-.items{
-    height: 100%;
-    display:flex;
-    flex-direction: column;
-    justify-content: center;
-    align-items: center;
-}
-</style>

+ 0 - 48
src/views/home/components/carousels/carousel_2.vue

@@ -1,48 +0,0 @@
-<template>
-    <div>
-        <div style="display:flex;flex-direction: column;align-items: center;">
-            <p>不知道怎么查找专利?</p>
-            <p><el-link type="primary" style="font-size: 16px;vertical-align:baseline" @click="open">点击</el-link>我,让我带你去</p>
-        </div>
-    </div>
-  
-</template>
-
-<script>
-export default {
-  components: {},
-  props: {},
-  data() {
-    return {
-    };
-  },
-  watch: {},
-  computed: {},
-  created() {},
-  mounted() {},
-  methods: {
-    open(){
-        this.$router.push({
-            path: '/conditionImport',
-        })
-        },
-  },
-};
-</script>
-<style lang="scss">
-    .event{
-        .el-dialog__body{
-            padding:10px 20px ;
-        }
-    }
-</style>
-<style lang="scss" scoped>
-
-.items{
-    height: 100%;
-    display:flex;
-    flex-direction: column;
-    justify-content: center;
-    align-items: center;
-}
-</style>

+ 0 - 62
src/views/home/components/tabs.vue

@@ -1,62 +0,0 @@
-<template>
-  <div>
-    <div id="step3">
-      <el-tabs v-model="activeName" @tab-click="handleClick">
-        <el-tab-pane label="事件" name="event">
-          <eventTable :isOperate="1" :tableData="tableData"></eventTable>
-        </el-tab-pane>
-        <el-tab-pane label="专利数据库" name="project">
-          <projectTable :isOperate="1" :tableData="tableData"></projectTable>
-        </el-tab-pane>
-        <el-tab-pane label="报告" name="report">
-          <reportTable :isOperate="1" :tableData="tableData"></reportTable>
-        </el-tab-pane>
-        <el-tab-pane label="我的任务" name="task">
-          <taskTable :tableData="tableData"></taskTable>
-        </el-tab-pane>
-      </el-tabs>
-    </div>
-    <div>
-      <el-link class="link" @click="seeMore">查看更多> > ></el-link>
-    </div>
-  </div>
-</template>
-
-<script>
-import eventTable from '@/views/event/components/view/table.vue';
-import projectTable from '@/views/project/components/view/table.vue';
-import reportTable from '@/views/report/components/view/table.vue';
-import taskTable from '@/views/task/components/view/table.vue';
-export default {
-  components: {
-    eventTable,
-    projectTable,
-    reportTable,
-    taskTable,
-  },
-  props: {},
-  data() {
-    return {
-        activeName: 'event',
-        tableData:[]
-    };
-  },
-  watch: {},
-  computed: {},
-  created() {},
-  mounted() {},
-  methods: {
-    //切换tag获取数据
-    handleClick() { },
-    // 点击查看更多
-    seeMore() {},
-  },
-};
-</script>
-<style lang="scss" scoped>
-    .link {
-      float: right;
-      margin-top: 10px;
-      color: #409EFF;
-    }
-</style>

+ 0 - 132
src/views/project/patentCollection/components/filter/Folder.vue

@@ -1,132 +0,0 @@
-<template>
-  <div class="patent-folder-filter">
-    <div class="patent-folder-filter-option">
-      <el-input :style="{ width: true ? '180px' : '220px'}" v-model="queryParams.name" placeholder="请输入文件夹名称" size="small"></el-input>
-      <div class="float_right">
-        <el-button type="primary" size="small" icon="el-icon-search" circle @click="handleSearch"></el-button>
-        <el-button type="success" size="small" icon="el-icon-edit" circle @click="handleManage" :disabled="!($permission('/workspace/common/folder_manage') && $r(projectId,[1,2]))"></el-button>
-      </div>
-    </div>
-    <el-tree
-        v-if="refresh"
-        class="folder-tree"
-        @node-click="handleSelect"
-        ref="patentFolderFilterTree"
-        :data="folder"
-        node-key="id"
-        default-expand-all
-        check-strictly
-        :expand-on-click-node="false"
-        highlight-current
-        :current-node-key="activeItem"
-    >
-      <div class="custom-filter-tree-node" slot-scope="{ node, data }">
-        <span class="name">{{ data.name }}</span>
-        <span class="total">(<span>{{ data.total }}</span>)</span>
-      </div>
-    </el-tree>
-    <folder-dialog @close="close" ref="folderDialog" />
-  </div>
-</template>
-
-<script>
-import FolderDialog from '../../../components/dialog/Folder'
-
-export default {
-  components: {
-    FolderDialog,
-  },
-  data() {
-    return {
-      folder: [],
-      queryParams: {
-        name: '',
-        projectId: 0,
-        patentTotal: true
-      },
-      activeItem: 0,
-      refresh: true
-    }
-  },
-  computed: {
-    projectId() {
-      return this.$store.state.patent.projectId
-    },
-    queryData() {
-      return this.$store.state.patent.queryData
-    }
-  },
-  mounted() {
-    this.queryParams.projectId = this.projectId
-    this.getList()
-  },
-  methods: {
-    updateQueryDataFolder(data) {
-      this.$store.commit('SET_PATENT_QUERY_DATA', [])
-      const index = this.queryData.map(item => item.type).indexOf('folder')
-      const value = {
-        data: [{
-          value: data.id,
-          label: data.name,
-        }],
-        type: 'folder',
-        key: 'folder',
-        name: '文件夹'
-      }
-      if (index === -1) {
-        this.queryData.push(value)
-      } else {
-        this.$set(this.queryData, index, value)
-      }
-    },
-    handleSelect(data) {
-      this.activeItem = data.id
-      this.updateQueryDataFolder(data)
-      this.$emit('on-change', data.id)
-    },
-    close() {
-      this.getList()
-    },
-    getList() {
-      this.refresh = false
-      this.$api.getProjectFolderList(this.queryParams).then(response => {
-        this.folder = response.data
-        this.$nextTick(() => {
-          this.refresh = true
-        })
-      })
-    },
-    refreshView() {
-      this.activeItem = 0
-      this.refresh = false
-      this.$nextTick(() => {
-        this.refresh = true
-      })
-    },
-    handleSearch() {
-      this.getList()
-    },
-    handleManage() {
-      this.$refs.folderDialog.open(this.queryParams.projectId)
-    }
-  }
-}
-</script>
-
-<style lang="scss">
-.patent-folder-filter {
-  .patent-folder-filter-option {
-    margin-bottom: 10px;
-  }
-  .folder-tree {
-    .el-tree-node__content {
-      height: 45px;
-      color: #000;
-    }
-  }
-  .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
-    background: #ecf5ff !important;
-    color: #409EFF!important;
-  }
-}
-</style>

+ 0 - 4
src/views/project/patentCollection/components/filter/Query.vue

@@ -58,7 +58,6 @@
       </el-main>
       <el-footer class="patent-query-filter-footer">
         <el-button type="primary" size="small" @click="handleMoreQuery">更多过滤项</el-button>
-        <el-button type="warning" size="small" @click="handleTextQuery" class="margin-right_10">文本筛选</el-button>
       </el-footer>
     </el-container>
 
@@ -90,18 +89,15 @@
       </div>
     </el-dialog>
 
-    <patent-text-query-filter ref="patentTextQueryFilter" @submit="handleTextSearch" />
   </div>
 </template>
 
 <script>
 import { patentQueryMixins } from "../mixins";
-import PatentTextQueryFilter from "../dialog/PatentTextQueryFilter";
 
 export default {
   mixins: [patentQueryMixins],
   components: {
-    PatentTextQueryFilter
   },
   data() {
     return {