数据互导逻辑开发
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,u){for(var i,a,f,l=0,s=[];l<t.length;l++)a=t[l],o[a]&&s.push(o[a][0]),o[a]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(r&&r(t,c,u);s.length;)s.shift()();if(u)for(l=0;l<u.length;l++)f=n(n.s=u[l]);return f};var t={},o={2:0};n.e=function(e){function r(){i.onerror=i.onload=null,clearTimeout(a);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var c=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=c;var u=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=12e4,n.nc&&i.setAttribute("nonce",n.nc),i.src=n.p+""+e+".js?"+{0:"1fb429f5d8daeb935005",1:"de31d3ffbceab902272c"}[e];var a=setTimeout(r,12e4);return i.onerror=i.onload=r,u.appendChild(i),c},n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n.oe=function(e){throw console.error(e),e}}([]);
|
||||
//# sourceMappingURL=doc-db-manifest.js.map?e1021aa96325a9133fd7
|
||||
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var u,i,f,l=0,s=[];l<t.length;l++)i=t[l],o[i]&&s.push(o[i][0]),o[i]=0;for(u in c)Object.prototype.hasOwnProperty.call(c,u)&&(e[u]=c[u]);for(r&&r(t,c,a);s.length;)s.shift()();if(a)for(l=0;l<a.length;l++)f=n(n.s=a[l]);return f};var t={},o={2:0};n.e=function(e){function r(){u.onerror=u.onload=null,clearTimeout(i);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var c=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=c;var a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.type="text/javascript",u.charset="utf-8",u.async=!0,u.timeout=12e4,n.nc&&u.setAttribute("nonce",n.nc),u.src=n.p+""+e+".js?"+{0:"2c4a7880a2e9a4f8c3c7",1:"de31d3ffbceab902272c"}[e];var i=setTimeout(r,12e4);return u.onerror=u.onload=r,a.appendChild(u),c},n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n.oe=function(e){throw console.error(e),e}}([]);
|
||||
//# sourceMappingURL=doc-db-manifest.js.map?d4ab425de7b305fb96b7
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="text/javascript" src="doc-db-manifest.js?e1021aa96325a9133fd7"></script><script type="text/javascript" src="doc-db-vendor.js?de31d3ffbceab902272c"></script><script type="text/javascript" src="doc-db-index.js?1fb429f5d8daeb935005"></script></body>
|
||||
<script type="text/javascript" src="doc-db-manifest.js?d4ab425de7b305fb96b7"></script><script type="text/javascript" src="doc-db-vendor.js?de31d3ffbceab902272c"></script><script type="text/javascript" src="doc-db-index.js?2c4a7880a2e9a4f8c3c7"></script></body>
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
@@ -279,9 +279,9 @@
|
||||
document.getElementById("widthCalculate").innerText = propData[key];
|
||||
var width2 = document.getElementById("widthCalculate").offsetWidth;
|
||||
var width = (width1 > width2) ? width1 : width2;
|
||||
width = (width < 60) ? 60 : width;
|
||||
width = (width < 50) ? 50 : width;
|
||||
width = (width > 200) ? 200 : width;
|
||||
executeResultCols.push({prop: key, width: width + 20});
|
||||
executeResultCols.push({prop: key, width: width + 25});
|
||||
}
|
||||
for (var i = 0; i < dataList.length; i++) {
|
||||
dataList[i]._index = i + 1;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</div>
|
||||
<div style="margin-bottom: 10px;text-align: right;">
|
||||
<el-button type="success" icon="el-icon-plus" v-on:click="createNewTask">新建</el-button>
|
||||
<el-button type="primary" v-on:click="loadGetTaskList">查询</el-button>
|
||||
<el-button type="primary" v-on:click="loadGetTaskList" :loading="loadDataListLoading" icon="el-icon-refresh">查询</el-button>
|
||||
</div>
|
||||
<el-table :data="taskList" stripe border style="width: 100%; margin-bottom: 5px;">
|
||||
<el-table-column prop="id" label="ID" width="55"></el-table-column>
|
||||
@@ -77,6 +77,7 @@
|
||||
</el-form>
|
||||
<div style="text-align: center;">
|
||||
<el-button type="primary" v-on:click="saveEditTask">保存</el-button>
|
||||
<el-button type="warning" v-on:click="taskEditDialogVisible=false">取消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!--任务查看弹窗-->
|
||||
@@ -96,6 +97,7 @@
|
||||
<pre style="word-wrap: break-word;word-break: break-all;white-space: pre-wrap;line-height: 22px;">{{taskEditInfo.lastExecuteInfo}}</pre>
|
||||
</el-form-item>
|
||||
<el-form-item label="操作:" v-if="taskEditInfo.lastExecuteStatus==1">
|
||||
<el-button type="success" v-on:click="viewTask(taskEditInfo.id)" icon="el-icon-refresh" :loading="viewTaskLoading">刷新</el-button>
|
||||
<el-button type="danger" v-on:click="cancelTask">取消执行</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -114,6 +116,8 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
viewTaskLoading: false,
|
||||
loadDataListLoading: false,
|
||||
// 数据源相关
|
||||
datasourceOptions: [],
|
||||
queryDatasourceId: "",
|
||||
@@ -185,9 +189,11 @@
|
||||
});
|
||||
},
|
||||
viewTask(id) {
|
||||
this.viewTaskLoading = true;
|
||||
this.taskViewDialogVisible = true;
|
||||
this.common.post(this.apilist1.transferDetail, {id: id}, function (json) {
|
||||
app.taskEditInfo = json.data || {};
|
||||
setTimeout(()=>{app.viewTaskLoading = false;}, 300);
|
||||
});
|
||||
},
|
||||
cancelTask() {
|
||||
@@ -198,12 +204,15 @@
|
||||
}).then(() => {
|
||||
this.common.post(this.apilist1.transferCancel, {id: this.taskEditInfo.id}, function (json) {
|
||||
app.$message.success("取消成功");
|
||||
app.viewTask(app.taskEditInfo.id);
|
||||
});
|
||||
}).catch(()=>{});
|
||||
},
|
||||
loadGetTaskList() {
|
||||
this.loadDataListLoading = true;
|
||||
this.common.post(this.apilist1.transferList, {}, function (json) {
|
||||
app.taskList = json.data || [];
|
||||
setTimeout(()=>{app.loadDataListLoading = false;}, 800);
|
||||
});
|
||||
},
|
||||
autoFillStorageSql() {
|
||||
|
||||
Reference in New Issue
Block a user