{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/libs/modal-prompt.js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/libs/modal-prompt.js","mtime":1701742078550},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/babel.config.js","mtime":1701742078504},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000}],"contextDependencies":[],"result":["// +----------------------------------------------------------------------\n// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]\n// +----------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team <admin@crmeb.com>\n// +----------------------------------------------------------------------\n\n/**\n * $prompt一行内容input提交封装\n * @param inputType input type 类型\n * @param title 标题\n * @param val 回显的值\n * @returns {Promise<any>}\n */\nexport default function modalPrompt(inputType, title, val) {\n  var _this = this;\n  return new Promise(function (resolve, reject) {\n    _this.$prompt(\"\".concat(title), {\n      confirmButtonText: '确定',\n      cancelButtonText: '取消',\n      inputErrorMessage: \"\\u8BF7\\u8F93\\u5165\".concat(title),\n      inputType: inputType,\n      inputValue: val ? val : '',\n      showClose: false,\n      closeOnClickModal: false,\n      inputPlaceholder: \"\\u8BF7\\u8F93\\u5165\".concat(title),\n      inputValidator: function inputValidator(value) {\n        if (!value) return '输入不能为空';\n      },\n      beforeClose: function beforeClose(action, instance, done) {\n        if (action === 'confirm') {\n          instance.confirmButtonLoading = true;\n          instance.confirmButtonText = '执行中...';\n          setTimeout(function () {\n            done();\n            setTimeout(function () {\n              instance.confirmButtonLoading = false;\n            }, 300);\n          }, 3000);\n        } else {\n          done();\n        }\n      }\n    }).then(function (_ref) {\n      var value = _ref.value;\n      resolve(value);\n      // this.ruleForm.reason = value;\n      // this.submit();\n    }).catch(function () {\n      _this.$message.info('取消输入');\n    });\n  });\n}",null]}