\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n 查询\n \n \n \n 新建\n \n \n \n \n \n \n \n \n \n \n \n 查看\n 删除\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n\n\n \n \n\n\n\n// WEBPACK FOOTER //\n// src/views/envGovernment/sqlGovernment.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"sql-box\"},[_c('el-form',{staticClass:\"sql-form-inline\",attrs:{\"inline\":true}},[_c('el-form-item',{attrs:{\"label\":\"数据库名称\"}},[_c('el-autocomplete',{attrs:{\"fetch-suggestions\":_vm.querySearchAsync,\"placeholder\":\"请输入内容\",\"clearable\":\"\"},on:{\"select\":_vm.handleSelect},model:{value:(_vm.queryInfo.dbName),callback:function ($$v) {_vm.$set(_vm.queryInfo, \"dbName\", $$v)},expression:\"queryInfo.dbName\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"操作人\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择\",\"clearable\":\"\"},model:{value:(_vm.queryInfo.operatorPerson),callback:function ($$v) {_vm.$set(_vm.queryInfo, \"operatorPerson\", $$v)},expression:\"queryInfo.operatorPerson\"}},_vm._l((_vm.userOptions),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.nick,\"value\":item.nick}})}),1)],1),_vm._v(\" \"),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.selectSqlConfig}},[_vm._v(\"查询\")])],1)],1),_vm._v(\" \"),_c('el-row',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.dialogVisible = true}}},[_vm._v(\"新建\")])],1),_vm._v(\" \"),_c('el-table',{attrs:{\"data\":_vm.sqlList,\"border\":\"\",\"fit\":true}},[_c('el-table-column',{attrs:{\"label\":\"序号\",\"type\":\"index\",\"align\":\"center\",\"width\":\"80\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"数据库\",\"prop\":\"dbName\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"同步环境\",\"prop\":\"syncEnv\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作时间\",\"prop\":\"operatorTime\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作人\",\"prop\":\"operatorPerson\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"执行结果\",\"prop\":\"executingResult\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"prop\":\"operation\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.showDetailDialog(scope.row.id)}}},[_vm._v(\"查看\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"small\"},on:{\"click\":function($event){return _vm.delsqlStatement(scope.row.id)}}},[_vm._v(\"删除\")])]}}])})],1),_vm._v(\" \"),_c('el-pagination',{attrs:{\"current-page\":_vm.currpage,\"page-sizes\":[5, 10, 20, 30],\"page-size\":_vm.queryInfo.pageSize,\"layout\":\"prev, pager, next, sizes, total, jumper\",\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}}),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"新建\",\"visible\":_vm.dialogVisible,\"close-on-click-modal\":false,\"width\":\"70%\"},on:{\"update:visible\":function($event){_vm.dialogVisible=$event},\"close\":_vm.cancelDialogVisible}},[_c('el-form',{ref:\"addFormRef\",attrs:{\"model\":_vm.addForm,\"rules\":_vm.addFormRules,\"label-width\":\"100px\"}},[_c('el-form-item',{attrs:{\"label\":\"数据库名称\",\"prop\":\"dbName\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入数据库名称\"},model:{value:(_vm.addForm.dbName),callback:function ($$v) {_vm.$set(_vm.addForm, \"dbName\", $$v)},expression:\"addForm.dbName\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"sql语句\",\"prop\":\"sqlStatement\"}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"autosize\":{ minRows: 10, maxRows: 12 },\"placeholder\":\"请输入SQL\"},model:{value:(_vm.addForm.sqlStatement),callback:function ($$v) {_vm.$set(_vm.addForm, \"sqlStatement\", $$v)},expression:\"addForm.sqlStatement\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"选择环境\",\"prop\":\"envCheckList\"}},[_c('el-checkbox-group',{model:{value:(_vm.addForm.envCheckList),callback:function ($$v) {_vm.$set(_vm.addForm, \"envCheckList\", $$v)},expression:\"addForm.envCheckList\"}},[_c('el-checkbox',{attrs:{\"label\":\"test\"}}),_vm._v(\" \"),_c('el-checkbox',{attrs:{\"label\":\"test2\"}}),_vm._v(\" \"),_c('el-checkbox',{attrs:{\"label\":\"pressure\"}}),_vm._v(\" \"),_c('el-checkbox',{attrs:{\"label\":\"test_platform\"}})],1)],1)],1),_vm._v(\" \"),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.cancelDialogVisible}},[_vm._v(\"取 消\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.insertSqlConfigHistoryInfo}},[_vm._v(\"确 定\")])],1)],1),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"查看\",\"visible\":_vm.detailDialogVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.detailDialogVisible=$event},\"close\":_vm.canceldetailDialogVisible}},[_c('el-form',{ref:\"detailFormRef\",attrs:{\"model\":_vm.detailForm,\"label-width\":\"100px\"}},[_c('el-row',[_c('el-col',[_c('el-form-item',{attrs:{\"label\":\"数据库名称\"}},[_c('el-input',{attrs:{\"disabled\":\"\"},model:{value:(_vm.detailForm.dbName),callback:function ($$v) {_vm.$set(_vm.detailForm, \"dbName\", $$v)},expression:\"detailForm.dbName\"}})],1)],1)],1),_vm._v(\" \"),_c('el-row',[_c('el-col',[_c('el-form-item',{attrs:{\"label\":\"sql语句\"}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"autosize\":{ maxRows: 12 },\"disabled\":\"\"},model:{value:(_vm.detailForm.sqlStatement),callback:function ($$v) {_vm.$set(_vm.detailForm, \"sqlStatement\", $$v)},expression:\"detailForm.sqlStatement\"}})],1)],1)],1),_vm._v(\" \"),_c('el-row',[_c('el-col',[_c('el-form-item',{attrs:{\"label\":\"选择环境\"}},[_c('el-checkbox-group',{model:{value:(_vm.detailForm.envCheckList),callback:function ($$v) {_vm.$set(_vm.detailForm, \"envCheckList\", $$v)},expression:\"detailForm.envCheckList\"}},[_c('el-checkbox',{attrs:{\"label\":\"test\",\"disabled\":_vm.detailForm.syncEnv == '111'}}),_vm._v(\" \"),_c('el-checkbox',{attrs:{\"label\":\"test2\",\"disabled\":_vm.detailForm.syncEnv == 'test2'}}),_vm._v(\" \"),_c('el-checkbox',{attrs:{\"label\":\"pressure\",\"disabled\":_vm.detailForm.syncEnv == 'pressure'}}),_vm._v(\" \"),_c('el-checkbox',{attrs:{\"label\":\"test_platform\",\"disabled\":_vm.detailForm.syncEnv == 'test_platform'}})],1)],1)],1)],1)],1),_vm._v(\" \"),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.canceldetailDialogVisible}},[_vm._v(\"取 消\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.insertSqlConfigHistoryInfoAgain}},[_vm._v(\"确 定\")])],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-536651c4\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/envGovernment/sqlGovernment.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-536651c4\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./sqlGovernment.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./sqlGovernment.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./sqlGovernment.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-536651c4\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./sqlGovernment.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-536651c4\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/envGovernment/sqlGovernment.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}