311c676b by xiaomiao

Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev

2 parents 4434a752 66c896be
......@@ -27,6 +27,10 @@
}
},
methods: {
/**
* @description: pushRecord
* @author: renchao
*/
pushRecord () {
this.$startLoading()
push(this.formData).then((res) => {
......
......@@ -65,6 +65,10 @@
},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
this.$startLoading()
list({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -76,6 +80,11 @@
}
});
},
/**
* @description: openDialog
* @param {*} scroll
* @author: renchao
*/
openDialog (scroll) {
const h = this.$createElement;
this.$msgbox({
......@@ -97,6 +106,11 @@
}
}).then(action => { });
},
/**
* @description: detail
* @param {*} row
* @author: renchao
*/
detail (row) {
detail(row.bsm).then((res) => {
this.$endLoading()
......
......@@ -130,6 +130,10 @@ export default {
}
},
methods: {
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit("input", false);
this.activeStep = 0;
......@@ -142,6 +146,10 @@ export default {
}
},
//加载详细信息
/**
* @description: 加载详细信息
* @author: renchao
*/
loadData () {
this.$startLoading();
getFwmxInfo({ sqcxBsm: this.sqcxBsm }).then((res) => {
......@@ -156,6 +164,10 @@ export default {
});
},
//查询结果
/**
* @description: 查询结果
* @author: renchao
*/
queryChick () {
this.$startLoading();
this.activeStep = 1;
......@@ -172,6 +184,10 @@ export default {
});
},
//重置
/**
* @description: 重置
* @author: renchao
*/
resetClick () {
this.form.djSqcxDO = { ycqrgx: "1", cxyt: "",bdcqzh: "" };
this.form.sqrList = _.cloneDeep([this.newData]);
......@@ -180,8 +196,17 @@ export default {
this.form.dyjlList = [];
this.isSearch = false;
},
/**
* @description: handleRead
* @author: renchao
*/
handleRead (scope) { },
//添加申请人或权利人
/**
* @description: 添加申请人或权利人
* @param {*} type
* @author: renchao
*/
add (type) {
if (type == "sqr") {
this.form.sqrList.push(_.cloneDeep(this.newData));
......@@ -190,6 +215,13 @@ export default {
}
},
//移除申请人或权利人
/**
* @description: 移除申请人或权利人
* @param {*} index
* @param {*} row
* @param {*} type
* @author: renchao
*/
remove (index, row, type) {
if (type == "sqr") {
this.form.sqrList.splice(index, 1);
......@@ -198,6 +230,11 @@ export default {
}
},
//电话号码校验
/**
* @description: 电话号码校验
* @param {*} row
* @author: renchao
*/
teltest (row) {
const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/;
if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) {
......
......@@ -74,9 +74,18 @@ export default {
}
},
methods: {
/**
* @description: setResult
* @param {*} data
* @author: renchao
*/
setResult(data){
this.resultData = data
},
/**
* @description: getDetailInfo
* @author: renchao
*/
getDetailInfo(){
this.$startLoading();
getFwmxInfo({ sqcxBsm: this.formData.bsmSqcx }).then((res) => {
......
......@@ -78,6 +78,10 @@ export default {
},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
this.$startLoading();
getSqcxPage({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -89,14 +93,29 @@ export default {
}
});
},
/**
* @description: dydjbClick
* @param {*} scope
* @author: renchao
*/
dydjbClick (scope) {
this.$popupDialog("打印登记薄", "sqcx/dydjb/components/dydjbInfo", {
bsmSqcx: scope.row.bsmSqcx,
})
},
/**
* @description: handleSort
* @param {*} name
* @param {*} sort
* @author: renchao
*/
handleSort (name, sort) {
console.log(name, sort);
},
/**
* @description: openAddDialog
* @author: renchao
*/
openAddDialog () {
this.isDialog = true
this.sqcxBsm = ''
......
......@@ -324,9 +324,18 @@
},
methods: {
// 字典
/**
* @description: 字典
* @param {*} val
* @author: renchao
*/
getDictData (val) {
return store.getters.dictData[val]
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$popupCacel()
this.form = {
......@@ -338,6 +347,10 @@
}
},
//加载详细信息
/**
* @description: 加载详细信息
* @author: renchao
*/
loadData () {
this.$startLoading();
getJtfcInfo({ sqcxBsm: this.formData.sqcxBsm }).then((res) => {
......@@ -350,6 +363,10 @@
});
},
//查询结果
/**
* @description: 查询结果
* @author: renchao
*/
queryChick () {
this.$startLoading();
addJtfcCxjgXx(this.form).then((res) => {
......@@ -362,6 +379,10 @@
});
},
//重置
/**
* @description: 重置
* @author: renchao
*/
resetClick () {
this.form.djSqcxDO = { ycqrgx: "1", cxyt: "" };
this.form.sqrList = _.cloneDeep([this.newData]);
......@@ -370,6 +391,12 @@
this.form.dyjlList = [];
this.isSearch = false;
},
/**
* @description: handleRead
* @param {*} row
* @param {*} type
* @author: renchao
*/
handleRead (row, type) {
getIdCardInfo().then(res => {
if (res.data.code == 0) {
......@@ -393,13 +420,28 @@
})
},
//添加申请人
/**
* @description: 添加申请人
* @author: renchao
*/
handleAddsqr () {
this.form.sqrList.push(_.cloneDeep(this.newData));
},
/**
* @description: handleAddqlr
* @author: renchao
*/
handleAddqlr () {
this.form.qlrList.push(_.cloneDeep(this.newData));
},
//移除申请人或权利人
/**
* @description: 移除申请人或权利人
* @param {*} index
* @param {*} row
* @param {*} type
* @author: renchao
*/
remove (index, row, type) {
console.log(type, 'type');
if (type == "sqr") {
......@@ -409,6 +451,11 @@
}
},
//电话号码校验
/**
* @description: 电话号码校验
* @param {*} row
* @author: renchao
*/
teltest (row) {
const reg = /^1([38]\d|5[0-35-9]|7[3678])\d{8}$/;
if (row.lxdh == "" || row.lxdh.length <= 10 || !reg.test(row.lxdh)) {
......@@ -420,6 +467,10 @@
}
},
//打印
/**
* @description: 打印
* @author: renchao
*/
printResult () {
this.openPrintPrew();
var formdata = new FormData();
......@@ -432,6 +483,10 @@
});
},
//打开打印预览
/**
* @description: 打开打印预览
* @author: renchao
*/
openPrintPrew () {
let lodop = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
// 获取页面的HTML内容
......
......@@ -83,14 +83,29 @@
}
});
},
/**
* @description: handleSort
* @param {*} name
* @param {*} sort
* @author: renchao
*/
handleSort (name, sort) {
console.log(name, sort);
},
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd () {
this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", {
sqcxBsm: ''
})
},
/**
* @description: handleAdd
* @param {*} row
* @author: renchao
*/
handleViewClick (row) {
this.$popupDialog("家庭房产查询", "sqcx/jtfc/components/addjtfc", {
sqcxBsm: row.bsmSqcx
......
......@@ -92,6 +92,10 @@ export default {
},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
this.$startLoading();
getSqcxPage({ ...this.queryForm, ...this.pageData }).then((res) => {
......@@ -103,10 +107,21 @@ export default {
}
});
},
/**
* @description: handleSort
* @param {*} name
* @param {*} sort
* @author: renchao
*/
handleSort (name, sort) {
console.log(name, sort);
},
// 查看
/**
* @description: 查看
* @param {*} scope
* @author: renchao
*/
handleViewClick (scope) {
this.$popupDialog("申请查询记录", "sqcx/sqcxjl/components/sqcxjlInfo", {
sqcxBsm: scope.row.bsmSqcx
......
......@@ -203,6 +203,12 @@
},
methods: {
// 添加索引
/**
* @description: 添加索引
* @param {*} data
* @param {*} isAdd
* @author: renchao
*/
addIndexes (data = this.tableData, isAdd = true) {
data.forEach((item, index) => {
if (index == 0) {
......@@ -224,6 +230,10 @@
}
})
},
/**
* @description: itemShowFalse
* @author: renchao
*/
itemShowFalse () {
this.tableData.forEach((item, index) => {
item.codeShow = false
......@@ -232,6 +242,12 @@
item.normnameShow = false
})
},
/**
* @description: handleMinus
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleMinus (index, row) {
this.$confirm('此操作将永久删除, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -250,6 +266,10 @@
})
})
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit () {
this.$startLoading();
editDictNode({
......@@ -268,6 +288,11 @@
})
},
// 增加下级
/**
* @description: 增加下级
* @param {*} row
* @author: renchao
*/
handleAddSubordinate (row) {
if (!row.children) {
row.children = []
......@@ -287,6 +312,10 @@
this.keyList.push(row.bsmDict)
},
// 增加
/**
* @description: 增加
* @author: renchao
*/
handleAdd () {
this.$nextTick(() => {
let container = this.$el.querySelector('.el-table__body-wrapper');
......@@ -307,12 +336,24 @@
this.key++
},
// 上移下移
/**
* @description: 上移下移
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveUpward (index, row) {
realMove(row.bsmDict, 'UP', this.tableData)
this.key++
let id = findParents(this.tableData, row.bsmDict)
this.keyList = id
},
/**
* @description: moveDown
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveDown (index, row) {
realMove(row.bsmDict, 'DOWN', this.tableData)
this.key++
......
......@@ -71,6 +71,10 @@
},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
this.$startLoading();
getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => {
......@@ -80,6 +84,10 @@
this.tableData.total = total ? total : 0
})
},
/**
* @description: handleRefresh
* @author: renchao
*/
handleRefresh () {
this.$confirm('是否确认刷新', '提示', {
confirmButtonText: '确定',
......@@ -107,6 +115,12 @@
});
},
// 修改
/**
* @description: 修改
* @param {*} row
* @param {*} val
* @author: renchao
*/
editClick (row, val) {
this.details.rowData = row
this.details.isenable = val
......
......@@ -84,6 +84,10 @@
},
methods: {
//表单提交
/**
* @description: 表单提交
* @author: renchao
*/
submitForm () {
if (this.loadStatus == '1') {
return this.$message.error("模板设计保存中,请等待...")
......@@ -101,6 +105,10 @@
});
},
//新增
/**
* @description: 新增
* @author: renchao
*/
addTemplate () {
addPrintTemplate(this.ruleForm).then(res => {
if (res.code == 200) {
......@@ -113,6 +121,10 @@
})
},
//编辑
/**
* @description: 编辑
* @author: renchao
*/
editTemplate () {
editPrintTemplate(this.ruleForm).then(res => {
if (res.code == 200) {
......@@ -124,6 +136,10 @@
}
})
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$popupCacel()
this.ruleForm = {
......@@ -136,11 +152,20 @@
this.loadStatus = '0'
this.editFlag = false;
},
/**
* @description: getDetailInfo
* @param {*} row
* @author: renchao
*/
getDetailInfo (item) {
this.ruleForm = item;
this.editFlag = true;
},
//设计打印模板
/**
* @description: 设计打印模板
* @author: renchao
*/
designByPRGData () {
let that = this;
that.loadStatus = '1';
......
......@@ -63,6 +63,10 @@
}
},
methods: {
/**
* @description: fetchData
* @author: renchao
*/
fetchData () {
selectPrintTemplateList({ ...this.pageData }).then(res => {
if (res.code == 200) {
......@@ -73,14 +77,28 @@
})
},
//打开新增弹窗
/**
* @description: 打开新增弹窗
* @author: renchao
*/
openAddDialog () {
this.$popupDialog("新增打印模板", "system/dymbgl/components/editDialog", {}, "35%")
},
//打开编辑弹窗
/**
* @description: 打开编辑弹窗
* @param {*} item
* @author: renchao
*/
openEditDialog (item) {
this.$popupDialog("编辑打印模板", "system/dymbgl/components/editDialog", item, "35%")
},
//删除数据
/**
* @description: 删除数据
* @param {*} item
* @author: renchao
*/
removeTemplate (item) {
this.$confirm("确定要删除吗, 是否继续?", "提示", {
confirmButtonText: "确定",
......
......@@ -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);
......
......@@ -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: '确定',
......
......@@ -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 => {
......
......@@ -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)
},
......
......@@ -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++
......
......@@ -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
......
......@@ -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
......
......@@ -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);
}
......
......@@ -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');
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-17 13:18:06
* @LastEditTime: 2023-07-20 16:39:12
-->
<template>
<!-- 主体权利信息查询 -->
......@@ -10,27 +10,26 @@
<div class="from-clues-header">
<el-form :model="queryForm" ref="queryForm" label-width="100px">
<el-row>
<el-col :span="8">
<el-col :span="6">
<el-form-item label="不动产权证号">
<el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width200px">
<el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-col :span="6">
<el-form-item label="不动产单元号">
<el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width200px">
<el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="坐落">
<el-input placeholder="" v-model.trim="queryForm.zl" clearable class="width200px">
<el-form-item label="坐落" label-width="60px">
<el-input placeholder="" v-model.trim="queryForm.zl" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="2" class="btnColRight">
<el-col :span="6" class="btnColRight">
<el-form-item>
<!-- <el-button type="primary" @click="resetForm(true)">重置</el-button> -->
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-col>
......