UNPKG

sd-data-grid

Version:
1,153 lines (1,049 loc) 50.5 kB
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define("sd-general-history", [], factory); else if(typeof exports === 'object') exports["sd-general-history"] = factory(); else root["sd-general-history"] = factory(); })(typeof self !== 'undefined' ? self : this, function() { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/dist/"; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 1); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_track_methods__ = __webpack_require__(10); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // import modifyApproveUser from '../../bpm/approval/modify-approve-user.vue' // 测试 /* harmony default export */ __webpack_exports__["a"] = ({ components: { modifyApproveUser: __WEBPACK_IMPORTED_MODULE_0_sd_modify_approve_user__["modifyApproveUser"] }, mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_track_methods__["a" /* default */]], props: {}, data: function data() { return {}; }, filters: { dateFormat: function dateFormat(dateStr) { var date = new Date(dateStr); var year = date.getFullYear(); /* 在日期格式中,月份是从0开始的,因此要加0使用三元表达式在小于10的前面加0,以达到格式统一 如 09:11:05 */ var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1; var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate(); var hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours(); var minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes(); var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds(); // 拼接 return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds; } }, mounted: function mounted() { this.getApprovalTrack(); }, methods: { callbackSuccess: function callbackSuccess(data) { var _this = this; if (this.modifyUserCallback) { this.getApprovalTrack(); return this.modifyUserCallback(data); } else { // 重新获取审批历史 return new Promise(function (resolve, reject) { var that = _this; _this.getApprovalTrack(); setTimeout(function () { that.$Modal.success({ title: '温馨提示', content: '修改审批人成功' }); resolve({ success: true }); }, 1000); }); } }, testErr: function testErr() { var _this2 = this; return new Promise(function (resolve, reject) { var that = _this2; setTimeout(function () { that.$Modal.error({ title: '温馨提示', content: '修改审批人失败,请稍后重试' }); resolve({ success: false }); }, 1000); }); } } }); /***/ }), /* 1 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_flow_general_history_vue__ = __webpack_require__(2); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "sGeneralHistory", function() { return __WEBPACK_IMPORTED_MODULE_0__components_flow_general_history_vue__["a"]; }); var Plugin = { install: function install(Vue) { Vue.component('s-general-history', __WEBPACK_IMPORTED_MODULE_0__components_flow_general_history_vue__["a" /* default */]); } }; /* harmony default export */ __webpack_exports__["default"] = (Plugin); /***/ }), /* 2 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__ = __webpack_require__(0); /* unused harmony namespace reexport */ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_ac47f65a_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__ = __webpack_require__(12); function injectStyle (ssrContext) { __webpack_require__(3) } var normalizeComponent = __webpack_require__(8) /* script */ /* template */ /* template functional */ var __vue_template_functional__ = false /* styles */ var __vue_styles__ = injectStyle /* scopeId */ var __vue_scopeId__ = "data-v-ac47f65a" /* moduleIdentifier (server only) */ var __vue_module_identifier__ = null var Component = normalizeComponent( __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_ac47f65a_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_5_flow_general_history_vue__["a" /* default */], __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ __webpack_exports__["a"] = (Component.exports); /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__(4); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var update = __webpack_require__(6)("f91bf378", content, true); /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(5)(false); // imports // module exports.push([module.i, ".history-audit[data-v-ac47f65a]{padding:15px}.task-container[data-v-ac47f65a]{margin-bottom:10px}.task-container .task-title[data-v-ac47f65a]{font-size:18px;font-weight:700;color:#333}.line-gray[data-v-ac47f65a]{padding:0}.history-audit .content[data-v-ac47f65a]{width:432px;padding:10px 18px;background-color:#f5f8ff}[data-v-ac47f65a] .ivu-timeline-item-content{padding:10px 10px 10px 24px;top:-16px}.row-col-title[data-v-ac47f65a]{text-align:right}.row-col-title span[data-v-ac47f65a]{font-size:16px;color:#7a8499}.padding-btm-10[data-v-ac47f65a]{padding:5px 0}.row-col-content[data-v-ac47f65a]{padding-left:10px}.row-col-content span[data-v-ac47f65a]{color:#333;font-size:16px;text-overflow:-o-ellipsis-lastline;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.success[data-v-ac47f65a]{padding:4px;background-color:#d9fce8;color:#13ba5a;margin-left:10px}.error[data-v-ac47f65a]{padding:4px;background-color:#ffd6dd;color:#f23051;margin-left:10px}.warning[data-v-ac47f65a]{padding:4px;background-color:#ffe7d6;color:#f83;margin-left:10px}.primary[data-v-ac47f65a]{padding:4px;background-color:#e5f0ff;color:#2b5fda;margin-left:10px}.task-oper[data-v-ac47f65a]{float:right}.history-audit .oper-container[data-v-ac47f65a]{width:432px;display:flex;justify-content:space-between;flex-direction:row}.slot-button[data-v-ac47f65a]{background-color:#2b5fda;color:#fff;font-size:14px}.back-button[data-v-ac47f65a]{background-color:#f36279;color:#fff;font-size:14px}[data-v-ac47f65a] .ivu-icon-ios-radio-button-off{background-color:#dae1ec;border-radius:50%}.customIcon[data-v-ac47f65a]{position:relative;left:-31px;top:0;background:#fff}.task-title-active[data-v-ac47f65a]{border-bottom:2px solid #2b5fda}", ""]); // exports /***/ }), /* 5 */ /***/ (function(module, exports) { /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ // css base code, injected by the css-loader module.exports = function(useSourceMap) { var list = []; // return the list of modules as css string list.toString = function toString() { return this.map(function (item) { var content = cssWithMappingToString(item, useSourceMap); if(item[2]) { return "@media " + item[2] + "{" + content + "}"; } else { return content; } }).join(""); }; // import a list of modules into the list list.i = function(modules, mediaQuery) { if(typeof modules === "string") modules = [[null, modules, ""]]; var alreadyImportedModules = {}; for(var i = 0; i < this.length; i++) { var id = this[i][0]; if(typeof id === "number") alreadyImportedModules[id] = true; } for(i = 0; i < modules.length; i++) { var item = modules[i]; // skip already imported module // this implementation is not 100% perfect for weird media query combinations // when a module is imported multiple times with different media queries. // I hope this will never occur (Hey this way we have smaller bundles) if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { if(mediaQuery && !item[2]) { item[2] = mediaQuery; } else if(mediaQuery) { item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; } list.push(item); } } }; return list; }; function cssWithMappingToString(item, useSourceMap) { var content = item[1] || ''; var cssMapping = item[3]; if (!cssMapping) { return content; } if (useSourceMap && typeof btoa === 'function') { var sourceMapping = toComment(cssMapping); var sourceURLs = cssMapping.sources.map(function (source) { return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */' }); return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); } return [content].join('\n'); } // Adapted from convert-source-map (MIT) function toComment(sourceMap) { // eslint-disable-next-line no-undef var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; return '/*# ' + data + ' */'; } /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra Modified by Evan You @yyx990803 */ var hasDocument = typeof document !== 'undefined' if (typeof DEBUG !== 'undefined' && DEBUG) { if (!hasDocument) { throw new Error( 'vue-style-loader cannot be used in a non-browser environment. ' + "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment." ) } } var listToStyles = __webpack_require__(7) /* type StyleObject = { id: number; parts: Array<StyleObjectPart> } type StyleObjectPart = { css: string; media: string; sourceMap: ?string } */ var stylesInDom = {/* [id: number]: { id: number, refs: number, parts: Array<(obj?: StyleObjectPart) => void> } */} var head = hasDocument && (document.head || document.getElementsByTagName('head')[0]) var singletonElement = null var singletonCounter = 0 var isProduction = false var noop = function () {} // Force single-tag solution on IE6-9, which has a hard limit on the # of <style> // tags it will allow on a page var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase()) module.exports = function (parentId, list, _isProduction) { isProduction = _isProduction var styles = listToStyles(parentId, list) addStylesToDom(styles) return function update (newList) { var mayRemove = [] for (var i = 0; i < styles.length; i++) { var item = styles[i] var domStyle = stylesInDom[item.id] domStyle.refs-- mayRemove.push(domStyle) } if (newList) { styles = listToStyles(parentId, newList) addStylesToDom(styles) } else { styles = [] } for (var i = 0; i < mayRemove.length; i++) { var domStyle = mayRemove[i] if (domStyle.refs === 0) { for (var j = 0; j < domStyle.parts.length; j++) { domStyle.parts[j]() } delete stylesInDom[domStyle.id] } } } } function addStylesToDom (styles /* Array<StyleObject> */) { for (var i = 0; i < styles.length; i++) { var item = styles[i] var domStyle = stylesInDom[item.id] if (domStyle) { domStyle.refs++ for (var j = 0; j < domStyle.parts.length; j++) { domStyle.parts[j](item.parts[j]) } for (; j < item.parts.length; j++) { domStyle.parts.push(addStyle(item.parts[j])) } if (domStyle.parts.length > item.parts.length) { domStyle.parts.length = item.parts.length } } else { var parts = [] for (var j = 0; j < item.parts.length; j++) { parts.push(addStyle(item.parts[j])) } stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts } } } } function createStyleElement () { var styleElement = document.createElement('style') styleElement.type = 'text/css' head.appendChild(styleElement) return styleElement } function addStyle (obj /* StyleObjectPart */) { var update, remove var styleElement = document.querySelector('style[data-vue-ssr-id~="' + obj.id + '"]') if (styleElement) { if (isProduction) { // has SSR styles and in production mode. // simply do nothing. return noop } else { // has SSR styles but in dev mode. // for some reason Chrome can't handle source map in server-rendered // style tags - source maps in <style> only works if the style tag is // created and inserted dynamically. So we remove the server rendered // styles and inject new ones. styleElement.parentNode.removeChild(styleElement) } } if (isOldIE) { // use singleton mode for IE9. var styleIndex = singletonCounter++ styleElement = singletonElement || (singletonElement = createStyleElement()) update = applyToSingletonTag.bind(null, styleElement, styleIndex, false) remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true) } else { // use multi-style-tag mode in all other cases styleElement = createStyleElement() update = applyToTag.bind(null, styleElement) remove = function () { styleElement.parentNode.removeChild(styleElement) } } update(obj) return function updateStyle (newObj /* StyleObjectPart */) { if (newObj) { if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) { return } update(obj = newObj) } else { remove() } } } var replaceText = (function () { var textStore = [] return function (index, replacement) { textStore[index] = replacement return textStore.filter(Boolean).join('\n') } })() function applyToSingletonTag (styleElement, index, remove, obj) { var css = remove ? '' : obj.css if (styleElement.styleSheet) { styleElement.styleSheet.cssText = replaceText(index, css) } else { var cssNode = document.createTextNode(css) var childNodes = styleElement.childNodes if (childNodes[index]) styleElement.removeChild(childNodes[index]) if (childNodes.length) { styleElement.insertBefore(cssNode, childNodes[index]) } else { styleElement.appendChild(cssNode) } } } function applyToTag (styleElement, obj) { var css = obj.css var media = obj.media var sourceMap = obj.sourceMap if (media) { styleElement.setAttribute('media', media) } if (sourceMap) { // https://developer.chrome.com/devtools/docs/javascript-debugging // this makes source maps inside style tags work properly in Chrome css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */' // http://stackoverflow.com/a/26603875 css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */' } if (styleElement.styleSheet) { styleElement.styleSheet.cssText = css } else { while (styleElement.firstChild) { styleElement.removeChild(styleElement.firstChild) } styleElement.appendChild(document.createTextNode(css)) } } /***/ }), /* 7 */ /***/ (function(module, exports) { /** * Translates the list format produced by css-loader into something * easier to manipulate. */ module.exports = function listToStyles (parentId, list) { var styles = [] var newStyles = {} for (var i = 0; i < list.length; i++) { var item = list[i] var id = item[0] var css = item[1] var media = item[2] var sourceMap = item[3] var part = { id: parentId + ':' + i, css: css, media: media, sourceMap: sourceMap } if (!newStyles[id]) { styles.push(newStyles[id] = { id: id, parts: [part] }) } else { newStyles[id].parts.push(part) } } return styles } /***/ }), /* 8 */ /***/ (function(module, exports) { /* globals __VUE_SSR_CONTEXT__ */ // IMPORTANT: Do NOT use ES2015 features in this file. // This module is a runtime utility for cleaner component module output and will // be included in the final webpack user bundle. module.exports = function normalizeComponent ( rawScriptExports, compiledTemplate, functionalTemplate, injectStyles, scopeId, moduleIdentifier /* server only */ ) { var esModule var scriptExports = rawScriptExports = rawScriptExports || {} // ES6 modules interop var type = typeof rawScriptExports.default if (type === 'object' || type === 'function') { esModule = rawScriptExports scriptExports = rawScriptExports.default } // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (compiledTemplate) { options.render = compiledTemplate.render options.staticRenderFns = compiledTemplate.staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = injectStyles } if (hook) { var functional = options.functional var existing = functional ? options.render : options.beforeCreate if (!functional) { // inject component registration as beforeCreate hook options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } else { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file options.render = function renderWithStyleInjection (h, context) { hook.call(context) return existing(h, context) } } } return { esModule: esModule, exports: scriptExports, options: options } } /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { !function(e,t){ true?module.exports=t():"function"==typeof define&&define.amd?define("sd-modify-approve-user",[],t):"object"==typeof exports?exports["sd-modify-approve-user"]=t():e["sd-modify-approve-user"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=3)}([function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=d[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var s=[],i=0;i<n.parts.length;i++)s.push(o(n.parts[i]));d[n.id]={id:n.id,refs:1,parts:s}}}}function i(){var e=document.createElement("style");return e.type="text/css",u.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+m+'~="'+e.id+'"]');if(r){if(h)return g;r.parentNode.removeChild(r)}if(x){var o=p++;r=f||(f=i()),t=s.bind(null,r,o,!1),n=s.bind(null,r,o,!0)}else r=i(),t=a.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function s(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function a(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),v.ssrId&&e.setAttribute(m,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(7),d={},u=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,p=0,h=!1,g=function(){},v=null,m="data-vue-ssr-id",x="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,i){h=n,v=i||{};var o=l(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var s=o[i],a=d[s.id];a.refs--,n.push(a)}t?(o=l(e,t),r(o)):o=[];for(var i=0;i<n.length;i++){var a=n[i];if(0===a.refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete d[a.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(i,o){try{var s=t[i](o),a=s.value}catch(e){return void n(e)}if(!s.done)return Promise.resolve(a).then(function(e){r("next",e)},function(e){r("throw",e)});e(a)}return r("next")})}}t.a={name:"modify-approve-user",props:{actInstId:{type:String},module:{type:String,default:""},platform:{type:String,default:"pc"},extraOrgId:{type:String,default:""},extraRegId:{type:String,default:""},extraCityId:{type:String,default:""},complete:{type:Function,default:null},error:{type:Function,default:null},bindEvent:{type:Boolean,default:!0}},data:function(){return{isInitData:!1,openStatus:!1,nodeName:"领导审核",loading:!1,indeterminate:!0,checkAll:!1,orgUserList:[],orgId:"",userList:[],candidateUsers:[],isCanChang:!1,taskId:"",reference:null}},mounted:function(){this.bindEvent&&this.$slots.func&&(this.reference=this.$slots.func[0].elm,this.reference&&this.reference.addEventListener("click",this.initData))},methods:{initData:function(){this.isInitData?this.openStatus=!0:this.getOrgUserList(this.actInstId)},warnSwal:function(e,t){this.$swal({type:"warning",text:e,confirmButtonText:"确 定"}).then(function(e){t&&t(e)})},getOrgUserList:function(e){var t=this,n={actInstId:e,extraOrgId:this.extraOrgId,extraRegId:this.extraRegId,extraCityId:this.extraCityId};this.$store.dispatch("authGetRequest",{url:"bsp-bpm/bpm/approveProcess/taskIdentityLinks",params:n}).then(function(e){if(e.success){t.openStatus=!0,t.isInitData=!0;var n=e.data;t.nodeName=n.nodeName,t.isCanChang=n.isCanChang,t.taskId=n.taskId;var r=n.orgUserList;if(r.length>1){var i=[];n.orgUserList.forEach(function(e){var t=e.user;t&&t.length>0&&(i=i.concat(t))}),r.push({orgId:"allOrg",orgName:"所有单位",user:i})}t.orgUserList=r,r.length>=1&&t.$nextTick(function(){t.orgId=r[0].orgId,t.onSelectOrg(r[0].orgId)})}else t.warnSwal("启动流程失败。")})},clearCheckbox:function(){this.indeterminate=!1,this.checkAll=!1,this.candidateUsers=[],this.$forceUpdate()},onSelectOrg:function(e){if(e){var t=this.orgUserList.findIndex(function(t){return t.orgId==e});t>-1&&(this.userList=this.orgUserList[t].user),this.clearCheckbox(),this.$refs.checkAllRef.$el.click(),this.$forceUpdate()}},convertCandidateUsers:function(){return this.candidateUsers.map(function(e){var t=e.split("_");return{idCard:t[0],orgCode:t[1]}})},submit:function(){var e=this;return r(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.candidateUsers&&0!==e.candidateUsers.length){t.next=3;break}return e.$Modal.warning({title:"温馨提示",content:"请选择审批人。"}),t.abrupt("return");case 3:e.loading=!0,n={taskId:e.taskId,candidateUsers:JSON.stringify(e.convertCandidateUsers()),fApp:e.module,fXxpt:e.platform},e.$store.dispatch("postRequest",{url:"bsp-bpm/bpm/approveProcess/saveTaskIdentityLinks",params:n}).then(function(t){t.success?e.complete?e.complete(t).then(function(t){e.loading=!1,t.success&&e.cancel()}):(e.cancel(),e.$Modal.success({title:"温馨提示",content:"审批人修改成功!"})):(e.loading=!1,e.error?e.error(t):e.$Modal.error({title:"温馨提示",content:"审批人修改失败。原因:"+t.msg}))});case 6:case"end":return t.stop()}},t,e)}))()},handleCheckAll:function(){var e=this;this.indeterminate?this.checkAll=!1:this.checkAll=!this.checkAll,this.indeterminate=!1,this.checkAll?this.userList.forEach(function(t){e.candidateUsers.push(t.userIdCard+"_"+t.orgCode)}):this.candidateUsers=[]},checkAllGroupChange:function(e){e.length===this.userList.length?(this.indeterminate=!1,this.checkAll=!0):e.length>0?(this.indeterminate=!0,this.checkAll=!1):(this.indeterminate=!1,this.checkAll=!1)},cancel:function(){this.openStatus=!1,this.loading=!1}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);n.d(t,"modifyApproveUser",function(){return r.a});var i={install:function(e){e.component("modify-approve-user",r.a)}};t.default=i},function(e,t,n){"use strict";function r(e){n(5),n(8)}var i=n(2),o=n(11),s=n(10),a=r,c=s(i.a,o.a,!1,a,"data-v-07e6c48d",null);t.a=c.exports},function(e,t,n){var r=n(6);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("75c7965a",r,!0,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,".flow-modal{color:#333;font-size:15px}.flow-modal .ivu-modal-body,.flow-modal .ivu-modal-header{padding:0}.flow-modal .ivu-checkbox-wrapper,.flow-modal .ivu-select-input{font-size:15px}.flow-modal .ivu-select-item{font-size:15px!important}",""])},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],s=o[0],a=o[1],c=o[2],l=o[3],d={id:e+":"+i,css:a,media:c,sourceMap:l};r[s]?r[s].parts.push(d):n.push(r[s]={id:s,parts:[d]})}return n}},function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("53157a8c",r,!0,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,".flow-modal-title[data-v-07e6c48d]{height:40px;background:#1171d0;width:100%;text-indent:1em;color:#fff;line-height:40px;font-size:15px}.content-1[data-v-07e6c48d]{padding:5px;display:flex;justify-content:space-between;align-items:center}",""])},function(e,t){e.exports=function(e,t,n,r,i,o){var s,a=e=e||{},c=typeof e.default;"object"!==c&&"function"!==c||(s=e,a=e.default);var l="function"==typeof a?a.options:a;t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i);var d;if(o?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=d):r&&(d=r),d){var u=l.functional,f=u?l.render:l.beforeCreate;u?(l._injectStyles=d,l.render=function(e,t){return d.call(t),f(e,t)}):l.beforeCreate=f?[].concat(f,d):[d]}return{esModule:s,exports:a,options:l}}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[e._t("func"),e._v(" "),n("Modal",{attrs:{"class-name":"flow-modal",width:580,closable:!1,"mask-closable":!1},model:{value:e.openStatus,callback:function(t){e.openStatus=t},expression:"openStatus"}},[n("div",{staticClass:"flow-modal-title",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("修改审核审批人员信息")]),e._v(" "),n("span",{staticStyle:{position:"absolute",right:"6px","font-size":"32px",cursor:"pointer"},on:{click:e.cancel}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-close"})])]),e._v(" "),n("div",{staticStyle:{"min-height":"220px",padding:"10px"}},[n("table",{staticStyle:{width:"100%","border-collapse":"collapse","border-spacing":"0"}},[n("tr",[n("td",{staticStyle:{width:"85%",border:"solid 1px #dedede","border-bottom":"solid 1px #fff",background:"#f6f6f6"}},[n("div",{staticClass:"content-1",staticStyle:{height:"58px","align-items":"center"}},[n("h3",[e._v(e._s(e.nodeName))]),e._v(" "),n("span",{staticStyle:{"font-size":"15px"}},[n("Select",{staticStyle:{width:"350px"},attrs:{placeholder:"请选择审批单位",filterable:""},on:{"on-change":e.onSelectOrg},model:{value:e.orgId,callback:function(t){e.orgId=t},expression:"orgId"}},e._l(e.orgUserList,function(t){return n("Option",{key:t.orgId,attrs:{value:t.orgId}},[e._v(e._s(t.orgName))])}),1)],1),e._v(" "),n("Checkbox",{ref:"checkAllRef",attrs:{size:"large",indeterminate:e.indeterminate,value:e.checkAll},nativeOn:{click:function(t){return t.preventDefault(),e.handleCheckAll.apply(null,arguments)}}},[e._v("全选")])],1)])]),e._v(" "),n("tr",[n("td",{staticStyle:{border:"solid 1px #dedede",background:"#f6f6f6"}},[n("div",{staticStyle:{width:"90%",margin:"0 auto","line-height":"20px","min-height":"60px","align-items":"center",display:"flex"}},[n("CheckboxGroup",{staticStyle:{width:"100%"},on:{"on-change":e.checkAllGroupChange},model:{value:e.candidateUsers,callback:function(t){e.candidateUsers=t},expression:"candidateUsers"}},[e._l(e.userList,function(t){return[n("span",{staticStyle:{"min-width":"24%",display:"inline-block","margin-bottom":"10px","margin-top":"10px"}},[n("Checkbox",{key:t.userIdCard+"_"+t.orgCode,attrs:{size:"large",label:t.userIdCard+"_"+t.orgCode}},[e._v(e._s(t.userName)+" ")])],1)]})],2)],1)])])])]),e._v(" "),n("template",{slot:"footer"},[n("Button",{staticStyle:{width:"90px",height:"36px","font-size":"15px"},on:{click:e.cancel}},[e._v("取  消")]),e._v(" "),n("Button",{staticStyle:{width:"90px",height:"36px","font-size":"15px"},attrs:{loading:e.loading,type:"primary"},on:{click:e.submit}},[e._v("确  认")])],1)],2)],2)},i=[],o={render:r,staticRenderFns:i};t.a=o}])}); //# sourceMappingURL=sd-modify-approve-user.js.map /***/ }), /* 10 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__data__ = __webpack_require__(11); function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } /* 审批轨迹相关方法 */ /* harmony default export */ __webpack_exports__["a"] = ({ mixins: [__WEBPACK_IMPORTED_MODULE_0__data__["a" /* default */]], methods: { // 获取流程轨迹 getApprovalTrack: function getApprovalTrack() { var _this = this; this.$store.dispatch('postRequest', { url: 'bsp-bpm/bpm/approveProcess/approveTrack', params: { actInstId: this.actInstId } }).then(function (resp) { if (resp.success) { if (!resp.data) return; resp.data.map(function (item) { if (item.createTime) { if (item.endTime) { item.taskStatus = '2'; } else { item.taskStatus = '1'; } } else { item.taskStatus = '0'; } }); _this.trackArr = resp.data; } else { _this.trackArr = []; } }); }, // 撤回流程 revoke: function revoke(taskId, preIsBeginTask) { var _this2 = this; this.$Modal.confirm({ title: '是否确认撤回?', // loading: true, onOk: function () { var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _this2.loading = true; _this2.$store.dispatch('postRequest', { url: 'bsp-bpm/bpm/approveProcess/revokeProcess', params: { actInstId: _this2.actInstId, taskId: taskId, preIsBeginTask: preIsBeginTask } }).then(function (resp) { if (resp.success) { if (_this2.revokeCallback) { _this2.revokeCallback(resp).then(function (data) { _this2.loading = false; if (data.success) { // window.location.reload() _this2.getApprovalTrack(); } }); } else { _this2.loading = false; _this2.$Modal.success({ title: '温馨提示', content: '操作成功', onOk: function onOk() { // window.location.reload() _this2.getApprovalTrack(); } }); } } }); case 2: case 'end': return _context.stop(); } } }, _callee, _this2); })); return function onOk() { return _ref.apply(this, arguments); }; }() }); } } }); /***/ }), /* 11 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = ({ props: { // 流程实例ID actInstId: { type: String }, // 是否显示撤回按钮 showRevokeBtn: { type: Boolean, default: true }, // 是否显示修改审批人按钮 showModifyBtn: { type: Boolean, default: true }, modifyBtnText: { type: String, default: '修改审批人' }, extraOrgId: { type: String, default: '' }, extraRegId: { type: String, default: '' }, extraCityId: { type: String, default: '' }, revokeCallback: { type: Function, default: null }, modifyUserCallback: { type: Function, default: null } }, data: function data() { return { trackArr: [], loading: false }; } }); /***/ }), /* 12 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"history-audit"},[_c('Timeline',[_vm._l((_vm.trackArr),function(item){return [(!item.children)?_c('TimelineItem',{key:item.id,staticClass:"line-gray"},[(item.taskStatus == 2)?_c('Icon',{attrs:{"slot":"dot","type":"md-checkmark-circle","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(item.taskStatus == 1)?_c('Icon',{attrs:{"slot":"dot","type":"md-radio-button-off","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(item.taskStatus == 0)?_c('Icon',{attrs:{"slot":"dot","type":"ios-radio-button-off","size":"24","color":"#dae1ec"},slot:"dot"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"oper-container"},[_c('p',{staticClass:"task-container"},[_c('span',{staticClass:"task-title"},[_vm._v(_vm._s(item.taskName))]),_vm._v(" "),_c('span',[(item.isApprove == 1)?[_c('span',{staticClass:"success"},[_vm._v("同意")])]:_vm._e(),_vm._v(" "),(item.isApprove == 2)?[_c('span',{staticClass:"error"},[_vm._v("不同意")])]:_vm._e(),_vm._v(" "),(item.isApprove == 3)?[_c('span',{staticClass:"warning"},[_vm._v("退回")])]:_vm._e(),_vm._v(" "),(item.isApprove == 4)?[_c('span',{staticClass:"primary"},[_vm._v("委派")])]:_vm._e(),_vm._v(" "),(item.isApprove == 5)?[_c('span',{staticClass:"success"},[_vm._v("同意")])]:_vm._e(),_vm._v(" "),(item.isApprove == 6)?[_c('span',{staticClass:"error"},[_vm._v("不同意")])]:_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"task-oper"},[(item.taskStatus == 1)?[(_vm.showModifyBtn)?_c('modify-approve-user',{ref:"modifyApproveUser",refInFor:true,attrs:{"actInstId":_vm.actInstId,"complete":_vm.callbackSuccess,"extraOrgId":_vm.extraOrgId,"extraRegId":_vm.extraRegId,"extraCityId":_vm.extraCityId,"error":_vm.testErr}},[_c('Button',{staticClass:"slot-button",attrs:{"slot":"func","size":"small","type":"primary"},slot:"func"},[_vm._v(_vm._s(_vm.modifyBtnText))])],1):_vm._e()]:_vm._e(),_vm._v(" "),(item.revokeNodeId && _vm.showRevokeBtn)?_c('Button',{staticClass:"back-button",staticStyle:{"margin-left":"5px"},attrs:{"type":"error","size":"small","loading":_vm.loading},on:{"click":function($event){return _vm.revoke(item.preTaskId,item.preIsBeginTask)}}},[_vm._v("撤回")]):_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"content"},[(item.isApprove)?[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","content":item.executeUserName,"placement":"top"}},[_c('span',[_vm._v(_vm._s(item.executeUserName))])])],1)],1)],1),_vm._v(" "),(item.approvalContent)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理意见:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","placement":"top","theme":"light","content":item.approvalContent}},[_c('span',[_vm._v(_vm._s(item.approvalContent))])])],1)],1)],1):_vm._e(),_vm._v(" "),_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理时间:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(item.endTime)))])])],1)],1)]:[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理状态:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[(item.taskStatus == 1)?[_c('span',[_vm._v("处理中")])]:_vm._e(),_vm._v(" "),(item.taskStatus == 0)?[_c('span',[_vm._v("未处理")])]:_vm._e()],2)],1)],1),_vm._v(" "),(item.nodeUser)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[[_c('Tooltip',{attrs:{"max-width":"400","content":item.nodeUser,"placement":"top"}},[_c('span',[_vm._v(_vm._s(item.nodeUser))])])]],2)],1)],1):_vm._e()]],2)],1):_c('TimelineItem',{key:item.parentNodeId,staticClass:"line-gray"},[_c('div',{staticClass:"task-container",staticStyle:{"display":"flex","z-index":"999","position":"relative"}},_vm._l((item.children),function(ele){return _c('span',{key:ele.taskId,class:['task-title',ele.active?'task-title-active':''],staticStyle:{"cursor":"pointer","margin-right":"16px"},attrs:{"label":ele.taskName,"name":ele.taskId},on:{"click":function($event){return _vm.changeTab(ele)}}},[_vm._v("\n "+_vm._s(ele.taskName)+"\n ")])}),0),_vm._v(" "),_c('div',[_c('div',{staticStyle:{"display":"flex","margin-top":"-40px"}},_vm._l((item.children),function(ele){return _c('div',{key:ele.taskId,attrs:{"label":ele.taskName,"name":ele.taskId}},[(ele.active)?_c('div',[(ele.taskStatus == 2)?_c('Icon',{staticClass:"customIcon",attrs:{"slot":"dot","type":"md-checkmark-circle","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(ele.taskStatus == 1)?_c('Icon',{staticClass:"customIcon",attrs:{"slot":"dot","type":"md-radio-button-off","size":"26","color":"#19be6b"},slot:"dot"}):_vm._e(),_vm._v(" "),(ele.taskStatus == 0)?_c('Icon',{staticClass:"customIcon",attrs:{"slot":"dot","type":"ios-radio-button-off","size":"24","color":"#dae1ec"},slot:"dot"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"oper-container"},[_c('p',{staticClass:"task-container"},[_c('span',[(ele.isApprove == 1)?[_c('span',{staticClass:"success"},[_vm._v("同意")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 2)?[_c('span',{staticClass:"error"},[_vm._v("不同意")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 3)?[_c('span',{staticClass:"warning"},[_vm._v("退回")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 4)?[_c('span',{staticClass:"primary"},[_vm._v("委派")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 5)?[_c('span',{staticClass:"success"},[_vm._v("同意")])]:_vm._e(),_vm._v(" "),(ele.isApprove == 6)?[_c('span',{staticClass:"error"},[_vm._v("不同意")])]:_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"task-oper"},[(ele.taskStatus == 1)?[(_vm.showModifyBtn)?_c('modify-approve-user',{ref:"modifyApproveUser",refInFor:true,attrs:{"actInstId":_vm.actInstId,"complete":_vm.callbackSuccess,"extraOrgId":_vm.extraOrgId,"extraRegId":_vm.extraRegId,"extraCityId":_vm.extraCityId,"error":_vm.testErr}},[_c('Button',{staticClass:"slot-button",attrs:{"slot":"func","size":"small","type":"primary"},slot:"func"},[_vm._v(_vm._s(_vm.modifyBtnText))])],1):_vm._e()]:_vm._e(),_vm._v(" "),(ele.revokeNodeId && _vm.showRevokeBtn)?_c('Button',{staticClass:"back-button",staticStyle:{"margin-left":"5px"},attrs:{"type":"error","size":"small","loading":_vm.loading},on:{"click":function($event){return _vm.revoke(ele.preTaskId,ele.preIsBeginTask)}}},[_vm._v("撤回")]):_vm._e()],2)]),_vm._v(" "),_c('div',{staticClass:"content"},[(ele.isApprove)?[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","content":ele.executeUserName,"placement":"top"}},[_c('span',[_vm._v(_vm._s(ele.executeUserName))])])],1)],1)],1),_vm._v(" "),(ele.approvalContent)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理意见:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('Tooltip',{attrs:{"max-width":"400","placement":"top","theme":"light","content":ele.approvalContent}},[_c('span',[_vm._v(_vm._s(ele.approvalContent))])])],1)],1)],1):_vm._e(),_vm._v(" "),_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理时间:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[_c('span',[_vm._v(_vm._s(_vm._f("dateFormat")(ele.endTime)))])])],1)],1)]:[_c('p',{staticClass:"padding-btm-10"},[_c('Row',{staticClass:"row-container"},[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理状态:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[(ele.taskStatus == 1)?[_c('span',[_vm._v("处理中")])]:_vm._e(),_vm._v(" "),(ele.taskStatus == 0)?[_c('span',[_vm._v("未处理")])]:_vm._e()],2)],1)],1),_vm._v(" "),(ele.nodeUser)?_c('p',{staticClass:"padding-btm-10"},[_c('Row',[_c('Col',{staticClass:"row-col-title",attrs:{"span":"5"}},[_c('span',[_vm._v("处理人:")])]),_vm._v(" "),_c('Col',{staticClass:"row-col-content",attrs:{"span":"19"}},[[_c('Tooltip',{attrs:{"max-width":"400","content":ele.nodeUser,"placement":"top"}},[_c('span',[_vm._v(_vm._s(ele.nodeUser))])])]],2)],1)],1):_vm._e()]],2)],1):_vm._e()])}),0)])])]})],2)],1)} var staticRenderFns = [] var esExports = { render: render, staticRenderFns: staticRenderFns } /* harmony default export */ __webpack_exports__["a"] = (esExports); /***/ }) /******/ ]); }); //# sourceMappingURL=sd-general-history.js.map