| ÎļþÃû´Ó src/pages/managementMeetings/knowledgeBase/index.vue ÐÞ¸Ä |
| | |
| | | <up-input class="search-text" |
| | | placeholder="请è¾å
¥ç¥è¯æ é¢" |
| | | v-model="name" |
| | | @blur="getList" |
| | | @blur="handleQuery" |
| | | clearable /> |
| | | </view> |
| | | <view class="filter-button" |
| | | @click="getList"> |
| | | @click="handleQuery"> |
| | | <u-icon name="search" |
| | | size="24" |
| | | color="#999"></u-icon> |
| | |
| | | <u-button type="info" |
| | | size="small" |
| | | class="action-btn" |
| | | @click="viewDetail(item,3)"> |
| | | æ¥ç |
| | | </u-button> |
| | | <!-- <u-button type="error" |
| | | size="small" |
| | | class="action-btn" |
| | | @click="confirmDelete(item)"> |
| | | å é¤ |
| | | plain |
| | | @click="viewDetail(item, 3)"> |
| | | æ¥ç详æ
|
| | | </u-button> |
| | | <u-button type="primary" |
| | | size="small" |
| | | class="action-btn" |
| | | @click="viewDetail(item,2)"> |
| | | @click="viewDetail(item, 2)"> |
| | | ç¼è¾ |
| | | </u-button> --> |
| | | </u-button> |
| | | <u-button type="error" |
| | | size="small" |
| | | class="action-btn" |
| | | plain |
| | | @click="confirmDelete(item)"> |
| | | å é¤ |
| | | </u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <text>ææ ç¥è¯è®°å½</text> |
| | | </view> |
| | | <!-- æµ®å¨æ°å¢æé® --> |
| | | <!-- <view class="fab-button" |
| | | <view class="fab-button" |
| | | @click="addVisit"> |
| | | <up-icon name="plus" |
| | | size="24" |
| | | color="#ffffff"></up-icon> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | delKnowledgeBase, |
| | | } from "@/api/managementMeetings/knowledgeBase"; |
| | | import useUserStore from "@/store/modules/user"; |
| | | // æ¿æ¢ toast æ¹æ³ |
| | | defineOptions({ name: "client-visit-index" }); |
| | | |
| | | defineOptions({ name: "knowledge-base-index" }); |
| | | |
| | | const showToast = message => { |
| | | uni.showToast({ |
| | | title: message, |
| | | icon: "none", |
| | | }); |
| | | }; |
| | | |
| | | import dayjs from "dayjs"; |
| | | |
| | | const userStore = useUserStore(); |
| | | |
| | |
| | | const goBack = () => { |
| | | uni.navigateBack(); |
| | | }; |
| | | |
| | | const { knowledge_type } = useDict("knowledge_type"); |
| | | |
| | | // æ ¼å¼å忬¾æ¹å¼ |
| | | const formatReceiptType = params => { |
| | | return getKnowledgeTypeLabel(params); |
| | | }; |
| | | |
| | | const formatReceiptType1 = params => { |
| | | if (params == "high") { |
| | | return "æ¾èæå"; |
| | |
| | | return "æªç¥"; |
| | | } |
| | | }; |
| | | |
| | | const getTagClass = type => { |
| | | if (type == "high") { |
| | | return "success"; |
| | |
| | | return "info"; |
| | | } |
| | | }; |
| | | |
| | | const knowledgeTypeOptions = computed(() => knowledge_type?.value || []); |
| | | |
| | | // è·åç¥è¯ç±»åæ ç¾ |
| | | const getKnowledgeTypeLabel = val => { |
| | | console.log(knowledgeTypeOptions, "knowledgeTypeOptions"); |
| | | const item = knowledgeTypeOptions.value.find( |
| | | i => String(i.value) === String(val) |
| | | ); |
| | |
| | | }; |
| | | |
| | | // æ¥è¯¢å表 |
| | | const handleQuery = () => { |
| | | getList(); |
| | | }; |
| | | |
| | | const getList = () => { |
| | | showLoadingToast("å è½½ä¸..."); |
| | | const params = { |
| | |
| | | // æ°å¢æè®¿ - 跳转å°ç»è®°é¡µé¢ |
| | | const addVisit = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/managementMeetings/knowledgeBase/detail?detailType=1", |
| | | url: "/pages/cooperativeOffice/collaborativeApproval/knowledgeBase/detail?detailType=1", |
| | | }); |
| | | }; |
| | | |
| | | // ç¼è¾ |
| | | // æ¥ç/ç¼è¾ |
| | | const viewDetail = (item, detailType) => { |
| | | uni.setStorageSync("knowledgeBase", item); |
| | | uni.navigateTo({ |
| | | url: |
| | | "/pages/managementMeetings/knowledgeBase/detail?detailType=" + |
| | | "/pages/cooperativeOffice/collaborativeApproval/knowledgeBase/detail?detailType=" + |
| | | detailType + |
| | | "&id=" + |
| | | item.id, |
| | |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | @import "../../../styles/sales-common.scss"; |
| | | @import "../../../../styles/sales-common.scss"; |
| | | |
| | | // 页é¢ç¹å®çæ ·å¼è¦ç |
| | | .sales-accoun { |
| | |
| | | color: #333; // ä¿æé¡µé¢ç¹æçææ¬é¢è² |
| | | } |
| | | |
| | | // ç¶ææ ·å¼ |
| | | .status-enabled { |
| | | color: #28a745; // ä¿æé¡µé¢ç¹æçæåé¢è² |
| | | } |
| | | |
| | | .status-disabled { |
| | | color: #dc3545; // ä¿æé¡µé¢ç¹æçé误é¢è² |
| | | } |
| | | |
| | | // ç¹å®çæµ®å¨æé®æ ·å¼ |
| | | .fab-button { |
| | | background: #667eea; // ä¿æé¡µé¢ç¹æçèæ¯è² |
| | | box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3); // ä¿æé¡µé¢ç¹æçé´å½±ææ |
| | | position: fixed; |
| | | bottom: 40px; |
| | | right: 20px; |
| | | width: 50px; |
| | | height: 50px; |
| | | border-radius: 50%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | z-index: 100; |
| | | } |
| | | |
| | | .action-buttons { |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | gap: 10px; |
| | | margin-top: 10px; |
| | | padding-bottom: 10px; |
| | | } |
| | | |
| | | .action-btn { |
| | | margin: 0 !important; |
| | | } |
| | | |
| | | .no-data { |
| | | padding: 50px 0; |
| | | text-align: center; |
| | | color: #999; |
| | | } |
| | | </style> |
| | | |