k5web/assets/index.f55515f3.js

2 lines
14 KiB
JavaScript
Raw Normal View History

2024-02-03 01:36:30 +00:00
import{e as z,q as F,S as b,_ as M}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css */import{d as N,r as j,c as L,bi as O,C as H,D as J,aE as u,b0 as d,aV as _,u as Q,b3 as q,a6 as $,bd as G,bs as W,bN as X,bQ as Y,bP as Z}from"./arco.b143604e.js";import{u as tt}from"./loading.dfebc5d0.js";import{e as T,a as I,u as A,b as et,h as v,s as at,f as h,g as ot}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const nt={class:"container"},rt={name:"SearchTable"},it=N({...rt,setup(st){const f=z(),{loading:B,setLoading:y}=tt(!1),r={bandwidthOption:{0:"25KHz",1:"12.5KHz"},modeOption:{0:"FM",1:"AM",2:"USB"},powerOption:{0:"\u4F4E",1:"\u4E2D",2:"\u9AD8"},toneOption:{1:"\u4E9A\u97F3\u9891",2:"\u6570\u5B57\u4E9A\u97F3",3:"\u53CD\u5411\u6570\u5B57\u4E9A\u97F3"},CTCSSOption:[67,69.3,71.9,74.4,77,79.7,82.5,85.4,88.5,91.5,94.8,97.4,100,103.5,107.2,110.9,114.8,118.8,123,127.3,131.8,136.5,141.3,146.2,151.4,156.7,159.8,162.2,165.5,167.9,171.3,173.8,177.3,179.9,183.5,186.2,189.9,192.8,196.6,199.5,203.5,206.5,210.7,218.1,225.7,229.1,233.6,241.8,250.3,254.1],DCSOption:[23,25,26,31,32,36,43,47,51,53,54,65,71,72,73,74,114,115,116,122,125,131,132,134,143,145,152,155,156,162,165,172,174,205,212,223,225,226,243,244,245,246,251,252,255,261,263,265,266,271,274,306,311,315,325,331,332,343,346,351,356,364,365,371,411,412,413,423,431,432,445,446,452,454,455,462,464,465,466,503,506,516,523,526,532,546,565,606,612,624,627,631,632,654,662,664,703,712,723,731,732,734,743,754],stepOption:[2.5,5,6.25,10,12.5,25,8.33,.01,.05,.1,.25,.5,1,1.25,9,15,20,30,50,100,125,200,250,500],scrambOption:["1","2","3","4","5","6","7","8","9","10"],pttidOption:["\u4E0A\u7EBF\u7801","\u4E0B\u7EBF\u7801","\u4E0A\u7EBF+\u4E0B\u7EBF\u7801","Quindar\u7801"]},n=j({renderData:Array.from({length:200}).map(t=>({})),pageSize:15,nowPage:1}),R=L(()=>[{title:"#",colKey:"index",align:"left",width:100},{title:"\u4FE1\u9053\u540D\u79F0",colKey:"name",width:250,align:"left",edit:{component:F,props:{clearable:!0},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u5E26\u5BBD",colKey:"bandwidth",align:"left",width:150,cell:(t,{row:e})=>{var i;return(i=r.bandwidthOption[e.bandwidth])!=null?i:""},edit:{component:b,props:{clearable:!0,options:Object.keys(r.bandwidthOption).map(t=>({value:t,label:r.bandwidthOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u63A5\u6536\u9891\u7387",colKey:"rx",align:"left",width:200,cell:(t,{row:e})=>parseFloat(e.rx)?parseFloat(e.rx).toFixed(5):void 0,edit:{component:F,props:{clearable:!0},onEdited:t=>{t.newRowData.rx=t.newRowData.rx?t.newRowData.rx:void 0;const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u9891\u7387",colKey:"tx",align:"left",width:200,cell:(t,{row:e})=>parseFloat(e.tx)?parseFloat(e.tx).toFixed(5):void 0,edit:{component:F,props:{clearable:!0},onEdited:t=>{t.newRowData.tx=t.newRowData.tx?t.newRowData.tx:void 0;const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u529F\u7387",colKey:"power",align:"left",width:150,cell:(t,{row:e})=>{var i;return(i=r.powerOption[e.power])!=null?i:""},edit:{component:b,props:{clearable:!0,options:Object.keys(r.powerOption).map(t=>({value:t,label:r.powerOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u63A5\u6536\u4E9A\u97F3\u7C7B\u578B",colKey:"rxTone",align:"left",width:180,cell:(t,{row:e})=>{var i;return(i=r.toneOption[e.rxTone])!=null?i:""},edit:{component:b,props:{clearable:!0,options:Object.keys(r.toneOption).map(t=>({value:t,label:r.toneOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u63A5\u6536\u4E9A\u97F3\u9891\uFF08Hz\uFF09",colKey:"rxCTCSS",align:"left",width:150,cell:(t,{row:e})=>{var i;return r.CTCSSOption.indexOf(e.rxCTCSS)>=0?(i=e.rxCTCSS)==null?void 0:i.toFixed(1):void 0},ed