Ver Fonte

提交代码

朱鑫波 há 4 anos atrás
pai
commit
f939d65c02

+ 8 - 5
src/components/formComponents/checkBoxGroup.vue

@@ -255,7 +255,10 @@ export default {
             }
           })
           if (this.allValue) {
-            data.unshift({ label: '不限', value: '' })
+            data.unshift({ label: '不限', value: 'unlimited' })
+            if (this.value == '' || this.value.length == 0 || this.value == null) {
+              this.selectedVal = ['unlimited']
+            }
           }
           this.selectOption.push(...data)
         }
@@ -268,10 +271,10 @@ export default {
         var retrunData = []
         let label = this.selectOption.filter((v) => val.findIndex((item) => item == v.value) > -1).map((v) => v.label)
         if (this.allValue) {
-          if (val.findIndex((item) => item == '') == 0) {
+          if (val.findIndex((item) => item == 'unlimited') == 0) {
             retrunData = val.slice(-1)
-          } else if (val.findIndex((item) => item == '') == val.length - 1) {
-            retrunData = ['']
+          } else if (val.findIndex((item) => item == 'unlimited') == val.length - 1) {
+            retrunData = ['unlimited']
           } else {
             retrunData = val
           }
@@ -288,7 +291,7 @@ export default {
         let selectVal = []
         if (this.allValue) {
           if (val.length == 0) {
-            selectVal = ['']
+            selectVal = ['unlimited']
           }
         } else {
           if (val.length == 0) {

+ 33 - 15
src/components/formComponents/selectGroup.vue

@@ -31,6 +31,12 @@ export default {
       type: String,
       default: '',
     },
+    require: {
+      type: Boolean,
+      default() {
+        return false
+      },
+    },
     value: {
       // v-model绑定值
       type: [String, Array, Number, Boolean],
@@ -173,6 +179,7 @@ export default {
   computed: {
     selectedVal: {
       get: function () {
+
         return this.value
       },
       set: function (val) {
@@ -189,20 +196,20 @@ export default {
     },
     title() {
       // title提示文字
-      if (!this.multiple) {
-        return this.filterOption.filter((v) => v.value == this.value).length == 1
-          ? this.filterOption.filter((v) => v.value == this.value)[0].label
-          : ''
-      } else if (this.multiple) {
-        return this.filterOption
-          .filter((item) => {
-            return this.value.findIndex((v) => v == item.value) > -1
-          })
-          .map((item2) => item2.label)
-      }
-      if (this.enable.length > 0) {
-        return this.filterOption.map((v) => v.label)
-      }
+      // if (!this.multiple) {
+      //   return this.filterOption.filter((v) => v.value == this.value).length == 1
+      //     ? this.filterOption.filter((v) => v.value == this.value)[0].label
+      //     : ''
+      // } else if (this.multiple) {
+      //   return this.filterOption
+      //     .filter((item) => {
+      //       return this.value.findIndex((v) => v == item.value) > -1
+      //     })
+      //     .map((item2) => item2.label)
+      // }
+      // if (this.enable.length > 0) {
+      //   return this.filterOption.map((v) => v.label)
+      // }
     },
   },
   mounted() {
@@ -232,9 +239,20 @@ export default {
             return {
               ...v,
               label: v.itemText,
-              value: v.itemValue,
+              value: v.itemValue+"",
             }
           })
+          if (!this.multiple && !this.require) {
+            data.unshift({ label: '不限', value: 'unlimited' })
+            if (this.value == '' || this.value.length == 0 || this.value == null) {
+              this.selectedVal = ['unlimited']
+            }
+          } else {
+            if (this.value == ''|| this.value == null || this.value.length == 0 ) {
+              this.selectedVal = []
+              this.$emit('clearValidate', this.selectedVal)
+            }
+          }
           this.selectOption.splice(0, this.selectOption.length)
           this.selectOption.push(...data)
           this.setDefaultVal(this.selectOption)

+ 17 - 10
src/views/modules/earlyWarningRules/configRules.vue

@@ -1,7 +1,7 @@
 <template>
     <div class='configRules'>
         <div class="toolbox-automate-rules-create-body">
-            <div class="toolbox-automate-rules-create-content_title"><h3> 选择配置字段</h3></div>
+            <div class="toolbox-automate-rules-create-content_title"><h3> {{edit?'选择配置字段':'规则预览'}}</h3></div>
             <div class="toolbox-automate-rules-create-content">
                 <a-form-model
                     ref="ruleForm"
@@ -18,7 +18,7 @@
                         </div>
                         <div class="input-item"> 
                              <a-form-model-item ref="eventRuleLevel"  prop="eventRuleLevel">
-                                <a-radio-group v-model="form.mediaType" >
+                                <a-radio-group v-model="form.mediaType" :disabled="!edit">
                                     <a-radio-button value="1">头条</a-radio-button>
                                     <a-radio-button value="2">快手</a-radio-button>
                                     <a-radio-button value="3">头条内广</a-radio-button>
@@ -39,6 +39,7 @@
                                 <a-input
                                     v-model="form.templateName"
                                     allowClear
+                                    :disabled="!edit"
                                 />
                             </a-form-model-item>
                         </div>
@@ -75,6 +76,7 @@
                                                     placeholder="请输入规则名称"
                                                     allowClear
                                                     style="width:400px"
+                                                    :disabled="!edit"
                                                 />
                                             </a-form-model-item>    
                                         </div>
@@ -95,6 +97,7 @@
                                                     style="width:400px"
                                                     placeholder="输入规则描述"
                                                     :auto-size="{ minRows: 2, maxRows: 5 }"
+                                                    :disabled="!edit"
                                                 />
                                             </a-form-model-item>   
                                             <!-- <a-form-model-item ref="remark" prop="remark" v-else >
@@ -123,6 +126,7 @@
                                                     placeholder="输入规则描述222"
 
                                                     :auto-size="{ minRows: 2, maxRows: 5 }"
+                                                    :disabled="!edit"
                                                 />
                                             </a-form-model-item>   
                                         </div>
@@ -135,7 +139,7 @@
                                         </div>
                                         <div class="input-item"> 
                                              <a-form-model-item ref="ruleType"  prop="ruleType">
-                                                <a-radio-group v-model="item.ruleType" >
+                                                <a-radio-group v-model="item.ruleType" :disabled="!edit">
                                                     <a-radio-button value="group">组合</a-radio-button>
                                                     <a-radio-button value="base">基础</a-radio-button>
                                                 </a-radio-group>
@@ -146,7 +150,7 @@
                                         <div class="title">                                            
                                             <a-form-model-item ref="ruleRelationship"  prop="ruleRelationship">
                                                 <span class="condition-title">如果</span>
-                                                <a-select  style="width: 300px" v-model="item.ruleRelationship">
+                                                <a-select  style="width: 300px" v-model="item.ruleRelationship" :disabled="!edit">
                                                     <a-select-option  value='and'>满足以下所有条件</a-select-option>
                                                     <a-select-option  value='or'>满足以下任意条件</a-select-option>
                                                 </a-select>
@@ -160,6 +164,7 @@
                                                         <div class="rules-list-item-subject" >
                                                             <a-form-model-item ref="baseIndex"  prop="baseIndex">
                                                                 <a-cascader
+                                                                    :disabled="!edit"
                                                                     v-model="ele.baseIndex"
                                                                     :options="rulesFieldList"
                                                                     placeholder="选择指标"
@@ -174,7 +179,7 @@
                                                         
                                                         <div class="rules-list-item-subject" >
                                                             <a-form-model-item ref="ruleCondition"  prop="ruleCondition">
-                                                                <a-select   v-model="ele.ruleCondition" placeholder="运算符">
+                                                                <a-select   v-model="ele.ruleCondition" placeholder="运算符" :disabled="!edit">
                                                                     <a-select-option  v-for="item in ele.conditionList" :key="item.id" :value='item.ruleCondition'>{{item.conditionName}}</a-select-option>
                                                                 </a-select>
                                                             </a-form-model-item>  
@@ -183,7 +188,7 @@
                                                         
                                                         <div class="rules-list-item-subject" >
                                                             <a-form-model-item ref="variableType"  prop="variableType">
-                                                                <a-select   v-model="ele.variableType">
+                                                                <a-select   v-model="ele.variableType" :disabled="!edit">
                                                                     <a-select-option  :value='0'>常量</a-select-option>
                                                                     <a-select-option  :value='1'>变量</a-select-option>
                                                                 </a-select>
@@ -217,7 +222,7 @@
                                                     <div class="rules-list-item">
                                                         <div class="rules-list-item-subject" >
                                                             <a-form-model-item ref="processMethod"  prop="processMethod">
-                                                                <a-select   v-model="item.processMethod">
+                                                                <a-select   v-model="item.processMethod" :disabled="!edit">
                                                                     <a-select-option  value='SEND'>仅发送通知</a-select-option>
                                                                     <a-select-option  value='PAUSE' >关停组</a-select-option>
                                                                     
@@ -226,7 +231,7 @@
                                                         </div>
                                                         <div class="rules-list-item-subject" >
                                                             <a-form-model-item ref="processMethod"  prop="processMethod">
-                                                                <a-select   v-model="item.sendType">
+                                                                <a-select   v-model="item.sendType" :disabled="!edit">
                                                                     <a-select-option  value='message' >短信</a-select-option>
                                                                     <a-select-option  value='enterpriseWechat'>企业微信</a-select-option>
                                                                     <a-select-option  value='email'>邮箱</a-select-option>
@@ -248,7 +253,7 @@
                   
                 </div>
                
-                <div class="moduler">
+                <div class="moduler" v-if="edit">
                     <!-- <div class="moduler-title">计划名称</div> -->
                     <div class="opt">
                         <a-button type="default" style="margin-right:15px" @click="goBack">取消</a-button>
@@ -273,6 +278,7 @@ export default {
     },
     data() {
         return {
+            edit:true,
             conditionList:[],
             url:{
                 fieldList:'/ruleIndicator/list',
@@ -611,8 +617,9 @@ export default {
             }            
         })
 
-        // console.log(this.$route.query);
+        console.log(this.$route.query);
         this.currentRuleId=this.$route.query.id
+        this.edit=this.$route.query.edit=='false'?false:true
         if(this.$route.query.id){
             getAction(this.url.queryDetailById,{
                 id:this.$route.query.id

+ 1 - 1
src/views/modules/earlyWarningRules/index.vue

@@ -222,7 +222,7 @@ export default {
         },
         editRule(record){
             console.log(record);
-            this.$router.push(`/earlyWarningRules/configRules?id=${record.id}`)
+            this.$router.push(`/earlyWarningRules/configRules?id=${record.id}&edit=true`)
         },
         // recordsRule(record){
         //     console.log(record);

Diff do ficheiro suprimidas por serem muito extensas
+ 296 - 603
src/views/modules/earlyWarningRules/ruleModule.vue


+ 461 - 0
src/views/modules/earlyWarningRules/useRuleList.vue

@@ -0,0 +1,461 @@
+<style>
+.rule-tree-select .ant-form-item-control {
+  line-height: inherit;
+}
+</style>
+<template>
+  <div class="ruleSetList">
+    <div class="tabBody">
+      <a-tabs v-model="tabKey" @change="tabChange">
+        <a-tab-pane key="1" tab="模板列表"></a-tab-pane>
+        <a-tab-pane key="2" tab="我的模板"></a-tab-pane>
+      </a-tabs>
+    </div>
+    <div class="tableBody">
+      <!-- <div class="opt" v-if="tabKey == '1'">
+        <a-button type="primary" @click="createNewRule">新建空白规则模板</a-button>
+        <p class="title">已创建的规则模板</p>
+      </div> -->
+      <!-- <div class="opts" v-else>
+        <a-input-search
+          placeholder="请输入规则id"
+          style="width: 350px"
+          v-model="rulesId"
+          enter-button
+          @search="onSearch"
+        />
+      </div> -->
+      <div class="table">
+        <a-table
+          size="middle"
+          :columns="columns"
+          :dataSource="data"
+          bordered
+          id="outTable"
+          :pagination="ipagination"
+          :scroll="{ x: scrollX }"
+          :loading="loading"
+          @change="sort"
+          style="word-break: break-all"
+        >
+          <span slot="status" slot-scope="text, record">
+            <a-spin :spinning="record.spin" size="small">
+              <div class="spin-content">
+                <a-switch size="default" :checked="text" @change="switchChange(text, record)" />
+              </div>
+            </a-spin>
+            <!-- <a-switch size="default" :checked=text  @change="switchChange(text,record)"/> -->
+          </span>
+          <span slot="mediaType" slot-scope="text">
+            {{ text | handleMediaType }}
+          </span>
+          <span slot="processMethod" slot-scope="text">
+            {{ text == 'SEND' ? '仅发送通知' : '发送并关停组' }}
+          </span>
+          <span slot="options" slot-scope="text, record">
+            <a href="javascript:;" @click="editRule(record)">预览模板</a>
+            <a-divider type="vertical" />
+            <a href="javascript:;" @click="pushRule(record)">推送模板</a>
+            <a-divider type="vertical" />
+            <a-popconfirm :title="`当前模板关联账户个数为${relationCount},确定删除吗?`" @confirm="deleteRule(record)">
+              <a href="javascript:;" @click.stop="showRelativeCount(record)">删除模板</a>
+            </a-popconfirm>
+          </span>
+          <span slot="optionsTwo" slot-scope="text, record">
+            <a href="javascript:;" @click="editRule(record)">编辑模板</a>
+            <a-divider type="vertical" />
+            <a-popconfirm :title="`当前模板关联账户个数为${relationCount},确定删除吗?`" @confirm="deleteRule(record)">
+              <a href="javascript:;" @click.stop="showRelativeCount(record)">删除模板</a>
+            </a-popconfirm>
+          </span>
+        </a-table>
+      </div>
+    </div>
+    <!-- pushRuleVisible -->
+    <a-modal v-model="pushRuleVisible" title="推送账户选择" @ok="handleOk" :confirmLoading="confirmLoading">
+      <a-form layout="inline" class="rule-tree-select">
+        <a-form-item
+          label="请选择账户"
+          :labelCol="{ lg: { span: 6 }, sm: { span: 6 } }"
+          :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }"
+        >
+          <Treeselect :appId.sync="accountId" :multiple="false" request="1,3" ref="treeSelect" style="width: 100%" />
+        </a-form-item>
+      </a-form>
+    </a-modal>
+  </div>
+</template>
+
+<script>
+import moment from 'moment'
+import { getAction, postAction, downFile, downFilePost } from '@/api/manage'
+let existColumns = [
+  // {
+  //     title: '运行/暂停',
+  //     dataIndex: 'status',
+  //     align: 'center',
+  //     width:100,
+  //     key: 'status',
+  //     scopedSlots: { customRender: 'status' }
+  // },
+  {
+    title: '模板id',
+    dataIndex: 'id',
+    align: 'center',
+    key: 'id',
+    scopedSlots: { customRender: 'id' },
+  },
+
+  {
+    title: '模板名称',
+    dataIndex: 'templateName',
+    align: 'center',
+
+    key: 'templateName',
+    scopedSlots: { customRender: 'templateName' },
+  },
+  {
+    title: '应用媒体',
+    dataIndex: 'mediaType',
+    align: 'center',
+    key: 'mediaType',
+    scopedSlots: { customRender: 'mediaType' },
+  },
+
+  {
+    title: '操作',
+    dataIndex: 'options',
+    align: 'center',
+
+    key: 'options',
+    scopedSlots: { customRender: 'options' },
+  },
+]
+
+let recordsColumns = [
+  {
+    title: '模板名称',
+    dataIndex: 'templateName',
+    align: 'center',
+
+    key: 'templateName',
+    scopedSlots: { customRender: 'templateName' },
+  },
+  {
+    title: '模板Id',
+    dataIndex: 'templateId',
+    align: 'center',
+
+    key: 'templateId',
+    scopedSlots: { customRender: 'templateId' },
+  },
+  {
+    title: '账户',
+    dataIndex: 'authName',
+    align: 'center',
+    key: 'authName',
+    scopedSlots: { customRender: 'authName' },
+  },
+  {
+    title: '账户Id',
+    dataIndex: 'accountId',
+    align: 'center',
+    key: 'accountId',
+    scopedSlots: { customRender: 'accountId' },
+  },
+  {
+    title: '运营',
+    dataIndex: 'userName',
+    align: 'center',
+    key: 'userName',
+    scopedSlots: { customRender: 'userName' },
+  },
+  {
+    title: '操作',
+    dataIndex: 'optionsTwo',
+    align: 'center',
+
+    key: 'optionsTwo',
+    scopedSlots: { customRender: 'optionsTwo' },
+  },
+]
+import Treeselect from '@/views/modules/Statistics/components/Treeselect.vue'
+export default {
+  name: 'useRuleList',
+  data() {
+    return {
+      relationCount: 2,
+      pushRuleVisible: false,
+      confirmLoading: false,
+      accountId: '',
+      templateId: '',
+      tabKey: '1',
+      rulesId: undefined,
+      data: [],
+      columns: [...existColumns],
+      scrollX: 0,
+      loading: false,
+      ipagination: {
+        current: 1,
+        pageSize: 10,
+        //   pageSizeOptions: ['10', '20', '30'],
+        showTotal: (total, range) => {
+          return range[0] + '-' + range[1] + ' 共' + total + '条'
+        },
+        showQuickJumper: true,
+        showSizeChanger: true,
+        pageSizeOptions: ['10', '30', '50'],
+        total: 0,
+        onChange: (current, pageSize) => {
+          // 切换分页时的回调,
+          // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
+          this.ipagination.current = current
+          this.ipagination.pageSize = pageSize
+        },
+      },
+      url: {
+        list: '/ruleTemplate/list',
+        delete: '/ruleTemplate/delete',
+        getRelationAccountById: '/ruleAccountTemplate/getRelationAccountById',
+        edit: '',
+      },
+    }
+  },
+  components: {
+    Treeselect,
+  },
+  methods: {
+    moment,
+    onSearch(value) {
+      console.log(value)
+    },
+    tabChange(key) {
+      console.log(key)
+      let url = ''
+      if (key == '1') {
+        this.columns = [...existColumns]
+        url = '/ruleTemplate/list'
+      } else {
+        this.columns = [...recordsColumns]
+        url = '/ruleAccountTemplate/getTemplateApplied'
+      }
+      this.getTableListHttp(url)
+    },
+    createNewRule() {
+      this.$router.push('/earlyWarningRules/configRules')
+    },
+    sort(pagination, filters, sorter, { currentDataSource }) {
+      this.ipagination.current = pagination.current
+
+      this.ipagination.pageSize = pagination.pageSize
+      let url = this.tabKey == '1' ? this.url.existUrl : this.url.resultRecordUrl
+
+      this.getTableListHttp(url)
+    },
+    editRule(record) {
+      console.log(record)
+      if (this.tabKey == '1') {
+        var data = { id: record.id, edit: false }
+      } else {
+        var data = { id: record.templateId, edit: true, accountId: record.accountId }
+      }
+
+      localStorage.setItem('getRuleDetail', JSON.stringify(data))
+      this.$router.push('/earlyWarningRules/ruleModule')
+    },
+    pushRule(item) {
+      // this.confirmLoading
+      this.accountId = ''
+      this.templateId = item.id
+      this.pushRuleVisible = true
+    },
+
+    handleOk() {
+      getAction('/ruleAccountTemplate/checkAccountTemplate', { accountId: this.accountId }).then((res) => {
+        console.log(res)
+        if (res.success) {
+          if (!res.result.isApplication) {
+            postAction('/ruleAccountTemplate/pushTemplateToAccount', {
+              templateId: this.templateId,
+              accountId: this.accountId,
+            }).then((r) => {
+              var data = { id: this.templateId, edit: true, accountId: this.accountId }
+              localStorage.setItem('getRuleDetail', JSON.stringify(data))
+              this.$router.push('/earlyWarningRules/ruleModule')
+            })
+          }
+        }
+      })
+    },
+    // recordsRule(record){
+    //     console.log(record);
+
+    // },
+    showRelativeCount(record) {
+      getAction(this.url.getRelationAccountById, {
+        id: record.id,
+      }).then((res) => {
+        console.log(res)
+        if (res.success) {
+          this.relationCount = res.result.relationCount
+          // getAction(this.url.delete,{
+          //     id:record.id
+          // }).then(res=>{
+          //     console.log(res);
+          //     if(res.success){
+          //         this.getTableListHttp(this.url.list)
+          //     }else{
+          //         this.$message.error('删除失败')
+          //     }
+          // })
+        }
+      })
+    },
+    deleteRule(record) {
+      console.log(record)
+      getAction(this.url.getRelationAccountById, {
+        id: record.id,
+      }).then((res) => {
+        console.log(res)
+        if (res.success) {
+          // getAction(this.url.delete,{
+          //     id:record.id
+          // }).then(res=>{
+          //     console.log(res);
+          //     if(res.success){
+          //         this.getTableListHttp(this.url.list)
+          //     }else{
+          //         this.$message.error('删除失败')
+          //     }
+          // })
+        }
+      })
+    },
+    switchChange(text, record) {
+      console.log(text, record)
+      record.spin = true
+      let eventRuleStatus = '1'
+      if (text) {
+        eventRuleStatus = '0'
+      } else {
+        eventRuleStatus = '1'
+      }
+
+      postAction('/alarm/alarmEventRule/edit', {
+        eventRuleId: record.eventRuleId,
+        eventRuleStatus,
+      }).then((res) => {
+        console.log(res)
+        record.spin = false
+        if (res.success) {
+          // this.getTableListHttp()
+          if (text) {
+            record.status = false
+            eventRuleStatus = '0'
+          } else {
+            record.status = true
+            eventRuleStatus = '1'
+          }
+        } else {
+          this.$message.error('修改失败')
+          // this.getTableListHttp()
+        }
+      })
+    },
+
+    getTableListHttp(url) {
+      this.data = []
+      this.loading = true
+      // let url='/alarm/alarmEventRule/list'
+      getAction(url, {
+        pageNo: this.ipagination.current,
+        pageSize: this.ipagination.pageSize,
+      }).then((res) => {
+        console.log(res)
+        this.loading = false
+        if (res.success) {
+          if (this.tabKey == '1') {
+            this.data = res.result.records.map((item) => {
+              return {
+                ...item,
+                status: item.eventRuleStatus == '1' ? true : false,
+                spin: false,
+              }
+            })
+          } else {
+            this.data = res.result.list.map((item) => {
+              return {
+                ...item,
+                status: item.eventRuleStatus == '1' ? true : false,
+                spin: false,
+              }
+            })
+          }
+
+          this.ipagination.total = res.result.total
+        }
+      })
+    },
+  },
+
+  mounted() {
+    this.getTableListHttp(this.url.list)
+  },
+  activated() {
+    this.getTableListHttp(this.url.list)
+  },
+  filters: {
+    handleMediaType(val) {
+      switch (val) {
+        case 1:
+          return '头条'
+          break
+
+        case 2:
+          return '快手'
+          break
+
+        case 3:
+          return '头条内广'
+          break
+
+        case 4:
+          return '快手内广'
+          break
+
+        default:
+          break
+      }
+    },
+  },
+}
+</script>
+
+<style lang="scss" scoped>
+.ruleSetList {
+  background: white;
+  padding: 20px;
+  .tabBody {
+    margin-bottom: 5px;
+  }
+  .tableBody {
+    .opt {
+      .title {
+        margin: 15px 0;
+        height: 57px;
+        font-size: 16px;
+        color: #333;
+        line-height: 57px;
+        background: #ffffff;
+        padding-left: 15px;
+        border-radius: 4px 4px 0 0;
+        font-weight: 600;
+        border-bottom: 1px solid #DADFE3;
+      }
+    }
+    .opts {
+      margin-bottom: 15px;
+    }
+  }
+}
+</style>

+ 6 - 17
src/views/modules/material/scriptFile.vue

@@ -7,7 +7,7 @@
   <a-card :bordered="false">
     <!-- 查询区域 -->
     <div class="table-page-search-wrapper">
-      <a-form layout="inline">
+      <!-- <a-form layout="inline">
         <a-row :gutter="24">
           <a-col :md="6" :sm="8">
             <selectTable :projectId.sync="queryParam.projectId"></selectTable>
@@ -19,7 +19,6 @@
           </a-col>
           <a-col :md="6" :sm="8">
             <a-form-item label="创建人">
-              <!-- <a-input placeholder="请输入创建人" v-model="queryParam.creator_dictText"></a-input> -->
               <a-select
                 v-model="queryParam.creator"
                 showSearch
@@ -54,7 +53,7 @@
             </span>
           </a-col>
         </a-row>
-      </a-form>
+      </a-form> -->
     </div>
     <div style="float:right;margin:0 0 20px 20px">
       <a-upload
@@ -72,7 +71,7 @@
           {{loadingElse?'上传中,请稍后':'文件上传'}}
         </a-button>
       </a-upload>
-      <a-dropdown placement="bottomRight">
+      <!-- <a-dropdown placement="bottomRight">
         <a-button>新增</a-button>
         <a-menu slot="overlay">
           <a-menu-item>
@@ -87,18 +86,8 @@
             <a-icon type="file-ppt" />
             <span style="text-align: center" @click="creatWps('ppt')">演示文档</span>
           </a-menu-item>
-
-          <!-- <a-menu-item>
-            <a target="_blank" rel="noopener noreferrer" href="http://www.alipay.com/">1st menu item</a>
-          </a-menu-item>
-          <a-menu-item>
-            <a target="_blank" rel="noopener noreferrer" href="http://www.taobao.com/">2nd menu item</a>
-          </a-menu-item>
-          <a-menu-item>
-            <a target="_blank" rel="noopener noreferrer" href="http://www.tmall.com/">3rd menu item</a>
-          </a-menu-item>-->
         </a-menu>
-      </a-dropdown>
+      </a-dropdown> -->
     </div>
     <div style="clear:both"></div>
     <div>
@@ -118,14 +107,14 @@
         <span slot="projectId_dictText" slot-scope="text">{{text?text:'-'}}</span>
         <span slot="action" slot-scope="text, record">
           <a @click="getViewUrlDbPath(record)">编辑</a>
-          <a-divider type="vertical" />
+          <!-- <a-divider type="vertical" />
           <a @click="bindProject(record)">项目绑定</a>
           <a-divider type="vertical" />
           <a @click="downLoad(record)">下载</a>
           <a-divider type="vertical" />
           <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
             <a>删除</a>
-          </a-popconfirm>
+          </a-popconfirm> -->
         </span>
       </a-table>
     </div>