验证结果:
@@ -363,7 +369,7 @@
export default {
name: 'BusinessDetails',
components: {},
- data () {
+ data() {
return {
loading: false,
// 搜索条件字段
@@ -397,7 +403,7 @@ export default {
}
},
methods: {
- openFileInPdf (attId, oldFileName) {
+ openFileInPdf(attId, oldFileName) {
// 缺少文件
if (this.$hasPermission('ZWBGBNTL11')) {
this.$http.get('lawss/sarStandFile/queryConvertAtt', {
@@ -442,14 +448,14 @@ export default {
this.$message.error('没有在线预览文档权限!')
}
},
- downloadFile (attId) {
+ downloadFile(attId) {
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
} else {
this.$message.error('请选择要下载的文件')
}
},
- downloadFileByWater (attId, fileSuffix) {
+ downloadFileByWater(attId, fileSuffix) {
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') {
this.$message.error('水印下载仅支持PDF,pdf格式文件')
} else {
@@ -460,7 +466,7 @@ export default {
}
}
},
- typeColor (row, type) {
+ typeColor(row, type) {
this.$confirm('确定修改此标准分级?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@@ -477,21 +483,21 @@ export default {
color = '#f00'
}
this.$http.postData('lawss/sarInconformInfo/updateInconformInfo',
- {
- id: row.id,
- color: color
- }, {
- _this: this
- }, res => {
- if (res.ok) {
- this.getTableBtn()
- } else {
- this.$message({
- type: 'error',
- message: '修改失败!'
- })
- }
- })
+ {
+ id: row.id,
+ color: color
+ }, {
+ _this: this
+ }, res => {
+ if (res.ok) {
+ this.getTableBtn()
+ } else {
+ this.$message({
+ type: 'error',
+ message: '修改失败!'
+ })
+ }
+ })
}).catch(() => {
this.$message({
type: 'info',
@@ -499,7 +505,7 @@ export default {
})
})
},
- detailsStandard (item) {
+ detailsStandard(item) {
this.$http.post('lawss/sarTestItem/validateStandNumber', {
standnumber: item.standNum
}, {
@@ -517,29 +523,30 @@ export default {
}, e => {
})
},
- getOrgTreeSource () {
+ getOrgTreeSource() {
this.$http.get('sys/org/getTree', {}, {_this: this},
- res => {
- if (res.ok) {
- let treeNode = []
- res.data.map((item, index) => {
- let treeItem = {}
- for (let key in item) {
- if (key === 'orgName') {
- treeItem.name = item[key]
- } else {
- treeItem[key] = item[key]
+ res => {
+ if (res.ok) {
+ let treeNode = []
+ res.data.map((item, index) => {
+ let treeItem = {}
+ for (let key in item) {
+ if (key === 'orgName') {
+ treeItem.name = item[key]
+ } else {
+ treeItem[key] = item[key]
+ }
}
- }
- treeNode[index] = treeItem
- })
- this.zNodesSItem = treeNode
- // this.searchInlandNodes = treeNode
- }
- }, e => {})
+ treeNode[index] = treeItem
+ })
+ this.zNodesSItem = treeNode
+ // this.searchInlandNodes = treeNode
+ }
+ }, e => {
+ })
},
// 更多
- handleCommand (command) {
+ handleCommand(command) {
switch (command[1]) {
case '查看':
this.showUser(command[0])
@@ -547,7 +554,7 @@ export default {
}
},
// 查看方法
- showUser (row) {
+ showUser(row) {
this.historySeeForm = JSON.parse(JSON.stringify(row))
this.historySee = true
this.$nextTick(() => {
@@ -566,30 +573,30 @@ export default {
})
},
// 分页事件
- pageChange (page) {
+ pageChange(page) {
this.pageNo = page
this.getTableBtn()
},
- pageSizeChange (pageSize) {
+ pageSizeChange(pageSize) {
this.pageSize = this.$store.getters.userInfo.configContent
this.getTableBtn()
},
- back () {
+ back() {
this.$router.push({
name: 'NonConfomity'
})
},
// 未符合项table selected事件
- handleRowChange (selection) {
+ handleRowChange(selection) {
//
},
// 分页查询未符合项数据
- getTableBtn () {
+ getTableBtn() {
this.$http.get('sarStandUnqualified/sar-stand-unqualified/history', {
...this.historySearch,
current: this.pageNo,
size: this.pageSize,
- },{
+ }, {
_this: this
}, res => {
console.log(res);
@@ -616,12 +623,12 @@ export default {
// }, e => {
// })
// },
- treeClickSearch (treeId, treeNode) {
+ treeClickSearch(treeId, treeNode) {
this.historySearch.responseUnit = treeNode.id
this.historySearch.responseUnitShow = treeNode.name
},
// 点击清空按钮事件
- clearAllSearch () {
+ clearAllSearch() {
this.historySearch = {
standNumOrName: '',
quesType: '',
@@ -633,7 +640,7 @@ export default {
/**
* @Description: 跳转流程
*/
- processCenterClick (item) {
+ processCenterClick(item) {
let routeUrl = this.$router.resolve({
name: 'ProcessDetail',
query: {
@@ -643,15 +650,16 @@ export default {
window.open(routeUrl.href, '_blank')
}
},
- mounted () {
+ mounted() {
this.getTableBtn()
this.getOrgTreeSource()
}
}