{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\customView\\CustomViewEdit.vue?vue&type=template&id=52dd9650&scoped=true&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\customView\\CustomViewEdit.vue","mtime":1675071992069},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:\"cv-edit__dialog\",attrs:{\"visible\":_vm.dialogVisible,\"before-close\":_vm.beforeClose,\"show-close\":false,\"close-on-click-modal\":false,\"fullscreen\":\"\"},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_c('div',{staticClass:\"flex\",staticStyle:{\"justify-content\":\"space-between\"}},[_c('el-page-header',{attrs:{\"content\":_vm.title},on:{\"back\":_vm.close}}),_c('el-button-group',[_c('el-button',{attrs:{\"type\":\"primary\",\"disabled\":_vm.disabled},on:{\"click\":_vm.saveData}},[_vm._v(_vm._s(_vm.$t(\"eip.common.save\")))]),(_vm.id)?_c('el-button',{on:{\"click\":_vm.refresh}},[_vm._v(\"刷新字段\")]):_vm._e()],1)],1)]},proxy:true}])},[_c('el-dialog',{attrs:{\"width\":\"1040px\",\"top\":\"8vh\",\"title\":\"SQL生成器\",\"visible\":_vm.dialogSQLVisible,\"before-close\":_vm.handleClose,\"close-on-click-modal\":false,\"append-to-body\":\"\"}},[_c('el-button',{staticClass:\"btn-padding\",staticStyle:{\"margin-bottom\":\"5px\"},attrs:{\"icon\":\"el-icon-plus\"},on:{\"click\":_vm.addSqlList}},[_vm._v(\"添加关联表\")]),_c('div',{staticStyle:{\"width\":\"100%\",\"height\":\"550px\",\"overflow\":\"auto\"}},_vm._l((_vm.sqlList),function(sql,indexSql){return _c('div',{key:indexSql},[_c('table',{staticClass:\"form-table choiceType-table\",staticStyle:{\"margin-bottom\":\"1px\"},attrs:{\"cellspacing\":\"0\",\"cellpadding\":\"0\",\"border\":\"0\"}},[_c('tbody',[_c('tr',{staticStyle:{\"background-color\":\"#cccccc24\"}},[_c('th',{attrs:{\"width\":\"110px\"}},[_vm._v(\"关联表:\")]),_c('td',[(indexSql==0)?_c('el-select',{ref:\"related\",refInFor:true,attrs:{\"filterable\":\"\",\"placeholder\":\"请选择\"},on:{\"change\":function($event){return _vm.changeSql(sql.related,indexSql,'related')}},nativeOn:{\"click\":function($event){return _vm.getDivision(sql.related,indexSql,'related')}},model:{value:(sql.related),callback:function ($$v) {_vm.$set(sql, \"related\", $$v)},expression:\"sql.related\"}},_vm._l((_vm.tableList),function(item){return _c('el-option',{key:item.name,attrs:{\"label\":item.comment,\"value\":item.name}})}),1):_vm._e(),(indexSql!=0)?_c('el-select',{ref:\"related\",refInFor:true,attrs:{\"filterable\":\"\",\"placeholder\":\"请选择\"},on:{\"change\":function($event){return _vm.changeSql(sql.related,indexSql,'related')}},nativeOn:{\"click\":function($event){return _vm.getDivision(sql.related,indexSql,'related')}},model:{value:(sql.related),callback:function ($$v) {_vm.$set(sql, \"related\", $$v)},expression:\"sql.related\"}},_vm._l((_vm.tableList.filter(function (tab) { return tab.type === '2'; })),function(item){return _c('el-option',{key:item.name,attrs:{\"label\":item.comment,\"value\":item.name}})}),1):_vm._e(),(!sql.related)?_c('el-button',{staticClass:\"btn-padding\",staticStyle:{\"margin-left\":\"10px\"},attrs:{\"type\":\"danger\",\"icon\":\"el-icon-delete\"},on:{\"click\":function($event){return _vm.removeSqlList(indexSql)}}}):_vm._e()],1),(sql.related)?_c('th',{attrs:{\"width\":\"110px\"}},[_vm._v(\"被关联表:\")]):_vm._e(),(sql.related)?_c('td',[_c('el-select',{ref:\"connected\",refInFor:true,attrs:{\"filterable\":\"\",\"placeholder\":\"请选择\"},on:{\"change\":function($event){return _vm.changeSql(sql.connected,indexSql,'connected')}},nativeOn:{\"click\":function($event){return _vm.getDivision(sql.related,indexSql,'connected')}},model:{value:(sql.connected),callback:function ($$v) {_vm.$set(sql, \"connected\", $$v)},expression:\"sql.connected\"}},_vm._l((_vm.tableList),function(item){return _c('el-option',{key:item.name,attrs:{\"label\":item.comment,\"value\":item.name}})}),1),_c('el-button',{staticClass:\"btn-padding\",staticStyle:{\"margin-left\":\"10px\"},attrs:{\"type\":\"danger\",\"icon\":\"el-icon-delete\"},on:{\"click\":function($event){return _vm.removeSqlList(indexSql)}}})],1):_vm._e()]),(sql.connected)?_c('tr',[_c('th',{attrs:{\"width\":\"110px\"}},[_vm._v(\"关联关系:\")]),_c('td',{attrs:{\"colspan\":\"3\"}},[_c('table',{staticClass:\"form-table choiceType-table\",staticStyle:{\"margin-bottom\":\"1px\"},attrs:{\"cellspacing\":\"0\",\"cellpadding\":\"0\",\"border\":\"0\"}},[_c('tbody',_vm._l((sql.relation),function(item,indexRelation){return _c('tr',{key:indexRelation},[_c('td',[_vm._v(_vm._s(sql.related)+\".\\n \"),_c('ht-select',{attrs:{\"clearable\":\"\",\"filterable\":\"\",\"options\":sql.fieldRelatedList,\"props\":{key:'key',value:'value'}},model:{value:(item.relatedBind),callback:function ($$v) {_vm.$set(item, \"relatedBind\", $$v)},expression:\"item.relatedBind\"}}),_vm._v(\"   =   \\n \"+_vm._s(sql.connected)+\".\\n \"),_c('ht-select',{attrs:{\"clearable\":\"\",\"filterable\":\"\",\"options\":sql.fieldConnectedList,\"props\":{key:'key',value:'value'}},model:{value:(item.connectedBind),callback:function ($$v) {_vm.$set(item, \"connectedBind\", $$v)},expression:\"item.connectedBind\"}}),_c('el-button',{staticClass:\"btn-padding\",staticStyle:{\"margin-left\":\"10px\"},attrs:{\"icon\":\"el-icon-plus\"},on:{\"click\":function($event){return sql.relation.push({})}}}),(sql.relation.length>1)?_c('el-button',{staticClass:\"btn-padding\",staticStyle:{\"margin-left\":\"10px\"},attrs:{\"type\":\"danger\",\"icon\":\"el-icon-delete\"},on:{\"click\":function($event){return sql.relation.remove(item)}}}):_vm._e()],1)])}),0)])])]):_vm._e()])])])}),0),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":_vm.sqlOk}},[_vm._v(\"确 认\")]),_c('el-button',{attrs:{\"size\":\"small\"},on:{\"click\":function($event){_vm.dialogSQLVisible = false}}},[_vm._v(\"返 回\")])],1)],1),(_vm.dialogVisible)?_c('el-tabs',{model:{value:(_vm.tabStatus),callback:function ($$v) {_vm.tabStatus=$$v},expression:\"tabStatus\"}},[_c('el-tab-pane',{attrs:{\"label\":\"sql配置\",\"name\":\"sql\"}},[_c('el-form',{attrs:{\"data-vv-scope\":\"customViewEdit\"}},[_c('ht-form-item',{attrs:{\"label\":\"名称\"}},[_c('ht-input',{attrs:{\"validate\":{required:true},\"maxlength\":50,\"showWordLimit\":true},model:{value:(_vm.data.name),callback:function ($$v) {_vm.$set(_vm.data, \"name\", $$v)},expression:\"data.name\"}})],1),_c('ht-form-item',{attrs:{\"label\":\"别名\"}},[_c('ht-input',{directives:[{name:\"pinyin\",rawName:\"v-pinyin\",value:(_vm.data.name),expression:\"data.name\"}],attrs:{\"disabled\":_vm.data.id?true:false,\"maxlength\":50,\"showWordLimit\":true,\"name\":\"dataAlias\",\"validate\":{\n required: true,\n regex: {\n exp: '^[a-zA-Z][a-zA-Z0-9_]*$',\n message: '只能输入字母、数字、下划线,且以字母开头'\n }\n }},on:{\"change\":_vm.changeAlias},model:{value:(_vm.data.alias),callback:function ($$v) {_vm.$set(_vm.data, \"alias\", $$v)},expression:\"data.alias\"}})],1),_c('ht-form-item',{attrs:{\"label\":\"数据源\"}},[_c('ht-select',{attrs:{\"options\":_vm.dataSources,\"props\":{key:'alias',value:'name'}},model:{value:(_vm.data.dsName),callback:function ($$v) {_vm.$set(_vm.data, \"dsName\", $$v)},expression:\"data.dsName\"}}),_vm._v(\"\\n   \"),_c('el-button',{on:{\"click\":_vm.generateSql}},[_vm._v(\"SQL生成\")])],1),_c('ht-form-item',{attrs:{\"label\":\"sql语句\"}},[_c('span',{attrs:{\"slot\":\"label\"},slot:\"label\"},[_c('el-tooltip',{attrs:{\"content\":\"系统不支持在联表查询SQL中使用别名,需要指定字段时,请使用表名作前缀\",\"placement\":\"top\",\"effect\":\"dark\"}},[_c('i',{staticClass:\"el-icon-question\"})]),_vm._v(\"\\n sql语句\\n \")],1),_c('ht-input',{attrs:{\"type\":\"textarea\",\"disabled\":_vm.data.id?true:false,\"autosize\":{ minRows: 10, maxRows: 10}},model:{value:(_vm.data.sql),callback:function ($$v) {_vm.$set(_vm.data, \"sql\", $$v)},expression:\"data.sql\"}}),(!_vm.data.id)?_c('el-button',{staticStyle:{\"margin-left\":\"5px\"},attrs:{\"type\":\"primary\"},on:{\"click\":_vm.getTenantCode}},[_vm._v(\"复制租户别名\")]):_vm._e(),_vm._v(\"\\n   \"),(!_vm.data.id)?_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.checkSql}},[_vm._v(\"验证SQL\")]):_vm._e()],1)],1)],1),_c('el-tab-pane',{attrs:{\"label\":\"按钮配置\",\"name\":\"btn\"}},[_c('el-button',{staticStyle:{\"margin\":\"5px 0\"},attrs:{\"type\":\"primary\"},on:{\"click\":_vm.addButton}},[_vm._v(\"添加\")]),_c('el-table',{ref:\"table\",attrs:{\"border\":\"\",\"data\":_vm.buttonDef}},[_c('el-table-column',{attrs:{\"label\":\"名称\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('ht-input',{attrs:{\"disabled\":scope.row.isDefault==='1',\"maxlength\":50,\"showWordLimit\":true},model:{value:(scope.row.name),callback:function ($$v) {_vm.$set(scope.row, \"name\", $$v)},expression:\"scope.row.name\"}})]}}],null,false,3662974399)}),_c('el-table-column',{attrs:{\"prop\":\"inRow\",\"label\":\"行内按钮\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-switch',{attrs:{\"active-color\":\"#13ce66\",\"inactive-color\":\"#ff4949\"},model:{value:(scope.row.inRow),callback:function ($$v) {_vm.$set(scope.row, \"inRow\", $$v)},expression:\"scope.row.inRow\"}})]}}],null,false,4116651679)}),_c('el-table-column',{attrs:{\"label\":\"按钮图标\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{class:'cv-icon icon iconfont '+scope.row.icon}),(!scope.row.inRow)?_c('icon-dialog',{staticClass:\"cv-icon__dialog\",on:{\"selected\":function($event){return _vm.selectIcon($event,scope.$index,scope.row)}}}):_vm._e()]}}],null,false,2720105689)}),_c('el-table-column',{attrs:{\"label\":\"事件类型\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('ht-select',{attrs:{\"props\":{key:'key',value:'value'},\"options\":[{key:'onclick',value:'onclick'},{key:'href',value:'href'}],\"disabled\":scope.row.isDefault==='1'},model:{value:(scope.row.triggerType),callback:function ($$v) {_vm.$set(scope.row, \"triggerType\", $$v)},expression:\"scope.row.triggerType\"}})]}}],null,false,1650329243)}),_c('el-table-column',{attrs:{\"prop\":\"urlPath\",\"label\":\"url路径\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('ht-input',{attrs:{\"disabled\":scope.row.isDefault==='1'},model:{value:(scope.row.urlPath),callback:function ($$v) {_vm.$set(scope.row, \"urlPath\", $$v)},expression:\"scope.row.urlPath\"}})]}}],null,false,229820061)},[_c('template',{slot:\"header\"},[_vm._v(\"\\n URL\\n \"),_c('el-tooltip',{staticClass:\"item\",attrs:{\"effect\":\"dark\",\"placement\":\"top-start\"}},[_c('div',{attrs:{\"slot\":\"content\"},slot:\"content\"},[_vm._v(\"\\n 1.事件类型:onclick\\n \"),_c('br'),_vm._v(\"可直接调用front\\\\src\\\\components\\\\querySql\\\\DynamicView.vue 文件中的函数(可在此文件自定义新增函数)\\n \"),_c('br'),_vm._v(\"例:exports()\\n \"),_c('br'),_vm._v(\"2.事件类型:href\\n \"),_c('br'),_vm._v(\"可跳转到其他页面\\n \"),_c('br'),_vm._v(\"例:https://www.baidu.com/\\n \")]),_c('i',{staticClass:\"el-icon-warning\"})])],1)],2),_c('el-table-column',{attrs:{\"label\":\"管理\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"info\",\"icon\":\"el-icon-arrow-up\"},on:{\"click\":function($event){return _vm.arrayMove('buttonDef',scope.row,'up')}}}),_c('el-button',{attrs:{\"type\":\"info\",\"icon\":\"el-icon-arrow-down\"},on:{\"click\":function($event){return _vm.arrayMove('buttonDef',scope.row,'down')}}}),(scope.row.isDefault!=='1')?_c('el-button',{attrs:{\"type\":\"danger\",\"icon\":\"el-icon-delete\"},on:{\"click\":function($event){return _vm.deleteRow(scope.$index,_vm.buttonDef)}}}):_vm._e()]}}],null,false,2521538675)})],1)],1),(_vm.id!=='')?_c('el-tab-pane',{attrs:{\"label\":\"字段设置\",\"name\":\"field\"}},[_c('el-table',{attrs:{\"data\":_vm.data.metafields,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"name\",\"label\":\"列名\",\"width\":\"160\"}}),_c('el-table-column',{attrs:{\"prop\":\"dataType\",\"label\":\"类型\",\"width\":\"65\"}}),_c('el-table-column',{attrs:{\"label\":\"实际列名\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('ht-input',{attrs:{\"maxlength\":50,\"disabled\":true},model:{value:(scope.row.fieldName),callback:function ($$v) {_vm.$set(scope.row, \"fieldName\", $$v)},expression:\"scope.row.fieldName\"}})]}}],null,false,178222606)}),_c('el-table-column',{attrs:{\"label\":\"描述\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('ht-input',{attrs:{\"maxlength\":50},model:{value:(scope.row.fieldDesc),callback:function ($$v) {_vm.$set(scope.row, \"fieldDesc\", $$v)},expression:\"scope.row.fieldDesc\"}})]}}],null,false,979375656)}),_c('el-tooltip',{staticClass:\"item\",attrs:{\"effect\":\"dark\",\"content\":\"Top Right 提示文字\",\"placement\":\"top-end\"}},[_c('el-table-column',{attrs:{\"width\":\"150\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('ht-input',{attrs:{\"maxlength\":50},model:{value:(scope.row.width),callback:function ($$v) {_vm.$set(scope.row, \"width\", $$v)},expression:\"scope.row.width\"}})]}}],null,false,740466301)},[_c('template',{slot:\"header\"},[_vm._v(\"\\n 宽度(px)\\n \"),_c('el-tooltip',{staticClass:\"item\",attrs:{\"effect\":\"dark\",\"content\":\"为0表示自适应\",\"placement\":\"top-start\"}},[_c('i',{staticClass:\"el-icon-warning\"})])],1)],2)],1),_c('el-table-column',{attrs:{\"prop\":\"controlTypeDesc\",\"label\":\"控件类型\",\"width\":\"90\"}}),_c('el-table-column',{attrs:{\"label\":\"URL\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('ht-input',{model:{value:(scope.row.url),callback:function ($$v) {_vm.$set(scope.row, \"url\", $$v)},expression:\"scope.row.url\"}})]}}],null,false,2114945111)},[_c('template',{slot:\"header\"},[_vm._v(\"\\n URL\\n \"),_c('el-tooltip',{staticClass:\"item\",attrs:{\"effect\":\"dark\",\"placement\":\"top-start\"}},[_c('div',{attrs:{\"slot\":\"content\"},slot:\"content\"},[_vm._v(\"\\n url 写法规则如下(写法遵循JS规范,使用前请自行检查语句):\\n \"),_c('br'),_vm._v(\"1.打开新窗口:onclick=\\\"window.open('http://www.hotent.com')\\\"\\n \"),_c('br'),_vm._v(\"2.本页面VUE路由跳转: @click=\\\"routerPush('/home')\\\"\\n \"),_c('br'),_vm._v(\"3.获取变量做跳转地址拼接,用法如下:\\n @click=\\\"routerPush('/urlTest/test/'+scope.row.id_)\\\"\\n \"),_c('br'),_vm._v(\"4.使用行数据的方式为:scope.row.实际列名\\n \"),_c('br')]),_c('i',{staticClass:\"el-icon-warning\"})])],1)],2),_c('el-table-column',{attrs:{\"label\":\"显示\",\"width\":\"70\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-switch',{attrs:{\"active-color\":\"#13ce66\",\"inactive-color\":\"#ff4949\",\"active-value\":1,\"inactive-value\":0},model:{value:(scope.row.isShow),callback:function ($$v) {_vm.$set(scope.row, \"isShow\", $$v)},expression:\"scope.row.isShow\"}})]}}],null,false,1660137261)}),_c('el-table-column',{attrs:{\"label\":\"查询\",\"width\":\"70\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-switch',{attrs:{\"active-color\":\"#13ce66\",\"inactive-color\":\"#ff4949\",\"active-value\":1,\"inactive-value\":0},model:{value:(scope.row.isSearch),callback:function ($$v) {_vm.$set(scope.row, \"isSearch\", $$v)},expression:\"scope.row.isSearch\"}})]}}],null,false,4134220288)}),_c('el-table-column',{attrs:{\"label\":\"合并查询\",\"width\":\"70\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.isSearch)?_c('el-switch',{attrs:{\"active-color\":\"#13ce66\",\"inactive-color\":\"#ff4949\",\"active-value\":1,\"inactive-value\":0},model:{value:(scope.row.isCombine),callback:function ($$v) {_vm.$set(scope.row, \"isCombine\", $$v)},expression:\"scope.row.isCombine\"}}):_vm._e()]}}],null,false,3075737796)}),_c('el-table-column',{attrs:{\"label\":\"排序\",\"width\":\"120\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"info\",\"icon\":\"el-icon-arrow-up\"},on:{\"click\":function($event){return _vm.arrayMove('metafields',scope.row,'up')}}}),_c('el-button',{attrs:{\"type\":\"info\",\"icon\":\"el-icon-arrow-down\"},on:{\"click\":function($event){return _vm.arrayMove('metafields',scope.row,'down')}}})]}}],null,false,579614356)}),_c('el-table-column',{attrs:{\"label\":\"管理\",\"width\":\"180\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.isVirtual===0)?_c('el-button',{attrs:{\"type\":scope.row.controlType==='onetext'?'info':'warning'},on:{\"click\":function($event){return _vm.fieldDialog('K',scope.row)}}},[_vm._v(\"控\")]):_vm._e(),_c('el-button',{attrs:{\"type\":((scope.row.alarmSetting!=null&&scope.row.alarmSetting.length>0)||(scope.row.formater!=null&&scope.row.formater!==''))?'warning':'info'},on:{\"click\":function($event){return _vm.fieldDialog('B',scope.row)}}},[_vm._v(\"报\")]),(scope.row.isVirtual===1)?_c('el-button',{attrs:{\"type\":\"danger\"},on:{\"click\":function($event){return _vm.fieldDialog('P',scope.row)}}},[_vm._v(\"配\")]):_vm._e()]}}],null,false,473247105)})],1)],1):_vm._e()],1):_vm._e(),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"}),_c('field-dialog',{ref:\"fieldDialog\",attrs:{\"type\":_vm.type,\"item\":_vm.item},on:{\"select\":_vm.select,\"after-save\":_vm.fieldSaveX}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"]}