(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c584504"],{"00ca":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"softwareUpdates"},[e("div",{staticClass:"container"},[1===t.active?e("div",{staticClass:"step-one"},[e("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"150px"}},[e("el-form-item",{attrs:{label:t.$t("softwareUpdates.table1"),prop:"name"}},[e("el-input",{attrs:{disabled:t.showBJ,placeholder:t.$t("tips.input")},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),e("el-form-item",{attrs:{label:t.$t("softwareUpdates.table2"),prop:"update"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{disabled:2!==t.status,clearable:"",filterable:"",placeholder:t.$t("tips.select")},on:{change:t.changeValue},model:{value:t.ruleForm.update,callback:function(e){t.$set(t.ruleForm,"update",e)},expression:"ruleForm.update"}},t._l(t.updateOption,(function(t){return e("el-option",{key:t.id,attrs:{label:t.filename,value:t.id}})})),1)],1),t.ruleForm.update?e("el-form-item",{attrs:{label:t.$t("softwareUpdates.table14")}},[e("span",{staticStyle:{"margin-right":"100px"}},[t._v(t._s(t.$t("softwareUpdates.table11"))+"："+t._s(t.selectUpdateOptionObj.version))]),e("span",{staticStyle:{"margin-right":"100px"}},[t._v(t._s(t.$t("softwareUpdates.table12"))+"："+t._s(t.selectUpdateOptionObj.svn))]),e("span",[t._v(t._s(t.$t("manufacturer.table17"))+"："+t._s(t.$t(t.selectUpdateOptionObj.languageVersionDesc)))])]):t._e(),t.ruleForm.update?e("el-form-item",{attrs:{label:t.$t("softwareUpdates.table15")}},[e("span",[t._v(t._s(t.selectUpdateOptionObj.packetSizeDesc)+"M")])]):t._e(),t.ruleForm.update?e("el-form-item",{attrs:{label:t.$t("softwareUpdates.table3"),prop:"models"}},[e("div",{staticClass:"img-box-form"},[e("span",[t._v(t._s(t.ruleForm.models))]),e("img",{attrs:{src:t.BJObj.customVersionDescUrl,alt:""}})])]):t._e(),t.ruleForm.update?e("el-form-item",{attrs:{label:t.$t("softwareUpdates.table16"),prop:"resource"}},[e("span",[t._v(t._s(t.ruleForm.resource))])]):t._e(),t.isFormremoteUpgrade?t._e():e("el-form-item",{attrs:{label:t.$t("softwareUpdates.box14"),prop:"mechanism"}},[e("el-radio-group",{staticStyle:{display:"flex","align-items":"center",height:"40px"},on:{change:t.changeRadioMe},model:{value:t.ruleForm.mechanism,callback:function(e){t.$set(t.ruleForm,"mechanism",e)},expression:"ruleForm.mechanism"}},[e("el-radio",{attrs:{disabled:2!==t.status,label:!1}},[t._v(t._s(t.$t("softwareUpdates.box15")))]),e("el-radio",{staticStyle:{display:"flex"},attrs:{disabled:2!==t.status,label:!0}},[e("p",{staticClass:"p-radio"},[t._v(" "+t._s(t.$t("softwareUpdates.box16"))),e("span",{staticStyle:{color:"#F56C6C"}},[t._v("（"+t._s(t.$t("softwareUpdates.box17"))+"）")])])])],1)],1),e("el-form-item",{attrs:{label:t.$t("softwareUpdates.table5"),prop:"svn"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",disabled:4===t.status,filterable:"",multiple:"",placeholder:t.$t("tips.select")},model:{value:t.ruleForm.svn,callback:function(e){t.$set(t.ruleForm,"svn",e)},expression:"ruleForm.svn"}},[e("el-option",{attrs:{label:t.$t("tips.all"),value:"all"}}),t._l(t.updateOptionsfot,(function(t){return e("el-option",{key:t.id,attrs:{label:t.descLocale,value:t.id}})}))],2)],1),e("el-form-item",{attrs:{label:t.$t("softwareUpdates.table6"),prop:"desc"}},[e("el-input",{staticClass:"input-bgc",attrs:{maxlength:"1000",autosize:{minRows:2},"show-word-limit":"",disabled:t.showBJ,type:"textarea"},model:{value:t.ruleForm.desc,callback:function(e){t.$set(t.ruleForm,"desc",e)},expression:"ruleForm.desc"}})],1),e("el-form-item",{attrs:{label:t.$t("softwareUpdates.table7"),prop:"uplateTemplate"}},[e("el-input",{attrs:{maxlength:"100","show-word-limit":"",disabled:t.showBJ},model:{value:t.ruleForm.uplateTemplate,callback:function(e){t.$set(t.ruleForm,"uplateTemplate",e)},expression:"ruleForm.uplateTemplate"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v(t._s(t.$t("softwareUpdates.table8")))])],1)],1)],1):t._e(),2===t.active?e("div",{staticClass:"step-tow"},[e("ul",{staticClass:"uls"},[t._l(t.dataList,(function(s,a){return[s.show?e("li",{key:a},[e("span",{staticClass:"left-span"},[t._v(t._s(s.title))]),e("div",{staticClass:"right"},[s.value&&5!==a&&2!==a?e("span",[t._v(t._s(s.value))]):t._e(),2!==a||t.isFormremoteUpgrade?t._e():e("span",[t._v(t._s(s.value))]),s.value&&5===a?e("span",[t._v(t._s(s.value)+"M")]):t._e(),s.value1?e("span",[t._v(t._s(t.$t("softwareUpdates.table11"))+"："+t._s(s.value1))]):t._e(),s.value2?e("span",[t._v(t._s(t.$t("softwareUpdates.table12"))+"："+t._s(s.value2))]):t._e(),s.value3?e("span",[t._v(t._s(t.$t("manufacturer.table17"))+"："+t._s(t.$t(s.value3)))]):t._e(),1===a?e("img",{attrs:{src:t.BJObj.customVersionDescUrl,alt:""}}):t._e()]),t.isCheck?e("el-button",{staticClass:"checkBtn",attrs:{size:"small",type:"primary"},on:{click:t.toShowLi}},[t._v(t._s(0===t.equipment.length?t.$t("softwareUpdates.table13"):`${t.$t("softwareUpdates.table13")}(${t.equipment.length})`))]):t._e()],1):t._e()]}))],2),t.isCheck?e("div",[1===t.ruleForm2.publishType?e("div",{staticClass:"choose-box"},[e("div",{staticClass:"choose-left"},[e("div",{staticClass:"choose-left-top"},[e("span",{staticClass:"title"},[t._v(t._s(t.$t("softwareUpdates.box1")))]),e("div",{staticClass:"uls"},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))]),e("el-input",{attrs:{size:"small",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.leftInputValue,callback:function(e){t.$set(t.ruleForm2,"leftInputValue",e)},expression:"ruleForm2.leftInputValue"}})],1),e("div",{staticClass:"uls"},[e("span",[t._v(t._s(t.$t("softwareUpdates.box3")))]),e("el-input",{attrs:{size:"small",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.leftInputValue2,callback:function(e){t.$set(t.ruleForm2,"leftInputValue2",e)},expression:"ruleForm2.leftInputValue2"}})],1),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.searchAllData(1)}}},[t._v(t._s(t.$t("tips.check")))])],1),e("div",{staticClass:"choose-left-main"},[e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{border:"","max-height":"300",data:t.tableData,"tooltip-effect":"dark"}},[e("el-table-column",{attrs:{label:t.$t("softwareUpdates.box2"),"show-overflow-tooltip":"",width:"150"},scopedSlots:t._u([{key:"default",fn:function(s){return["zh"===t.local?e("span",[t._v(t._s(s.row.user?s.row.user.countryZh:"-"))]):e("span",[t._v(t._s(s.row.user?s.row.user.country:"-"))])]}}],null,!1,2037704460)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))])])],1)],2),e("el-table-column",{attrs:{prop:"institutionName","show-overflow-tooltip":"",label:t.$t("softwareUpdates.box4"),"min-width":"120"}},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box4"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box4")))])])],1)],2),e("el-table-column",{attrs:{"min-width":"150","show-overflow-tooltip":"",prop:"id",label:t.$t("softwareUpdates.box6")}},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box6"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box6")))])])],1)],2)],1)],1),e("div",{staticClass:"choose-left-bottom"},[e("el-pagination",{attrs:{size:"small","current-page":t.ruleForm2.currentPage,"page-sizes":[100,200,300,500],"page-size":t.ruleForm2.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:t.ruleForm2.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)]),e("div",{staticClass:"choose-right",staticStyle:{"margin-left":"50px"}},[e("div",{staticClass:"choose-right-top"},[e("span",{staticClass:"title"},[t._v(t._s(t.$t("softwareUpdates.box7")))]),e("div",{staticClass:"uls"},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))]),e("el-input",{attrs:{size:"small",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.rightInputValue,callback:function(e){t.$set(t.ruleForm2,"rightInputValue",e)},expression:"ruleForm2.rightInputValue"}})],1),e("div",{staticClass:"uls"},[e("span",[t._v(t._s(t.$t("softwareUpdates.box3")))]),e("el-input",{attrs:{size:"small",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.rightInputValue2,callback:function(e){t.$set(t.ruleForm2,"rightInputValue2",e)},expression:"ruleForm2.rightInputValue2"}})],1),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.searchAllData(2)}}},[t._v(t._s(t.$t("tips.check")))])],1),e("div",{staticClass:"choose-right-main"},[e("el-table",{ref:"multipleTable2",staticStyle:{width:"100%"},attrs:{border:"","max-height":"300",data:t.tableData2,"tooltip-effect":"dark"}},[e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box2"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(s){return["zh"===t.local?e("span",[t._v(t._s(s.row.countryNameZh?s.row.countryNameZh:"-"))]):e("span",[t._v(t._s(s.row.countryName?s.row.countryName:"-"))])]}}],null,!1,883805182)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))])])],1)],2),e("el-table-column",{attrs:{prop:"institutionName","show-overflow-tooltip":"",label:t.$t("softwareUpdates.box4"),width:"120"}},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box4"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box4")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box6")},scopedSlots:t._u([{key:"default",fn:function(s){return[s.row.id?e("span",[t._v(t._s(s.row.id?s.row.id:"-"))]):t._e(),s.row.institutionId?e("span",[t._v(t._s(s.row.institutionId?s.row.institutionId:"-"))]):t._e()]}}],null,!1,2253426976)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box6"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box6")))])])],1)],2),e("el-table-column",{attrs:{label:t.$t("softwareUpdates.box8"),"show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.statusDesc?s.row.statusDesc:"-"))])]}}],null,!1,1443835726)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box8"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box8")))])])],1)],2)],1)],1),e("div",{staticClass:"choose-right-bottom"},[e("el-pagination",{attrs:{size:"small","current-page":t.ruleForm2.currentPage2,"page-sizes":[100,200,300,500],"page-size":t.ruleForm2.pagesize2,layout:"total, sizes, prev, pager, next, jumper",total:t.ruleForm2.total2},on:{"size-change":t.handleSizeChange2,"current-change":t.handleCurrentChange2}})],1)])]):t._e(),2===t.ruleForm2.publishType?e("div",{staticClass:"choose-box"},[e("div",{staticClass:"choose-left"},[e("div",{staticClass:"choose-left-top"},[e("span",{staticClass:"title"},[t._v(t._s(t.$t("softwareUpdates.box9")))]),e("div",{staticClass:"uls"},[e("span",[t._v("SN")]),e("el-input",{staticStyle:{"margin-left":"20px"},attrs:{size:"small",placeholder:t.$t("softwareUpdates.placeholder1"),oninput:"value=value.replace(/[^a-zA-Z0-9-]/g,'')",maxlength:"5"},model:{value:t.ruleForm2.leftInputValuePrefix,callback:function(e){t.$set(t.ruleForm2,"leftInputValuePrefix",e)},expression:"ruleForm2.leftInputValuePrefix"}}),e("el-input",{staticStyle:{"margin-left":"20px"},attrs:{size:"small",maxlength:t.maxLengthSN,onkeyup:"value=value.replace(/[^\\d]/g,'')",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.leftInputValue3,callback:function(e){t.$set(t.ruleForm2,"leftInputValue3",e)},expression:"ruleForm2.leftInputValue3"}}),e("span",{staticStyle:{color:"#999",margin:"0 10px"}},[t._v("——")]),e("el-input",{attrs:{size:"small",maxlength:t.maxLengthSN,onkeyup:"value=value.replace(/[^\\d]/g,'')",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.leftInputValue4,callback:function(e){t.$set(t.ruleForm2,"leftInputValue4",e)},expression:"ruleForm2.leftInputValue4"}})],1),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.searchAllData(3)}}},[t._v(t._s(t.$t("tips.check")))])],1),e("div",{staticClass:"choose-left-main"},[e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{border:"","max-height":"300",data:t.tableData,"tooltip-effect":"dark"}},[e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box3"),width:"120"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.institution.institutionName?s.row.institution.institutionName:"-"))])]}}],null,!1,2385562702)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box3"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box3")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box2"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(s){return["zh"===t.local?e("span",[t._v(t._s(s.row.institution&&s.row.institution.user?s.row.institution.user.countryZh:"-"))]):e("span",[t._v(t._s(s.row.institution&&s.row.institution.user?s.row.institution.user.country:"-"))])]}}],null,!1,4050772876)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",width:"180",label:t.$t("softwareUpdates.box10")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row?s.row.type:"-"))])]}}],null,!1,356506712)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box10"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box10")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",width:"180",label:"SN"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row?s.row.deviceId:"-"))])]}}],null,!1,1979545205)}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box11")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.soft?s.row.soft.svn:"-"))])]}}],null,!1,4134478923)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box11"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box11")))])])],1)],2),e("el-table-column",{attrs:{label:t.$t("softwareUpdates.publish2")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",{staticStyle:{color:"#409EFF",cursor:"pointer"},on:{click:function(e){return t.toDeatils(s.row)}}},[t._v(t._s(t.$t("tips.detail")))])]}}],null,!1,3031653056)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.publish2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.publish2")))])])],1)],2)],1)],1),e("div",{staticClass:"choose-left-bottom"},[e("el-pagination",{attrs:{size:"small","current-page":t.ruleForm2.currentPage,"page-sizes":[100,200,300,500],"page-size":t.ruleForm2.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:t.ruleForm2.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)]),e("div",{staticClass:"choose-right",staticStyle:{"margin-left":"50px"}},[e("div",{staticClass:"choose-right-top"},[e("span",{staticClass:"title"},[t._v(t._s(t.$t("softwareUpdates.box12")))]),e("div",{staticClass:"uls"},[e("span",[t._v("SN")]),e("el-input",{attrs:{size:"small",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.rightInputValue5,callback:function(e){t.$set(t.ruleForm2,"rightInputValue5",e)},expression:"ruleForm2.rightInputValue5"}})],1),e("div",{staticClass:"uls"},[e("span",[t._v(t._s(t.$t("softwareUpdates.box13")))]),e("el-select",{attrs:{size:"small",placeholder:t.$t("tips.select")},model:{value:t.ruleForm2.selectValue,callback:function(e){t.$set(t.ruleForm2,"selectValue",e)},expression:"ruleForm2.selectValue"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.searchAllData(4)}}},[t._v(t._s(t.$t("tips.check")))])],1),e("div",{staticClass:"choose-right-main"},[e("el-table",{ref:"multipleTable2",staticStyle:{width:"100%"},attrs:{border:"","max-height":"300",data:t.tableData2,"tooltip-effect":"dark"}},[e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box3"),width:"120"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.institution.institutionName?s.row.institution.institutionName:"-"))])]}}],null,!1,2385562702)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box3"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box3")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box2"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(s){return["zh"===t.local?e("span",[t._v(t._s(s.row.institution&&s.row.institution.user?s.row.institution.user.countryZh:"-"))]):e("span",[t._v(t._s(s.row.institution&&s.row.institution.user?s.row.institution.user.country:"-"))])]}}],null,!1,4050772876)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",width:"180",label:t.$t("softwareUpdates.box10")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row?s.row.type:"-"))])]}}],null,!1,356506712)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box10"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box10")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",width:"180",label:"SN"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row?s.row.deviceId:"-"))])]}}],null,!1,1979545205)}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box8")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.statusDesc?s.row.statusDesc:"-"))])]}}],null,!1,1443835726)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box8"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box8")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box11")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.svn?s.row.svn:"-"))])]}}],null,!1,1261494414)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box11"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box11")))])])],1)],2),e("el-table-column",{attrs:{label:t.$t("softwareUpdates.publish2")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",{staticStyle:{color:"#409EFF",cursor:"pointer"},on:{click:function(e){return t.toDeatils(s.row)}}},[t._v(t._s(t.$t("tips.detail")))])]}}],null,!1,3031653056)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.publish2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.publish2")))])])],1)],2)],1)],1),e("div",{staticClass:"choose-right-bottom"},[e("el-pagination",{attrs:{size:"small","current-page":t.ruleForm2.currentPage2,"page-sizes":[100,200,300,500],"page-size":t.ruleForm2.pagesize2,layout:"total, sizes, prev, pager, next, jumper",total:t.ruleForm2.total2},on:{"size-change":t.handleSizeChange2,"current-change":t.handleCurrentChange2}})],1)])]):t._e()]):t._e(),t.isCheck?t._e():e("el-form",{ref:"updateForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm2,rules:t.rules2,"label-width":"120px"}},[e("el-form-item",{attrs:{label:t.$t("softwareUpdates.box18"),prop:"publishType"}},[e("el-radio-group",{on:{change:t.changeRadio},model:{value:t.ruleForm2.publishType,callback:function(e){t.$set(t.ruleForm2,"publishType",e)},expression:"ruleForm2.publishType"}},[t.isFormremoteUpgrade?t._e():e("el-radio",{attrs:{disabled:2!==t.status,label:1}},[t._v(t._s(t.$t("softwareUpdates.box19")))]),e("el-radio",{attrs:{disabled:2!==t.status,label:2}},[t._v(t._s(t.$t("softwareUpdates.box20")))])],1),""!==this.ruleForm2.publishType?e("div",{staticClass:"posi-btn"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.toShowLi}},[t._v(t._s(0===t.equipment.length?t.$t("softwareUpdates.table13"):`${t.$t("softwareUpdates.table13")}(${t.equipment.length})`))])],1):t._e()],1),""!==t.ruleForm2.publishType?e("div",[1===t.ruleForm2.publishType?e("div",{staticClass:"choose-box"},[e("div",{staticClass:"choose-left"},[e("div",{staticClass:"choose-left-top"},[e("span",{staticClass:"title"},[t._v(t._s(t.$t("softwareUpdates.box1")))]),e("div",{staticClass:"uls"},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))]),e("el-input",{attrs:{size:"small",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.leftInputValue,callback:function(e){t.$set(t.ruleForm2,"leftInputValue",e)},expression:"ruleForm2.leftInputValue"}})],1),e("div",{staticClass:"uls"},[e("span",[t._v(t._s(t.$t("softwareUpdates.box3")))]),e("el-input",{attrs:{size:"small",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.leftInputValue2,callback:function(e){t.$set(t.ruleForm2,"leftInputValue2",e)},expression:"ruleForm2.leftInputValue2"}})],1),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.searchAllData(1)}}},[t._v(t._s(t.$t("tips.check")))])],1),e("div",{staticClass:"choose-left-main"},[e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{border:"","max-height":"300",data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[e("el-table-column",{attrs:{type:"selection",width:"40"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box2"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(s){return["zh"===t.local?e("span",[t._v(t._s(s.row.user?s.row.user.countryZh:"-"))]):e("span",[t._v(t._s(s.row.user?s.row.user.country:"-"))])]}}],null,!1,2037704460)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box4"),"min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.institutionName?s.row.institutionName:"-"))])]}}],null,!1,3859223630)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box4"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box4")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"","min-width":"150",label:t.$t("softwareUpdates.box6")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.id?s.row.id:"-"))])]}}],null,!1,1645054862)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box6"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box6")))])])],1)],2)],1),e("div",{staticStyle:{"margin-top":"20px"}},[e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.toggleSelection()}}},[t._v(t._s(t.$t("tips.cancelSelect")))])],1)],1),e("div",{staticClass:"choose-left-bottom"},[e("el-pagination",{attrs:{size:"small","current-page":t.ruleForm2.currentPage,"page-sizes":[100,200,300,500],"page-size":t.ruleForm2.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:t.ruleForm2.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)]),e("div",{staticClass:"choose-btns"},[e("el-button",{staticStyle:{"margin-bottom":"50px"},attrs:{size:"small",type:"primary"},on:{click:t.pushAdd}},[t._v(t._s(t.$t("tips.add")))]),e("el-button",{staticStyle:{margin:"0"},attrs:{size:"small",type:"danger"},on:{click:t.remove}},[t._v(t._s(t.$t("tips.remove")))])],1),e("div",{staticClass:"choose-right"},[e("div",{staticClass:"choose-right-top"},[e("span",{staticClass:"title"},[t._v(t._s(t.$t("softwareUpdates.box7")))]),e("div",{staticClass:"uls"},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))]),e("el-input",{attrs:{size:"small",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.rightInputValue,callback:function(e){t.$set(t.ruleForm2,"rightInputValue",e)},expression:"ruleForm2.rightInputValue"}})],1),e("div",{staticClass:"uls"},[e("span",[t._v(t._s(t.$t("softwareUpdates.box3")))]),e("el-input",{attrs:{size:"small",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.rightInputValue2,callback:function(e){t.$set(t.ruleForm2,"rightInputValue2",e)},expression:"ruleForm2.rightInputValue2"}})],1),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.searchAllData(2)}}},[t._v(t._s(t.$t("tips.check")))])],1),e("div",{staticClass:"choose-right-main"},[1===t.ruleForm2.publishType?e("el-table",{ref:"multipleTable2",staticStyle:{width:"100%"},attrs:{border:"","max-height":"300",data:t.tableData2,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange2}},[e("el-table-column",{attrs:{selectable:t.handleDisable,type:"selection",width:"40"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box2"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(s){return["zh"===t.local?e("span",[t._v(t._s(s.row.countryNameZh?s.row.countryNameZh:"-"))]):e("span",[t._v(t._s(s.row.countryName?s.row.countryName:"-"))])]}}],null,!1,883805182)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box4"),width:"120"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.institutionName?s.row.institutionName:"-"))])]}}],null,!1,3859223630)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box4"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box4")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",width:"150",label:t.$t("softwareUpdates.box6")},scopedSlots:t._u([{key:"default",fn:function(s){return[s.row.id?e("span",[t._v(t._s(s.row.id?s.row.id:"-"))]):t._e(),s.row.institutionId?e("span",[t._v(t._s(s.row.institutionId?s.row.institutionId:"-"))]):t._e()]}}],null,!1,4255364384)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box6"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box6")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box8")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.statusDesc?s.row.statusDesc:"-"))])]}}],null,!1,1443835726)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box8"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box8")))])])],1)],2)],1):t._e(),e("div",{staticStyle:{"margin-top":"20px"}},[e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.toggleSelection2()}}},[t._v(t._s(t.$t("tips.cancelSelect")))])],1)],1),e("div",{staticClass:"choose-right-bottom"},[e("el-pagination",{attrs:{size:"small","current-page":t.ruleForm2.currentPage2,"page-sizes":[100,200,300,500],"page-size":t.ruleForm2.pagesize2,layout:"total, sizes, prev, pager, next, jumper",total:t.ruleForm2.total2},on:{"size-change":t.handleSizeChange2,"current-change":t.handleCurrentChange2}})],1)])]):t._e(),2===t.ruleForm2.publishType?e("div",{staticClass:"choose-box"},[e("div",{staticClass:"choose-left"},[e("div",{staticClass:"choose-left-top"},[e("span",{staticClass:"title"},[t._v(t._s(t.$t("softwareUpdates.box9")))]),e("div",{staticClass:"uls"},[e("span",[t._v("SN")]),e("el-input",{staticStyle:{"margin-left":"20px"},attrs:{size:"small",placeholder:t.$t("softwareUpdates.placeholder1"),oninput:"value=value.replace(/[^a-zA-Z0-9-]/g,'')",maxlength:"5"},model:{value:t.ruleForm2.leftInputValuePrefix,callback:function(e){t.$set(t.ruleForm2,"leftInputValuePrefix",e)},expression:"ruleForm2.leftInputValuePrefix"}}),e("el-input",{staticStyle:{"margin-left":"20px"},attrs:{size:"small",placeholder:t.$t("tips.input"),maxlength:t.maxLengthSN,onkeyup:"value=value.replace(/[^\\d]/g,'')"},model:{value:t.ruleForm2.leftInputValue3,callback:function(e){t.$set(t.ruleForm2,"leftInputValue3",e)},expression:"ruleForm2.leftInputValue3"}}),e("span",{staticStyle:{color:"#999",margin:"0 10px"}},[t._v("——")]),e("el-input",{attrs:{size:"small",placeholder:t.$t("tips.input"),maxlength:t.maxLengthSN,onkeyup:"value=value.replace(/[^\\d]/g,'')"},model:{value:t.ruleForm2.leftInputValue4,callback:function(e){t.$set(t.ruleForm2,"leftInputValue4",e)},expression:"ruleForm2.leftInputValue4"}})],1),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.searchAllData(3)}}},[t._v(t._s(t.$t("tips.check")))])],1),e("div",{staticClass:"choose-left-main"},[e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{border:"","max-height":"300",data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[e("el-table-column",{attrs:{selectable:t.handleDisable2,type:"selection",width:"40"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box3"),width:"120"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.institution?s.row.institution.institutionName:"-"))])]}}],null,!1,518681427)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box3"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box3")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box2"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(s){return["zh"===t.local?e("span",[t._v(t._s(s.row.institution&&s.row.institution.user?s.row.institution.user.countryZh:"-"))]):e("span",[t._v(t._s(s.row.institution&&s.row.institution.user?s.row.institution.user.country:"-"))])]}}],null,!1,4050772876)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",width:"180",label:t.$t("softwareUpdates.box10")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row?s.row.type:"-"))])]}}],null,!1,356506712)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box10"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box10")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",width:"180",label:"SN"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row?s.row.deviceId:"-"))])]}}],null,!1,1979545205)}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box11")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.soft?s.row.soft.svn:"-"))])]}}],null,!1,4134478923)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box11"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box11")))])])],1)],2),e("el-table-column",{attrs:{label:t.$t("softwareUpdates.publish2")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",{staticStyle:{color:"#409EFF",cursor:"pointer"},on:{click:function(e){return t.toDeatils(s.row)}}},[t._v(t._s(t.$t("tips.detail")))])]}}],null,!1,3031653056)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.publish2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.publish2")))])])],1)],2)],1),e("div",{staticStyle:{"margin-top":"20px"}},[e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.toggleSelection()}}},[t._v(t._s(t.$t("tips.cancelSelect")))])],1)],1),e("div",{staticClass:"choose-left-bottom"},[e("el-pagination",{attrs:{size:"small","current-page":t.ruleForm2.currentPage,"page-sizes":[100,200,300,500],"page-size":t.ruleForm2.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:t.ruleForm2.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)]),e("div",{staticClass:"choose-btns"},[e("el-button",{staticStyle:{"margin-bottom":"50px"},attrs:{size:"small",type:"primary"},on:{click:t.pushAdd}},[t._v(t._s(t.$t("tips.add")))]),e("el-button",{staticStyle:{margin:"0"},attrs:{size:"small",type:"danger"},on:{click:t.remove}},[t._v(t._s(t.$t("tips.remove")))])],1),e("div",{staticClass:"choose-right"},[e("div",{staticClass:"choose-right-top"},[e("span",{staticClass:"title"},[t._v(t._s(t.$t("softwareUpdates.box12")))]),e("div",{staticClass:"uls"},[e("span",[t._v("SN")]),e("el-input",{attrs:{size:"small",placeholder:t.$t("tips.input")},model:{value:t.ruleForm2.rightInputValue5,callback:function(e){t.$set(t.ruleForm2,"rightInputValue5",e)},expression:"ruleForm2.rightInputValue5"}})],1),e("div",{staticClass:"uls"},[e("span",[t._v(t._s(t.$t("softwareUpdates.box13")))]),e("el-select",{attrs:{size:"small",placeholder:t.$t("tips.select")},model:{value:t.ruleForm2.selectValue,callback:function(e){t.$set(t.ruleForm2,"selectValue",e)},expression:"ruleForm2.selectValue"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.searchAllData(4)}}},[t._v(t._s(t.$t("tips.check")))])],1),e("div",{staticClass:"choose-right-main"},[2===t.ruleForm2.publishType?e("el-table",{ref:"multipleTable2",class:[t.showClassName?"":"showBox"],staticStyle:{width:"100%"},attrs:{border:"","max-height":"300",data:t.tableData2,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange2}},[e("el-table-column",{attrs:{selectable:t.handleDisable,type:"selection",width:"40"}}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box3"),width:"120"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.institution?s.row.institution.institutionName:"-"))])]}}],null,!1,518681427)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box3"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box3")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box2"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(s){return["zh"===t.local?e("span",[t._v(t._s(s.row.institution&&s.row.institution.user?s.row.institution.user.countryZh:"-"))]):e("span",[t._v(t._s(s.row.institution&&s.row.institution.user?s.row.institution.user.country:"-"))])]}}],null,!1,4050772876)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box2")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",width:"180",label:t.$t("softwareUpdates.box10")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row?s.row.type:"-"))])]}}],null,!1,356506712)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box10"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box10")))])])],1)],2),e("el-table-column",{attrs:{"show-overflow-tooltip":"",width:"180",label:"SN"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row?s.row.deviceId:"-"))])]}}],null,!1,1979545205)}),e("el-table-column",{attrs:{"show-overflow-tooltip":"",label:t.$t("softwareUpdates.box8")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.statusDesc?s.row.statusDesc:"-"))])]}}],null,!1,1443835726)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box8"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box8")))])])],1)],2),e("el-table-column",{attrs:{label:t.$t("softwareUpdates.publish2")},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",{staticStyle:{color:"#409EFF",cursor:"pointer"},on:{click:function(e){return t.toDeatils(s.row)}}},[t._v(t._s(t.$t("tips.detail")))])]}}],null,!1,3031653056)},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.publish2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.publish2")))])])],1)],2)],1):t._e(),e("div",{staticStyle:{"margin-top":"20px"}},[e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.toggleSelection2()}}},[t._v(t._s(t.$t("tips.cancelSelect")))])],1)],1),e("div",{staticClass:"choose-right-bottom"},[e("el-pagination",{attrs:{size:"small","current-page":t.ruleForm2.currentPage2,"page-sizes":[100,200,300,500],"page-size":t.ruleForm2.pagesize2,layout:"total, sizes, prev, pager, next, jumper",total:t.ruleForm2.total2},on:{"size-change":t.handleSizeChange2,"current-change":t.handleCurrentChange2}})],1)])]):t._e()]):t._e(),e("el-form-item",{staticStyle:{"text-align":"center","margin-top":"20px"}},[t.isFormremoteUpgrade?t._e():e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.resetForm("updateForm")}}},[t._v(t._s(t.$t("tips.back")))]),t.isFormremoteUpgrade?e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.resetForm2("updateForm")}}},[t._v(t._s(t.$t("tips.cancel")))]):t._e(),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.submitForm2("updateForm")}}},[t._v(t._s(t.isFormremoteUpgrade?t.$t("softwareUpdates.publish3"):t.$t("softwareUpdates.publish4")))])],1)],1)],1):t._e()]),e("el-dialog",{attrs:{title:t.$t("softwareUpdates.dialogTitle"),visible:t.dialogTableVisible},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[e("el-table",{attrs:{border:"",data:t.gridData}},[e("el-table-column",{attrs:{label:t.$t("softwareUpdates.dialogTable1"),width:"160"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.gmtCreate?s.row.gmtCreate:"-"))])]}}])},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.dialogTable1"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.dialogTable1")))])])],1)],2),e("el-table-column",{attrs:{label:t.$t("softwareUpdates.table11"),width:"120"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.version?s.row.version:"-"))])]}}])},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.table11"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.table11")))])])],1)],2),e("el-table-column",{attrs:{property:"address",label:t.$t("softwareUpdates.dialogTable2")}},[t._v(t._s(t.$t("softwareUpdates.dialogTable4"))+" "),e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.dialogTable2"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.dialogTable2")))])])],1)],2),e("el-table-column",{attrs:{label:t.$t("softwareUpdates.box13")},scopedSlots:t._u([{key:"default",fn:function(s){return[100!==s.row.status?e("span",[t._v(t._s(t.$t("softwareUpdates.failure8")))]):t._e(),100===s.row.status?e("span",[t._v(t._s(t.$t("softwareUpdates.failure1")))]):t._e()]}}])},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.box13"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.box13")))])])],1)],2),e("el-table-column",{attrs:{label:t.$t("softwareUpdates.dialogTable3")},scopedSlots:t._u([{key:"default",fn:function(s){return[100!==s.row.status?e("span",[t._v(t._s(s.row.failure?s.row.failure:"-"))]):t._e(),100===s.row.status?e("span",[t._v("-")]):t._e()]}}])},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.dialogTable3"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.dialogTable3")))])])],1)],2)],1)],1),e("el-dialog",{attrs:{title:t.$t("softwareUpdates.dialogTitle2"),visible:t.centerDialogVisible},on:{close:t.close,"update:visible":function(e){t.centerDialogVisible=e}}},[e("div",[e("h3",{staticClass:"dislog-sum"},[t._v(t._s(t.$t("softwareUpdates.sum"))+" "+t._s(t.tableDatattt.length)+" "+t._s(t.$t("softwareUpdates.data")))]),e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.tableDatattt}},[e("el-table-column",{attrs:{label:t.$t("softwareUpdates.dialogTable5"),width:"80",type:"index"}},[e("template",{slot:"header"},[e("el-tooltip",{attrs:{content:t.$t("softwareUpdates.dialogTable5"),placement:"top"}},[e("span",[t._v(t._s(t.$t("softwareUpdates.dialogTable5")))])])],1)],2),e("el-table-column",{attrs:{prop:"deviceId",label:"SN","min-width":"120"}}),t.$route.query.isCheck||2!==t.status||t.isFormremoteUpgrade?t._e():e("el-table-column",{attrs:{label:t.$t("softwareUpdates.dialogTable6"),"min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){return t.handleClick(s.$index)}}},[t._v(t._s(t.$t("softwareUpdates.dialogTable7")))])]}}],null,!1,1587007633)})],1),t.$route.query.isCheck||2!==t.status||t.isFormremoteUpgrade?t._e():e("div",{staticClass:"mt-20"},[e("el-input",{attrs:{placeholder:t.$t("tips.input"),maxlength:"20",clearable:""},model:{value:t.diaLogtextarea,callback:function(e){t.diaLogtextarea=e},expression:"diaLogtextarea"}})],1)],1),t.$route.query.isCheck||2!==t.status||t.isFormremoteUpgrade?t._e():e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.close}},[t._v(t._s(t.$t("tips.cancel")))]),e("el-button",{attrs:{type:"primary"},on:{click:t.submitLWData}},[t._v(t._s(t.$t("tips.sure")))])],1)])],1)},l=[],o=(s("d9e2"),s("13d5"),s("b893")),i=s("8237"),r=s.n(i),n=s("d2b8"),u=s("fd03"),p={data(){var t=(t,e,s)=>""===e?s(new Error(this.$t("softwareUpdates.rulsTips1"))):e.length<3||e.length>30?s(new Error(this.$t("softwareUpdates.rulsTips2"))):this.checkSpecialKeyRule(e)?s():s(new Error(this.$t("softwareUpdates.rules1")));return{onecpap:s("dd82")(`./${this.$OEM}/one-cpap.png`),onebpap:s("9a6b")(`./${this.$OEM}/one-bpap.png`),tow:s("51cc")(`./${this.$OEM}/tow.png`),maxLengthSN:6,isNeedRequest:!0,updateOption:[],updateOptionsfot:[],updateOption2:[],isCheck:!1,active:1,ruleForm:{name:"",models:"",resource:"",svn:["all"],svnDesc:"",update:"",desc:"",uplateTemplate:"",mechanism:""},rules:{name:[{required:!0,validator:t,trigger:"blur"}],svn:[{required:!0,message:this.$t("softwareUpdates.rulsTips5"),trigger:"change"}],update:[{required:!0,message:this.$t("softwareUpdates.rulsTips6"),trigger:"change"}],desc:[{required:!0,message:this.$t("softwareUpdates.rulsTips7"),trigger:"blur"}],uplateTemplate:[{required:!0,message:this.$t("softwareUpdates.rulsTips8"),trigger:"blur"}],mechanism:[{required:!0,message:this.$t("softwareUpdates.rulsTips9"),trigger:"change"}]},local:"zh",dataList:[{title:this.$t("softwareUpdates.table1"),value:"",show:!0},{title:this.$t("softwareUpdates.table3"),value:"",show:!0},{title:this.$t("softwareUpdates.table16"),value:"",show:!0},{title:this.$t("softwareUpdates.table5"),value:"",show:!0},{title:this.$t("softwareUpdates.table14"),value1:"",value2:"",show:!0},{title:this.$t("softwareUpdates.table15"),value:"",show:!0},{title:this.$t("softwareUpdates.table6"),value:"",show:!0},{title:this.$t("softwareUpdates.table7"),value:"",show:!0},{title:this.$t("softwareUpdates.table17"),value:"",show:!1},{title:this.$t("softwareUpdates.table18"),value:"",show:!1}],ruleForm2:{publishType:"",leftInputValuePrefix:"",leftInputValue:"",leftInputValue2:"",leftInputValue3:"",leftInputValue4:"",currentPage:1,pagesize:500,pagesize2:500,rightInputValue:"",rightInputValue2:"",currentPage2:1,total2:0,total:0,selectValue:"",rightInputValue3:"",rightInputValue4:"",rightInputValue5:""},options:[{value:3,label:this.$t("softwareUpdates.option1")},{value:1,label:this.$t("softwareUpdates.option2")},{value:4,label:this.$t("softwareUpdates.option3")},{value:2,label:this.$t("softwareUpdates.option4")}],rules2:{publishType:[{required:!0,message:this.$t("softwareUpdates.rulsTips10"),trigger:"change"}]},oldData:[],oldData2:[],selectTableDataRight:[],tableData:[],tableData2:[],multipleSelection:[],multipleSelection2:[],gridData:[],dialogTableVisible:!1,equipment:[],centerDialogVisible:!1,tableDatattt:[],LwList:[],diaLogtextareaList:[],diaLogtextarea:"",showSN:!1,showBJ:!1,BJObj:{},isFormremoteUpgrade:!1,strategyId:"",status:2,selectUpdateOptionObj:{},showClassName:!0,restaurants:[],selectrestaurants:[],token:localStorage.getItem("token")}},created(){this.$route.query.id?(this.status=Number(this.$route.query.status)||2,this.isFormremoteUpgrade=this.$route.query.isFormremoteUpgrade,this.showBJ=!0,this.strategyId=this.$route.query.id,Object(u["mg"])({id:this.$route.query.id,locale:"zh"}).then(async t=>{if(this.BJObj=t.data,this.handleData(this.BJObj.softId),this.BJObj.excludeDeviceList.length>0){let t=[];this.BJObj.excludeDeviceList.forEach(e=>{t.push({deviceId:e})}),this.tableDatattt=this.equipment=t}if(this.dataList[0].value=this.ruleForm.name=t.data.name,this.dataList[6].value=this.ruleForm.desc=t.data.introduction,this.dataList[7].value=this.ruleForm.uplateTemplate=t.data.content,this.dataList[8].value=t.data.force?this.$t("softwareUpdates.box16"):this.$t("softwareUpdates.box15"),this.dataList[9].value=1===t.data.publishType?this.$t("softwareUpdates.box19"):this.$t("softwareUpdates.box20"),this.ruleForm.update=t.data.softId,"all"===t.data.svnScope[0])this.ruleForm.svn=t.data.svnScope;else{let e=t.data.svnScope.map(t=>Number(t));this.ruleForm.svn=e}this.ruleForm.mechanism=t.data.force,this.ruleForm2.publishType=t.data.publishType,1===t.data.publishType?await this.getpostListAllJG():await this.getpostListAllSNData(),1===t.data.publishType?this.getpostListAllJGCloudData():this.getpostListAllSNCloudData(),this.$route.query.isCheck&&(this.isCheck=this.$route.query.isCheck,this.dataList[9].show=this.dataList[8].show=!0,this.dataList.push({title:this.$t("softwareUpdates.box14"),value:t.data.force?this.$t("softwareUpdates.box16"):this.$t("softwareUpdates.box15")},{title:this.$t("softwareUpdates.box18"),value:1===t.data.publishType?this.$t("softwareUpdates.box19"):this.$t("softwareUpdates.box20")}),1===Number(t.data.publishType)&&Object(u["Of"])({strategyId:this.strategyId,page:{showCount:this.ruleForm2.pageSize,currentPage:this.ruleForm2.currentPage}}).then(t=>{let e=t.data.data.map(t=>{let e={institution:t.institution,soft:t.soft,...t.inventory};return e});if(this.LwList=e.filter(t=>t.institution),this.BJObj.excludeDeviceList.length>0){let t=[];this.BJObj.excludeDeviceList.forEach(e=>{t.push({deviceId:e})}),this.tableDatattt=this.equipment=t}this.restaurants=t.data.data.filter(t=>t.institution)})),this.isFormremoteUpgrade&&(this.dataList[8].show=!0)})):(this.showBJ=!1,this.getpostListAllSNData()),this.$route.query.active&&(this.active=Number(this.$route.query.active)),this.dataList[2].show=!this.isFormremoteUpgrade},beforeRouteEnter(t,e,s){s(t=>{"/remoteUpgrade"===e.path&&(t.active=2,t.showSN=!0,t.ruleForm2.publishType=2)})},mounted(){setTimeout(()=>{this.postListData(),(this.$route.query.isCheck||this.$route.query.isFormremoteUpgrade)&&this.getListAffectData()},300);let t=localStorage.getItem("locale");this.local=t?localStorage.getItem("locale"):"zh"},watch:{tableData2:{handler(t){t&&t.length>0&&(this.showClassName=t.some(t=>2!==t.status||7!==t.status))},immediate:!0,deep:!0},"ruleForm.svn":function(t,e){let s=t.indexOf("all"),a=e.indexOf("all");-1!=s&&-1==a&&t.length>1?this.ruleForm.svn=["all"]:-1!=s&&-1!=a&&t.length>1&&this.ruleForm.svn.splice(t.indexOf("all"),1)}},methods:{changeValueAuto(t){let e=t.split(";"),s=e.findIndex(t=>t.length!==this.maxLengthSN+5);s>-1&&this.selectrestaurants.splice(s,1)},handleSelect(t){if(0===this.selectrestaurants.length)this.selectrestaurants.push(t.deviceId);else{let e=this.selectrestaurants.some(e=>e===t.deviceId);e||this.selectrestaurants.push(t.deviceId)}let e="";this.selectrestaurants.forEach(t=>{e+=t+";"}),this.diaLogtextarea=e.substring(0,e.length-1)},querySearch(t,e){let s=this.restaurants.map(t=>(t.deviceId||(t.deviceId=t.inventory.deviceId),t)),a=[];if(this.tableData2.length>0&&1===this.ruleForm2.publishType){this.tableData2.forEach(t=>{s.forEach(e=>{t.institution&&e.institution&&t.institution.id===e.institution.id&&a.push(e)})});let t={};a=a.reduce((e,s)=>(!t[s.deviceId]&&(t[s.deviceId]=e.push(s)),e),[])}else a=s;let l=this.segmentation(t,[";",",","，","。","\n"]),o=l?a.filter(this.createFilter(l)):a;e(o)},segmentation(t,e){return e.map(e=>{t=t.slice(t.lastIndexOf(e)+1)}),t},createFilter(t){return e=>e.deviceId.toLowerCase().indexOf(t.toLowerCase())>-1},checkSpecialKeyRule(t){let e="[`@~!#$^&*()=|{}':;'\\[\\].<>/?~！%#￥……&*（）——|{}【】‘；：”“'。，、？]‘'";for(let s=0;s<t.length;s++)if(-1!=e.indexOf(t.substr(s,1)))return!1;return!0},handleData(t){let e=this.updateOption.filter(e=>e.id===Number(t)),s={...e[0]};s.packetSizeDesc=(s.packetSize/1024/1024).toFixed(1),s.languageVersionDesc="matchLanguage."+s.languageVersion;let a=String(s.hardwareVersion).substring(0,2),l="";switch(a){case"10":case"11":l=this.$t("manufacturer.hardwareVersionDesc1");break;case"12":l=this.$t("manufacturer.hardwareVersionDesc2");break}switch(this.BJObj.customVersionDesc=o["a"].matchCustomVersionType(s.customVersion),this.BJObj.customVersionDesc){case"onecpap":this.BJObj.customVersionDescUrl=this.onecpap;break;case"onebpap":this.BJObj.customVersionDescUrl=this.onebpap;break;case"tow":this.BJObj.customVersionDescUrl=this.tow;break}this.ruleForm.resource=s.customVersion,this.ruleForm.models=s.hardwareVersionDesc=l,this.dataList[0].value=this.ruleForm.name,this.dataList[1].value=l,this.dataList[2].value=s.customVersion,this.dataList[4].value1=s.version,this.dataList[4].value2=s.svn,this.dataList[4].value3=s.languageVersionDesc,this.dataList[5].value=(s.packetSize/1024/1024).toFixed(1),this.selectUpdateOptionObj=s},changeValue(t){this.handleData(t),this.changeRadioMe()},getListAffectData(){Object(u["Mf"])({softId:this.ruleForm.update,force:this.ruleForm.mechanism}).then(t=>{"00000"===t.status&&(t.data.length>0&&t.data.forEach(t=>{t.descLocale="svn:"+t.svn+"+"+t.languageVersion}),this.updateOptionsfot=t.data,this.$route.query.id?(this.dataList[3].value="","all"===this.BJObj.svnScope[0]?this.dataList[3].value=this.$t("tips.all"):(this.BJObj.svnScope.forEach(e=>{t.data.forEach(t=>{Number(e)===t.id&&(this.dataList[3].value+=t.descLocale+"、")})}),this.dataList[3].value=this.dataList[3].value.substr(0,this.dataList[3].value.length-1))):this.ruleForm.svn=["all"])})},changeRadioMe(t){this.ruleForm.svn=[],this.getListAffectData()},postListChildrenData(t){Object(u["Tf"])({id:t}).then(t=>{t.data.forEach(t=>{let e=4===this.status||5===this.status||6===this.status?t.preStatus:t.status;switch(e){case 1:t.statusDesc=this.$t("tips.option2");break;case 2:t.statusDesc=this.$t("tips.option3");break;case 3:t.statusDesc=this.$t("tips.option5");break;case 4:t.statusDesc=this.$t("tips.option4");break;case 5:t.statusDesc=this.$t("tips.option6");break;case 6:t.statusDesc=this.$t("tips.option7");break}this.tableData2.forEach(e=>{e.id===t.ownerId&&(e.status=t.status,e.preStatus=t.preStatus,this.$set(e,"statusDesc",t.statusDesc))}),this.oldData2.forEach(e=>{e.id===t.ownerId&&(e.status=t.status,e.preStatus=t.preStatus,this.$set(e,"statusDesc",t.statusDesc))}),this.oldData.forEach(e=>{e.id===t.ownerId&&(e.status=t.status,e.preStatus=t.preStatus,this.$set(e,"statusDesc",t.statusDesc))})})})},postTaskData(t){Object(u["vg"])({strategyId:t}).then(t=>{t.data.length>0&&t.data.forEach(t=>{switch(t.status){case 1:t.statusDesc=this.$t("softwareUpdates.statusSetDesc1");break;case 2:t.statusDesc=this.$t("softwareUpdates.statusSetDesc2");break;case 3:t.statusDesc=this.$t("softwareUpdates.statusSetDesc3");break;case 4:t.statusDesc=this.$t("softwareUpdates.statusSetDesc4");break;case 5:t.statusDesc=this.$t("softwareUpdates.statusSetDesc5");break;case 6:t.statusDesc=this.$t("softwareUpdates.statusSetDesc6");break;case 7:t.statusDesc=this.$t("softwareUpdates.statusSetDesc7");break;case 8:t.statusDesc=this.$t("softwareUpdates.statusSetDesc8");break;case 9:t.statusDesc=this.$t("softwareUpdates.statusSetDesc9");break}this.tableData2.forEach(e=>{e.deviceId===t.deviceId&&(e.status=t.status,e.taskId=t.id,this.$set(e,"statusDesc",t.statusDesc))}),this.oldData2.forEach(e=>{e.deviceId===t.deviceId&&(e.status=t.status,e.taskId=t.id,this.$set(e,"statusDesc",t.statusDesc))}),this.oldData.forEach(e=>{e.deviceId===t.deviceId&&(e.status=t.status,e.taskId=t.id,this.$set(e,"statusDesc",t.statusDesc))})})})},searchAllData(t){1===t?this.getpostListAllJG():2===t?this.$route.query.id&&this.getpostListAllJGCloudData():3===t?this.getpostListAllSNData():this.$route.query.id&&this.getpostListAllSNCloudData()},changeRadio(t){this.ruleForm2.leftInputValue=this.ruleForm2.leftInputValue2=this.ruleForm2.rightInputValue=this.ruleForm2.rightInputValue2=this.ruleForm2.leftInputValue3=this.ruleForm2.leftInputValue4=this.ruleForm2.rightInputValue5=this.ruleForm2.selectValue="",this.selectTableDataRight=this.multipleSelection2=this.oldData2=this.tableData2=[],this.showClassName=!0,1===t?this.getpostListAllJG():this.getpostListAllSNData(),this.$route.query.id&&(1===t?this.getpostListAllJGCloudData():this.getpostListAllSNCloudData())},getpostListAllSNData(){let t,e=this.ruleForm2.leftInputValue3?Number(this.ruleForm2.leftInputValue3):0,s=this.ruleForm2.leftInputValue4?Number(this.ruleForm2.leftInputValue4):0;0===e&&0!==s&&(e=s),0===s&&0!==e&&(s=e),e>s&&(t=s,s=e,e=t),Object(u["Of"])({prefix:this.ruleForm2.leftInputValuePrefix.toLocaleUpperCase(),suffixStart:0===e?"":e,suffixEnd:0===s?"":s,strategyId:this.strategyId,page:{showCount:this.ruleForm2.pagesize,currentPage:this.ruleForm2.currentPage}}).then(t=>{this.ruleForm2.total=t.data.page.totalResult;let e=t.data.data.map(t=>{let e={institution:t.institution,soft:t.soft,...t.inventory};return e});if(e.forEach(t=>{delete t.status,t.show=!0}),this.LwList=this.oldData=this.tableData=e,this.showBJ){if(this.tableData.forEach(t=>{switch(t.status){case 1:t.statusDesc=this.$t("softwareUpdates.statusSetDesc1");break;case 2:t.statusDesc=this.$t("softwareUpdates.statusSetDesc2");break;case 3:t.statusDesc=this.$t("softwareUpdates.statusSetDesc3");break;case 4:t.statusDesc=this.$t("softwareUpdates.statusSetDesc4");break;case 5:t.statusDesc=this.$t("softwareUpdates.statusSetDesc5");break;case 6:t.statusDesc=this.$t("softwareUpdates.statusSetDesc6");break;case 7:t.statusDesc=this.$t("softwareUpdates.statusSetDesc7");break;case 8:t.statusDesc=this.$t("softwareUpdates.statusSetDesc8");break;case 9:t.statusDesc=this.$t("softwareUpdates.statusSetDesc9");break}}),this.BJObj.excludeDeviceList.length>0){let t=[];this.BJObj.excludeDeviceList.forEach(e=>{t.push({deviceId:e})}),this.tableDatattt=this.equipment=t}this.postTaskData(this.$route.query.id)}this.restaurants=e})},getpostListAllJGCloudData(){Object(u["Uf"])({strategyId:this.strategyId,locale:this.local,country:this.ruleForm2.rightInputValue,institutionName:this.ruleForm2.rightInputValue2,page:{showCount:this.ruleForm2.pagesize2,currentPage:this.ruleForm2.currentPage2}}).then(t=>{t.data.data.forEach(t=>{let e=4===this.status||5===this.status||6===this.status?t.preStatus:t.status;switch(e){case 1:t.statusDesc=this.$t("tips.option2");break;case 2:t.statusDesc=this.$t("tips.option3");break;case 3:t.statusDesc=this.$t("tips.option5");break;case 4:t.statusDesc=this.$t("tips.option4");break;case 5:t.statusDesc=this.$t("tips.option6");break;case 6:t.statusDesc=this.$t("tips.option7");break}}),this.tableData2=this.oldData=t.data.data,this.ruleForm2.total2=t.data.page.totalResult})},getpostListAllSNCloudData(){let t=[];switch(this.ruleForm2.selectValue){case 1:t=[3,8];break;case 2:t=[1,6];break;case 3:t=[4,9];break;case 4:t=[2,7];break}Object(u["Pf"])({strategyId:this.strategyId,deviceId:this.ruleForm2.rightInputValue5,status:t,page:{showCount:this.ruleForm2.pagesize2,currentPage:this.ruleForm2.currentPage2}}).then(t=>{t.data.data.forEach(t=>{switch(t.institution={user:{country:t.countryName,countryZh:t.countryNameZh},institutionName:t.institutionName},t.status){case 1:t.statusDesc=this.$t("softwareUpdates.statusSetDesc1");break;case 2:t.statusDesc=this.$t("softwareUpdates.statusSetDesc2");break;case 3:t.statusDesc=this.$t("softwareUpdates.statusSetDesc3");break;case 4:t.statusDesc=this.$t("softwareUpdates.statusSetDesc4");break;case 5:t.statusDesc=this.$t("softwareUpdates.statusSetDesc5");break;case 6:t.statusDesc=this.$t("softwareUpdates.statusSetDesc6");break;case 7:t.statusDesc=this.$t("softwareUpdates.statusSetDesc7");break;case 8:t.statusDesc=this.$t("softwareUpdates.statusSetDesc8");break;case 9:t.statusDesc=this.$t("softwareUpdates.statusSetDesc9");break}}),this.tableData2=this.oldData2=t.data.data,this.ruleForm2.total2=t.data.page.totalResult})},getpostListAllJG(){Object(u["Nf"])({locale:this.local,country:this.ruleForm2.leftInputValue,institutionName:this.ruleForm2.leftInputValue2,page:{showCount:this.ruleForm2.pagesize2,currentPage:this.ruleForm2.currentPage2}}).then(t=>{t.data.data.forEach(t=>{t.institution={id:t.id},t.show=!0,delete t.status,t.countryName=t.user.country,t.countryNameZh=t.user.countryZh,t.institutionId=t.id,t.institutionName||(t.institutionName="")}),this.oldData=this.tableData=t.data.data,this.ruleForm2.total=t.data.page.totalResult,this.showBJ&&(this.tableData.forEach(t=>{switch(t.status){case 1:t.statusDesc=this.$t("softwareUpdates.statusDesc1");break;case 2:t.statusDesc=this.$t("softwareUpdates.statusDesc2");break;case 3:t.statusDesc=this.$t("softwareUpdates.statusDesc3");break;case 4:t.statusDesc=this.$t("softwareUpdates.statusDesc4");break}}),this.postListChildrenData(this.$route.query.id))})},postListData(){let t={timestamp:(new Date).getTime()},e=Object(n["e"])(t)+"1613ca0007f617b191cd0f8bac84f91460b21a62",s=r()(e);t.sign=s,Object(u["Qf"])(t).then(t=>{t.data.forEach(t=>{t.descLocale="svn:"+t.svn+"+"+t.languageVersion}),this.updateOption=t.data,(this.$route.query.isCheck||this.$route.query.isFormremoteUpgrade)&&(this.dataList[3].value="","all"===this.BJObj.svnScope[0]?this.dataList[3].value=this.$t("tips.all"):(this.BJObj.svnScope.forEach(e=>{t.data.forEach(t=>{Number(e)===t.id&&(this.dataList[3].value+=t.descLocale+"、")})}),this.dataList[3].value=this.dataList[3].value.substr(0,this.dataList[3].value.length-1))),this.$route.query.id&&(this.handleData(this.BJObj.softId),this.getListAffectData())})},handleDisable2(t,e){if(this.BJObj.excludeDeviceList&&this.BJObj.excludeDeviceList.length>0&&2===this.ruleForm2.publishType){let e=!this.BJObj.excludeDeviceList.some(e=>e===t.deviceId);return e}return!0},handleDisable(t,e){return 2===this.ruleForm2.publishType?2!==t.status&&7!==t.status:!!this.isFormremoteUpgrade||2!==t.preStatus},handleClick(t){this.$confirm(this.$t("softwareUpdates.deleteTips"),this.$t("softwareUpdates.tips"),{confirmButtonText:this.$t("tips.sure"),cancelButtonText:this.$t("tips.cancel"),type:"warning"}).then(()=>{this.tableDatattt.splice(t,1),this.equipment.splice(t,1),this.$message({type:"success",message:this.$t("tips.success")})}).catch(()=>{})},close(){this.centerDialogVisible=!1,this.diaLogtextarea="",this.selectrestaurants=[]},submitLWData(){if(""===this.diaLogtextarea)return;let t=[];this.tableData2.length>0&&1===this.ruleForm2.publishType&&this.tableData2.forEach(e=>{e.institution&&t.push(e.institution.id)}),Object(u["tf"])({deviceId:this.diaLogtextarea.toLocaleUpperCase(),institutionList:t}).then(t=>{t.data&&"00000"===t.status?this.handlerData(this.diaLogtextarea):this.$message.error(this.$t("tips.fail"))})},handlerData(t){this.ruleForm2.leftInputValuePrefix=t.substring(0,5),this.ruleForm2.leftInputValue3=t.substring(5,t.length);let e=this.ruleForm2.leftInputValue3?Number(this.ruleForm2.leftInputValue3):0,s=this.ruleForm2.leftInputValue4?Number(this.ruleForm2.leftInputValue4):0;0===e&&0!==s&&(e=s),0===s&&0!==e&&(s=e),Object(u["Of"])({prefix:this.ruleForm2.leftInputValuePrefix.toLocaleUpperCase(),suffixStart:0===e?"":e,suffixEnd:0===s?"":s,strategyId:this.strategyId,page:{showCount:15,currentPage:1}}).then(e=>{this.ruleForm2.leftInputValuePrefix=this.ruleForm2.leftInputValue4=this.ruleForm2.leftInputValue3="";let s=e.data.data[0];2===s.status||7===s.status?this.$message.error(this.$t("softwareUpdates.errorTips")):(0===this.tableDatattt.length?(this.tableDatattt.push({id:s.id,deviceId:s.inventory.deviceId,institutionId:s.institutionId,institution:s.institution}),this.equipment.push({id:s.id,deviceId:s.inventory.deviceId,institutionId:s.institutionId,institution:s.institution})):this.tableDatattt.some(e=>e.deviceId===t.toLocaleUpperCase())?this.$message.error(this.$t("softwareUpdates.errorTips2")):(this.tableDatattt.push({id:s.id,deviceId:s.inventory.deviceId,institutionId:s.institutionId,institution:s.institution}),this.equipment.push({id:s.id,deviceId:s.inventory.deviceId,institutionId:s.institutionId,institution:s.institution})),this.diaLogtextarea="",this.selectrestaurants=[])});let a={};this.tableDatattt=this.tableDatattt.reduce((t,e)=>(!a[e.deviceId]&&(a[e.deviceId]=t.push(e)),t),[]);let l={};this.equipment=this.equipment.reduce((t,e)=>(!l[e.deviceId]&&(l[e.deviceId]=t.push(e)),t),[])},toShowLi(){this.centerDialogVisible=!0},toDeatils(t){Object(u["Vf"])({deviceId:t.deviceId}).then(t=>{"00000"===t.status?(this.dialogTableVisible=!0,t.data.forEach(t=>{switch(t.gmtCreate&&(t.gmtCreate=this.$moment(t.gmtCreate).tz(this.$moment.tz.guess()).format("YYYY-MM-DD HH:mm:ss")),t.status){case 1:t.statusDesc=this.$t("softwareUpdates.statusDesc1");break;case 2:t.statusDesc=this.$t("softwareUpdates.statusDesc2");break;case 3:t.statusDesc=this.$t("softwareUpdates.statusDesc3");break;case 4:t.statusDesc=this.$t("softwareUpdates.statusDesc4");break}switch(t.status){case 100:t.failure=this.$t("softwareUpdates.failure1");break;case 101:t.failure=this.$t("softwareUpdates.failure2");break;case 102:t.failure=this.$t("softwareUpdates.failure3");break;case 103:t.failure=this.$t("softwareUpdates.failure4");break;case 104:t.failure=this.$t("softwareUpdates.failure5");break;case 105:t.failure=this.$t("softwareUpdates.failure6");break;case 106:t.failure=this.$t("softwareUpdates.failure7");break;case 107:t.failure=this.$t("softwareUpdates.failure8");break;default:t.failure=this.$t("softwareUpdates.failure9");break}}),this.gridData=t.data):this.$message.error(this.$t("tips.fail"))})},remove(){if(0===this.multipleSelection2.length)return this.$message.error(this.$t("softwareUpdates.errorTips3"));if(this.$route.query.id){let t=[];this.multipleSelection2.forEach(e=>{t.push(1===this.ruleForm2.publishType?e.institutionId:e.deviceId)});let e=1===this.ruleForm2.publishType?this.$t("softwareUpdates.confirmName4"):this.$t("softwareUpdates.confirmName2");this.$confirm(`${this.$t("softwareUpdates.confirmName")} ${this.multipleSelection2.length} ${e}`,this.$t("tips.tips"),{confirmButtonText:this.$t("tips.sure"),cancelButtonText:this.$t("tips.cancel"),type:"warning"}).then(()=>{Object(u["jf"])({strategyId:this.strategyId,publishType:this.ruleForm2.publishType,selectedScope:t}).then(t=>{"00000"===t.status&&(1===this.ruleForm2.publishType?this.getpostListAllJGCloudData():this.getpostListAllSNCloudData(),this.$message({type:"success",message:this.$t("tips.success")}))})}).catch(()=>{})}else{this.selectTableDataRight.forEach(t=>{t.showRight=!this.multipleSelection2.some(e=>t.id===e.id)});let t=this.tableData2.filter(t=>t.showRight);this.selectTableDataRight=t,this.tableData2.forEach(t=>{t.showRight=!this.multipleSelection2.some(e=>t.id===e.id)});let e=this.tableData2.filter(t=>t.showRight);this.tableData2=e,this.ruleForm2.total2=e.length}},pushAdd(){if(0!==this.multipleSelection.length)if(this.$route.query.id){let t=[];this.multipleSelection.forEach(e=>{t.push(1===this.ruleForm2.publishType?e.institutionId:e.deviceId)});let e=1===this.ruleForm2.publishType?this.$t("softwareUpdates.confirmName4"):this.$t("softwareUpdates.confirmName2");this.$confirm(`${this.$t("softwareUpdates.confirmName3")} ${this.multipleSelection.length} ${e}`,this.$t("tips.tips"),{confirmButtonText:this.$t("tips.sure"),cancelButtonText:this.$t("tips.cancel"),type:"warning"}).then(()=>{Object(u["bf"])({strategyId:this.strategyId,publishType:this.ruleForm2.publishType,selectedScope:t}).then(t=>{"00000"===t.status&&(1===this.ruleForm2.publishType?this.getpostListAllJGCloudData():this.getpostListAllSNCloudData(),this.$message({type:"success",message:this.$t("tips.success")}))})}).catch(()=>{})}else{let t=[...this.multipleSelection,...this.selectTableDataRight],e={};t=t.reduce((t,s)=>(!e[s.id]&&(e[s.id]=t.push(s)),t),[]),this.selectTableDataRight=this.tableData2=t,this.ruleForm2.total2=this.tableData2.length}},toggleSelection(t){t?t.forEach(t=>{this.$refs.multipleTable.toggleRowSelection(t)}):this.$refs.multipleTable.clearSelection()},handleSelectionChange(t){this.multipleSelection=t},toggleSelection2(t){t?t.forEach(t=>{this.$refs.multipleTable2.toggleRowSelection(t)}):this.$refs.multipleTable2.clearSelection()},selectAll(t){this.$refs.multipleTable2.clearSelection()},handleSelectionChange2(t){this.multipleSelection2=t},handleSizeChange2(t){this.ruleForm2.pagesize2=t,2===this.ruleForm2.publishType?this.getpostListAllSNCloudData():this.getpostListAllJGCloudData()},handleCurrentChange2(t){this.ruleForm2.currentPage2=t,2===this.ruleForm2.publishType?this.getpostListAllSNCloudData():this.getpostListAllJGCloudData()},handleSizeChange(t){this.ruleForm2.pagesize=t,2===this.ruleForm2.publishType?this.getpostListAllSNData():this.getpostListAllJG()},handleCurrentChange(t){this.ruleForm2.currentPage=t,2===this.ruleForm2.publishType?this.getpostListAllSNData():this.getpostListAllJG()},resetForm(t){this.$refs[t].clearValidate(),this.active=1},resetForm2(t){this.$refs[t].clearValidate(),this.$router.back()},UpdateMeR(){let t=[];this.tableData2.forEach(e=>{t.push(1===this.ruleForm2.publishType?e.id:e.deviceId)});let e=[];this.tableDatattt.forEach(t=>{e.push(t.deviceId)}),Object(u["lg"])({id:this.$route.query.id,name:this.ruleForm.name,softId:this.ruleForm.update,svnScope:this.ruleForm.svn,content:this.ruleForm.uplateTemplate,locale:"zh",introduction:this.ruleForm.desc,force:this.ruleForm.mechanism,publishType:this.ruleForm2.publishType,excludeDeviceList:e,scope:[],selectedScope:t}).then(t=>{"00000"===t.status?(this.$message({message:this.$t("tips.success"),type:"success"}),this.isFormremoteUpgrade?this.$router.push({path:"./remoteUpgrade"}):this.$router.push({path:"./manufacturer"})):this.$message.error(this.$t("tips.fail"))})},addMeR(){let t=[];this.tableData2.forEach(e=>{t.push(1===this.ruleForm2.publishType?e.id:e.deviceId)});let e=[];this.tableDatattt.forEach(t=>{e.push(t.deviceId)}),Object(u["jg"])({name:this.ruleForm.name,softId:this.ruleForm.update,svnScope:this.ruleForm.svn,content:this.ruleForm.uplateTemplate,locale:"zh",introduction:this.ruleForm.desc,force:this.ruleForm.mechanism,publishType:this.ruleForm2.publishType,excludeDeviceList:e,scope:[],selectedScope:t}).then(t=>{"00000"===t.status?(this.$message({message:this.$t("tips.success"),type:"success"}),this.$router.push({path:"./manufacturer"})):this.$message.error(this.$t("tips.fail"))})},submitForm2(t){this.$refs[t].validate(t=>!!t&&(0===this.tableData2.length?this.$message({showClose:!0,message:this.$t("softwareUpdates.deleteTips2"),type:"warning"}):void(this.showBJ?this.UpdateMeR():this.addMeR())))},beforeUpload(t){const e="application/octet-stream"===t.type;return e||this.$message.error(this.$t("softwareUpdates.deleteTips3")),e},handleRemove(t,e){},handlePreview(t){},submitForm(t){this.$refs[t].validate(t=>{if(!t)return!1;if(this.active=2,this.dataList[0].value=this.ruleForm.name,"all"!==this.ruleForm.svn[0]){let t=[];this.ruleForm.svn.forEach(e=>{this.updateOption.forEach(s=>{s.id===e&&t.push(s)})});let e="";t.forEach(t=>{e+=t.descLocale+"、"}),this.dataList[3].value=e.substring(0,e.length-1)}else this.dataList[3].value=this.$t("tips.all");if(this.dataList[6].value=this.ruleForm.desc,this.dataList[7].value=this.ruleForm.uplateTemplate,this.dataList[8].value=this.ruleForm.mechanism?this.$t("softwareUpdates.box16"):this.$t("softwareUpdates.box15"),this.dataList[8].show=!0,this.BJObj.excludeDeviceList&&this.BJObj.excludeDeviceList.length>0){let t=[];this.BJObj.excludeDeviceList.forEach(e=>{t.push({deviceId:e})}),this.tableDatattt=this.equipment=t}})}}},c=p,h=(s("9f31"),s("2877")),d=Object(h["a"])(c,a,l,!1,null,"64a1b4c2",null);e["default"]=d.exports},"06c2":function(t,e,s){t.exports=s.p+"img/one-cpap.78a407fa.png"},"0aab":function(t,e,s){t.exports=s.p+"img/one-cpap.74217e4d.png"},"13c2":function(t,e,s){t.exports=s.p+"img/one-bpap.c84b2976.png"},"21c3":function(t,e,s){t.exports=s.p+"img/one-bpap.79e07ff4.png"},2717:function(t,e,s){t.exports=s.p+"img/tow.0d711637.png"},"2ba4":function(t,e,s){var a=s("40d5"),l=Function.prototype,o=l.apply,i=l.call;t.exports="object"==typeof Reflect&&Reflect.apply||(a?i.bind(o):function(){return i.apply(o,arguments)})},"372b":function(t,e,s){t.exports=s.p+"img/tow.0d711637.png"},"3b23":function(t,e,s){t.exports=s.p+"img/tow.0d711637.png"},"3c10":function(t,e,s){t.exports=s.p+"img/tow.0d711637.png"},"4cdd":function(t,e,s){t.exports=s.p+"img/one-bpap.79e07ff4.png"},"51cc":function(t,e,s){var a={"./axcent/tow.png":"372b","./common/tow.png":"2717","./kwn/tow.png":"7d4b","./moyeah/tow.png":"3b23","./resvent/tow.png":"c252","./smartmed/tow.png":"3c10"};function l(t){var e=o(t);return s(e)}function o(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}l.keys=function(){return Object.keys(a)},l.resolve=o,t.exports=l,l.id="51cc"},"538e":function(t,e,s){t.exports=s.p+"img/one-bpap.79e07ff4.png"},"5fe5":function(t,e,s){t.exports=s.p+"img/one-cpap.f3d5c914.png"},"67b6":function(t,e,s){t.exports=s.p+"img/one-cpap.c2424189.png"},"7d4b":function(t,e,s){t.exports=s.p+"img/tow.0d711637.png"},"817c":function(t,e,s){},"9a6b":function(t,e,s){var a={"./axcent/one-bpap.png":"a915","./common/one-bpap.png":"538e","./kwn/one-bpap.png":"4cdd","./moyeah/one-bpap.png":"21c3","./resvent/one-bpap.png":"13c2","./smartmed/one-bpap.png":"9c9e"};function l(t){var e=o(t);return s(e)}function o(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}l.keys=function(){return Object.keys(a)},l.resolve=o,t.exports=l,l.id="9a6b"},"9c9e":function(t,e,s){t.exports=s.p+"img/one-bpap.79e07ff4.png"},"9f31":function(t,e,s){"use strict";s("817c")},a915:function(t,e,s){t.exports=s.p+"img/one-bpap.79e07ff4.png"},ab36:function(t,e,s){var a=s("861d"),l=s("9112");t.exports=function(t,e){a(e)&&"cause"in e&&l(t,"cause",e.cause)}},aeb0:function(t,e,s){var a=s("9bf2").f;t.exports=function(t,e,s){s in t||a(t,s,{configurable:!0,get:function(){return e[s]},set:function(t){e[s]=t}})}},b980:function(t,e,s){var a=s("d039"),l=s("5c6c");t.exports=!a((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",l(1,7)),7!==t.stack)}))},c252:function(t,e,s){t.exports=s.p+"img/tow.1c396120.png"},d9e2:function(t,e,s){var a=s("23e7"),l=s("da84"),o=s("2ba4"),i=s("e5cb"),r="WebAssembly",n=l[r],u=7!==Error("e",{cause:7}).cause,p=function(t,e){var s={};s[t]=i(t,e,u),a({global:!0,constructor:!0,arity:1,forced:u},s)},c=function(t,e){if(n&&n[t]){var s={};s[t]=i(r+"."+t,e,u),a({target:r,stat:!0,constructor:!0,arity:1,forced:u},s)}};p("Error",(function(t){return function(e){return o(t,this,arguments)}})),p("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),p("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),p("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),p("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),p("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),p("URIError",(function(t){return function(e){return o(t,this,arguments)}})),c("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),c("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),c("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},dd82:function(t,e,s){var a={"./axcent/one-cpap.png":"5fe5","./common/one-cpap.png":"06c2","./kwn/one-cpap.png":"e384","./moyeah/one-cpap.png":"67b6","./resvent/one-cpap.png":"0aab","./smartmed/one-cpap.png":"eb64"};function l(t){var e=o(t);return s(e)}function o(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}l.keys=function(){return Object.keys(a)},l.resolve=o,t.exports=l,l.id="dd82"},e384:function(t,e,s){t.exports=s.p+"img/one-cpap.f3d5c914.png"},e5cb:function(t,e,s){"use strict";var a=s("d066"),l=s("1a2d"),o=s("9112"),i=s("3a9b"),r=s("d2bb"),n=s("e893"),u=s("aeb0"),p=s("7156"),c=s("e391"),h=s("ab36"),d=s("c770"),f=s("b980"),m=s("83ab"),b=s("c430");t.exports=function(t,e,s,w){var g="stackTraceLimit",v=w?2:1,$=t.split("."),_=$[$.length-1],U=a.apply(null,$);if(U){var x=U.prototype;if(!b&&l(x,"cause")&&delete x.cause,!s)return U;var y=a("Error"),D=e((function(t,e){var s=c(w?e:t,void 0),a=w?new U(t):new U;return void 0!==s&&o(a,"message",s),f&&o(a,"stack",d(a.stack,2)),this&&i(x,this)&&p(a,this,D),arguments.length>v&&h(a,arguments[v]),a}));if(D.prototype=x,"Error"!==_?r?r(D,y):n(D,y,{name:!0}):m&&g in U&&(u(D,U,g),u(D,U,"prepareStackTrace")),n(D,U),!b)try{x.name!==_&&o(x,"name",_),x.constructor=D}catch(F){}return D}}},eb64:function(t,e,s){t.exports=s.p+"img/one-cpap.05e52e16.png"}}]);