summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangwenrui <[email protected]>2019-11-08 18:32:16 +0800
committerwangwenrui <[email protected]>2019-11-08 18:32:16 +0800
commit3072bda8a3a4065e4a56be5b77056686e0b9e05a (patch)
treee2be95c2fab867756d8de7ed81ff5ca9a1a99f0b
parentb85ff72cd0d868e7222716b8b6c69e739b6762ca (diff)
样式调整
-rw-r--r--nezha-admin/src/main/resources/templates/js/modules/detect/metaMapping.js16
-rw-r--r--nezha-admin/src/main/resources/templates/modules/detect/metaMapping.html8
-rw-r--r--nezha-admin/src/main/resources/templates/modules/detect/warnTemplate.html2
3 files changed, 18 insertions, 8 deletions
diff --git a/nezha-admin/src/main/resources/templates/js/modules/detect/metaMapping.js b/nezha-admin/src/main/resources/templates/js/modules/detect/metaMapping.js
index 7e7817a7..5f8ec41b 100644
--- a/nezha-admin/src/main/resources/templates/js/modules/detect/metaMapping.js
+++ b/nezha-admin/src/main/resources/templates/js/modules/detect/metaMapping.js
@@ -37,9 +37,9 @@ $(function () {
},
],
viewrecords: true,
- height: 385,
- rowNum: 10,
- rowList: [10, 30, 50],
+ height: top.$(".content").height()-130,
+ rowNum: 15,
+ rowList : [15,30,50],
rownumbers: true,
rownumWidth: 25,
autowidth: true,
@@ -63,6 +63,14 @@ $(function () {
// Merger(gridName, 'type');
console.log($(".costomTable").parent().css("padding-left","0px"))
console.log($(".costomTable").parent().css("padding-right","0px"))
+ },
+ onSelectAll: function(rowids, status) {
+ if (status) {
+ toolsBtnHandle();
+ }
+ },
+ onSelectRow: function(rowid,status) {
+ toolsBtnHandle();
}
});
});
@@ -94,6 +102,8 @@ var typeRepeat = function (type, metaMappings) {
var vm = new Vue({
el: "#metaMapping",
data: {
+ single:true,
+ multi:true,
showList: true,
params: {
type: '',
diff --git a/nezha-admin/src/main/resources/templates/modules/detect/metaMapping.html b/nezha-admin/src/main/resources/templates/modules/detect/metaMapping.html
index c2c9482a..4c640d24 100644
--- a/nezha-admin/src/main/resources/templates/modules/detect/metaMapping.html
+++ b/nezha-admin/src/main/resources/templates/modules/detect/metaMapping.html
@@ -8,8 +8,8 @@
<body>
<div id="metaMapping" v-cloak>
<div v-show="showList">
- <div class="grid-btn">
- <div class="form-group col-sm-2">
+ <div class="tools">
+ <div class="form-group">
<input type="text" class="form-control" v-model.trim="params.type" @keyup.enter="query"
placeholder='<@spring.message "metaMapping.type"/>'>
</div>
@@ -17,9 +17,9 @@
class="fa fa-search"></i></a>
<a class="btn btn-primary" @click="add" title="<@spring.message 'common.add'/>"><i
class="fa fa-plus"></i></a>
- <a class="btn btn-primary" @click="toUpdate" title="<@spring.message 'common.edit'/>"><i
+ <a :disabled="single" class="btn btn-primary" @click="toUpdate" title="<@spring.message 'common.edit'/>"><i
class="fa fa-pencil-square-o"></i></a>
- <a class="btn btn-primary" @click="del" title="<@spring.message 'common.delete'/>"><i
+ <a :disabled="multi" class="btn btn-primary" @click="del" title="<@spring.message 'common.delete'/>"><i
class="fa fa-trash-o"></i></a>
</div>
<table id="jqGrid"></table>
diff --git a/nezha-admin/src/main/resources/templates/modules/detect/warnTemplate.html b/nezha-admin/src/main/resources/templates/modules/detect/warnTemplate.html
index 224424bc..cdec6583 100644
--- a/nezha-admin/src/main/resources/templates/modules/detect/warnTemplate.html
+++ b/nezha-admin/src/main/resources/templates/modules/detect/warnTemplate.html
@@ -27,7 +27,7 @@
@selectedDatasChange="getSelectDatas"
></nz-table>
</div>
- <div :id="footDiv+setId" v-show="state==3" class="panel panel-default">
+ <div :id="footDiv+setId" v-show="state==3" class="">
<form class="form-horizontal">
<div class="form-group">
<div class="col-sm-2 control-label"><@spring.message 'common.name'/></div>