@egova/egova-api 1.0.221 → 1.0.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +191 -50
- package/dist/index.css +1 -1
- package/dist/index.umd.js +191 -50
- package/dist/index.umd.min.js +3 -3
- package/dist/types/src/views/project-combine/data-model/data-model-list/index.d.ts +7 -3
- package/dist/types/src/views/project-detail/interface-settings/index.d.ts +1 -1
- package/dist/types/src/views/project-detail/security-modal/index.d.ts +4 -0
- package/dist/types/src/views/project-detail/service.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.common.js
CHANGED
|
@@ -26536,7 +26536,7 @@ module.exports = function (argument) {
|
|
|
26536
26536
|
/***/ "3bf8":
|
|
26537
26537
|
/***/ (function(module, exports) {
|
|
26538
26538
|
|
|
26539
|
-
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-security-modal diy-modal\" transfer>\r\n <header slot=\"header\">授权认证</header>\r\n <main class=\"security-content\">\r\n <div class=\"left\">\r\n <div class=\"left-title\">\r\n <div class=\"left-title-text\">授权列表</div>\r\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\r\n </div>\r\n <div class=\"left-content\">\r\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\r\n <template #prefix>\r\n <i-icon type=\"ios-search\"/>\r\n </template>\r\n </i-input>\r\n <div class=\"security-list\">\r\n <div class=\"security-list-item\"\r\n :class=\"currentSecurityItem.id === item.id ? 'security-list-item-active' : ''\"\r\n v-for=\"(item,index) in securityList\"\r\n :key=\"item.id || index\"\r\n @click=\"onSelectSecurityItem(item)\"\r\n >\r\n <div class=\"security-list-item-name\">\r\n <i class=\"iconfont icon-shouquan1\"></i>\r\n <div class=\"security-list-item-text\" :class=\"currentSecurityItem.id === item.id ? 'security-list-item-text-active' : ''\">{{ item.name || \"新授权\" }}</div>\r\n </div>\r\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n<!-- <i class=\"iconfont icon-delete\" @click.stop=\"onDelete(item)\"></i>-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">授权内容</div>\r\n <div class=\"right-content\">\r\n <i-form class=\"security-content-form\"label-colon :model=\"currentSecurityItem\">\r\n <template v-if=\"currentSecurityItem.type\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权名称\" required>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权类型\" required>\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.type\">\r\n <i-option v-for=\"(item,index) in securityTypeList\" :value=\"item.name\" :key=\"index\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type && currentSecurityItem.type !== 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储位置\">\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.location\">\r\n <i-option v-for=\"(item,index) in tokenLocationTypeList\" :value=\"item.name\" :key=\"item.name\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储键值\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.locationKey\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Api_Key'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"key\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.key\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Base_Auth'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" label=\"password\">\r\n <i-input class=\"diy-password-input diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'OAuth2'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.headerPrefix\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item grant-type-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\r\n <i-select v-model=\"currentSecurityItem.content.grantType\" class=\"diy-select\">\r\n <i-option v-for=\"item in grantTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpurl\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenUrl\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenPath\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client ID\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientId\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client Secret\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientSecret\"></i-input>\r\n </i-form-item>\r\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"password\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.scope\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item script-area-item\" label=\"授权脚本\">\r\n <div class=\"script-label\" slot=\"label\">\r\n <i-icon class=\"help-icon\" type=\"md-alert\" @click=\"showScriptDoc\" title=\"帮助文档\"> </i-icon>\r\n <span>授权脚本:</span>\r\n </div>\r\n <i-input class=\"diy-input script-area\" type=\"textarea\" placeholder=\"请输入\" v-model=\"currentSecurityItem.scriptContent\"></i-input>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot=\"footer\">\r\n <template>\r\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\r\n </template>\r\n </footer>\r\n <u-doc-modal class=\"script-doc-modal\" v-model=\"scriptDocShow\" :doc=\"scriptDoc\"></u-doc-modal>\r\n</i-modal>\r\n"
|
|
26539
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-security-modal diy-modal\" transfer>\r\n <header slot=\"header\">授权认证</header>\r\n <main class=\"security-content\">\r\n <div class=\"left\">\r\n <div class=\"left-title\">\r\n <div class=\"left-title-text\">授权列表</div>\r\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\r\n </div>\r\n <div class=\"left-content\">\r\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\r\n <template #prefix>\r\n <i-icon type=\"ios-search\"/>\r\n </template>\r\n </i-input>\r\n <div class=\"security-list\">\r\n <div class=\"security-list-item\"\r\n :class=\"currentSecurityItem.id === item.id ? 'security-list-item-active' : ''\"\r\n v-for=\"(item,index) in securityList\"\r\n :key=\"item.id || index\"\r\n @click=\"onSelectSecurityItem(item)\"\r\n >\r\n <div class=\"security-list-item-name\">\r\n <i class=\"iconfont icon-shouquan1\"></i>\r\n <div class=\"security-list-item-text\" :class=\"currentSecurityItem.id === item.id ? 'security-list-item-text-active' : ''\">{{ item.name || \"新授权\" }}</div>\r\n </div>\r\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n<!-- <i class=\"iconfont icon-delete\" @click.stop=\"onDelete(item)\"></i>-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">授权内容</div>\r\n <div class=\"right-content\">\r\n <i-form class=\"security-content-form\" label-colon v-if=\"isEmpty\" :model=\"currentSecurityItem\">\r\n <template v-if=\"currentSecurityItem.type\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权名称\" required>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"授权类型\" required>\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.type\">\r\n <i-option v-for=\"(item,index) in securityTypeList\" :value=\"item.name\" :key=\"index\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type && currentSecurityItem.type !== 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储位置\">\r\n <i-select class=\"diy-select\" v-model=\"currentSecurityItem.location\">\r\n <i-option v-for=\"(item,index) in tokenLocationTypeList\" :value=\"item.name\" :key=\"item.name\">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" :class=\"currentSecurityItem.type === 'OAuth2' ? 'oauth2-form-item' : ''\" label=\"存储键值\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.locationKey\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Api_Key'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"key\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.key\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'Base_Auth'\">\r\n <i-form-item class=\"security-content-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item\" label=\"password\">\r\n <i-input class=\"diy-password-input diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'OAuth2'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Header Prefix'\" tips=\"token前缀 例如 Bearer\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.headerPrefix\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item grant-type-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Grant Type'\" tips=\"认证类型\" label-colon></u-tips-form-label>\r\n <i-select v-model=\"currentSecurityItem.content.grantType\" class=\"diy-select\">\r\n <i-option v-for=\"item in grantTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Access Token Url'\" tips=\"获取token的httpurl\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenUrl\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'TokenPath'\" tips=\"获取响应结果的token路径\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.tokenPath\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client ID\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientId\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"Client Secret\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.clientSecret\"></i-input>\r\n </i-form-item>\r\n <template v-if=\"currentSecurityItem.content.grantType === 'password'\">\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"username\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.username\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\" label=\"password\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.password\" type=\"password\" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item class=\"security-content-form-item oauth2-form-item\">\r\n <u-tips-form-label slot=\"label\" :labelTitle=\"'Scope'\" tips=\"访问请求的范围,它可能有多个空格分隔的值\" label-colon></u-tips-form-label>\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"currentSecurityItem.content.scope\"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if=\"currentSecurityItem.type === 'GROOVY_SCRIPT'\">\r\n <i-form-item class=\"security-content-form-item script-area-item\" label=\"授权脚本\">\r\n <div class=\"script-label\" slot=\"label\">\r\n <i-icon class=\"help-icon\" type=\"md-alert\" @click=\"showScriptDoc\" title=\"帮助文档\"> </i-icon>\r\n <span>授权脚本:</span>\r\n </div>\r\n <u-editor\r\n class=\"editor\"\r\n :model.sync=\"currentSecurityItem.scriptContent\"\r\n :diyKeywordList=\"diyKeywordList\"\r\n lang=\"groovy\"\r\n >\r\n </u-editor>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot=\"footer\">\r\n <template>\r\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\r\n </template>\r\n </footer>\r\n <u-doc-modal class=\"script-doc-modal\" v-model=\"scriptDocShow\" :doc=\"scriptDoc\"></u-doc-modal>\r\n</i-modal>\r\n"
|
|
26540
26540
|
|
|
26541
26541
|
/***/ }),
|
|
26542
26542
|
|
|
@@ -40837,7 +40837,7 @@ module.exports = store.inspectSource;
|
|
|
40837
40837
|
/***/ "8962":
|
|
40838
40838
|
/***/ (function(module, exports) {
|
|
40839
40839
|
|
|
40840
|
-
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"value\" width=\"800\" class=\"u-variable-modal diy-modal\" transfer>\r\n <header slot=\"header\">环境变量</header>\r\n <main class=\"variable-content\">\r\n <div class=\"left\">\r\n <div class=\"left-title\">\r\n <div class=\"left-title-text\">环境列表</div>\r\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\r\n </div>\r\n <div class=\"left-content\">\r\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\r\n <template #prefix>\r\n <i-icon type=\"ios-search\"/>\r\n </template>\r\n </i-input>\r\n <div class=\"security-list\">\r\n <div class=\"security-list-item\"\r\n :class=\"currentItem.id === item.id ? 'security-list-item-active' : ''\"\r\n v-for=\"(item,index) in varList\"\r\n :key=\"item.id || index\"\r\n @click=\"onSelectItem(item)\"\r\n >\r\n <div class=\"security-list-item-name\">\r\n <i class=\"iconfont icon-huanjing\"></i>\r\n <div class=\"security-list-item-text\" :class=\"currentItem.id === item.id ? 'security-list-item-text-active' : ''\">{{ item.name || \"新环境\" }}</div>\r\n </div>\r\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">环境内容</div>\r\n <div class=\"right-content\">\r\n <i-form class=\"variable-content-form\" label-colon label-position=\"left\" v-if=\"isEmpty\" :rules=\"rules\" :label-width=\"100\" :model=\"formData\">\r\n <i-form-item class=\"content-form-item\" label=\"环境名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"content-form-item\" label=\"域名\" prop=\"address\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"formData.address\">\r\n <i-select class=\"diy-select\" v-model=\"formData.type\" slot=\"prepend\" style=\"width: 100px\">\r\n <i-option value=\"http\">http://</i-option>\r\n <i-option value=\"https\">https://</i-option>\r\n </i-select>\r\n </i-input>\r\n </i-form-item>\r\n <i-form-item label=\"描述\" class=\"content-form-item item-remark\" prop=\"remark\">\r\n <i-input class=\"diy-input remark-textarea\" placeholder=\"请输入\" type=\"textarea\" v-model=\"formData.remark\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot=\"footer\">\r\n <template>\r\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n"
|
|
40840
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"value\" width=\"800\" class=\"u-variable-modal diy-modal\" transfer>\r\n <header slot=\"header\">环境变量</header>\r\n <main class=\"variable-content\">\r\n <div class=\"left\">\r\n <div class=\"left-title\">\r\n <div class=\"left-title-text\">环境列表</div>\r\n <i class=\"api-icon icon-add\" @click=\"onAddItem\"></i>\r\n </div>\r\n <div class=\"left-content\">\r\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\r\n <template #prefix>\r\n <i-icon type=\"ios-search\"/>\r\n </template>\r\n </i-input>\r\n <div class=\"security-list\">\r\n <div class=\"security-list-item\"\r\n :class=\"currentItem.id === item.id ? 'security-list-item-active' : ''\"\r\n v-for=\"(item,index) in varList\"\r\n :key=\"item.id || index\"\r\n @click=\"onSelectItem(item)\"\r\n >\r\n <div class=\"security-list-item-name\">\r\n <i class=\"iconfont icon-huanjing\"></i>\r\n <div class=\"security-list-item-text\" :class=\"currentItem.id === item.id ? 'security-list-item-text-active' : ''\">{{ item.name || \"新环境\" }}</div>\r\n </div>\r\n <i-poptip confirm title=\"确认删除这条数据吗?\" transfer placement=\"top-end\" @on-ok=\"onDelete(item)\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"right-title\">环境内容</div>\r\n <div class=\"right-content\">\r\n <i-form class=\"variable-content-form\" ref=\"variable-content-form\" label-colon label-position=\"left\" v-if=\"isEmpty\" :rules=\"rules\" :label-width=\"100\" :model=\"formData\">\r\n <i-form-item class=\"content-form-item\" label=\"环境名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"content-form-item\" label=\"域名\" prop=\"address\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入\" v-model=\"formData.address\">\r\n <i-select class=\"diy-select\" v-model=\"formData.type\" slot=\"prepend\" style=\"width: 100px\">\r\n <i-option value=\"http\">http://</i-option>\r\n <i-option value=\"https\">https://</i-option>\r\n </i-select>\r\n </i-input>\r\n </i-form-item>\r\n <i-form-item label=\"描述\" class=\"content-form-item item-remark\" prop=\"remark\">\r\n <i-input class=\"diy-input remark-textarea\" placeholder=\"请输入\" type=\"textarea\" v-model=\"formData.remark\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot=\"footer\">\r\n <template>\r\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n"
|
|
40841
40841
|
|
|
40842
40842
|
/***/ }),
|
|
40843
40843
|
|
|
@@ -54035,27 +54035,33 @@ function (_super) {
|
|
|
54035
54035
|
}, {
|
|
54036
54036
|
title: "名称",
|
|
54037
54037
|
align: "left",
|
|
54038
|
-
key: "name"
|
|
54038
|
+
key: "name",
|
|
54039
|
+
tooltip: true
|
|
54039
54040
|
}, {
|
|
54040
54041
|
title: "编码",
|
|
54041
54042
|
align: "left",
|
|
54042
|
-
key: "code"
|
|
54043
|
+
key: "code",
|
|
54044
|
+
tooltip: true
|
|
54043
54045
|
}, {
|
|
54044
54046
|
title: "数据源",
|
|
54045
54047
|
align: "left",
|
|
54046
|
-
key: "sourceName"
|
|
54048
|
+
key: "sourceName",
|
|
54049
|
+
tooltip: true
|
|
54047
54050
|
}, {
|
|
54048
54051
|
title: "是否开启缓存",
|
|
54049
54052
|
align: "left",
|
|
54050
|
-
slot: "enableCache"
|
|
54053
|
+
slot: "enableCache",
|
|
54054
|
+
width: 135
|
|
54051
54055
|
}, {
|
|
54052
54056
|
title: "过期时间(s)",
|
|
54053
54057
|
align: "left",
|
|
54054
|
-
key: "expireSeconds"
|
|
54058
|
+
key: "expireSeconds",
|
|
54059
|
+
width: 135
|
|
54055
54060
|
}, {
|
|
54056
54061
|
title: "描述",
|
|
54057
54062
|
align: "left",
|
|
54058
|
-
key: "description"
|
|
54063
|
+
key: "description",
|
|
54064
|
+
tooltip: true
|
|
54059
54065
|
}, {
|
|
54060
54066
|
title: "接口文档",
|
|
54061
54067
|
align: "left",
|
|
@@ -58981,6 +58987,10 @@ function (_super) {
|
|
|
58981
58987
|
return this._get("/api-help/authScript.md");
|
|
58982
58988
|
};
|
|
58983
58989
|
|
|
58990
|
+
ApiService.prototype.onImportAvr = function (data) {
|
|
58991
|
+
return this._post("/unity/api/info/import-var", data);
|
|
58992
|
+
};
|
|
58993
|
+
|
|
58984
58994
|
var _a, _b;
|
|
58985
58995
|
|
|
58986
58996
|
project_detail_service_decorate([serviceHandler("query", {
|
|
@@ -59094,6 +59104,11 @@ function (_super) {
|
|
|
59094
59104
|
showErrorMsg: true
|
|
59095
59105
|
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "onBatchAuth", null);
|
|
59096
59106
|
|
|
59107
|
+
project_detail_service_decorate([serviceHandler("query", {
|
|
59108
|
+
title: "单接口详情导入",
|
|
59109
|
+
showErrorMsg: true
|
|
59110
|
+
}), project_detail_service_metadata("design:type", Function), project_detail_service_metadata("design:paramtypes", [Object]), project_detail_service_metadata("design:returntype", void 0)], ApiService.prototype, "onImportAvr", null);
|
|
59111
|
+
|
|
59097
59112
|
return ApiService;
|
|
59098
59113
|
}(common_service);
|
|
59099
59114
|
|
|
@@ -60446,10 +60461,23 @@ function (_super) {
|
|
|
60446
60461
|
var _a, _b;
|
|
60447
60462
|
|
|
60448
60463
|
return environment_variable_modal_awaiter(this, void 0, void 0, function () {
|
|
60449
|
-
var data, res;
|
|
60464
|
+
var valid, data, res;
|
|
60450
60465
|
return environment_variable_modal_generator(this, function (_c) {
|
|
60451
60466
|
switch (_c.label) {
|
|
60452
60467
|
case 0:
|
|
60468
|
+
return [4
|
|
60469
|
+
/*yield*/
|
|
60470
|
+
, this.$refs["variable-content-form"].validate()];
|
|
60471
|
+
|
|
60472
|
+
case 1:
|
|
60473
|
+
valid = _c.sent();
|
|
60474
|
+
|
|
60475
|
+
if (!valid) {
|
|
60476
|
+
return [2
|
|
60477
|
+
/*return*/
|
|
60478
|
+
];
|
|
60479
|
+
}
|
|
60480
|
+
|
|
60453
60481
|
data = {
|
|
60454
60482
|
name: this.formData.name,
|
|
60455
60483
|
value: "".concat(this.formData.type, "://").concat(this.formData.address),
|
|
@@ -60466,7 +60494,7 @@ function (_super) {
|
|
|
60466
60494
|
/*yield*/
|
|
60467
60495
|
, this.service.saveVariable(data)];
|
|
60468
60496
|
|
|
60469
|
-
case
|
|
60497
|
+
case 2:
|
|
60470
60498
|
res = _c.sent();
|
|
60471
60499
|
|
|
60472
60500
|
if (res && !res.hasError) {
|
|
@@ -62861,6 +62889,7 @@ var security_modal = __webpack_require__("1a93");
|
|
|
62861
62889
|
|
|
62862
62890
|
|
|
62863
62891
|
|
|
62892
|
+
|
|
62864
62893
|
var security_modal_extends = undefined && undefined.__extends || function () {
|
|
62865
62894
|
var _extendStatics = function extendStatics(d, b) {
|
|
62866
62895
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -63070,6 +63099,7 @@ var security_modal_generator = undefined && undefined.__generator || function (t
|
|
|
63070
63099
|
|
|
63071
63100
|
|
|
63072
63101
|
|
|
63102
|
+
|
|
63073
63103
|
var security_modal_SecurityModalComponent =
|
|
63074
63104
|
/** @class */
|
|
63075
63105
|
function (_super) {
|
|
@@ -63088,6 +63118,8 @@ function (_super) {
|
|
|
63088
63118
|
_this.exitAddItem = false;
|
|
63089
63119
|
_this.scriptDocShow = false;
|
|
63090
63120
|
_this.scriptDoc = "";
|
|
63121
|
+
_this.diyKeywordList = [];
|
|
63122
|
+
_this.isEmpty = true;
|
|
63091
63123
|
_this.onFilter = lodash_debounce_default()(function () {
|
|
63092
63124
|
_this.getSecurityList();
|
|
63093
63125
|
}, 300);
|
|
@@ -63114,6 +63146,7 @@ function (_super) {
|
|
|
63114
63146
|
this.getSecurityList();
|
|
63115
63147
|
this.getTokenLocationTypeList();
|
|
63116
63148
|
this.getGrantTypeList();
|
|
63149
|
+
this.queryDiyKeyword();
|
|
63117
63150
|
} else {
|
|
63118
63151
|
this.keyword = "";
|
|
63119
63152
|
this.currentSecurityItem = {};
|
|
@@ -63126,6 +63159,40 @@ function (_super) {
|
|
|
63126
63159
|
});
|
|
63127
63160
|
};
|
|
63128
63161
|
|
|
63162
|
+
SecurityModalComponent.prototype.queryDiyKeyword = function () {
|
|
63163
|
+
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
63164
|
+
var result, scriptData, group;
|
|
63165
|
+
return security_modal_generator(this, function (_a) {
|
|
63166
|
+
switch (_a.label) {
|
|
63167
|
+
case 0:
|
|
63168
|
+
return [4
|
|
63169
|
+
/*yield*/
|
|
63170
|
+
, this.service.preScript()];
|
|
63171
|
+
|
|
63172
|
+
case 1:
|
|
63173
|
+
result = _a.sent();
|
|
63174
|
+
scriptData = result || {};
|
|
63175
|
+
group = [];
|
|
63176
|
+
scriptData === null || scriptData === void 0 ? void 0 : scriptData.group.forEach(function (el) {
|
|
63177
|
+
if (el.name === "业务案例") return;
|
|
63178
|
+
el.list.forEach(function (h) {
|
|
63179
|
+
group.push({
|
|
63180
|
+
meta: el.name,
|
|
63181
|
+
caption: h.code,
|
|
63182
|
+
value: h.code,
|
|
63183
|
+
score: 1
|
|
63184
|
+
});
|
|
63185
|
+
});
|
|
63186
|
+
});
|
|
63187
|
+
this.diyKeywordList = group;
|
|
63188
|
+
return [2
|
|
63189
|
+
/*return*/
|
|
63190
|
+
];
|
|
63191
|
+
}
|
|
63192
|
+
});
|
|
63193
|
+
});
|
|
63194
|
+
};
|
|
63195
|
+
|
|
63129
63196
|
SecurityModalComponent.prototype.getSecurityTypeList = function () {
|
|
63130
63197
|
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
63131
63198
|
var result, tempList;
|
|
@@ -63252,6 +63319,14 @@ function (_super) {
|
|
|
63252
63319
|
this.currentSecurityItem = item.$clone();
|
|
63253
63320
|
};
|
|
63254
63321
|
|
|
63322
|
+
SecurityModalComponent.prototype.onEmpty = function (value) {
|
|
63323
|
+
if (value) {
|
|
63324
|
+
this.isEmpty = true;
|
|
63325
|
+
} else {
|
|
63326
|
+
this.isEmpty = false;
|
|
63327
|
+
}
|
|
63328
|
+
};
|
|
63329
|
+
|
|
63255
63330
|
SecurityModalComponent.prototype.onDelete = function (item) {
|
|
63256
63331
|
return security_modal_awaiter(this, void 0, void 0, function () {
|
|
63257
63332
|
var res;
|
|
@@ -63455,11 +63530,16 @@ function (_super) {
|
|
|
63455
63530
|
|
|
63456
63531
|
security_modal_decorate([Object(flagwind_web_["watch"])("show"), security_modal_metadata("design:type", Function), security_modal_metadata("design:paramtypes", [Boolean]), security_modal_metadata("design:returntype", Promise)], SecurityModalComponent.prototype, "onShowChange", null);
|
|
63457
63532
|
|
|
63533
|
+
security_modal_decorate([Object(flagwind_web_["watch"])("securityList.length", {
|
|
63534
|
+
immediate: true
|
|
63535
|
+
}), security_modal_metadata("design:type", Function), security_modal_metadata("design:paramtypes", [Object]), security_modal_metadata("design:returntype", void 0)], SecurityModalComponent.prototype, "onEmpty", null);
|
|
63536
|
+
|
|
63458
63537
|
SecurityModalComponent = security_modal_decorate([Object(flagwind_web_["component"])({
|
|
63459
63538
|
template: __webpack_require__("3bf8"),
|
|
63460
63539
|
components: {
|
|
63461
63540
|
"u-tips-form-label": security_setting_v2_tips_form_label,
|
|
63462
|
-
"u-doc-modal": data_model_data_model_doc
|
|
63541
|
+
"u-doc-modal": data_model_data_model_doc,
|
|
63542
|
+
"u-editor": components_groovy_editor
|
|
63463
63543
|
}
|
|
63464
63544
|
})], SecurityModalComponent);
|
|
63465
63545
|
return SecurityModalComponent;
|
|
@@ -64314,52 +64394,89 @@ function (_super) {
|
|
|
64314
64394
|
};
|
|
64315
64395
|
|
|
64316
64396
|
InterfaceSettings.prototype.onImport = function (file) {
|
|
64317
|
-
|
|
64397
|
+
return interface_settings_awaiter(this, void 0, void 0, function () {
|
|
64398
|
+
var reader;
|
|
64318
64399
|
|
|
64319
|
-
|
|
64320
|
-
reader.readAsText(file, "UTF-8");
|
|
64400
|
+
var _this = this;
|
|
64321
64401
|
|
|
64322
|
-
|
|
64323
|
-
|
|
64324
|
-
|
|
64325
|
-
|
|
64326
|
-
|
|
64327
|
-
|
|
64402
|
+
return interface_settings_generator(this, function (_a) {
|
|
64403
|
+
reader = new FileReader();
|
|
64404
|
+
reader.readAsText(file, "UTF-8");
|
|
64405
|
+
|
|
64406
|
+
reader.onload = function (evt) {
|
|
64407
|
+
return interface_settings_awaiter(_this, void 0, void 0, function () {
|
|
64408
|
+
var fileString, obj, params, res, apiId;
|
|
64409
|
+
|
|
64410
|
+
var _a, _b, _c, _d, _e, _f;
|
|
64411
|
+
|
|
64412
|
+
return interface_settings_generator(this, function (_g) {
|
|
64413
|
+
switch (_g.label) {
|
|
64414
|
+
case 0:
|
|
64415
|
+
fileString = evt.target.result;
|
|
64416
|
+
obj = null;
|
|
64417
|
+
|
|
64418
|
+
try {
|
|
64419
|
+
obj = JSON.parse(fileString);
|
|
64420
|
+
} catch (error) {
|
|
64421
|
+
this.$message.error("JSON格式有误");
|
|
64422
|
+
return [2
|
|
64423
|
+
/*return*/
|
|
64424
|
+
, false];
|
|
64425
|
+
}
|
|
64328
64426
|
|
|
64329
|
-
|
|
64330
|
-
|
|
64331
|
-
|
|
64332
|
-
|
|
64333
|
-
|
|
64334
|
-
|
|
64335
|
-
|
|
64336
|
-
|
|
64427
|
+
params = {
|
|
64428
|
+
projectId: this.projectId,
|
|
64429
|
+
authentication: (obj === null || obj === void 0 ? void 0 : obj.authentication) || null,
|
|
64430
|
+
environmentParam: (obj === null || obj === void 0 ? void 0 : obj.environmentParam) || null
|
|
64431
|
+
};
|
|
64432
|
+
return [4
|
|
64433
|
+
/*yield*/
|
|
64434
|
+
, this.service.onImportAvr(params)];
|
|
64435
|
+
|
|
64436
|
+
case 1:
|
|
64437
|
+
res = _g.sent();
|
|
64438
|
+
|
|
64439
|
+
if (!(res === null || res === void 0 ? void 0 : res.hasError)) {
|
|
64440
|
+
this.getEnvironmentParamList();
|
|
64441
|
+
obj.environmentParam = ((_a = res === null || res === void 0 ? void 0 : res.result) === null || _a === void 0 ? void 0 : _a.environmentParam) || null;
|
|
64442
|
+
obj.authentication = ((_b = res === null || res === void 0 ? void 0 : res.result) === null || _b === void 0 ? void 0 : _b.authentication) || null;
|
|
64443
|
+
obj.info.envId = ((_d = (_c = res === null || res === void 0 ? void 0 : res.result) === null || _c === void 0 ? void 0 : _c.environmentParam) === null || _d === void 0 ? void 0 : _d.id) || null;
|
|
64444
|
+
obj.info.authId = ((_f = (_e = res === null || res === void 0 ? void 0 : res.result) === null || _e === void 0 ? void 0 : _e.authentication) === null || _f === void 0 ? void 0 : _f.id) || null;
|
|
64445
|
+
} else {
|
|
64446
|
+
return [2
|
|
64447
|
+
/*return*/
|
|
64448
|
+
];
|
|
64449
|
+
}
|
|
64337
64450
|
|
|
64338
|
-
|
|
64339
|
-
|
|
64340
|
-
|
|
64341
|
-
|
|
64342
|
-
|
|
64343
|
-
|
|
64344
|
-
|
|
64345
|
-
|
|
64346
|
-
|
|
64347
|
-
|
|
64348
|
-
|
|
64451
|
+
apiId = this.interfaceModel.info.id;
|
|
64452
|
+
obj.id = apiId;
|
|
64453
|
+
obj.info.id = apiId;
|
|
64454
|
+
obj.info.name = this.interfaceModel.info.name;
|
|
64455
|
+
obj.info.projectId = this.projectId;
|
|
64456
|
+
obj.info.categoryId = this.interfaceModel.info.categoryId;
|
|
64457
|
+
obj.convertConfig && (obj.convertConfig.apiId = apiId);
|
|
64458
|
+
["fieldMappings", "postScripts", "preScripts", "queryParams", "formParams"].forEach(function (key) {
|
|
64459
|
+
obj === null || obj === void 0 ? void 0 : obj[key].forEach(function (f) {
|
|
64460
|
+
f.apiId = apiId;
|
|
64461
|
+
});
|
|
64462
|
+
});
|
|
64463
|
+
obj === null || obj === void 0 ? void 0 : obj.requestHeaders.forEach(function (f) {
|
|
64464
|
+
f.belongId = apiId;
|
|
64465
|
+
});
|
|
64466
|
+
this.$emit("update:interfaceModel", obj);
|
|
64467
|
+
return [2
|
|
64468
|
+
/*return*/
|
|
64469
|
+
];
|
|
64470
|
+
}
|
|
64349
64471
|
});
|
|
64350
64472
|
});
|
|
64351
|
-
|
|
64352
|
-
f.belongId = apiId;
|
|
64353
|
-
});
|
|
64354
|
-
this.$emit("update:interfaceModel", obj);
|
|
64355
|
-
return [2
|
|
64356
|
-
/*return*/
|
|
64357
|
-
];
|
|
64358
|
-
});
|
|
64359
|
-
});
|
|
64360
|
-
};
|
|
64473
|
+
};
|
|
64361
64474
|
|
|
64362
|
-
|
|
64475
|
+
return [2
|
|
64476
|
+
/*return*/
|
|
64477
|
+
, false];
|
|
64478
|
+
});
|
|
64479
|
+
});
|
|
64363
64480
|
};
|
|
64364
64481
|
|
|
64365
64482
|
InterfaceSettings.prototype.onExport = function () {
|
|
@@ -66468,6 +66585,30 @@ function (_super) {
|
|
|
66468
66585
|
}, resume === "true");
|
|
66469
66586
|
}
|
|
66470
66587
|
|
|
66588
|
+
this.$subscribe("api://project-detail-save", function () {
|
|
66589
|
+
return project_detail_awaiter(_this, void 0, void 0, function () {
|
|
66590
|
+
var res, result;
|
|
66591
|
+
return project_detail_generator(this, function (_a) {
|
|
66592
|
+
switch (_a.label) {
|
|
66593
|
+
case 0:
|
|
66594
|
+
return [4
|
|
66595
|
+
/*yield*/
|
|
66596
|
+
, this.service.apiInfo(this.current.id)];
|
|
66597
|
+
|
|
66598
|
+
case 1:
|
|
66599
|
+
res = _a.sent();
|
|
66600
|
+
result = project_detail_assign(project_detail_assign({}, res.result || {}), {
|
|
66601
|
+
name: this.current.name,
|
|
66602
|
+
id: this.current.id
|
|
66603
|
+
});
|
|
66604
|
+
this.active = result;
|
|
66605
|
+
return [2
|
|
66606
|
+
/*return*/
|
|
66607
|
+
];
|
|
66608
|
+
}
|
|
66609
|
+
});
|
|
66610
|
+
});
|
|
66611
|
+
});
|
|
66471
66612
|
this.$subscribe("api://batch-api-refresh", function (data) {
|
|
66472
66613
|
return project_detail_awaiter(_this, void 0, void 0, function () {
|
|
66473
66614
|
var ids, isEnvAndAuth, cross, _loop_1, this_1, _i, cross_1, value;
|