{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\meta\\DataSourceManager.vue?vue&type=template&id=a549fd9e&scoped=true&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\meta\\DataSourceManager.vue","mtime":1675071993006},{"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":["\n<div class=\"fullheight\">\n  <ht-table\n    ref=\"dataSourceTable\"\n    @load=\"loadData\"\n    :data=\"data\"\n    :pageResult=\"pageResult\"\n    :selection=\"true\"\n    quick-search-props=\"name,alias\"\n    :show-export=\"false\"\n    :show-custom-column=\"false\"\n    :defaultSorter=\"[{'property':'CREATE_TIME_','direction':'DESC'}]\"\n    @row-click=\"rowClick\"\n  >\n    <template v-slot:toolbar>\n    \n        <el-button size=\"small\" icon=\"el-icon-plus\" @click=\"handleCommand({command:'add'})\" type=\"primary\">添加</el-button>\n          <ht-delete-button\n          size=\"small\"\n          :url=\"dataSourceDeleteUrl\"\n          :htTable=\"$refs.dataSourceTable\"\n          :style=\"{marginLeft: '10px'}\"\n        >删除</ht-delete-button>\n        <el-button size=\"small\" icon=\"el-icon-right\" \n        style=\"margin-left:10px\"\n        @click=\"uploadDialogVisible = true;\" type=\"primary\" plain>导入</el-button>\n        <el-button size=\"small\" icon=\"el-icon-right\"\n        style=\"margin-left:10px\"\n        @click=\"handleExport\" plain type='primary'>导出</el-button>\n      \n     \n    </template>\n    <template>\n      <ht-table-column type=\"index\" width=\"50\" align=\"center\" label=\"序号\" />\n      <ht-table-column\n        prop=\"name\"\n        label=\"名称\"\n        width=\"300\"\n        :sortable=\"true\"\n        :show-overflow-tooltip=\"true\"\n      >\n        <template v-slot=\"{row}\">\n          <el-link @click=\"handleCommand({row:row,command:'edit'})\" type=\"primary\">{{row.name}}</el-link>\n        </template>\n      </ht-table-column>\n      <ht-table-column prop=\"alias\" label=\"别名\" :sortable=\"true\" />\n      <ht-table-column\n        prop=\"enabled\"\n        label=\"是否可用\"\n        :filters=\"[{text:'是', value:1},{text:'否', value:0}]\"\n      >\n        <template v-slot=\"{row}\">\n          <el-tag type=\"success\" v-if=\"row.enabled\">是</el-tag>\n          <el-tag type=\"primary\" v-if=\"!row.enabled\">否</el-tag>\n        </template>\n      </ht-table-column>\n      <!-- <ht-table-column width=\"150\" label=\"操作\">\n            <template v-slot=\"{row}\">\n              <el-dropdown\n                size=\"mini\"\n                split-button\n                @command=\"handleCommand\"\n                @click=\"handleCommand({row:row,command:'edit'})\"\n              >\n                <span>\n                  <i class=\"el-icon-edit\"></i>编辑\n                </span>\n                <el-dropdown-menu slot=\"dropdown\">\n                  <el-dropdown-item icon=\"el-icon-menu\" :command=\"{row:row,command:'get'}\">查看</el-dropdown-item>\n                </el-dropdown-menu>\n              </el-dropdown>\n            </template>\n      </ht-table-column>-->\n    </template>\n  </ht-table>\n\n  <el-dialog\n    width=\"50%\"\n    :title=\"dataSourceTitle\"\n    :visible=\"dialogVisible\"\n    :before-close=\"handleClose\"\n    :close-on-click-modal=\"false\"\n  >\n    <el-form\n      :disabled=\"dataSourceDisabled\"\n      v-model=\"sourceProp\"\n      data-vv-scope=\"editdataSourceForm\"\n    >\n      <ht-form-item label=\"名称\" prop=\"name\" label-width=\"130px\" class=\"dataSource-input-width\">\n        <ht-input\n          v-model=\"sourceProp.name\"\n          autocomplete=\"off\"\n          :validate=\"{required:true}\"\n          placeholder=\"请输入名称\"\n          :maxlength=\"50\"\n          :showWordLimit=\"true\"\n        ></ht-input>\n      </ht-form-item>\n      <ht-form-item\n        label=\"别名(唯一)\"\n        prop=\"alias\"\n        label-width=\"130px\"\n        class=\"dataSource-input-width\"\n      >\n        <ht-input\n          v-model=\"sourceProp.alias\"\n          v-pinyin=\"sourceProp.name\"\n          autocomplete=\"off\"\n          :validate=\"{required:true, regex:{exp:'^[a-zA-Z][a-zA-Z0-9_]*$', message:'只能输入字母、数字、下划线，且以字母开头' }}\"\n          placeholder=\"请输入别名\"\n          :disabled=\"sourceProp.id?true:false\"\n          :maxlength=\"50\"\n          :showWordLimit=\"true\"\n        ></ht-input>\n      </ht-form-item>\n      <ht-form-item\n        label=\"数据源类型\"\n        label-width=\"130px\"\n        class=\"dataSource-item-bottom dataSource-input-width\"\n      >\n        <ht-select\n          v-model=\"sourceProp.dbType\"\n          :options=\"dbTypeList\"\n          :props=\"{key:'value',value:'value'}\"\n          :validate=\"{'required':true}\"\n          @change=\"currentSel\"\n        />\n      </ht-form-item>\n      <ht-form-item\n        label=\"是否生效\"\n        label-width=\"130px\"\n        class=\"dataSource-item-bottom dataSource-input-width\"\n      >\n        <ht-select\n          v-model=\"sourceProp.enabled\"\n          :options=\"enableds\"\n          :validate=\"{'required':true}\"\n        />\n      </ht-form-item>\n      <ht-form-item\n        label=\"数据源\"\n        label-width=\"130px\"\n        class=\"dataSource-item-bottom dataSource-input-width\"\n      >\n        <ht-select\n          v-model=\"dsId\"\n          :options=\"sysDataSourceDefs\"\n          :props=\"{key:'id',value:'name'}\"\n          :validate=\"{'required':true}\"\n          @change=\"settingSel\"\n        />\n      </ht-form-item>\n      <ht-form-item\n        v-for=\"(item,index) in sourceProp.settingJson\"\n        :key=\"item.comment\"\n        v-show=\"sourceProp.settingJson.length>0 && !isExpand?(index<4):true\"\n        :label=\"item.comment\"\n        label-width=\"130px\"\n        class=\"dataSource-item-bottom dataSource-input-width\"\n      >\n        <ht-input\n          v-model=\"item.value\"\n          :validate=\"{required:true}\"\n          :placeholder=\"'请输入'+item.comment\"\n          :disabled=\"(item.name=='password' || item.name=='connectionProperties') && isEncrypt===1\"\n        > \n        </ht-input>\n        ({{item.type}})\n        <div v-if=\"item.name=='password'\">\n            <el-switch\n            v-model=\"isEncrypt\"\n            active-color=\"#13ce66\"\n            inactive-color=\"#ff4949\"\n            :active-value=\"1\"\n            :inactive-value=\"0\"\n            active-text=\"加密\"\n            inactive-text=\"不加密\"\n            @change=\"encrypt(item)\"\n            >\n          </el-switch>\n        </div>\n      </ht-form-item>\n    </el-form>\n    <div style=\"text-align: center;\" v-if=\"sourceProp.settingJson.length>0\">\n      <el-button\n        size=\"mini\"\n        @click=\"isExpand = !isExpand\"\n        :icon=\"isExpand? 'icon-expand':'icon-hide'\"\n        circle\n        :title=\"isExpand? '收起':'展开'\"\n      ></el-button>\n    </div>\n    <div slot=\"footer\" class=\"dialog-footer\">\n      <el-button @click=\"checkConnection()\" type=\"primary\">测试连接</el-button>\n      <ht-submit-button\n        v-show=\"!dataSourceDisabled\"\n        :url=\"savedataSourceUrl()\"\n        :model=\"newSourceProp\"\n        :is-submit=\"isSubmit\"\n        request-method=\"POST\"\n        scope-name=\"editdataSourceForm\"\n        @before-save-data=\"beforeSaveData\"\n        @after-save-data=\"afterSaveData\"\n      >{{$t('eip.common.save')}}</ht-submit-button>\n      <el-button @click=\"dialogCancle('dialogVisible')\">{{$t('eip.common.cancel')}}</el-button>\n    </div>\n  </el-dialog>\n  <!-- 加载数据 用作编辑数据源和查看数据源-->\n  <ht-load-data\n    :url=\"settingDataUrl\"\n    context=\"portal\"\n    @after-load-data=\"afterLoadSourcesettingData\"\n  ></ht-load-data>\n  <!-- 加载数据 用作编辑数据源和查看数据源-->\n  <ht-load-data :url=\"loadDataUrl\" context=\"portal\" @after-load-data=\"afterLoadData\"></ht-load-data>\n  <el-dialog title=\"上传文件\" :visible=\"uploadDialogVisible\" :before-close=\"beforeClose\" name=\"uploadDialog\" :center=\"true\">\n    <el-upload :action=\"uploadUrl\" :http-request=\"handleImport\" accept=\".zip\" \n    :file-list=\"fileList\" :limit=\"1\" :auto-upload=\"false\" ref=\"elUpload\" align=\"center\">\n      <el-button size=\"small\" type=\"primary\">点击上传</el-button>\n      <div slot=\"tip\" class=\"el-upload__tip\">只能上传zip文件</div>\n    </el-upload>\n    <span slot=\"footer\" class=\"dialog-footer\">\n      <el-button type=\"primary\" @click=\"uploadSubmit\" >上传</el-button>\n      <el-button type=\"default\" @click=\"beforeClose\">取消</el-button>\n    </span>\n  </el-dialog>\n</div>\n",null]}