(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1fc7ba22"],{17842:function(e,t,o){"use strict";o.r(t);var r,i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"midd-page"},[o("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[o("el-tab-pane",{attrs:{label:"AED数据表",name:"first"}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.firstTableData}},[o("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?o("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.workType,callback:function(o){e.$set(t.row,"workType",o)},expression:"scope.row.workType"}},[o("el-option",{attrs:{label:"类型1",value:"type1"}}),o("el-option",{attrs:{label:"类型2",value:"type2"}}),o("el-option",{attrs:{label:"类型3",value:"type3"}})],1):o("span",[e._v(e._s(t.row.workType))])]}}])}),o("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?o("el-input",{model:{value:t.row.project,callback:function(o){e.$set(t.row,"project",o)},expression:"scope.row.project"}}):o("span",[e._v(e._s(t.row.project))])]}}])}),o("el-table-column",{attrs:{label:"说明",prop:"description"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?o("el-input",{model:{value:t.row.description,callback:function(o){e.$set(t.row,"description",o)},expression:"scope.row.description"}}):o("span",[e._v(e._s(t.row.description))])]}}])}),o("el-table-column",{attrs:{label:"范例",prop:"example"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?o("el-input",{model:{value:t.row.example,callback:function(o){e.$set(t.row,"example",o)},expression:"scope.row.example"}}):o("span",[e._v(" "+e._s(t.row.example)+" "),o("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer","margin-left":"5px"},on:{click:function(o){return e.openExampleDialog(t.row)}}})])]}}])}),o("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?o("el-input",{model:{value:t.row.example,callback:function(o){e.$set(t.row,"example",o)},expression:"scope.row.example"}}):o("span",[e._v(" "+e._s(t.row.model1)+" "),o("i",{staticClass:"el-icon-refresh",staticStyle:{cursor:"pointer","margin-left":"5px"},on:{click:function(o){return e.openModel1Dialog(t.row)}}})])]}}])}),o("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?o("el-input",{model:{value:t.row.model2,callback:function(o){e.$set(t.row,"model2",o)},expression:"scope.row.model2"}}):o("span",[e._v(" "+e._s(t.row.model2)+" "),o("i",{staticClass:"el-icon-refresh",staticStyle:{cursor:"pointer","margin-left":"5px"},on:{click:function(o){return e.openModel2Dialog(t.row)}}})])]}}])}),o("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-dropdown",{attrs:{trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[o("el-dropdown-menu",[t.row.isEdit?e._e():o("el-dropdown-item",{nativeOn:{click:function(o){return e.firstHandleEdit(t.$index,t.row)}}},[o("i",{staticClass:"el-icon-edit"}),e._v(" 编辑 ")]),t.row.isEdit?o("el-dropdown-item",{nativeOn:{click:function(o){return e.firstHandleSave(t.$index,t.row)}}},[o("i",{staticClass:"el-icon-check"}),e._v(" 保存 ")]):e._e(),o("el-dropdown-item",{nativeOn:{click:function(o){return e.firstHandleDelete(t.$index,t.row)}}},[o("i",{staticClass:"el-icon-delete"}),e._v(" 删除 ")])],1)]},proxy:!0}],null,!0)},[o("el-button",{staticClass:"operation-button",staticStyle:{"font-size":"15px","margin-left":"10px"},attrs:{type:"text",size:"small",circle:"",icon:"el-icon-more"}})],1)]}}])})],1),o("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary"},on:{click:e.firstHandleAdd}},[e._v("新增行")])],1),o("el-tab-pane",{attrs:{label:"SOTA数据表",name:"second"}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.secondTableData}},[o("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?o("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.workType,callback:function(o){e.$set(t.row,"workType",o)},expression:"scope.row.workType"}},[o("el-option",{attrs:{label:"类型1",value:"type1"}}),o("el-option",{attrs:{label:"类型2",value:"type2"}}),o("el-option",{attrs:{label:"类型3",value:"type3"}})],1):o("span",[e._v(e._s(t.row.workType))])]}}])}),o("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?o("el-input",{model:{value:t.row.project,callback:function(o){e.$set(t.row,"project",o)},expression:"scope.row.project"}}):o("span",[e._v(e._s(t.row.project))])]}}])}),o("el-table-column",{attrs:{label:"Outcomes",prop:"description"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?o("el-input",{model:{value:t.row.description,callback:function(o){e.$set(t.row,"description",o)},expression:"scope.row.description"}}):o("span",[e._v(e._s(t.row.description))])]}}])}),o("el-table-column",{attrs:{label:"Unit for analysis",prop:"example"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?o("el-input",{model:{value:t.row.example,callback:function(o){e.$set(t.row,"example",o)},expression:"scope.row.example"}}):o("span",[e._v(" "+e._s(t.row.example)+" ")])]}}])}),o("el-table-column",{attrs:{label:"Mean",prop:"description"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?o("el-input",{model:{value:t.row.description,callback:function(o){e.$set(t.row,"description",o)},expression:"scope.row.description"}}):o("span",[e._v(e._s(t.row.description))])]}}])}),o("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-dropdown",{attrs:{trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[o("el-dropdown-menu",[t.row.isEdit?e._e():o("el-dropdown-item",{nativeOn:{click:function(o){return e.secondHandleEdit(t.$index,t.row)}}},[o("i",{staticClass:"el-icon-edit"}),e._v(" 编辑 ")]),t.row.isEdit?o("el-dropdown-item",{nativeOn:{click:function(o){return e.secondHandleSave(t.$index,t.row)}}},[o("i",{staticClass:"el-icon-check"}),e._v(" 保存 ")]):e._e(),o("el-dropdown-item",{nativeOn:{click:function(o){return e.secondHandleDelete(t.$index,t.row)}}},[o("i",{staticClass:"el-icon-delete"}),e._v(" 删除 ")])],1)]},proxy:!0}],null,!0)},[o("el-button",{staticClass:"operation-button",staticStyle:{"font-size":"15px","margin-left":"10px"},attrs:{type:"text",size:"small",circle:"",icon:"el-icon-more"}})],1)]}}])})],1),o("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary"},on:{click:e.secondHandleAdd}},[e._v("新增行")])],1),o("el-tab-pane",{attrs:{label:"SOTA汇总表",name:"third"}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.thirdTableData}},[o("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?o("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.workType,callback:function(o){e.$set(t.row,"workType",o)},expression:"scope.row.workType"}},[o("el-option",{attrs:{label:"类型1",value:"type1"}}),o("el-option",{attrs:{label:"类型2",value:"type2"}}),o("el-option",{attrs:{label:"类型3",value:"type3"}})],1):o("span",[e._v(e._s(t.row.workType))])]}}])}),o("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?o("el-input",{model:{value:t.row.project,callback:function(o){e.$set(t.row,"project",o)},expression:"scope.row.project"}}):o("span",[e._v(e._s(t.row.project))])]}}])}),o("el-table-column",{attrs:{label:"Pain:VAS",prop:"description"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?o("el-input",{model:{value:t.row.description,callback:function(o){e.$set(t.row,"description",o)},expression:"scope.row.description"}}):o("span",[e._v(e._s(t.row.description))])]}}])}),o("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-dropdown",{attrs:{trigger:"click"},scopedSlots:e._u([{key:"dropdown",fn:function(){return[o("el-dropdown-menu",[t.row.isEdit?e._e():o("el-dropdown-item",{nativeOn:{click:function(o){return e.thirdHandleEdit(t.$index,t.row)}}},[o("i",{staticClass:"el-icon-edit"}),e._v(" 编辑 ")]),t.row.isEdit?o("el-dropdown-item",{nativeOn:{click:function(o){return e.thirdHandleSave(t.$index,t.row)}}},[o("i",{staticClass:"el-icon-check"}),e._v(" 保存 ")]):e._e(),o("el-dropdown-item",{nativeOn:{click:function(o){return e.thirdHandleDelete(t.$index,t.row)}}},[o("i",{staticClass:"el-icon-delete"}),e._v(" 删除 ")])],1)]},proxy:!0}],null,!0)},[o("el-button",{staticClass:"operation-button",staticStyle:{"font-size":"15px","margin-left":"10px"},attrs:{type:"text",size:"small",circle:"",icon:"el-icon-more"}})],1)]}}])})],1),o("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary"},on:{click:e.thirdHandleAdd}},[e._v("新增行")])],1)],1),o("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[o("span",{staticClass:"dialog-footer"},[o("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),o("el-button",{attrs:{type:"primary"},on:{click:e.saveExample}},[e._v("确定")])],1)]},proxy:!0}])},[o("el-input",{attrs:{type:"textarea",rows:4},model:{value:e.currentExample,callback:function(t){e.currentExample=t},expression:"currentExample"}})],1),o("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[o("span",{staticClass:"dialog-footer"},[o("el-button",{on:{click:e.generateContent}},[e._v("生成内容")]),o("el-button",{on:{click:function(t){e.firstForm.dialogVisible=!1}}},[e._v("取消")]),o("el-button",{attrs:{type:"primary"},on:{click:e.firstSaveExample}},[e._v("确定")])],1)]},proxy:!0}])},[o("el-form",{attrs:{model:e.firstForm.firstAiForm,"label-width":"120px"}},[o("el-form-item",{attrs:{label:"应用"}},[o("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"}},[o("el-option",{attrs:{label:"应用1",value:"app1"}}),o("el-option",{attrs:{label:"应用2",value:"app2"}})],1)],1),o("el-form-item",{attrs:{label:"MAX-token数"}},[o("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),o("el-form-item",{attrs:{label:"说明"}},[o("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),o("el-form-item",{attrs:{label:"提示词"}},[o("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),o("el-form-item",{attrs:{label:"生成内容"}},[o("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)},l=[],n=o("ade3"),a=o("c7eb"),s=o("1da1"),c=o("2909"),p=(o("a4d3"),o("e01a"),o("4de4"),o("caad"),o("d81d"),o("a434"),o("d3b7"),o("6062"),o("2532"),o("3ca3"),o("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:""}},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:(r={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(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(r,"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 o=this.getUpdatedContent(t);this.$set(t,"model1",o.model1),this.$set(t,"model2",o.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 o;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:o=t.sent,e.firstForm.firstAiForm.modelValue=o.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(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(r,"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}}))})),"handleClick",(function(){}))),watch:{tableData:{handler:function(){this.updateProjectFilters()},deep:!0}}}),d=p,u=(o("a471"),o("2877")),m=Object(u["a"])(d,i,l,!1,null,"1b93a10c",null);t["default"]=m.exports},"4b9b":function(e,t,o){},a471:function(e,t,o){"use strict";o("4b9b")}}]);