+
diff --git a/src/views/system/DefaultNuclide/AlarmRule.vue b/src/views/system/DefaultNuclide/AlarmRule.vue
index f793756..11712c1 100644
--- a/src/views/system/DefaultNuclide/AlarmRule.vue
+++ b/src/views/system/DefaultNuclide/AlarmRule.vue
@@ -1,10 +1,10 @@
-
+
@@ -29,20 +29,14 @@
-
+
- Save
+ Save
Cancel
@@ -70,32 +64,32 @@ const columns = [
align: 'left',
width: 170,
scopedSlots: {
- customRender: 'index'
+ customRender: 'index',
},
customHeaderCell: () => {
return {
style: {
- 'padding-left': '60px !important'
- }
+ 'padding-left': '60px !important',
+ },
}
},
customCell: () => {
return {
style: {
- 'padding-left': '60px !important'
- }
+ 'padding-left': '60px !important',
+ },
}
- }
+ },
},
{
title: 'NUCLIDE NAME',
align: 'left',
- dataIndex: 'nuclideName'
+ dataIndex: 'nuclideName',
},
{
title: 'CREATE TIME',
align: 'left',
- dataIndex: 'createTime'
+ dataIndex: 'createTime',
},
]
export default {
@@ -106,7 +100,7 @@ export default {
url: {
list: '/sys/defaultNuclide/findPage',
},
- ipagination:{
+ ipagination: {
current: 1,
pageSize: 10,
pageSizeOptions: ['10', '20', '30'],
@@ -116,17 +110,17 @@ export default {
},
showQuickJumper: true,
showSizeChanger: true,
- total: 0
+ total: 0,
},
loading: false,
targetKeys: [],
visible: false,
dataList: [],
- spinning: false
+ spinning: false,
}
},
- mounted () {
- this.getRulesList();
+ mounted() {
+ this.getRulesList()
},
methods: {
getRulesList() {
@@ -134,23 +128,22 @@ export default {
let params = {
pageNo: this.ipagination.current,
pageSize: this.ipagination.pageSize,
- useType: 2
+ useType: 2,
}
- getAction(this.url.list, params).then(res => {
+ getAction(this.url.list, params).then((res) => {
this.loading = false
if (res.success) {
this.dataSource = res.result.records
this.ipagination.total = res.result.total
} else {
- this.$message.warning("This operation fails. Contact your system administrator")
+ this.$message.warning('This operation fails. Contact your system administrator')
}
-
})
},
handleTableChange(pagination, filters, sorter) {
this.ipagination.current = pagination.current
this.ipagination.pageSize = pagination.pageSize
- this.getRulesList();
+ this.getRulesList()
},
handleAdd() {
this.visible = true
@@ -159,39 +152,39 @@ export default {
this.getNuclideList()
},
getNuclideListAll() {
- getAction("/gardsNuclLib/allName").then(res => {
+ getAction('/gardsNuclLib/allName').then((res) => {
this.spinning = false
if (res.success) {
if (res.result.length > 0) {
- this.dataList = res.result.map((item,index) => {
+ this.dataList = res.result.map((item, index) => {
return {
key: item,
- title: item
+ title: item,
}
})
} else {
this.dataList = []
}
} else {
- this.$message.warning("This operation fails. Contact your system administrator")
+ this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
getNuclideList() {
- getAction("/sys/defaultNuclide/allName",{useType:2}).then(res => {
+ getAction('/sys/defaultNuclide/allName', { useType: 2 }).then((res) => {
if (res.success) {
if (res.result.length > 0) {
- this.targetKeys = res.result.map(item => item)
+ this.targetKeys = res.result.map((item) => item)
} else {
this.targetKeys = []
}
} else {
- this.$message.warning("This operation fails. Contact your system administrator")
+ this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
handleChange(targetKeys, direction, moveKeys) {
- this.targetKeys= targetKeys;
+ this.targetKeys = targetKeys
},
handleSearch(dir, value) {
console.log('search:', dir, value)
@@ -199,15 +192,15 @@ export default {
handleOk() {
let params = {
nuclideNames: this.targetKeys,
- useType: 2
+ useType: 2,
}
- getAction("/sys/defaultNuclide/add",params).then(res => {
+ getAction('/sys/defaultNuclide/add', params).then((res) => {
this.visible = false
if (res.success) {
this.$message.success(res.message)
this.getRulesList()
} else {
- this.$message.warning("This operation fails. Contact your system administrator")
+ this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@@ -219,7 +212,7 @@ export default {
\ No newline at end of file
diff --git a/src/views/system/DefaultNuclide/AutoProcess.vue b/src/views/system/DefaultNuclide/AutoProcess.vue
index cacf284..bbea3bf 100644
--- a/src/views/system/DefaultNuclide/AutoProcess.vue
+++ b/src/views/system/DefaultNuclide/AutoProcess.vue
@@ -1,15 +1,15 @@
-