4481a1bf by yuanbo

增加注释

1 parent ff1c0c09
......@@ -19,6 +19,10 @@ export default {
}
},
methods: {
/**
* @description: nextTo
* @author: renchao
*/
nextTo () {
this.$router.push({
path: this.redirect || '/',
......
......@@ -27,6 +27,10 @@ export default {
window.addEventListener("resize", this.debounce(this.setScale));
},
methods: {
/**
* @description: getScale
* @author: renchao
*/
getScale() {
// 固定好16:9的宽高比,计算出最合适的缩放比
const { width, height } = this;
......@@ -34,6 +38,10 @@ export default {
const ww = window.innerWidth / width;
return ww < wh ? ww : wh;
},
/**
* @description: setScale
* @author: renchao
*/
setScale() {
// 获取到缩放比例,设置它
this.scale = this.getScale();
......@@ -41,6 +49,12 @@ export default {
this.$refs.ScaleBox.style.setProperty("--scale", this.scale);
}
},
/**
* @description: debounce
* @param {*} fn
* @param {*} delay
* @author: renchao
*/
debounce(fn, delay) {
const delays = delay || 500;
let timer;
......
......@@ -56,6 +56,10 @@
clearInterval(this.timing);
},
methods: {
/**
* @description: cancelLoading
* @author: renchao
*/
cancelLoading () {
setTimeout(() => {
this.loading = false;
......
......@@ -91,6 +91,10 @@
},
},
methods: {
/**
* @description: getsthjqxjrtotal
* @author: renchao
*/
getsthjqxjrtotal () {
return new Promise(async (resolve) => {
try {
......@@ -119,6 +123,10 @@
}
});
},
/**
* @description: handleSthj
* @author: renchao
*/
handleSthj () {
this.$router.push({
path: '/sthj/sbbwcx',
......
......@@ -58,6 +58,10 @@
},
methods: {
// 获取登记业务量玫瑰图数据
/**
* @description: 获取登记业务量玫瑰图数据
* @author: renchao
*/
async getdjywltotal () {
try {
let p = {
......
......@@ -36,6 +36,10 @@
clearInterval(this.timing);
},
methods: {
/**
* @description: cancelLoading
* @author: renchao
*/
cancelLoading () {
setTimeout(() => {
this.loading = false;
......
......@@ -56,6 +56,12 @@ export default {
};
},
methods: {
/**
* @description: drawProvinceMap
* @param {*} provinceName
* @param {*} mapName
* @author: renchao
*/
drawProvinceMap (provinceName, mapName) {
this.provinceName = provinceName;
this.mapName = mapName;
......
......@@ -76,10 +76,19 @@
...mapGetters(["dicData"]),
},
methods: {
/**
* @description: endTimeChange
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.endTime = timeFormat(new Date(val), true);
},
//查询各区县办件数量
/**
* @description: 查询各区县办件数量
* @author: renchao
*/
async getProcessCounts () {
this.pieChartsData = [];
let { result: res } = await efficient.getProcessCounts(
......@@ -106,6 +115,10 @@
});
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.form = {
startTime: getFirstDayOfSeason(),
......@@ -114,6 +127,10 @@
this.getProcessCounts();
},
//玫瑰图初始化
/**
* @description: 玫瑰图初始化
* @author: renchao
*/
echartInit () {
let _this = this;
// 基于准备好的dom,初始化echarts实例
......@@ -178,6 +195,11 @@
});
},
//柱图初始化
/**
* @description: 柱图初始化
* @param {*} recType
* @author: renchao
*/
async barChartInit (recType) {
//请求recType对应业务的各区县数据
let { result: res } = await efficient.getProcessDays(
......
......@@ -87,9 +87,18 @@
...mapGetters(["dicData"]),
},
methods: {
/**
* @description: endTimeChange
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.endTime = timeFormat(new Date(val), true)
},
/**
* @description: getSuucessRate
* @author: renchao
*/
async getSuucessRate () {
this.recTypeArr = [];
this.chartData = [];
......@@ -113,6 +122,10 @@
});
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.form = {
startTime: getFirstDayOfSeason(),
......@@ -121,6 +134,10 @@
};
this.getSuucessRate();
},
/**
* @description: echartInit
* @author: renchao
*/
echartInit () {
let _this = this;
// 基于准备好的dom,初始化echarts实例
......
......@@ -130,12 +130,26 @@
this.generateFileName()
},
methods: {
/**
* @description: handleSearch
* @author: renchao
*/
handleSearch () { },
// 生成文件名
/**
* @description: 生成文件名
* @author: renchao
*/
generateFileName () {
var reg = /(\d{4})\-(\d{2})\-(\d{2})/;
this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据接入质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}${this.form.endTime.replace(reg, "$1年$2月$3日")})`
},
/**
* @description: headerStyle
* @param {*} row
* @param {*} rowIndex
* @author: renchao
*/
headerStyle ({ row, rowIndex }) {
if (rowIndex == 4) {
row[2].rowSpan = 2;
......@@ -143,6 +157,12 @@
row[4].rowSpan = 2;
}
},
/**
* @description: headerStyle1
* @param {*} row
* @param {*} rowIndex
* @author: renchao
*/
headerStyle1 ({ row, rowIndex }) {
if (rowIndex == 3) {
row[2].rowSpan = 2;
......@@ -150,6 +170,11 @@
row[4].rowSpan = 2;
}
},
/**
* @description: handlesetExport2Excel
* @param {*} val
* @author: renchao
*/
handlesetExport2Excel (val) {
this.disableds = true
setTimeout(() => {
......@@ -159,6 +184,10 @@
setExport2Excel(val)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchDataSelf () {
dataReceiveQuality(this.form.startTime, this.form.endTime).then(res => {
let records = res.result
......@@ -166,6 +195,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
handleResetForm () {
this.form.startTime = getCurrentDate()
this.form.endTime = getCurrentDate('time')
......
......@@ -127,14 +127,27 @@
},
methods: {
// 生成文件名
/**
* @description: 生成文件名
* @author: renchao
*/
generateFileName () {
var reg = /(\d{4})\-(\d{2})\-(\d{2})/;
this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据相关字段空项率统计(${this.form.startTime.replace(reg, "$1年$2月$3日")}${this.form.endTime.replace(reg, "$1年$2月$3日")})`
},
/**
* @description: handlesetExport2Excel
* @param {*} val
* @author: renchao
*/
handlesetExport2Excel (val) {
setExport2Excel(val)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchDataSelf () {
nonNullSta(this.form.startTime, this.form.endTime).then(res => {
let records = res.result
......@@ -142,6 +155,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
handleResetForm () {
this.form.startTime = getCurrentDate()
this.form.endTime = getCurrentDate('time')
......
......@@ -149,15 +149,34 @@
},
methods: {
/**
* @description: handleSearch
* @author: renchao
*/
handleSearch () { },
// 生成文件名
/**
* @description: 生成文件名
* @author: renchao
*/
generateFileName () {
var reg = /(\d{4})\-(\d{2})\-(\d{2})/;
this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据登簿质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}${this.form.endTime.replace(reg, "$1年$2月$3日")})`
},
/**
* @description: handlesetExport2Excel
* @param {*} val
* @author: renchao
*/
handlesetExport2Excel (val) {
setExport2Excel(val)
},
/**
* @description: headerStyle
* @param {*} row
* @param {*} rowIndex
* @author: renchao
*/
headerStyle ({ row, rowIndex }) {
if (rowIndex == 1) {
row.forEach(item => {
......@@ -165,6 +184,12 @@
})
}
},
/**
* @description: headerStyle1
* @param {*} row
* @param {*} rowIndex
* @author: renchao
*/
headerStyle1 ({ row, rowIndex }) {
if (rowIndex == 2) {
row.forEach(item => {
......@@ -173,6 +198,10 @@
}
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchDataSelf () {
registerBookQuality(this.form.startTime, this.form.endTime).then(res => {
let records = res.result
......@@ -180,6 +209,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
handleResetForm () {
this.form.startTime = getCurrentDate()
this.form.endTime = getCurrentDate('time')
......
......@@ -86,9 +86,18 @@
...mapGetters(["dicData"]),
},
methods: {
/**
* @description: endTimeChange
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.endTime = timeFormat(new Date(val), true)
},
/**
* @description: getProcessCounts
* @author: renchao
*/
async getProcessCounts () {
this.chartData = [];
let { result: res } = await efficient.getProcessCounts(
......@@ -105,6 +114,10 @@
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.form = {
startTime: getFirstDayOfSeason(),
......@@ -114,6 +127,11 @@
this.getProcessCounts();
},
//图表渲染
/**
* @description: 图表渲染
* @param {*} chartArr
* @author: renchao
*/
echartInit (chartArr) {
// 基于准备好的dom,初始化echarts实例
let myChart = this.$echarts.init(document.getElementById("myChart"));
......
......@@ -45,6 +45,11 @@ export default {
},
methods: {
//记住用户名
/**
* @description: 记住用户名
* @param {*} flag
* @author: renchao
*/
checkUserName: function (flag) {
this.user.checkStatus = flag;
if (this.user.checkStatus) {
......@@ -59,6 +64,11 @@ export default {
this.user.account = localStorage.getItem("accountId");
}
},
/**
* @description: login
* @param {*} user
* @author: renchao
*/
login (user) {
var self = this
this.$refs[user].validate(async (valid) => {
......
......@@ -186,10 +186,19 @@
},
methods: {
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.receiveEndTime = timeFormat(new Date(val), true)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClickSearch () {
saveSearchRecord({ ...this.form, ...this.formData }).then(
(res) => {
......@@ -202,15 +211,31 @@
)
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.currentPage = 1
},
/**
* @description: featchData
* @author: renchao
*/
featchData () { },
/**
* @description: handleSearchResult
* @author: renchao
*/
handleSearchResult () {
this.queryClickSearch()
},
// 详情
/**
* @description: 详情
* @author: renchao
*/
handleDetails (row) {
}
}
......
......@@ -176,10 +176,19 @@
},
methods: {
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.receiveEndTime = timeFormat(new Date(val), true)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
getSearchRecordList({ ...this.form, ...this.formData }).then(
(res) => {
......@@ -193,21 +202,37 @@
)
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.currentPage = 1
this.queryClick();
},
/**
* @description: featchData
* @author: renchao
*/
featchData () {
this.queryClick();
},
// 详情
/**
* @description: 详情
* @author: renchao
*/
handleDetails (row) {
editSearchRecord(row.bsm).then(res => {
this.dialogVisible = true
this.dataDetail = res.result
})
},
/**
* @description: save
* @author: renchao
*/
save () {
this.dialogVisible = true
}
......
......@@ -238,6 +238,11 @@
};
},
methods: {
/**
* @description: uploadRecord
* @param {*} file
* @author: renchao
*/
uploadRecord (file) {
this.requested = true
this.files = file;
......@@ -253,6 +258,11 @@
}
return (extension) && isLt5M
},
/**
* @description: fileChange
* @param {*} res
* @author: renchao
*/
fileChange (res) {
let fd = new FormData()
fd.append('files', res.raw)// 文件对象
......@@ -269,10 +279,19 @@
})
},
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.receiveEndTime = timeFormat(new Date(val), true)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
getReceiveDataReportPage({ ...this.form, ...this.formData }).then(
(res) => {
......@@ -286,19 +305,37 @@
)
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.currentPage = 1
this.queryClick();
},
/**
* @description: featchData
* @author: renchao
*/
featchData () {
this.queryClick();
},
// 结果
/**
* @description: 结果
* @param {*} row
* @author: renchao
*/
handleResult (row) {
this.$popupDialog('响应结果', 'views/jsbwcx/components/result', row)
},
// 详情
/**
* @description: 详情
* @param {*} row
* @author: renchao
*/
handleDetails (row) {
if (row.rectypeName) {
this.title = row.rectypeName
......