(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cf4c8db8"],{"0fa3":function(t,a,e){},2087:function(t,a,e){"use strict";var n={dynamicParameterGrammarTips:function(t){var a=this,e=t||this.projectValue;this.$http.queryAllDynamicVariables(e,{pageNum:1,pageSize:99999}).then((function(t){var e=t.data.data.records;a.$store.dispatch("changedynamicParameterPromptAct",e)})).catch((function(t){console.log(t)}))},getEnvironmentsStaticName:function(t){var a=this,e=t||this.projectValue;this.$http.getEnvironmentsStaticName({projectId:e}).then((function(t){var e=t.data;a.$store.dispatch("changeenvironmentSyntaxTipsAct",e)})).catch((function(t){console.log(t)}))},getMovesStaticName:function(t){var a=this,e=t||this.projectValue;this.$http.getMovesStaticName({projectId:e}).then((function(t){var e=t.data;a.$store.dispatch("changeactionGrammarTipsAct",e)})).catch((function(t){console.log(t)}))}};a["a"]=n},b0c0:function(t,a,e){var n=e("83ab"),c=e("5e77").EXISTS,i=e("e330"),r=e("9bf2").f,s=Function.prototype,o=i(s.toString),l=/^\s*function ([^ (]*)/,h=i(l.exec),u="name";n&&!c&&r(s,u,{configurable:!0,get:function(){try{return h(l,o(this))[1]}catch(t){return""}}})},e306:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"dynamicParam"},[e("div",{staticClass:"top_search"},[e("el-row",[e("el-col",{staticClass:"flex",attrs:{span:6}},[e("el-input",{attrs:{"prefix-icon":"el-icon-search",clearable:""},nativeOn:{keyup:function(a){return t.keyDown(a)}},model:{value:t.searchData.name,callback:function(a){t.$set(t.searchData,"name",a)},expression:"searchData.name"}}),e("el-button",{staticStyle:{margin:"10px"},attrs:{type:"primary"},on:{click:t.routeGo}},[t._v("新增")])],1)],1)],1),e("div",{staticClass:"table"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData},on:{"row-click":t.tabRowClick}},[e("el-table-column",{attrs:{prop:"name",label:"名称",align:"center"}}),e("el-table-column",{attrs:{prop:"remark",label:"备注",align:"center"}}),e("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return e.stopPropagation(),t.routeGo(a.row)}}},[t._v("编辑")]),e("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(e){return e.stopPropagation(),t.deleteTable(a.row.id)}}},[t._v("删除")])]}}])})],1),e("el-pagination",{staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{layout:"prev, pager, next",total:t.pageTotal},on:{"current-change":t.currentChange}})],1)])},c=[],i=e("5530"),r=(e("b0c0"),e("2087")),s={name:"dynamicParam",data:function(){return{form:{},tableData:[],searchData:{pageNum:1,pageSize:10},pageTotal:0}},mounted:function(){this.$store.state.projectId.id&&this.getAllDynamicVariables()},watch:{"$store.state.projectId":function(t){this.getAllDynamicVariables()}},methods:{keyDown:function(t){console.log(t),"Enter"==t.code&&this.searchTable()},routeGo:function(t){this.$store.dispatch("changeactuatorListSelectHomeItemAct",{id:t.id}),this.$router.push({path:"./addDynamicParams",query:Object(i["a"])({},t)})},searchTable:function(){this.searchData.pageNum=1,this.getAllDynamicVariables()},currentChange:function(t){this.searchData.pageNum=t,this.getAllDynamicVariables()},getAllDynamicVariables:function(){var t=this;this.searchData.name?this.$http.queryDynamicVariablesCondition(this.$store.state.projectId.id,this.searchData).then((function(a){var e=a.data.data.records;t.pageTotal=a.data.data.total,t.tableData=e,t.$store.dispatch("changehomeSelectValueAct",t.tableData),t.$store.dispatch("changehomeSelectPathAct","./addDynamicParams")})).catch((function(a){0==a.response.data.indexOf("0 您查询的页码已经超出范围")&&(t.searchData.pageNum=t.searchData.pageNum-1),t.getAllDynamicVariables()})):this.$http.queryAllDynamicVariables(this.$store.state.projectId.id,this.searchData).then((function(a){var e=a.data.data.records;t.pageTotal=a.data.data.total,t.tableData=e,t.$store.dispatch("changehomeSelectValueAct",t.tableData),t.$store.dispatch("changehomeSelectPathAct","./addDynamicParams")})).catch((function(a){0==a.response.data.indexOf("0 您查询的页码已经超出范围")&&(t.searchData.pageNum=t.searchData.pageNum-1),t.getAllDynamicVariables()}))},tabRowClick:function(t,a,e){this.routeGo(t)},deleteTable:function(t){var a=this;this.$confirm("此操作将永久删除该数据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.$http.deleteDynamicVariables(t).then((function(t){a.getAllDynamicVariables(),a.$message({type:"success",message:"删除成功!"}),r["a"].dynamicParameterGrammarTips.apply(a,[a.$store.state.projectId.id])})).catch((function(t){}))})).catch((function(){a.$message({type:"info",message:"已取消删除"})}))}}},o=s,l=(e("fa88"),e("2877")),h=Object(l["a"])(o,n,c,!1,null,"0457bebb",null);a["default"]=h.exports},fa88:function(t,a,e){"use strict";e("0fa3")}}]);