优化:1、meta 业务配置页面,其他界面改善
2、元数据记录到内存缺少id的处理
3、设置platid为不可修改字段
This commit is contained in:
@@ -12,13 +12,13 @@
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
input,textarea,select {
|
||||
/*input,textarea,select {
|
||||
border-top: 0;
|
||||
border-right: 0;
|
||||
/*border-left: 2px!important;*/
|
||||
!*border-left: 2px!important;*!
|
||||
border-bottom: 0;
|
||||
/*background-color: #DDF3F5;*/
|
||||
}
|
||||
!*background-color: #DDF3F5;*!
|
||||
}*/
|
||||
textarea {
|
||||
width: 100%;
|
||||
}
|
||||
@@ -31,33 +31,13 @@
|
||||
}
|
||||
</style>
|
||||
<row class="qtask-list">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12" style="margin-bottom: 10px">
|
||||
<h3 v-text="cfg.title"></h3>
|
||||
<button @click="openDia({'x':1})" class="btn btn-primary" type="button"> 添加QTask</button>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
<!--<div class="col-md-2" style="padding-left: 0">
|
||||
<div class="input-group">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="button">选择业务平台</button>
|
||||
</span>
|
||||
<select class="form-control">
|
||||
<option>sdfa</option>
|
||||
<option>sadf</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<!--<div class="input-group pull-right">
|
||||
<button @click="openDia({})" class="btn btn-primary" type="button"> 添加QTask</button>
|
||||
<!–<button @click="openDia({})" class="btn btn-primary" type="button" style="margin-left: 5px"> 添加QTask</button>–>
|
||||
</div>-->
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="col-md-5" style="padding-top: 10px;overflow:auto;">
|
||||
<div class="col-md-5" style="">
|
||||
<ul id="treeDemo" class="ztree" style="display: none"></ul>
|
||||
<table class="table table-bordered table-hover" style="width: 100%; ">
|
||||
<thead>
|
||||
@@ -108,11 +88,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-7 edit">
|
||||
<div class="col-md-7 edit" style="padding-top: 0px;">
|
||||
<table v-show="editStatus==1" class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4"><h5>【任务编辑】</h5></th>
|
||||
<th colspan="4">
|
||||
<h5 class="pull-left">【任务编辑】</h5>
|
||||
<!--全屏打开按钮-->
|
||||
<!--<a @click="fullScreen()" href="javascript:" class="pull-right" style="margin: 5px; font-size: 18px">
|
||||
<i class="icon icon-fullscreen"></i>
|
||||
</a>-->
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
@@ -201,7 +187,7 @@
|
||||
<!-- 对话框触发按钮 -->
|
||||
<!-- 对话框HTML -->
|
||||
<div class="modal fade" id="myModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
|
||||
@@ -236,9 +222,9 @@
|
||||
<div class="form-group">
|
||||
<label for="para" class="col-sm-2 required">数据平台</label>
|
||||
<div class="col-xs-6">
|
||||
<select v-model="row.dbplatid" class="form-control">
|
||||
<select v-model="row.dbid" class="form-control">
|
||||
<option></option>
|
||||
<option v-for="item in dbPlats" :value="item.key" v-text="item.name"></option>
|
||||
<option v-for="item in dbPlats" :value="item.dbid" v-text="item.dbname"></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
@@ -304,6 +290,7 @@
|
||||
cfg: {
|
||||
title: "QTask 管理",
|
||||
cols: [
|
||||
{col: "qtaskid", label: "#",},
|
||||
{col: "name", label: "任务标识码",},
|
||||
{col: "title", label: "任务名称",},
|
||||
{col: "remark", label: "备注",},
|
||||
@@ -356,12 +343,17 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
loadList: function (pn = 1) {
|
||||
loadList: function (pn = 1, x = '') {
|
||||
let limit = this.limit.ps
|
||||
let offset = (pn - 1) * limit
|
||||
qtask.qtaskList({flipper: {offset, limit}}).then(res => {
|
||||
this.list = res
|
||||
|
||||
// 如果页面初次打开,则默认打开第一条记录
|
||||
if (x === 'OPEN' && res.rows.length > 0) {
|
||||
vm.openDia(res.rows[0])
|
||||
}
|
||||
|
||||
let zNodes = [
|
||||
{id: 1, pId: 0, name: "qtask 任务", open: true},
|
||||
/*{id: 11, pId: 1, name: "随意拖拽 1-1"},
|
||||
@@ -376,7 +368,7 @@
|
||||
this.limit.total = Math.ceil(this.list.total / limit)
|
||||
})
|
||||
},
|
||||
openDia: function (row) {
|
||||
openDia(row) {
|
||||
vm.row = red.deepClone(row);
|
||||
vm._row = red.deepClone(row);
|
||||
vm.editStatus = 1
|
||||
@@ -388,13 +380,16 @@
|
||||
}*/
|
||||
this.parsePara(row)
|
||||
},
|
||||
fullScreen(row) {
|
||||
$('#myModal').modal({moveable: true})
|
||||
},
|
||||
save() {
|
||||
qtask.qtaskSave(this.row).then(res => {
|
||||
red.showOk()
|
||||
red.wait(1000).then(() => {
|
||||
this.loadList()
|
||||
this.row = {}
|
||||
$('#myModal').modal('hide')
|
||||
// this.row = {}
|
||||
// $('#myModal').modal('hide')
|
||||
})
|
||||
})
|
||||
},
|
||||
@@ -460,7 +455,7 @@
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
this.loadList();
|
||||
this.loadList(1, 'OPEN');
|
||||
|
||||
setTimeout(function () {
|
||||
layui.use('code', function(){ //加载code模块
|
||||
|
||||
Reference in New Issue
Block a user