liudong
2024-07-25 f99c87cbd7b9aabfd4903894b05a2933afbea8b4
src/views/dmx/knowledgeLib/index.vue
@@ -8,11 +8,7 @@
            :placeholder="$t('cardList.searchInput.placeholder')"
            style="width: 130px;"
          />
          <a-button type="primary" @click="add" style="margin-left: 10px">
            <template #icon>
              <icon-plus />
            </template>
          </a-button>
          <addKnow></addKnow>
        </div>
        <div class="lf-container-down">
          <div class="tabs">
@@ -48,7 +44,7 @@
                            style="width: 200px;margin-right: 10px"
                          />
                          <!--            新建-->
                          <add edit="add" />
                          <add />
                        </a-col>
                        <!--              <a-col :span="8">-->
                        <!--                <a-form-item field="name" :label="$t('searchTable.form.name')">-->
@@ -260,7 +256,7 @@
                    {{ $t(`searchTable.form.status.${record.status}`) }}
                  </template>
                  <template #operations="{ record }">
                    <add edit="edit" :record = 'record' />
                    <a-popconfirm content="确定删除吗?" type="warning" @ok="deleteItem(record)">
                      <a-button v-permission="['admin']" type="text" size="small">
                        {{ $t('删除') }}
@@ -298,6 +294,7 @@
  import cloneDeep from 'lodash/cloneDeep';
  import Sortable from 'sortablejs';
  import add from '@/views/dmx/knowledgeLib/add.vue'
  import addKnow from '@/views/dmx/knowledgeLib/addKnow.vue'
  import config from '@/views/dmx/knowledgeLib/config.vue'
  import test from '@/views/dmx/knowledgeLib/test.vue'
  import { deleteAccount } from "@/api/account";
@@ -325,7 +322,7 @@
  const size = ref<SizeProps>('medium');
  let visible = ref(false)
  let selectedTab = ref(0)
  let tabs = reactive(['Tab 1', 'Tab 2', 'Tab 3'])
  let tabs = reactive(['法律知识库', '政务知识库', '医学知识库', '其他知识库'])
  const  selectTab = (index) => {
    selectedTab.value= index;