lepu-test-platform-web/dist/static/js/8.c7f198a2c9568ef42d9e.js

2 lines
27 KiB
JavaScript

webpackJsonp([8],{"0Xag":function(e,t){},Iah3:function(e,t){},Pc8e:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={data:function(){return{itemOptions:[],editForm:{afterChange:""},addForm:{envCheckList:[],operator:""},queryAppId:"",queryInfo:{appId:"",env:"test",beforeChange:"",afterChange:"",ownerName:"",envCheckList:[],operator:"",comments:""},itemList:[],checkList:[],envOptions:[{id:1,name:"test"},{id:2,name:"test2"},{id:3,name:"pressure"}],orgOptions:[{orgId:"t1_develop",orgName:"研发一部"},{orgId:"t2_develop",orgName:"研发二部"},{orgId:"t3_develop",orgName:"研发三部"},{orgId:"t4_develop",orgName:"研发四部"}],timeout:null,editDialogVisible:!1,addDialogVisible:!1,editFormRules:{beforeChange:[{required:!1,message:"请输入变更前内容",trigger:"blur"}],afterChange:[{required:!0,message:"请输入变更后内容",trigger:"blur"}],comments:[{required:!1,message:"请输入备注",trigger:"blur"},{min:0,max:255,message:"长度在 0 到 255 个字符",trigger:"blur"}]},addFormRules:{orgName:[{required:!0,message:"请选择部门",trigger:"blur"}],appId:[{required:!0,message:"请输入AppId",trigger:"blur"}],name:[{required:!0,message:"请输入应用名称",trigger:"blur"}],envCheckList:[{type:"array",required:!0,message:"请至少选择一个环境",trigger:"change"}],comments:[{required:!1,message:"请输入备注",trigger:"blur"},{min:0,max:255,message:"长度在 0 到 255 个字符",trigger:"blur"}]},originEnvCheckList:[],currentEnvCheckList:[],envCheckList:[],allTestEnvList:["test","test2","pressure"],leftNum:"",rightNum:""}},mounted:function(){},created:function(){this.getItemList()},watch:{editForm:function(e){var t=this;setTimeout(function(){t.handleLeftTextareaInput({target:{value:e.beforeChange}});var o=document.getElementById("rightNum"),a=document.getElementById("rightTextarea");t.lineTextareaScroll(o,a);var l=document.getElementById("leftNum"),i=document.getElementById("leftTextarea");t.lineTextareaScroll(l,i)},2e3)},deep:!0},methods:{addApolloApp:function(){console.log(this.queryInfo.env),this.addForm.envCheckList.push(this.queryInfo.env),this.addDialogVisible=!0},addApolloConfigInfo:function(){var e=this;this.$refs.addFormRef.validate(function(t){t&&(console.log(e.addForm.envCheckList),e.addForm.operator=JSON.parse(localStorage.getItem("userInfo")).nick,e.$api.apollo.addApolloItem(e.addForm).then(function(t){200==t.data.code&&e.$notify({message:t.data.msg,type:"success"}),e.addDialogVisible=!1,e.$refs.addFormRef.resetFields(),e.getItemList()}))})},editApolloConfigInfo:function(){var e=this;this.$refs.editFormRef.validate(function(t){t&&(e.queryInfo.afterChange=e.editForm.afterChange,e.queryInfo.envCheckList=e.envCheckList,e.queryInfo.ownerName=e.itemList[0].ownerName,e.queryInfo.operator=JSON.parse(localStorage.getItem("userInfo")).nick,e.queryInfo.beforeChange=e.editForm.beforeChange,console.log("修改功能,左侧窗口内容:",e.editForm.beforeChange),console.log("修改功能,右侧窗口内容:",e.editForm.afterChange),e.queryInfo.comments=e.editForm.comments,e.$api.apollo.editApolloItem(e.queryInfo).then(function(t){200==t.data.code&&e.$notify({message:t.data.msg,type:"success"}),e.cancelEditDialogVisible()}))})},deleteApolloConfigInfo:function(){var e=this;this.$refs.editFormRef.validate(function(t){t&&(e.queryInfo.afterChange=e.editForm.afterChange,e.queryInfo.envCheckList=e.envCheckList,e.queryInfo.ownerName=e.itemList[0].ownerName,e.queryInfo.operator=JSON.parse(localStorage.getItem("userInfo")).nick,e.queryInfo.beforeChange=e.editForm.beforeChange,e.queryInfo.comments=e.editForm.comments,console.log("删除功能,左侧窗口内容:",e.editForm.beforeChange),console.log("删除功能,右侧窗口内容:",e.editForm.afterChange),e.$api.apollo.deleteApolloItem(e.queryInfo).then(function(t){200==t.data.code&&(e.$notify({message:t.data.msg,type:"success"}),e.editForm.afterChange="")}))})},lineTextareaScroll:function(e,t){var o=void 0,a=void 0,l=function(e){!o&&t.removeEventListener("scroll",i),t.scrollTo(e.target.scrollLeft,e.target.scrollTop),o&&clearTimeout(o),o=setTimeout(function(){t.addEventListener("scroll",i),o=void 0},100)},i=function(t){!a&&e.removeEventListener("scroll",l),e.scrollTo(t.target.scrollLeft,t.target.scrollTop),a&&clearTimeout(a),a=setTimeout(function(){e.addEventListener("scroll",l),a=void 0},100)};t.addEventListener("scroll",i),e.addEventListener("scroll",l)},handleLeftTextareaInput:function(e){for(var t=e.target.value.replace(/\r/gi,"").split("\n").length,o=document.getElementById("leftNum"),a=1;a<=t;a++)document.all?this.leftNum+=a+"\r\n":this.leftNum+=a+"\n";this.leftNum&&(o.value=this.leftNum,this.leftNum="")},handleRightTextareaInput:function(e){for(var t=e.target.value.replace(/\r/gi,"").split("\n").length,o=document.getElementById("rightNum"),a=1;a<=t;a++)document.all?this.rightNum+=a+"\r\n":this.rightNum+=a+"\n";this.rightNum&&(o.value=this.rightNum,this.rightNum="")},getItemList:function(){var e=this,t=[];this.$api.apollo.queryAllApolloItem(this.queryInfo.env).then(function(o){for(var a in e.itemList=o.data.data,e.itemList)t.push({appId:e.itemList[a].appId,itemName:e.itemList[a].name});e.itemOptions=t}).catch(function(){e.loading=!1})},selectItemList:function(){var e=this;if(""==this.queryAppId)this.getItemList();else if(this.queryAppId){var t=[];this.$api.apollo.queryAllApolloItem(this.queryInfo.env).then(function(o){var a=o.data.data;for(var l in a)a[l].appId==e.queryAppId&&t.push(a[l]);e.itemList=t}).catch(function(){e.loading=!1})}},querySearchAsync:function(e,t){for(var o=this.itemOptions,a=0;a<o.length;a++)o[a].value=o[a].itemName;var l=e?o.filter(this.createStateFilter(e)):o;clearTimeout(this.timeout),this.timeout=setTimeout(function(){t(l)},3e3*Math.random())},createStateFilter:function(e){return function(t){return-1!=t.value.toLowerCase().indexOf(e.toLowerCase())}},handleSelect:function(e){},deployApolloItem:function(e){var t=this;this.envCheckList=[],this.editForm={},this.queryInfo.appId=e.appId,this.editForm.appId=e.appId,this.editForm.itemName=e.name;this.$api.apollo.queryApolloItemKeys(this.queryInfo).then(function(e){var o="";e.data.data.forEach(function(e,t){e.key||e.comment?(console.log("item.key=====>",e.key+" item.value=====>"+e.value),e.comment?o+=e.comment+"\n":o+=e.key+"="+e.value+"\n"):o+="\n"}),t.envCheckList.push(t.queryInfo.env),t.editForm.beforeChange=o,t.editForm.comments="",t.editDialogVisible=!0})},cancelEditDialogVisible:function(){this.$refs.editFormRef.resetFields(),this.editDialogVisible=!1},cancelAddDialogVisible:function(){this.$refs.addFormRef.resetFields(),this.addDialogVisible=!1},releasesApolloItem:function(e){var t=this;console.log(e),this.queryInfo.appId=e.appId,this.queryInfo.ownerName=e.ownerName,console.log("发布内容queryinfo,",this.queryInfo),console.log("发布功能,左侧窗口内容:",this.editForm.beforeChange),console.log("发布功能,右侧窗口内容:",this.editForm.afterChange),this.$api.apollo.releasesApolloItem(this.queryInfo).then(function(e){200==e.data.code&&t.$notify({message:e.data.msg,type:"success"})})}}},l={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"apollo-box"},[o("el-form",{staticClass:"apollo-form-inline",attrs:{inline:!0}},[o("el-form-item",{attrs:{label:"所属环境"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.queryInfo.env,callback:function(t){e.$set(e.queryInfo,"env",t)},expression:"queryInfo.env"}},e._l(e.envOptions,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.name}})}),1)],1),e._v(" "),o("el-form-item",{attrs:{label:"项目名称"}},[o("el-autocomplete",{attrs:{"fetch-suggestions":e.querySearchAsync,placeholder:"请输入内容",clearable:""},on:{select:e.handleSelect},model:{value:e.queryAppId,callback:function(t){e.queryAppId=t},expression:"queryAppId"}})],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.selectItemList}},[e._v("查询")])],1)],1),e._v(" "),o("el-form",[o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.addApolloApp}},[e._v("添加")])],1)],1),e._v(" "),o("el-table",{attrs:{data:e.itemList,border:"",fit:!0}},[o("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"80"}}),e._v(" "),o("el-table-column",{attrs:{label:"AppID",prop:"appId"}}),e._v(" "),o("el-table-column",{attrs:{label:"项目名称",prop:"name"}}),e._v(" "),o("el-table-column",{attrs:{label:"所属研发组ID",prop:"orgId"}}),e._v(" "),o("el-table-column",{attrs:{label:"所属研发组",prop:"orgName"}}),e._v(" "),o("el-table-column",{attrs:{label:"所属者",prop:"ownerName"}}),e._v(" "),o("el-table-column",{attrs:{label:"操作",fixed:"right",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{type:"text",size:"small"},on:{click:function(o){return e.deployApolloItem(t.row)}}},[e._v("配置")]),e._v(" "),o("el-button",{attrs:{type:"text",size:"small"},on:{click:function(o){return e.releasesApolloItem(t.row)}}},[e._v("发布")])]}}])})],1),e._v(" "),o("el-dialog",{attrs:{title:"配置信息",visible:e.editDialogVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.editDialogVisible=t},close:e.cancelEditDialogVisible}},[o("div",{staticClass:"case-info-form"},[o("el-form",{ref:"editFormRef",attrs:{model:e.editForm,rules:e.editFormRules,"label-width":"100px"}},[o("el-row",{attrs:{gutter:0}},[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"AppID"}},[o("el-input",{attrs:{disabled:""},model:{value:e.editForm.appId,callback:function(t){e.$set(e.editForm,"appId",t)},expression:"editForm.appId"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"项目名称"}},[o("el-input",{attrs:{disabled:""},model:{value:e.editForm.itemName,callback:function(t){e.$set(e.editForm,"itemName",t)},expression:"editForm.itemName"}})],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:0}},[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"原有项",prop:"beforeChange"}},[o("div",{staticClass:"line-textarea-box"},[o("div",{staticClass:"line-box"},[o("textarea",{staticClass:"line-num",attrs:{id:"leftNum",wrap:"off",cols:"1",disabled:""}})]),e._v(" "),o("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editForm.beforeChange,expression:"editForm.beforeChange"}],staticClass:"textarea-box",attrs:{id:"leftTextarea",wrap:"off",placeholder:"请输入",onscroll:"document.getElementById('leftNum').scrollTop = this.scrollTop;",disabled:""},domProps:{value:e.editForm.beforeChange},on:{input:[function(t){t.target.composing||e.$set(e.editForm,"beforeChange",t.target.value)},e.handleLeftTextareaInput]}})])])],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"修改项",prop:"afterChange"}},[o("div",{staticClass:"line-textarea-box"},[o("div",{staticClass:"line-box"},[o("textarea",{staticClass:"line-num",attrs:{id:"rightNum",wrap:"off",cols:"1",disabled:""}})]),e._v(" "),o("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editForm.afterChange,expression:"editForm.afterChange"}],staticClass:"textarea-box",attrs:{id:"rightTextarea",wrap:"off",placeholder:"请输入",onscroll:"document.getElementById('rightNum').scrollTop = this.scrollTop;"},domProps:{value:e.editForm.afterChange},on:{input:[function(t){t.target.composing||e.$set(e.editForm,"afterChange",t.target.value)},e.handleRightTextareaInput]}})])])],1)],1),e._v(" "),o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"环境",prop:""}},[o("el-checkbox-group",{model:{value:e.envCheckList,callback:function(t){e.envCheckList=t},expression:"envCheckList"}},[o("el-checkbox",{attrs:{label:e.allTestEnvList[0]}}),e._v(" "),o("el-checkbox",{attrs:{label:e.allTestEnvList[1]}}),e._v(" "),o("el-checkbox",{attrs:{label:e.allTestEnvList[2]}})],1)],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:"备注",prop:"comments"}},[o("div",{staticClass:"raw-area"},[o("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入备注信息"},model:{value:e.editForm.comments,callback:function(t){e.$set(e.editForm,"comments",t)},expression:"editForm.comments"}})],1)])],1)],1)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:e.cancelEditDialogVisible}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.deleteApolloConfigInfo}},[e._v("删 除")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.editApolloConfigInfo}},[e._v("同 步")])],1)]),e._v(" "),o("el-dialog",{attrs:{title:"添加信息",visible:e.addDialogVisible,"close-on-click-modal":!1,width:"40%"},on:{"update:visible":function(t){e.addDialogVisible=t},close:e.cancelAddDialogVisible}},[o("div",{staticClass:"case-info-form"},[o("el-form",{ref:"addFormRef",attrs:{model:e.addForm,rules:e.addFormRules,"label-width":"100px"}},[o("el-row",{attrs:{gutter:0}},[o("el-col",{attrs:{span:15}},[o("el-form-item",{attrs:{label:"部门",prop:"orgName"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.addForm.orgName,callback:function(t){e.$set(e.addForm,"orgName",t)},expression:"addForm.orgName"}},e._l(e.orgOptions,function(e){return o("el-option",{key:e.orgId,attrs:{label:e.orgName,value:e.orgName}})}),1)],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:0}},[o("el-col",{attrs:{span:15}},[o("el-form-item",{attrs:{label:"AppID",prop:"appId"}},[o("el-input",{model:{value:e.addForm.appId,callback:function(t){e.$set(e.addForm,"appId",t)},expression:"addForm.appId"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:15}},[o("el-form-item",{attrs:{label:"应用名称",prop:"name"}},[o("el-input",{model:{value:e.addForm.name,callback:function(t){e.$set(e.addForm,"name",t)},expression:"addForm.name"}})],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:15}},[o("el-form-item",{attrs:{label:"环境",prop:"envCheckList"}},[o("el-checkbox-group",{model:{value:e.addForm.envCheckList,callback:function(t){e.$set(e.addForm,"envCheckList",t)},expression:"addForm.envCheckList"}},[o("el-checkbox",{attrs:{label:e.allTestEnvList[0]}}),e._v(" "),o("el-checkbox",{attrs:{label:e.allTestEnvList[1]}}),e._v(" "),o("el-checkbox",{attrs:{label:e.allTestEnvList[2]}})],1)],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:15}},[o("el-form-item",{attrs:{label:"备注",prop:"comments"}},[o("div",{staticClass:"raw-area"},[o("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入备注信息"},model:{value:e.addForm.comments,callback:function(t){e.$set(e.addForm,"comments",t)},expression:"addForm.comments"}})],1)])],1)],1)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:e.cancelAddDialogVisible}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.addApolloConfigInfo}},[e._v("添 加")])],1)])],1)},staticRenderFns:[]};var i=o("VU/8")(a,l,!1,function(e){o("Iah3")},"data-v-767b50b8",null).exports,r=o("mvHQ"),n=o.n(r),s={data:function(){return{apolloConfigHistoryList:[],envCheckList:[],currentEnvCheckList:[],originEnvCheck:{},originEnvCheckList:[],originEnvName:"",allTestEnvList:["test","test2","pressure"],queryInfo:{pageNum:1,pageSize:10,itemName:"",configPerson:"",configTime:""},currpage:1,total:0,operatorPerson:JSON.parse(localStorage.getItem("userInfo")).nick,editDialogVisible:!1,editForm:{},editFormRules:{beforeChange:[{required:!0,message:"请输入变更前内容",trigger:"blur"}],afterChange:[{required:!0,message:"请输入变更后内容",trigger:"blur"}],comments:[{required:!1,message:"请输入备注",trigger:"blur"},{min:0,max:255,message:"长度在 0 到 255 个字符",trigger:"blur"}]},leftNum:"",rightNum:""}},mounted:function(){},created:function(){this.getApolloConfigHistoryInfoList()},watch:{editForm:function(e){var t=this;setTimeout(function(){t.handleLeftTextareaInput({target:{value:e.beforeChange}}),t.handleRightTextareaInput({target:{value:e.afterChange}});var o=document.getElementById("rightNum"),a=document.getElementById("rightTextarea");t.lineTextareaScroll(o,a);var l=document.getElementById("leftNum"),i=document.getElementById("leftTextarea");t.lineTextareaScroll(l,i)},100)},deep:!0},methods:{lineTextareaScroll:function(e,t){var o=void 0,a=void 0,l=function(e){!o&&t.removeEventListener("scroll",i),t.scrollTo(e.target.scrollLeft,e.target.scrollTop),o&&clearTimeout(o),o=setTimeout(function(){t.addEventListener("scroll",i),o=void 0},100)},i=function(t){!a&&e.removeEventListener("scroll",l),e.scrollTo(t.target.scrollLeft,t.target.scrollTop),a&&clearTimeout(a),a=setTimeout(function(){e.addEventListener("scroll",l),a=void 0},100)};t.addEventListener("scroll",i),e.addEventListener("scroll",l)},handleLeftTextareaInput:function(e){for(var t=e.target.value.replace(/\r/gi,"").split("\n").length,o=document.getElementById("leftNum"),a=1;a<=t;a++)document.all?this.leftNum+=a+"\r\n":this.leftNum+=a+"\n";this.leftNum&&(o.value=this.leftNum,this.leftNum="")},handleRightTextareaInput:function(e){for(var t=e.target.value.replace(/\r/gi,"").split("\n").length,o=document.getElementById("rightNum"),a=1;a<=t;a++)document.all?this.rightNum+=a+"\r\n":this.rightNum+=a+"\n";this.rightNum&&(o.value=this.rightNum,this.rightNum="")},editApolloConfigInfo:function(){var e=this;this.$refs.editFormRef.validate(function(t){if(t){if(e.editForm.configTime=e.$common.getCurrentDateTime(),e.editForm.configPerson=e.operatorPerson,e.currentEnvCheckList){for(var o="",a=0;a<e.currentEnvCheckList.length;a++)o+=e.currentEnvCheckList[a]+",";e.editForm.syncEnv=o}else e.editForm.syncEnv="";e.editForm.originSyncEnv=e.originEnvName,e.$api.apollo.updateApolloConfigHistoryInfo(n()(e.editForm)).then(function(t){e.$notify({message:t.data.msg,type:"success"}),e.editDialogVisible=!1,e.selectApolloConfigHistoryInfo()}).catch(function(){})}})},changeEnvChecked:function(e){this.currentEnvCheckList=this.$common.getArrDifference(e,this.originEnvCheckList)},clearTempVariables:function(){this.envCheckList=[],this.originEnvCheckList=[],this.currentEnvCheckList=[],this.originEnvCheck={},this.originEnvName=""},showEditDialog:function(e){var t=this;this.$api.apollo.selectApolloConfigHistoryInfoById(e.id).then(function(e){t.editForm=e.data.data;var o=e.data.data.syncEnv;if(t.clearTempVariables(),o){t.originEnvName=o;for(var a=o.split(","),l=0;l<a.length;l++)a[l]==t.allTestEnvList[0]?t.originEnvCheck.test=!0:a[l]==t.allTestEnvList[1]?t.originEnvCheck.test2=!0:t.originEnvCheck.pressure=!0,t.envCheckList.push(a[l]);t.originEnvCheckList=t.envCheckList}t.editDialogVisible=!0}).catch(function(){})},cancelEditDialogVisible:function(){this.editDialogVisible=!1,this.$refs.editFormRef.resetFields(),this.clearTempVariables()},selectApolloConfigHistoryInfo:function(){this.queryInfo.pageNum=1,this.total=0,this.getApolloConfigHistoryInfoList()},getApolloConfigHistoryInfoList:function(){var e=this;this.$api.apollo.queryAllApolloConfigHistoryInfo(n()(this.queryInfo)).then(function(t){e.apolloConfigHistoryList=t.data.data,e.total=t.data.count}).catch(function(){})},delApolloConfigInfo:function(e){var t=this;this.$confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$api.apollo.deleteApolloConfigHistoryInfoById(e).then(function(e){t.$notify({message:e.data.msg,type:"success"}),t.selectApolloConfigHistoryInfo()}).catch(function(){})}).catch(function(){})},getRowKeys:function(e){return e.id},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.queryInfo.pageSize=e,this.getApolloConfigHistoryInfoList()},handleCurrentChange:function(e){this.queryInfo.pageNum=e,this.getApolloConfigHistoryInfoList()}}},c={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"apollo-config-history-box"},[o("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[o("el-form-item",{attrs:{label:"项目名称"}},[o("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入项目名称",clearable:""},model:{value:e.queryInfo.itemName,callback:function(t){e.$set(e.queryInfo,"itemName",t)},expression:"queryInfo.itemName"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"配置人员"}},[o("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入配置人员",clearable:""},model:{value:e.queryInfo.configPerson,callback:function(t){e.$set(e.queryInfo,"configPerson",t)},expression:"queryInfo.configPerson"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"配置时间"}},[o("el-date-picker",{attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期时间"},model:{value:e.queryInfo.configTime,callback:function(t){e.$set(e.queryInfo,"configTime",t)},expression:"queryInfo.configTime"}})],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.selectApolloConfigHistoryInfo}},[e._v("查询")])],1)],1),e._v(" "),o("el-table",{ref:"multipleTable",attrs:{"tooltip-effect":"dark",data:e.apolloConfigHistoryList.slice((e.currpage-1)*e.queryInfo.pageSize,e.currpage*e.queryInfo.pageSize),border:"",fit:!0,"row-key":e.getRowKeys},on:{"selection-change":e.handleSelectionChange,"cell-dblclick":e.showEditDialog}},[o("el-table-column",{attrs:{"reserve-selection":!0,label:"序号",type:"index",align:"center",width:"50",fixed:""}}),e._v(" "),o("el-table-column",{attrs:{"reserve-selection":!0,label:"AppID",prop:"appId",width:"200","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{"reserve-selection":!0,label:"项目名称",prop:"itemName",width:"200","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{"reserve-selection":!0,label:"同步环境",prop:"syncEnv",width:"160"}}),e._v(" "),o("el-table-column",{attrs:{"reserve-selection":!0,label:"配置人员",prop:"configPerson",width:"100"}}),e._v(" "),o("el-table-column",{attrs:{"reserve-selection":!0,label:"配置时间",prop:"configTime",width:"180"}}),e._v(" "),o("el-table-column",{attrs:{"reserve-selection":!0,label:"备注",prop:"comments","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{label:"操作",fixed:"right",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{type:"text",size:"small"},on:{click:function(o){return e.showEditDialog(t.row)}}},[e._v("查看")]),e._v(" "),o("el-button",{attrs:{type:"text",size:"small"},on:{click:function(o){return e.delApolloConfigInfo(t.row.id)}}},[e._v("删除")])]}}])})],1),e._v(" "),o("el-pagination",{attrs:{"page-sizes":[5,10,20,30],"page-size":e.queryInfo.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),e._v(" "),o("el-dialog",{attrs:{title:"配置信息",visible:e.editDialogVisible,"close-on-click-modal":!1,width:"90%"},on:{"update:visible":function(t){e.editDialogVisible=t},close:e.cancelEditDialogVisible}},[o("div",{staticClass:"case-info-form"},[o("el-form",{ref:"editFormRef",attrs:{model:e.editForm,rules:e.editFormRules,"label-width":"100px"}},[o("el-row",{attrs:{gutter:0}},[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"AppID"}},[o("el-input",{attrs:{disabled:""},model:{value:e.editForm.appId,callback:function(t){e.$set(e.editForm,"appId",t)},expression:"editForm.appId"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"项目名称"}},[o("el-input",{attrs:{disabled:""},model:{value:e.editForm.itemName,callback:function(t){e.$set(e.editForm,"itemName",t)},expression:"editForm.itemName"}})],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:0}},[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"变更前",prop:"beforeChange"}},[o("div",{staticClass:"line-textarea-box"},[o("div",{staticClass:"line-box"},[o("textarea",{staticClass:"line-num",attrs:{id:"leftNum",wrap:"off",cols:"1",disabled:""}})]),e._v(" "),o("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editForm.beforeChange,expression:"editForm.beforeChange"}],staticClass:"textarea-box",attrs:{id:"leftTextarea",wrap:"off",placeholder:"请输入",onscroll:"document.getElementById('leftNum').scrollTop = this.scrollTop;",disabled:""},domProps:{value:e.editForm.beforeChange},on:{input:[function(t){t.target.composing||e.$set(e.editForm,"beforeChange",t.target.value)},e.handleLeftTextareaInput]}})])])],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"变更后",prop:"afterChange"}},[o("div",{staticClass:"line-textarea-box"},[o("div",{staticClass:"line-box"},[o("textarea",{staticClass:"line-num",attrs:{id:"rightNum",wrap:"off",cols:"1",disabled:""}})]),e._v(" "),o("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editForm.afterChange,expression:"editForm.afterChange"}],staticClass:"textarea-box",attrs:{id:"rightTextarea",wrap:"off",placeholder:"请输入",onscroll:"document.getElementById('rightNum').scrollTop = this.scrollTop;"},domProps:{value:e.editForm.afterChange},on:{input:[function(t){t.target.composing||e.$set(e.editForm,"afterChange",t.target.value)},e.handleRightTextareaInput]}})])])],1)],1),e._v(" "),o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"环境",prop:""}},[o("el-checkbox-group",{on:{change:e.changeEnvChecked},model:{value:e.envCheckList,callback:function(t){e.envCheckList=t},expression:"envCheckList"}},[o("el-checkbox",{attrs:{label:e.allTestEnvList[0],disabled:e.originEnvCheck.test}}),e._v(" "),o("el-checkbox",{attrs:{label:e.allTestEnvList[1],disabled:e.originEnvCheck.test2}}),e._v(" "),o("el-checkbox",{attrs:{label:e.allTestEnvList[2],disabled:e.originEnvCheck.pressure}})],1)],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:"备注",prop:"comments"}},[o("div",{staticClass:"raw-area"},[o("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入备注信息"},model:{value:e.editForm.comments,callback:function(t){e.$set(e.editForm,"comments",t)},expression:"editForm.comments"}})],1)])],1)],1)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:e.cancelEditDialogVisible}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.editApolloConfigInfo}},[e._v("同 步")])],1)])],1)},staticRenderFns:[]};var m={data:function(){return{activeName:"first",load:{first:!0,history:!1}}},mounted:function(){},created:function(){},methods:{handleClick:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0)}},components:{ApolloConfigList:i,ApolloConfigHistoryList:o("VU/8")(s,c,!1,function(e){o("0Xag")},"data-v-16984b80",null).exports}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"apollo-box"},[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:"首页",name:"first"}},[e.load.first?o("apollo-config-list"):e._e()],1),e._v(" "),o("el-tab-pane",{attrs:{label:"历史记录",name:"history"}},[e.load.history?o("apollo-config-history-list"):e._e()],1)],1)],1)},staticRenderFns:[]};var u=o("VU/8")(m,d,!1,function(e){o("jE4F")},"data-v-1b06aa7e",null);t.default=u.exports},jE4F:function(e,t){}});
//# sourceMappingURL=8.c7f198a2c9568ef42d9e.js.map