1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20bc854d"],{"07ac":function(e,t,r){var i=r("23e7"),o=r("6f53").values;i({target:"Object",stat:!0},{values:function(e){return o(e)}})},17842:function(e,t,r){"use strict";r.r(t);var i,o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"midd-page"},[r("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[r("el-tab-pane",{attrs:{label:"AED列表",name:"first"}},[r("div",{staticClass:"header"},[r("div",{staticClass:"h_left"},[r("p",{staticClass:"current-doc"},[e._v(" 当前数据表: "+e._s(e.firstForm.currentDocument)+" ")]),r("div",{staticClass:"search-box"},[r("el-input",{staticClass:"custom-search-input",attrs:{placeholder:"请输入搜索内容",clearable:""},on:{clear:e.handleSearchClear},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch(t)}},scopedSlots:e._u([{key:"append",fn:function(){return[r("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("搜索")])]},proxy:!0}]),model:{value:e.firstForm.searchQuery,callback:function(t){e.$set(e.firstForm,"searchQuery",t)},expression:"firstForm.searchQuery"}})],1)]),r("div",{staticClass:"h_right"},[r("el-pagination",{attrs:{"current-page":e.firstForm.currentPage,"page-size":e.firstForm.pageSize,layout:"total, prev, pager, next",total:e.firstForm.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)]),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.firstTableData}},[r("el-table-column",{attrs:{label:"工作类型",prop:"workType",filters:e.firstForm.workTypeFilters,"filter-method":e.firstFilterWorkType,"filter-placement":"bottom-end",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.workType,callback:function(r){e.$set(t.row,"workType",r)},expression:"scope.row.workType"}},[r("el-option",{attrs:{label:"类型1",value:"type1"}}),r("el-option",{attrs:{label:"类型2",value:"type2"}}),r("el-option",{attrs:{label:"类型3",value:"type3"}})],1):r("span",[e._v(e._s(t.row.workType))])]}}])}),r("el-table-column",{attrs:{label:"项目",prop:"project",filters:e.firstForm.projectFilters,"filter-method":e.firstFilterProject,"filter-placement":"bottom-end",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-input",{model:{value:t.row.project,callback:function(r){e.$set(t.row,"project",r)},expression:"scope.row.project"}}):r("span",[e._v(e._s(t.row.project))])]}}])}),r("el-table-column",{attrs:{label:"说明",prop:"description"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-input",{model:{value:t.row.description,callback:function(r){e.$set(t.row,"description",r)},expression:"scope.row.description"}}):r("span",[e._v(e._s(t.row.description))])]}}])}),r("el-table-column",{attrs:{label:"范例",prop:"example"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-input",{model:{value:t.row.example,callback:function(r){e.$set(t.row,"example",r)},expression:"scope.row.example"}}):r("span",[e._v(" "+e._s(t.row.example)+" "),r("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","margin-left":"5px"},on:{click:function(r){return e.openExampleDialog(t.row)}}})])]}}])}),r("el-table-column",{attrs:{label:"模型生成1",prop:"model1","class-name":"model-gen-1"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-input",{model:{value:t.row.example,callback:function(r){e.$set(t.row,"example",r)},expression:"scope.row.example"}}):r("span",[e._v(" "+e._s(t.row.model1)+" "),r("i",{staticClass:"el-icon-refresh",staticStyle:{cursor:"pointer","margin-left":"5px"},on:{click:function(r){return e.openModel1Dialog(t.row)}}})])]}}])}),r("el-table-column",{attrs:{label:"模型生成2",prop:"model2","class-name":"model-gen-2"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-input",{model:{value:t.row.model2,callback:function(r){e.$set(t.row,"model2",r)},expression:"scope.row.model2"}}):r("span",[e._v(" "+e._s(t.row.model2)+" "),r("i",{staticClass:"el-icon-refresh",staticStyle:{cursor:"pointer","margin-left":"5px"},on:{click:function(r){return e.openModel2Dialog(t.row)}}})])]}}])}),r("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-dropdown",{attrs:{trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[r("el-dropdown-menu",[t.row.isEdit?e._e():r("el-dropdown-item",{nativeOn:{click:function(r){return e.firstHandleEdit(t.$index,t.row)}}},[r("i",{staticClass:"el-icon-edit"}),e._v(" 编辑 ")]),t.row.isEdit?r("el-dropdown-item",{nativeOn:{click:function(r){return e.firstHandleSave(t.$index,t.row)}}},[r("i",{staticClass:"el-icon-check"}),e._v(" 保存 ")]):e._e(),r("el-dropdown-item",{nativeOn:{click:function(r){return e.firstHandleDelete(t.$index,t.row)}}},[r("i",{staticClass:"el-icon-delete"}),e._v(" 删除 ")])],1)]},proxy:!0}],null,!0)},[r("el-button",{staticClass:"operation-button",staticStyle:{"font-size":"15px","margin-left":"10px"},attrs:{type:"text",size:"small",circle:"",icon:"el-icon-more"}})],1)]}}])})],1),r("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary"},on:{click:e.firstHandleAdd}},[e._v("新增行")])],1),r("el-tab-pane",{attrs:{label:"SOTA详情",name:"second"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.secondTableData}},[r("el-table-column",{attrs:{label:"Identifier",prop:"workType",filters:e.secondForm.workTypeFilters,"filter-method":e.secondFilterWorkType,"filter-placement":"bottom-end"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.workType,callback:function(r){e.$set(t.row,"workType",r)},expression:"scope.row.workType"}},[r("el-option",{attrs:{label:"类型1",value:"type1"}}),r("el-option",{attrs:{label:"类型2",value:"type2"}}),r("el-option",{attrs:{label:"类型3",value:"type3"}})],1):r("span",[e._v(e._s(t.row.workType))])]}}])}),r("el-table-column",{attrs:{label:"Device",prop:"project",filters:e.secondForm.projectFilters,"filter-method":e.secondFilterProject,"filter-placement":"bottom-end"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-input",{model:{value:t.row.project,callback:function(r){e.$set(t.row,"project",r)},expression:"scope.row.project"}}):r("span",[e._v(e._s(t.row.project))])]}}])}),r("el-table-column",{attrs:{label:"Outcomes",prop:"description"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-input",{model:{value:t.row.description,callback:function(r){e.$set(t.row,"description",r)},expression:"scope.row.description"}}):r("span",[e._v(e._s(t.row.description))])]}}])}),r("el-table-column",{attrs:{label:"Unit for analysis",prop:"example"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-input",{model:{value:t.row.example,callback:function(r){e.$set(t.row,"example",r)},expression:"scope.row.example"}}):r("span",[e._v(" "+e._s(t.row.example)+" ")])]}}])}),r("el-table-column",{attrs:{label:"Mean",prop:"description"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-input",{model:{value:t.row.description,callback:function(r){e.$set(t.row,"description",r)},expression:"scope.row.description"}}):r("span",[e._v(e._s(t.row.description))])]}}])}),r("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-dropdown",{attrs:{trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[r("el-dropdown-menu",[t.row.isEdit?e._e():r("el-dropdown-item",{nativeOn:{click:function(r){return e.secondHandleEdit(t.$index,t.row)}}},[r("i",{staticClass:"el-icon-edit"}),e._v(" 编辑 ")]),t.row.isEdit?r("el-dropdown-item",{nativeOn:{click:function(r){return e.secondHandleSave(t.$index,t.row)}}},[r("i",{staticClass:"el-icon-check"}),e._v(" 保存 ")]):e._e(),r("el-dropdown-item",{nativeOn:{click:function(r){return e.secondHandleDelete(t.$index,t.row)}}},[r("i",{staticClass:"el-icon-delete"}),e._v(" 删除 ")])],1)]},proxy:!0}],null,!0)},[r("el-button",{staticClass:"operation-button",staticStyle:{"font-size":"15px","margin-left":"10px"},attrs:{type:"text",size:"small",circle:"",icon:"el-icon-more"}})],1)]}}])})],1),r("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary"},on:{click:e.secondHandleAdd}},[e._v("新增行")])],1),r("el-tab-pane",{attrs:{label:"SOTA汇总表",name:"third"}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.thirdTableData}},[r("el-table-column",{attrs:{label:"Summary",prop:"workType",filters:e.thirdForm.workTypeFilters,"filter-method":e.thirdFilterWorkType,"filter-placement":"bottom-end"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.workType,callback:function(r){e.$set(t.row,"workType",r)},expression:"scope.row.workType"}},[r("el-option",{attrs:{label:"类型1",value:"type1"}}),r("el-option",{attrs:{label:"类型2",value:"type2"}}),r("el-option",{attrs:{label:"类型3",value:"type3"}})],1):r("span",[e._v(e._s(t.row.workType))])]}}])}),r("el-table-column",{attrs:{label:"EqMD",prop:"project",filters:e.thirdForm.projectFilters,"filter-method":e.thirdFilterProject,"filter-placement":"bottom-end"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-input",{model:{value:t.row.project,callback:function(r){e.$set(t.row,"project",r)},expression:"scope.row.project"}}):r("span",[e._v(e._s(t.row.project))])]}}])}),r("el-table-column",{attrs:{label:"Pain:VAS",prop:"description"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?r("el-input",{model:{value:t.row.description,callback:function(r){e.$set(t.row,"description",r)},expression:"scope.row.description"}}):r("span",[e._v(e._s(t.row.description))])]}}])}),r("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-dropdown",{attrs:{trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[r("el-dropdown-menu",[t.row.isEdit?e._e():r("el-dropdown-item",{nativeOn:{click:function(r){return e.thirdHandleEdit(t.$index,t.row)}}},[r("i",{staticClass:"el-icon-edit"}),e._v(" 编辑 ")]),t.row.isEdit?r("el-dropdown-item",{nativeOn:{click:function(r){return e.thirdHandleSave(t.$index,t.row)}}},[r("i",{staticClass:"el-icon-check"}),e._v(" 保存 ")]):e._e(),r("el-dropdown-item",{nativeOn:{click:function(r){return e.thirdHandleDelete(t.$index,t.row)}}},[r("i",{staticClass:"el-icon-delete"}),e._v(" 删除 ")])],1)]},proxy:!0}],null,!0)},[r("el-button",{staticClass:"operation-button",staticStyle:{"font-size":"15px","margin-left":"10px"},attrs:{type:"text",size:"small",circle:"",icon:"el-icon-more"}})],1)]}}])})],1),r("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary"},on:{click:e.thirdHandleAdd}},[e._v("新增行")])],1)],1),r("el-dialog",{attrs:{visible:e.dialogVisible,title:"编辑范例",width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[r("span",{staticClass:"dialog-footer"},[r("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.saveExample}},[e._v("确定")])],1)]},proxy:!0}])},[r("el-input",{attrs:{type:"textarea",rows:4},model:{value:e.currentExample,callback:function(t){e.currentExample=t},expression:"currentExample"}})],1),r("el-dialog",{attrs:{visible:e.firstForm.dialogVisible,title:"内容更新",width:"40%"},on:{"update:visible":function(t){return e.$set(e.firstForm,"dialogVisible",t)}},scopedSlots:e._u([{key:"footer",fn:function(){return[r("span",{staticClass:"dialog-footer"},[r("el-button",{on:{click:e.generateContent}},[e._v("生成内容")]),r("el-button",{on:{click:function(t){e.firstForm.dialogVisible=!1}}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.firstSaveExample}},[e._v("确定")])],1)]},proxy:!0}])},[r("el-form",{attrs:{model:e.firstForm.firstAiForm,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"应用"}},[r("el-select",{attrs:{placeholder:"请选择应用",disabled:""},model:{value:e.firstForm.firstAiForm.application,callback:function(t){e.$set(e.firstForm.firstAiForm,"application",t)},expression:"firstForm.firstAiForm.application"}},[r("el-option",{attrs:{label:"应用1",value:"app1"}}),r("el-option",{attrs:{label:"应用2",value:"app2"}})],1)],1),r("el-form-item",{attrs:{label:"MAX-token数"}},[r("el-input-number",{attrs:{min:1,max:1e3,placeholder:"请输入字数限制"},model:{value:e.firstForm.firstAiForm.wordCount,callback:function(t){e.$set(e.firstForm.firstAiForm,"wordCount",t)},expression:"firstForm.firstAiForm.wordCount"}})],1),r("el-form-item",{attrs:{label:"说明"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入说明"},model:{value:e.firstForm.firstAiForm.description,callback:function(t){e.$set(e.firstForm.firstAiForm,"description",t)},expression:"firstForm.firstAiForm.description"}})],1),r("el-form-item",{attrs:{label:"提示词"}},[r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入提示词"},model:{value:e.firstForm.firstAiForm.prompt,callback:function(t){e.$set(e.firstForm.firstAiForm,"prompt",t)},expression:"firstForm.firstAiForm.prompt"}})],1),r("el-form-item",{attrs:{label:"生成内容"}},[r("el-input",{attrs:{type:"textarea",rows:4,readonly:""},model:{value:e.firstForm.firstAiForm.modelValue,callback:function(t){e.$set(e.firstForm.firstAiForm,"modelValue",t)},expression:"firstForm.firstAiForm.modelValue"}})],1)],1)],1)],1)},n=[],l=r("ade3"),a=r("c7eb"),s=r("1da1"),c=r("2909"),p=(r("a4d3"),r("e01a"),r("4de4"),r("caad"),r("d81d"),r("a434"),r("d3b7"),r("07ac"),r("6062"),r("2532"),r("3ca3"),r("ddb0"),{name:"MiddPage",data:function(){return{activeName:"first",firstForm:{tableData:[{workType:"复制",project:"indication",description:"器械在文献中使用的适应症,按照器械分析,也需要添加器械使用部位以区分",example:"t1d: n=191;",model1:"t1d: n=191;",model2:"t1d: n=191;",isEdit:!1},{workType:"总结",project:"Study Design/ Method",description:"患者/试验者的人种,国家地区,以查阅是否存在数据上人种差异",example:"white non-hispanic: n=247;african american:n=25;hispanic or latino: n=34",model1:"white non-hispanic: n=247;african american:n=25;hispanic or latino: n=34",model2:"white non-hispanic: n=247;african american:n=25;hispanic or latino: n=34",isEdit:!1},{workType:"总结和数据提取;",project:"Alternative device(treatment)",description:"Device name + model name如无,可写疗法(以评价的器械的替代疗法)",example:"Capillary blood by BMG;Venous blood by YSI(此处为CGM的替代疗法)",model1:"Capillary blood by BMG;Venous blood by YSI(此处为CGM的替代疗法)",model2:"Capillary blood by BMG;Venous blood by YSI(此处为CGM的替代疗法)",isEdit:!1}],workTypeFilters:[{text:"类型1",value:"type1"},{text:"类型2",value:"type2"},{text:"类型3",value:"type3"}],projectFilters:[],activeFilters:{workType:[],project:[]},dialogVisible:!1,firstAiForm:{application:"",wordCount:100,description:"",prompt:"",modelValue:""},currentDocument:"AED数据表",searchQuery:"",currentPage:1,pageSize:10,total:3},secondForm:{tableData:[{workType:"SOTA-E1-01",project:"Ultrasounic knife",description:"Pain: VAS (day3)",example:"37",isEdit:!1},{workType:"SOTA-E1-02",project:"EqMD",description:"Quality of life: xx scale (week 2)",example:"66",isEdit:!1},{workType:"SOTA-E1-03",project:"EqMD",description:"Pain: VAS (day7)",example:"35",isEdit:!1}],workTypeFilters:[{text:"类型1",value:"type1"},{text:"类型2",value:"type2"},{text:"类型3",value:"type3"}],projectFilters:[],activeFilters:{workType:[],project:[]}},thirdForm:{tableData:[{workType:"SOTA-E1-01",project:"EqMD",description:"Pain: VAS (day3)",example:"t1d: n=191;",isEdit:!1},{workType:"SOTA-E1-02",project:"EqMD",description:"Pain: VAS (day3)",example:"white non-hispanic: n=247;african american:n=25;hispanic or latino: n=34",isEdit:!1}],workTypeFilters:[{text:"类型1",value:"type1"},{text:"类型2",value:"type2"},{text:"类型3",value:"type3"}],projectFilters:[],activeFilters:{workType:[],project:[]}},dialogVisible:!1,currentExample:"",currentRow:null}},computed:{firstTableData:function(){var e=this;return this.firstForm.tableData.filter((function(t){return(!e.firstForm.activeFilters.workType.length||e.firstForm.activeFilters.workType.includes(t.workType))&&(!e.firstForm.activeFilters.project.length||e.firstForm.activeFilters.project.includes(t.project))}))},secondTableData:function(){var e=this;return this.secondForm.tableData.filter((function(t){return(!e.secondForm.activeFilters.workType.length||e.secondForm.activeFilters.workType.includes(t.workType))&&(!e.secondForm.activeFilters.project.length||e.secondForm.activeFilters.project.includes(t.project))}))},thirdTableData:function(){var e=this;return this.thirdForm.tableData.filter((function(t){return(!e.thirdForm.activeFilters.workType.length||e.thirdForm.activeFilters.workType.includes(t.workType))&&(!e.thirdForm.activeFilters.project.length||e.thirdForm.activeFilters.project.includes(t.project))}))}},created:function(){this.updateProjectFilters()},methods:(i={thirdHandleEdit:function(e,t){t.isEdit=!0},thirdHandleSave:function(e,t){t.isEdit=!1,this.updateProjectFilters()},thirdHandleDelete:function(e,t){this.thirdForm.tableData.splice(e,1),this.updateProjectFilters()},thirdHandleAdd:function(){this.thirdForm.tableData.push({workType:"",project:"",description:"",example:"",isEdit:!0})},thirdFilterWorkType:function(e,t){return t.workType===e},thirdFilterProject:function(e,t){return t.project===e},updateProjectFilters:function(){var e=Object(c["a"])(new Set(this.thirdForm.tableData.map((function(e){return e.project}))));this.projectFilters=e.map((function(e){return{text:e,value:e}}))},secondHandleEdit:function(e,t){t.isEdit=!0},secondHandleSave:function(e,t){t.isEdit=!1,this.updateProjectFilters()},secondHandleDelete:function(e,t){this.secondForm.tableData.splice(e,1),this.updateProjectFilters()},secondHandleAdd:function(){this.secondForm.tableData.push({workType:"",project:"",description:"",example:"",isEdit:!0})},secondFilterWorkType:function(e,t){return t.workType===e},secondFilterProject:function(e,t){return t.project===e}},Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(i,"updateProjectFilters",(function(){var e=Object(c["a"])(new Set(this.secondForm.tableData.map((function(e){return e.project}))));this.projectFilters=e.map((function(e){return{text:e,value:e}}))})),"openExampleDialog",(function(e){this.dialogVisible=!0,this.currentExample=e.example,this.currentRow=e})),"saveExample",(function(){this.currentRow&&(this.currentRow.example=this.currentExample),this.dialogVisible=!1})),"firstHandleUpload",(function(e,t){var r=this.getUpdatedContent(t);this.$set(t,"model1",r.model1),this.$set(t,"model2",r.model2),this.$message({type:"success",message:"内容已更新"})})),"openModel1Dialog",(function(e){this.firstForm.firstAiForm.application="app1",this.firstForm.firstAiForm.description=e.description,this.firstForm.dialogVisible=!0})),"openModel2Dialog",(function(e){this.firstForm.firstAiForm.application="app2",this.firstForm.firstAiForm.description=e.description,this.firstForm.dialogVisible=!0})),"getUpdatedContent",(function(e){return{model1:"更新后的模型1内容",model2:"更新后的模型2内容"}})),"generateContent",(function(){var e=this;return Object(s["a"])(Object(a["a"])().mark((function t(){var r;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.yourApiCall({application:e.firstForm.firstAiForm.application,wordCount:e.firstForm.firstAiForm.wordCount,description:e.firstForm.firstAiForm.description,prompt:e.firstForm.firstAiForm.prompt});case 3:r=t.sent,e.firstForm.firstAiForm.modelValue=r.data,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.$message.error("生成内容失败");case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()})),"firstSaveExample",(function(){this.firstForm.dialogVisible=!1})),"firstHandleUpload",(function(e,t){this.firstForm.dialogVisible=!0})),Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(i,"firstHandleEdit",(function(e,t){console.log(e),t.isEdit=!0})),"firstHandleSave",(function(e,t){t.isEdit=!1,this.updateProjectFilters()})),"firstHandleDelete",(function(e,t){this.firstForm.tableData.splice(e,1),this.updateProjectFilters()})),"firstHandleAdd",(function(){this.firstForm.tableData.push({workType:"",project:"",description:"",example:"",isEdit:!0})})),"firstFilterWorkType",(function(e,t){return t.workType===e})),"firstFilterProject",(function(e,t){return t.project===e})),"updateProjectFilters",(function(){var e=Object(c["a"])(new Set(this.firstForm.tableData.map((function(e){return e.project}))));this.projectFilters=e.map((function(e){return{text:e,value:e}}))})),"handleSearch",(function(){var e=this.firstForm.searchQuery.toLowerCase(),t=this.firstForm.tableData.filter((function(t){return Object.values(t).some((function(t){return String(t).toLowerCase().includes(e)}))}));this.total=t.length})),"handleSearchClear",(function(){this.firstForm.searchQuery="",this.handleSearch()})),"handleSizeChange",(function(e){this.firstForm.pageSize=e,this.handleSearch()})),Object(l["a"])(Object(l["a"])(i,"handleCurrentChange",(function(e){this.firstForm.currentPage=e,this.handleSearch()})),"handleClick",(function(){}))),watch:{tableData:{handler:function(){this.updateProjectFilters()},deep:!0}}}),d=p,u=(r("9a78"),r("2877")),f=Object(u["a"])(d,o,n,!1,null,"7df62f00",null);t["default"]=f.exports},"6f53":function(e,t,r){var i=r("83ab"),o=r("df75"),n=r("fc6a"),l=r("d1e7").f,a=function(e){return function(t){var r,a=n(t),s=o(a),c=s.length,p=0,d=[];while(c>p)r=s[p++],i&&!l.call(a,r)||d.push(e?[r,a[r]]:a[r]);return d}};e.exports={entries:a(!0),values:a(!1)}},"70a4":function(e,t,r){},"9a78":function(e,t,r){"use strict";r("70a4")}}]);
|