Commit cd057a32 authored by wty's avatar wty

修复问题5

parent 51a6b4ff
{ {
"files": { "files": {
"main.css": "/static/css/main.63c35fee.chunk.css", "main.css": "/static/css/main.63c35fee.chunk.css",
"main.js": "/static/js/main.600ac631.chunk.js", "main.js": "/static/js/main.a7864b38.chunk.js",
"main.js.map": "/static/js/main.600ac631.chunk.js.map", "main.js.map": "/static/js/main.a7864b38.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.4628cb4f.js", "runtime-main.js": "/static/js/runtime-main.4628cb4f.js",
"runtime-main.js.map": "/static/js/runtime-main.4628cb4f.js.map", "runtime-main.js.map": "/static/js/runtime-main.4628cb4f.js.map",
"static/css/2.1f1ea42e.chunk.css": "/static/css/2.1f1ea42e.chunk.css", "static/css/2.1f1ea42e.chunk.css": "/static/css/2.1f1ea42e.chunk.css",
"static/js/2.c0da6fb9.chunk.js": "/static/js/2.c0da6fb9.chunk.js", "static/js/2.3e584191.chunk.js": "/static/js/2.3e584191.chunk.js",
"static/js/2.c0da6fb9.chunk.js.map": "/static/js/2.c0da6fb9.chunk.js.map", "static/js/2.3e584191.chunk.js.map": "/static/js/2.3e584191.chunk.js.map",
"static/js/3.4971491c.chunk.js": "/static/js/3.4971491c.chunk.js", "static/js/3.4971491c.chunk.js": "/static/js/3.4971491c.chunk.js",
"static/js/3.4971491c.chunk.js.map": "/static/js/3.4971491c.chunk.js.map", "static/js/3.4971491c.chunk.js.map": "/static/js/3.4971491c.chunk.js.map",
"index.html": "/index.html", "index.html": "/index.html",
"static/css/2.1f1ea42e.chunk.css.map": "/static/css/2.1f1ea42e.chunk.css.map", "static/css/2.1f1ea42e.chunk.css.map": "/static/css/2.1f1ea42e.chunk.css.map",
"static/css/main.63c35fee.chunk.css.map": "/static/css/main.63c35fee.chunk.css.map", "static/css/main.63c35fee.chunk.css.map": "/static/css/main.63c35fee.chunk.css.map",
"static/js/2.c0da6fb9.chunk.js.LICENSE.txt": "/static/js/2.c0da6fb9.chunk.js.LICENSE.txt", "static/js/2.3e584191.chunk.js.LICENSE.txt": "/static/js/2.3e584191.chunk.js.LICENSE.txt",
"static/media/dragIcon.268403b1.svg": "/static/media/dragIcon.268403b1.svg", "static/media/dragIcon.268403b1.svg": "/static/media/dragIcon.268403b1.svg",
"static/media/logo.c725c5d1.png": "/static/media/logo.c725c5d1.png", "static/media/logo.c725c5d1.png": "/static/media/logo.c725c5d1.png",
"static/media/setting.6a716d85.svg": "/static/media/setting.6a716d85.svg", "static/media/setting.6a716d85.svg": "/static/media/setting.6a716d85.svg",
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
"entrypoints": [ "entrypoints": [
"static/js/runtime-main.4628cb4f.js", "static/js/runtime-main.4628cb4f.js",
"static/css/2.1f1ea42e.chunk.css", "static/css/2.1f1ea42e.chunk.css",
"static/js/2.c0da6fb9.chunk.js", "static/js/2.3e584191.chunk.js",
"static/css/main.63c35fee.chunk.css", "static/css/main.63c35fee.chunk.css",
"static/js/main.600ac631.chunk.js" "static/js/main.a7864b38.chunk.js"
] ]
} }
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" type="image/x-icon" href="https://yun.duiba.com.cn/logo.png"><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><title>Dui123工具箱-你的第一个工具箱何必是一个工具箱</title><link href="/static/css/2.1f1ea42e.chunk.css" rel="stylesheet"><link href="/static/css/main.63c35fee.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"4971491c"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonpdui123=this.webpackJsonpdui123||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var l=0;l<a.length;l++)r(a[l]);var f=c;t()}([])</script><script src="/static/js/2.c0da6fb9.chunk.js"></script><script src="/static/js/main.600ac631.chunk.js"></script></body></html> <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" type="image/x-icon" href="https://yun.duiba.com.cn/logo.png"><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><title>Dui123工具箱-你的第一个工具箱何必是一个工具箱</title><link href="/static/css/2.1f1ea42e.chunk.css" rel="stylesheet"><link href="/static/css/main.63c35fee.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"4971491c"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonpdui123=this.webpackJsonpdui123||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var l=0;l<a.length;l++)r(a[l]);var f=c;t()}([])</script><script src="/static/js/2.3e584191.chunk.js"></script><script src="/static/js/main.a7864b38.chunk.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -17,7 +17,7 @@ getMysql.then(Mysql => { ...@@ -17,7 +17,7 @@ getMysql.then(Mysql => {
} }
res.send({ res.send({
success: true, success: true,
data: result data: result['affectedRows']
}) })
}) })
}) })
......
{ {
"files": { "files": {
"main.css": "/static/css/main.63c35fee.chunk.css", "main.css": "/static/css/main.63c35fee.chunk.css",
"main.js": "/static/js/main.600ac631.chunk.js", "main.js": "/static/js/main.a7864b38.chunk.js",
"main.js.map": "/static/js/main.600ac631.chunk.js.map", "main.js.map": "/static/js/main.a7864b38.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.4628cb4f.js", "runtime-main.js": "/static/js/runtime-main.4628cb4f.js",
"runtime-main.js.map": "/static/js/runtime-main.4628cb4f.js.map", "runtime-main.js.map": "/static/js/runtime-main.4628cb4f.js.map",
"static/css/2.1f1ea42e.chunk.css": "/static/css/2.1f1ea42e.chunk.css", "static/css/2.1f1ea42e.chunk.css": "/static/css/2.1f1ea42e.chunk.css",
"static/js/2.c0da6fb9.chunk.js": "/static/js/2.c0da6fb9.chunk.js", "static/js/2.3e584191.chunk.js": "/static/js/2.3e584191.chunk.js",
"static/js/2.c0da6fb9.chunk.js.map": "/static/js/2.c0da6fb9.chunk.js.map", "static/js/2.3e584191.chunk.js.map": "/static/js/2.3e584191.chunk.js.map",
"static/js/3.4971491c.chunk.js": "/static/js/3.4971491c.chunk.js", "static/js/3.4971491c.chunk.js": "/static/js/3.4971491c.chunk.js",
"static/js/3.4971491c.chunk.js.map": "/static/js/3.4971491c.chunk.js.map", "static/js/3.4971491c.chunk.js.map": "/static/js/3.4971491c.chunk.js.map",
"index.html": "/index.html", "index.html": "/index.html",
"static/css/2.1f1ea42e.chunk.css.map": "/static/css/2.1f1ea42e.chunk.css.map", "static/css/2.1f1ea42e.chunk.css.map": "/static/css/2.1f1ea42e.chunk.css.map",
"static/css/main.63c35fee.chunk.css.map": "/static/css/main.63c35fee.chunk.css.map", "static/css/main.63c35fee.chunk.css.map": "/static/css/main.63c35fee.chunk.css.map",
"static/js/2.c0da6fb9.chunk.js.LICENSE.txt": "/static/js/2.c0da6fb9.chunk.js.LICENSE.txt", "static/js/2.3e584191.chunk.js.LICENSE.txt": "/static/js/2.3e584191.chunk.js.LICENSE.txt",
"static/media/dragIcon.268403b1.svg": "/static/media/dragIcon.268403b1.svg", "static/media/dragIcon.268403b1.svg": "/static/media/dragIcon.268403b1.svg",
"static/media/logo.c725c5d1.png": "/static/media/logo.c725c5d1.png", "static/media/logo.c725c5d1.png": "/static/media/logo.c725c5d1.png",
"static/media/setting.6a716d85.svg": "/static/media/setting.6a716d85.svg", "static/media/setting.6a716d85.svg": "/static/media/setting.6a716d85.svg",
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
"entrypoints": [ "entrypoints": [
"static/js/runtime-main.4628cb4f.js", "static/js/runtime-main.4628cb4f.js",
"static/css/2.1f1ea42e.chunk.css", "static/css/2.1f1ea42e.chunk.css",
"static/js/2.c0da6fb9.chunk.js", "static/js/2.3e584191.chunk.js",
"static/css/main.63c35fee.chunk.css", "static/css/main.63c35fee.chunk.css",
"static/js/main.600ac631.chunk.js" "static/js/main.a7864b38.chunk.js"
] ]
} }
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" type="image/x-icon" href="https://yun.duiba.com.cn/logo.png"><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><title>Dui123工具箱-你的第一个工具箱何必是一个工具箱</title><link href="/static/css/2.1f1ea42e.chunk.css" rel="stylesheet"><link href="/static/css/main.63c35fee.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"4971491c"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonpdui123=this.webpackJsonpdui123||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var l=0;l<a.length;l++)r(a[l]);var f=c;t()}([])</script><script src="/static/js/2.c0da6fb9.chunk.js"></script><script src="/static/js/main.600ac631.chunk.js"></script></body></html> <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" type="image/x-icon" href="https://yun.duiba.com.cn/logo.png"><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><title>Dui123工具箱-你的第一个工具箱何必是一个工具箱</title><link href="/static/css/2.1f1ea42e.chunk.css" rel="stylesheet"><link href="/static/css/main.63c35fee.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"4971491c"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this.webpackJsonpdui123=this.webpackJsonpdui123||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var l=0;l<a.length;l++)r(a[l]);var f=c;t()}([])</script><script src="/static/js/2.3e584191.chunk.js"></script><script src="/static/js/main.a7864b38.chunk.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
//! moment.js
//! moment.js locale configuration
This diff is collapsed.
import React, { useState, useEffect, useContext } from 'react'; import React, {useContext, useEffect} from 'react';
import { Root } from "../dataCenter/Root"; import {Root} from "../dataCenter/Root";
import { Button, Modal, Form, Input, Radio, Select, message } from 'antd'; import {Form, Input, message, Modal, Select} from 'antd';
import { NEED_UPDATE_INDEX } from "../dataCenter/action"; import {NEED_UPDATE_INDEX} from "../dataCenter/action";
const { Option } = Select;
const ToolModal = ({ visible, onCancel, data }) => { const {Option} = Select;
const ToolModal = ({visible, onCancel, data}) => {
const [form] = Form.useForm(); const [form] = Form.useForm();
const { fetchData, dataCenter, dispatch } = useContext(Root) const {fetchData, dataCenter, dispatch} = useContext(Root)
const formItemLayout = { const formItemLayout = {
labelCol: { span: 4 }, labelCol: {span: 4},
wrapperCol: { span: 18 }, wrapperCol: {span: 18},
}; };
const onCreate = (values) => { const onCreate = (values) => {
let input = { let input = {
...@@ -16,7 +17,6 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -16,7 +17,6 @@ const ToolModal = ({ visible, onCancel, data }) => {
toolbox_icon: values.icon, toolbox_icon: values.icon,
toolbox_desc: values.depict, toolbox_desc: values.depict,
toolbox_url: values.url, toolbox_url: values.url,
} }
if (!data) { if (!data) {
input = { input = {
...@@ -37,6 +37,10 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -37,6 +37,10 @@ const ToolModal = ({ visible, onCancel, data }) => {
}) })
} else { } else {
input = {
...input,
toolbox_id: data.toolbox_id
}
fetchData('/update/updateToolBox', input) fetchData('/update/updateToolBox', input)
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
...@@ -54,7 +58,7 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -54,7 +58,7 @@ const ToolModal = ({ visible, onCancel, data }) => {
form.setFieldsValue({ form.setFieldsValue({
type: value, type: value,
}); });
fetchData('/query/queryChildType', { type_id: value }, 'childType') fetchData('/query/queryChildType', {type_id: value}, 'childType')
.then((res) => { .then((res) => {
console.log(res); console.log(res);
...@@ -68,7 +72,7 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -68,7 +72,7 @@ const ToolModal = ({ visible, onCancel, data }) => {
}; };
useEffect(() => { useEffect(() => {
dataCenter?.type && fetchData('/query/queryChildType', { type_id: dataCenter?.type[0]?.type_id }, 'childType') dataCenter?.type && fetchData('/query/queryChildType', {type_id: dataCenter?.type[0]?.type_id}, 'childType')
.then((res) => { .then((res) => {
console.log(res); console.log(res);
...@@ -104,7 +108,7 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -104,7 +108,7 @@ const ToolModal = ({ visible, onCancel, data }) => {
icon: data.toolbox_icon, icon: data.toolbox_icon,
url: data.toolbox_url, url: data.toolbox_url,
depict: data.toolbox_desc, depict: data.toolbox_desc,
} : { type: dataCenter?.type && dataCenter?.type[0]?.type_id }} } : {type: dataCenter?.type && dataCenter?.type[0]?.type_id}}
> >
<Form.Item <Form.Item
name="name" name="name"
...@@ -116,18 +120,18 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -116,18 +120,18 @@ const ToolModal = ({ visible, onCancel, data }) => {
}, },
]} ]}
> >
<Input placeholder="请输入名称" /> <Input placeholder="请输入名称"/>
</Form.Item> </Form.Item>
<Form.Item name="icon" <Form.Item name="icon"
label="图标" label="图标"
rules={[ rules={[
{ {
required: true, required: true,
message: '请输入图标url!', message: '请输入图标url!',
}, },
]} ]}
> >
<Input placeholder="请输入图标url" /> <Input placeholder="请输入图标url"/>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
name="depict" name="depict"
...@@ -139,7 +143,7 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -139,7 +143,7 @@ const ToolModal = ({ visible, onCancel, data }) => {
}, },
]} ]}
> >
<Input placeholder="请输入描述" /> <Input placeholder="请输入描述"/>
</Form.Item> </Form.Item>
<Form.Item <Form.Item
name="url" name="url"
...@@ -151,7 +155,7 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -151,7 +155,7 @@ const ToolModal = ({ visible, onCancel, data }) => {
}, },
]} ]}
> >
<Input placeholder="请输入链接" /> <Input placeholder="请输入链接"/>
</Form.Item> </Form.Item>
{!data && <Form.Item {!data && <Form.Item
name="type" name="type"
...@@ -166,7 +170,7 @@ const ToolModal = ({ visible, onCancel, data }) => { ...@@ -166,7 +170,7 @@ const ToolModal = ({ visible, onCancel, data }) => {
<Select <Select
placeholder="请选择类型" placeholder="请选择类型"
onChange={onGenderChange} onChange={onGenderChange}
// allowClear // allowClear
> >
{ {
dataCenter?.type?.length && dataCenter?.type.map(v => { dataCenter?.type?.length && dataCenter?.type.map(v => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment