66c896be by yuanbo

增加注释

1 parent eb854ff0
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-19 16:04:43
-->
......@@ -53,6 +53,10 @@
},
methods: {
/**
* @description: submitForm
* @author: renchao
*/
submitForm () {
let that = this;
that.$refs.ruleForm.validate(valid => {
......@@ -74,18 +78,35 @@
});
},
//关闭窗口
/**
* @description: 关闭窗口
* @author: renchao
*/
closeDialog () {
this.$emit("input", false);
this.resetRuleForm();
},
//
/**
* @description: resetRuleForm
* @author: renchao
*/
resetRuleForm () {
this.$refs['ruleForm'].resetFields();
this.ruleForm.noticeType = '2'
},
/**
* @description: beforeUpload
* @param {*} file
* @author: renchao
*/
beforeUpload (file) {
return true;
},
/**
* @description: handleChange
* @param {*} file
* @author: renchao
*/
async handleChange (file) {
var formdata = new FormData();
formdata.append("file", file.raw);
......
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-19 16:04:47
-->
......@@ -63,6 +63,10 @@
},
methods: {
// 列表渲染接口
/**
* @description: 列表渲染接口
* @author: renchao
*/
queryClick () {
this.$startLoading()
getSysPolicyList({ ...this.ruleForm, ...this.pageData }, { 'target': '#flfgLoading' }).then(res => {
......@@ -75,14 +79,28 @@
})
},
//打开新增弹窗
/**
* @description: 打开新增弹窗
* @author: renchao
*/
openDialog () {
this.isDialog = true;
},
/**
* @description: downloadFile
* @param {*} item
* @author: renchao
*/
downloadFile (item) {
const href = item.noticeFileUrl
window.open(href, '_blank');
},
//删除
/**
* @description: 删除
* @param {*} item
* @author: renchao
*/
delNotice (item) {
this.$confirm('是否确定删除', '提示', {
confirmButtonText: '确定',
......
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-19 16:04:58
-->
......@@ -205,9 +205,18 @@
}
},
methods: {
/**
* @description: handleSelect
* @param {*} index
* @author: renchao
*/
handleSelect (index) {
this.n = index
},
/**
* @description: submitForm
* @author: renchao
*/
submitForm () {
let that = this
updateSysSqywmbsz(this.ruleForm).then(res => {
......
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-19 14:09:29
-->
......@@ -65,6 +65,10 @@
},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
this.$startLoading();
sysSqywmbszSearch({ ...this.pageData, ...this.queryForm }).then(res => {
......@@ -74,6 +78,11 @@
this.tableData.total = total ? total : 0
})
},
/**
* @description: editClick
* @param {*} row
* @author: renchao
*/
editClick (row) {
this.$popupDialog("其他及附记模板", "system/qtjfjmb/components/editDialog", row, '60%')
}
......
......@@ -181,6 +181,10 @@
},
},
methods: {
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd () {
this.tableData.push(
{
......@@ -194,11 +198,22 @@
)
this.key++
},
/**
* @description: handleSelectGgcl
* @param {*} item
* @author: renchao
*/
handleSelectGgcl (item) {
if (item.sfggcl == '1') {
item.djqxbm = ''
}
},
/**
* @description: handleMinus
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleMinus (index, row) {
this.$confirm('此操作将永久删除, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -218,9 +233,21 @@
});
},
// 上移下移
/**
* @description: 上移下移
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveUpward (index, row) {
upward(index, this.tableData)
},
/**
* @description: moveDown
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveDown (index, row) {
down(index, this.tableData)
},
......@@ -228,4 +255,4 @@
}
</script>
<style scoped lang='scss'>
</style>
\ No newline at end of file
</style>
......
......@@ -181,6 +181,12 @@
},
methods: {
// 添加索引
/**
* @description: 添加索引
* @param {*} data
* @param {*} isAdd
* @author: renchao
*/
addIndexes (data = this.tableData, isAdd = true) {
data.forEach((item, index) => {
if (isAdd) {
......@@ -188,6 +194,10 @@
}
})
},
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd () {
this.$nextTick(() => {
let container = this.$el.querySelector('.el-table__body-wrapper');
......@@ -205,6 +215,12 @@
this.addIndexes()
this.key++
},
/**
* @description: handleMinus
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleMinus (index, row) {
this.$confirm('此操作将永久删除, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -223,6 +239,12 @@
});
});
},
/**
* @description: nodecodeBlur
* @param {*} index
* @param {*} row
* @author: renchao
*/
nodecodeBlur (index, row) {
let list = _.cloneDeep(this.tableData).filter(item => item.bsmSqyw != row.bsmSqyw)
let arr = list.map(item => item.nodecode)
......@@ -234,10 +256,22 @@
}
},
// 上移下移
/**
* @description: 上移下移
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveUpward (index, row) {
upward(index, this.tableData)
this.key++
},
/**
* @description: moveDown
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveDown (index, row) {
down(index, this.tableData)
this.key++
......@@ -253,4 +287,4 @@
}
}
}
</style>
\ No newline at end of file
</style>
......
......@@ -89,16 +89,29 @@
},
},
methods: {
/**
* @description: handleSelect
* @param {*} item
* @author: renchao
*/
handleSelect (item) {
if (item.checked) {
item.selected = '0'
}
},
/**
* @description: handleSelectall
* @author: renchao
*/
handleSelectall () {
this.dataList.sxql.forEach(item => {
item.checked = true
})
},
/**
* @description: handleInvert
* @author: renchao
*/
handleInvert () {
this.dataList.sxql.forEach(item => {
item.checked = false
......@@ -154,4 +167,4 @@
border-right: 1px solid $borderColor;
}
}
</style>
\ No newline at end of file
</style>
......
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-19 14:10:56
-->
......@@ -232,6 +232,11 @@
};
},
methods: {
/**
* @description: getSqdjywDetail
* @param {*} bsmSqyw
* @author: renchao
*/
getSqdjywDetail (bsmSqyw) {
getSqdjywDetail(bsmSqyw).then(res => {
this.subData = res.result
......@@ -239,23 +244,44 @@
this.ruleForm = ywDetail
})
},
/**
* @description: handleTitleSelct
* @param {*} obj
* @param {*} index
* @author: renchao
*/
handleTitleSelct (obj, index) {
this.n = 0
this.tn = index
this.getSqdjywDetail(obj.bsmSqyw)
},
/**
* @description: getDjqxValue
* @param {*} val
* @author: renchao
*/
getDjqxValue (val) {
if (!_.isEqual(val.djqx, this.subData.djqx)) {
this.subData.djqx = val.djqx
this.btnDisabled = val.btnDisabled
}
},
/**
* @description: getClgzValue
* @param {*} val
* @author: renchao
*/
getClgzValue (val) {
if (!_.isEqual(val, this.subData.clxx)) {
this.subData.clxx = val
}
},
// 单元状态设定
/**
* @description: 单元状态设定
* @param {*} val
* @author: renchao
*/
getDyztsdValue (val) {
if (!_.isEqual(val.sxql, this.subData.sxql)) {
this.subData.sxql = val.sxql
......@@ -264,6 +290,10 @@
this.subData.sxzt = val.sxzt
}
},
/**
* @description: submitForm
* @author: renchao
*/
submitForm () {
this.$refs['ruleForm'].validate(async (valid) => {
let that = this
......@@ -284,12 +314,26 @@
}
})
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit('input', false)
},
/**
* @description: hanldeItem
* @param {*} index
* @author: renchao
*/
hanldeItem (index) {
this.n = index
},
/**
* @description: uploadRecord
* @param {*} file
* @author: renchao
*/
uploadRecord (file) {
this.requested = true
this.files = file;
......@@ -306,6 +350,11 @@
}
return (extension || extension2) && isLt5M
},
/**
* @description: handleSuccess
* @param {*} res
* @author: renchao
*/
handleSuccess (res) {
if (res.code === 200) {
this.requested = false
......
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-19 14:11:05
-->
......@@ -177,6 +177,10 @@
},
methods: {
//页面初始化
/**
* @description: 页面初始化
* @author: renchao
*/
init () {
this.tn = 0;
getDjlxInfo(this.formData.bsmSqyw).then((res) => {
......@@ -189,9 +193,18 @@
}
})
},
/**
* @description: orderNoChange
* @author: renchao
*/
orderNoChange () {
this.$forceUpdate();
},
/**
* @description: uploadRecord
* @param {*} file
* @author: renchao
*/
uploadRecord (file) {
this.requested = true
this.files = file;
......@@ -208,14 +221,29 @@
}
return (extension || extension2) && isLt5M
},
/**
* @description: handleSuccess
* @author: renchao
*/
handleSuccess () { },
//tab选项卡事件
/**
* @description: tab选项卡事件
* @param {*} obj
* @param {*} index
* @author: renchao
*/
handleTitleSelct (obj, index) {
this.n = 0;
this.tn = index;
this.getDetail(this.djlxList[index].bsmSqyw);
},
//获取业务具体明细内容
/**
* @description: 获取业务具体明细内容
* @param {*} bsmSqyw
* @author: renchao
*/
getDetail (bsmSqyw) {
let _this = this
getSqdjywDetail(bsmSqyw).then((res) => {
......@@ -233,6 +261,10 @@
})
},
//提交保存数据
/**
* @description: 提交保存数据
* @author: renchao
*/
submit () {
let that = this;
saveSqdjyw(this.form).then((res) => {
......@@ -246,6 +278,13 @@
})
},
// 上移下移
/**
* @description: 上移下移
* @param {*} index
* @param {*} row
* @param {*} type
* @author: renchao
*/
moveUpward (index, row, type) {
if (type == "clxx") {
upward(index, this.form.clxx);
......@@ -253,6 +292,13 @@
upward(index, this.form.djqx);
}
},
/**
* @description: moveDown
* @param {*} index
* @param {*} row
* @param {*} type
* @author: renchao
*/
moveDown (index, row, type) {
if (type == "clxx") {
down(index, this.form.clxx);
......@@ -260,6 +306,10 @@
down(index, this.form.djqx);
}
},
/**
* @description: addDjqx
* @author: renchao
*/
addDjqx () {
this.form.djqx.push({
nodecode: "",
......@@ -269,9 +319,19 @@
sfqydjyymb: "0",
});
},
/**
* @description: removeDjqx
* @param {*} index
* @param {*} row
* @author: renchao
*/
removeDjqx (index, row) {
this.form.djqx.splice(index, 1);
},
/**
* @description: addClxx
* @author: renchao
*/
addClxx () {
this.form.clxx.push({
isrequired: "1",
......@@ -282,6 +342,12 @@
sfggcl: "1",
});
},
/**
* @description: removeClxx
* @param {*} index
* @param {*} row
* @author: renchao
*/
removeClxx (index, row) {
this.form.clxx.splice(index, 1);
}
......
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-19 14:11:20
-->
......@@ -78,6 +78,10 @@
},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
this.$startLoading();
getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then(
......@@ -92,6 +96,11 @@
);
},
// 修改
/**
* @description: 修改
* @param {*} row
* @author: renchao
*/
editClick (row) {
this.sqqlRule = row;
// this.dialogVisible = true;
......
......@@ -156,6 +156,10 @@ export default {
}
},
methods: {
/**
* @description: submitForm
* @author: renchao
*/
submitForm () {
let that = this;
that.$refs.ruleForm.validate(valid => {
......@@ -171,11 +175,19 @@ export default {
});
},
//关闭窗口
/**
* @description: 关闭窗口
* @author: renchao
*/
closeDialog () {
this.$popupCacel()
this.resetRuleForm();
},
//新增通知
/**
* @description: 新增通知
* @author: renchao
*/
addNotice () {
// 解决报错
// this.ruleForm.noticeType = "1"
......@@ -191,6 +203,10 @@ export default {
});
},
//编辑通知
/**
* @description: 编辑通知
* @author: renchao
*/
editNotice () {
updateSysNotice(this.ruleForm).then(res => {
if (res.code == 200) {
......@@ -204,6 +220,10 @@ export default {
});
},
//重置表单
/**
* @description: 重置表单
* @author: renchao
*/
resetRuleForm () {
this.ruleForm = {
noticeTitle: "",
......@@ -214,10 +234,20 @@ export default {
noticeType: "1"
}
},
/**
* @description: beforeUpload
* @param {*} file
* @author: renchao
*/
beforeUpload (file) {
return true;
},
//附件上传事件
/**
* @description: 附件上传事件
* @param {*} file
* @author: renchao
*/
async handleChange (file) {
var formdata = new FormData();
formdata.append("file", file.raw);
......@@ -226,16 +256,36 @@ export default {
});
},
//富文本图片上传事件
/**
* @description: 富文本图片上传事件
* @param {*} file
* @author: renchao
*/
RichTexthandleChange (file) {
this.uploadPicture(file.raw)
},
//图片粘贴事件
/**
* @description: 图片粘贴事件
* @param {*} file
* @author: renchao
*/
clipboardPictureChange (file) {
this.uploadPicture(file)
},
/**
* @description: getDetailInfo
* @param {*} item
* @author: renchao
*/
getDetailInfo (item) {
this.ruleForm = item
},
/**
* @description: uploadPicture
* @param {*} file
* @author: renchao
*/
uploadPicture (file) {
let that = this;
var formdata = new FormData();
......@@ -252,22 +302,48 @@ export default {
quill.setSelection(length + 1);
});
},
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit () {
//console.log("submit!");
},
// 失去焦点事件
/**
* @description: 失去焦点事件
* @param {*} quill
* @author: renchao
*/
onEditorBlur (quill) {
//console.log("editor blur!", quill);
},
// 获得焦点事件
/**
* @description: 获得焦点事件
* @param {*} quill
* @author: renchao
*/
onEditorFocus (quill) {
//console.log("editor focus!", quill);
},
// 准备富文本编辑器
/**
* @description: 准备富文本编辑器
* @param {*} quill
* @author: renchao
*/
onEditorReady (quill) {
//console.log("editor ready!", quill);
},
// 内容改变事件
/**
* @description: 内容改变事件
* @param {*} quill
* @param {*} html
* @param {*} text
* @author: renchao
*/
onEditorChange ({ quill, html, text }) {
//console.log("editor change!", quill, html, text);
//this.content = html;
......
......@@ -72,6 +72,10 @@ export default {
},
methods: {
// 列表渲染接口
/**
* @description: 列表渲染接口
* @author: renchao
*/
queryClick () {
this.$startLoading()
getSysNoticeList({ ...this.ruleForm, ...this.pageData }, { 'target': '#xttzLoading' }).then(res => {
......@@ -84,6 +88,11 @@ export default {
})
},
//打开新增弹窗
/**
* @description: 打开新增弹窗
* @param {*} item
* @author: renchao
*/
openDialog (item) {
if (item) {
this.$popupDialog("系统通知详情", "system/xttz/components/addDialog", { ...item, "isButtonFlag": false }, "50%")
......
......@@ -60,6 +60,10 @@ export default {
},
methods: {
// 列表渲染接口
/**
* @description: 列表渲染接口
* @author: renchao
*/
queryClick () {
this.$startLoading()
getSysNoticeList({ ...this.ruleForm, ...this.pageData }, { 'target': '#xttzLoading' }).then(res => {
......@@ -72,6 +76,11 @@ export default {
})
},
//打开新增弹窗
/**
* @description: 打开新增弹窗
* @param {*} item
* @author: renchao
*/
openDialog (item) {
this.$nextTick(() => {
this.isButtonFlag = false;
......@@ -91,6 +100,10 @@ export default {
}
},
//一键已读
/**
* @description: 一键已读
* @author: renchao
*/
toReadAll () {
setAllRead().then(res => {
if (res.code == 200) {
......@@ -101,6 +114,11 @@ export default {
}
})
},
/**
* @description: downloadFile
* @param {*} item
* @author: renchao
*/
downloadFile (item) {
const href = item.noticeFileUrl
window.open(href, '_blank');
......