-
+
+ :value = "i.roleId">
-
+
-
+
- 查询
+ 查询
{
+ if (data.code === 0) {
+ this.roleList = data.rows
+ } else {
+ this.roleList = []
+ }
+ })
+ },
+
// 获取机修人员列表
getOperatorList () {
this.operatorData.bu = this.saveData.site + '_' + this.saveData.buNo
- this.getRoleNameList()
+ if (this.roleList.length > 0) {
+ let filterList = this.roleList.filter(item => item.roleName === '机修人员')
+ if (filterList.length > 0) {
+ this.operatorData.roleId = filterList[0].roleId
+ } else {
+ this.operatorData.roleId = this.roleList[0].roleId
+ }
+ } else {
+ this.operatorData.roleId = ''
+ }
getOperatorList(this.operatorData).then(({data}) => {
if (data && data.code === 0) {
this.operatorList = data.rows
@@ -1359,24 +1382,53 @@
})
},
- // 获取数据列表
- getRoleNameList () {
- this.$http({
- url: this.$http.adornUrl('/sys/role/list2'),
- method: 'get',
- params: this.$http.adornParams({
- 'page': this.pageIndex,
- 'limit': this.pageSize,
- })
- }).then(({data}) => {
+ // 查询机修人员列表
+ getOperatorList2 () {
+ getOperatorList(this.operatorData).then(({data}) => {
if (data && data.code === 0) {
- this.roleList = data.page.list
+ this.operatorList = data.rows
} else {
- this.roleList = []
+ this.operatorList = []
}
})
},
+ // // 获取机修人员列表
+ // getOperatorList () {
+ // this.operatorData.bu = this.saveData.site + '_' + this.saveData.buNo
+ // this.getRoleNameList()
+ // getOperatorList(this.operatorData).then(({data}) => {
+ // if (data && data.code === 0) {
+ // this.operatorList = data.rows
+ // this.saveData.operatorName = ''
+ // this.saveData.operator = ''
+ // this.operatorModelFlag = true
+ // } else {
+ // this.$alert(data.msg, '错误', {
+ // confirmButtonText: '确定'
+ // })
+ // }
+ // })
+ // },
+ //
+ // // 获取数据列表
+ // getRoleNameList () {
+ // this.$http({
+ // url: this.$http.adornUrl('/sys/role/list2'),
+ // method: 'get',
+ // params: this.$http.adornParams({
+ // 'page': this.pageIndex,
+ // 'limit': this.pageSize,
+ // })
+ // }).then(({data}) => {
+ // if (data && data.code === 0) {
+ // this.roleList = data.page.list
+ // } else {
+ // this.roleList = []
+ // }
+ // })
+ // },
+
// 点击行选中复选框
operatorClickRow (row) {
@@ -1668,11 +1720,11 @@
this.$message.warning(this.detailList[i].itemDesc+'实测值未填写!')
return
}
- if (this.detailList[i].valueTypeDb === 'N' && this.detailList[i].numberValue !== '' && this.detailList[i].numberValue != null) {
- if ((this.detailList[i].minValue !== "" && this.detailList[i].minValue != null && this.detailList[i].minValue > this.detailList[i].numberValue) || (this.detailList[i].minValue !== ""&& this.detailList[i].minValue != null && this.detailList[i].maxValue < this.detailList[i].numberValue)) {
- this.detailList[i].itemResult = '不合格'
- }
- }
+ // if (this.detailList[i].valueTypeDb === 'N' && this.detailList[i].numberValue !== '' && this.detailList[i].numberValue != null) {
+ // if ((this.detailList[i].minValue !== "" && this.detailList[i].minValue != null && this.detailList[i].minValue > this.detailList[i].numberValue) || (this.detailList[i].minValue !== ""&& this.detailList[i].minValue != null && this.detailList[i].maxValue < this.detailList[i].numberValue)) {
+ // this.detailList[i].itemResult = '不合格'
+ // }
+ // }
}
if (this.saveData.checkResult === '不合格') {
this.detailList.forEach(val => {
@@ -1728,15 +1780,6 @@
document.activeElement.blur()
},
- closeDialog () {
- this.operatorData = {
- site: '',
- adminName: '',
- adminID: '',
- roleName: '机修人员',
- }
- },
-
// 动态列开始 获取 用户保存的 格式列
async getTableUserColumn (tableId, columnId) {
let queryTableUser = {