5e202800 by yuanbo

增加注释

1 parent 3d886aa9
......@@ -291,10 +291,19 @@
},
methods: {
// 关闭弹框事件
/**
* @description: 关闭弹框事件
* @author: renchao
*/
closeDialog () {
this.dialogVisible = false;
},
// 展示弹框
/**
* @description: 展示弹框
* @param {*} item
* @author: renchao
*/
isShow (item) {
this.title = '登薄日志(' + item.ACCESSDATE + ')'
this.titleName = 'sjmx'
......@@ -304,6 +313,7 @@
},
/**
* @description: 获取列表接口
* @param {*} data
* @author: renchao
*/
_getDetails (data) {
......@@ -325,6 +335,10 @@
})
},
// 当日登薄详单
/**
* @description: 当日登薄详单
* @author: renchao
*/
handleDBAdd () {
this.tableDBData.data.push({
YWH: '',
......@@ -340,6 +354,11 @@
this.$set(item, 'index', index)
})
},
/**
* @description: handleDBMinus
* @param {*} row
* @author: renchao
*/
handleDBMinus (row) {
this.$confirm('此操作将删除列表, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -362,6 +381,10 @@
})
},
// 当日上报详单
/**
* @description: 当日上报详单
* @author: renchao
*/
handleSBAdd () {
this.tableSBData.data.push({
YWH: '',
......@@ -373,6 +396,11 @@
this.$set(item, 'index', index)
})
},
/**
* @description: handleSBMinus
* @param {*} row
* @author: renchao
*/
handleSBMinus (row) {
this.$confirm('此操作将删除列表, 是否继续?', '提示', {
confirmButtonText: '确定',
......
......@@ -131,9 +131,18 @@
},
methods: {
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.endTime = timeFormat(new Date(val), true)
},
/**
* @description: featchData
* @author: renchao
*/
featchData () {
getRecordLogPage({ ...this.form }).then(res => {
if (res.code === 200) {
......@@ -145,12 +154,21 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.currentPage = 1
this.featchData();
},
// 编辑
/**
* @description: 编辑
* @param {*} row
* @author: renchao
*/
handleEdit (row) {
this.$refs.editLog.isShow(row);
this.$store.dispatch('business/setReportLogEdit')
......
......@@ -82,9 +82,17 @@ export default {
}
},
methods: {
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit('input', false)
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit () {
this.$emit('input', false)
}
......
......@@ -194,10 +194,19 @@
},
methods: {
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.exchangeEndTime = timeFormat(new Date(val), true)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchData () {
getDataReportPage({ ...this.form }).then((res) => {
if (res.code === 200) {
......@@ -209,8 +218,17 @@
});
},
// 上报
/**
* @description: 上报
* @author: renchao
*/
handleEscalation () { },
// 详情
/**
* @description: 详情
* @param {*} row
* @author: renchao
*/
handleDetail (row) {
this.title = row.rectypeName;
this.$refs.editLog.isShow(row);
......@@ -221,6 +239,10 @@
}
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.exchangeEndTime = ""
......
......@@ -82,9 +82,17 @@ export default {
}
},
methods: {
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit('input', false)
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit () {
this.$emit('input', false)
}
......
......@@ -245,10 +245,19 @@
},
methods: {
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.exchangeEndTime = timeFormat(new Date(val), true)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchData () {
getSjsbReportPage({ ...this.form, ...this.formData }).then((res) => {
if (res.code === 200) {
......@@ -260,8 +269,17 @@
});
},
// 上报
/**
* @description: 上报
* @author: renchao
*/
handleEscalation () { },
// 详情
/**
* @description: 详情
* @param {*} row
* @author: renchao
*/
handleDetail (row) {
this.title = row.rectypeName;
this.$refs.editLog.isShow(row);
......@@ -272,12 +290,21 @@
}
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.exchangeEndTime = ""
this.form.currentPage = 1
this.featchData();
},
/**
* @description: ywhClick
* @param {*} item
* @author: renchao
*/
ywhClick (item) {
window.open('http://192.168.2.38/bdcdj#/workFrame?bsmSlsq=4582b05a4d49c25673eb0880b5787e58&bestepid=sl&bsmBusiness=&sqywbm=A03100', '_blank')
//判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面
......
......@@ -78,6 +78,10 @@
}
},
methods: {
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit () {
let _this = this
this.$refs['ruleForm'].validate(async (valid) => {
......@@ -120,6 +124,10 @@
}
})
},
/**
* @description: handleClose
* @author: renchao
*/
handleClose () {
this.$emit("input", false);
}
......
......@@ -158,6 +158,10 @@
}
},
methods: {
/**
* @description: isShow
* @author: renchao
*/
isShow () {
setTimeout(() => {
this.ruleForm = this.ruleData
......@@ -165,9 +169,18 @@
}, 0)
this.$refs.validRule.isShow()
},
/**
* @description: handleEdit
* @param {*} scope
* @author: renchao
*/
handleEdit (scope) {
this.$set(scope.row, '_edit', true)
},
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd () {
this.tableData.data.push({
field: '',
......@@ -177,9 +190,19 @@
message: ''
})
},
/**
* @description: handleMinus
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleMinus (index, row) {
this.tableData.data.splice(index, 1);
},
/**
* @description: handleSubmit
* @author: renchao
*/
async handleSubmit () {
this.ruleForm.sysYwsjbFieldList = this.tableData.data
try {
......@@ -198,6 +221,10 @@
}
},
/**
* @description: handleClose
* @author: renchao
*/
handleClose () {
this.$refs['ruleForm'].resetFields();
this.$refs.validRule.isHide()
......
......@@ -257,6 +257,12 @@
},
methods: {
// 添加索引
/**
* @description: 添加索引
* @param {*} data
* @param {*} isAdd
* @author: renchao
*/
addIndexes (data = this.tableData, isAdd = true) {
data.forEach((item, index) => {
if (index == 0) {
......@@ -278,6 +284,10 @@
}
});
},
/**
* @description: itemShowFalse
* @author: renchao
*/
itemShowFalse () {
this.tableData.forEach((item, index) => {
item.codeShow = false;
......@@ -286,11 +296,21 @@
item.normnameShow = false;
});
},
/**
* @description: handleMinus
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleMinus (index, row) {
removeTreeListItem(this.tableData, row.dictid, 'dictid');
this.tableData = judgeSort(this.tableData)
this.key++;
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit () {
editDictNode({
dictid: this.details.rowData.dictid,
......@@ -306,10 +326,19 @@
}
});
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit("input", false);
},
// 增加下级
/**
* @description: 增加下级
* @param {*} row
* @author: renchao
*/
handleAddSubordinate (row) {
if (!row.children) {
row.children = [];
......@@ -327,6 +356,10 @@
this.keyList.push(row.dictid);
},
// 增加
/**
* @description: 增加
* @author: renchao
*/
handleAdd () {
this.$nextTick(() => {
let container = this.$el.querySelector(".el-table__body-wrapper");
......@@ -346,12 +379,24 @@
this.key++;
},
// 上移下移
/**
* @description: 上移下移
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveUpward (index, row) {
realMove(row.dictid, "UP", this.tableData);
let id = findParents(this.tableData, row.dictid);
this.keyList = id;
this.key++;
},
/**
* @description: moveDown
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveDown (index, row) {
realMove(row.dictid, "DOWN", this.tableData);
let id = findParents(this.tableData, row.dictid);
......
......@@ -83,6 +83,10 @@
},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => {
let { records, total } = res.result
......@@ -90,11 +94,19 @@
this.tableData.total = total ? total : 0
})
},
/**
* @description: handleSearch
* @author: renchao
*/
handleSearch () {
this.pageData.currentPage = 1
this.tableData.data = []
this.queryClick()
},
/**
* @description: handleRefresh
* @author: renchao
*/
handleRefresh () {
this.$confirm('是否确认刷新', '提示', {
confirmButtonText: '确定',
......@@ -120,6 +132,12 @@
});
});
},
/**
* @description: editClick
* @param {*} row
* @param {*} val
* @author: renchao
*/
editClick (row, val) {
this.details.rowData = row
this.details.isenable = val
......
......@@ -103,14 +103,26 @@
}
},
methods: {
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd () {
this.taskData = null
this.isDialog = true
},
/**
* @description: resetSe
* @author: renchao
*/
resetSe () {
this.form.jobName = ''
this.featchData()
},
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......@@ -121,6 +133,11 @@
this.message = error
}
},
/**
* @description: recover
* @param {*} row
* @author: renchao
*/
recover (row) {
this.$confirm('此操将进行恢复操作, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -153,6 +170,11 @@
})
},
/**
* @description: handleActive
* @param {*} row
* @author: renchao
*/
handleActive (row) {
this.$confirm('此操将进行激活操作, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -185,6 +207,11 @@
})
},
// 暂停
/**
* @description: 暂停
* @param {*} row
* @author: renchao
*/
handleSuspend (row) {
this.$confirm('此操将进行暂停操作, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -216,10 +243,20 @@
})
})
},
/**
* @description: handleEdit
* @param {*} row
* @author: renchao
*/
handleEdit (row) {
this.taskData = row
this.isDialog = true
},
/**
* @description: handleDel
* @param {*} row
* @author: renchao
*/
handleDel (row) {
this.$confirm('此操将进行删除操作, 是否继续?', '提示', {
confirmButtonText: '确定',
......