This commit is contained in:
Vergil
2020-02-18 17:22:56 +08:00
parent 42a78ecd3d
commit 6510d0b2ab

View File

@@ -647,13 +647,15 @@ export default {
this.dialogFormVisible1 = true this.dialogFormVisible1 = true
this.fetchData3() this.fetchData3()
}, },
// 获取人员信息树
fetchData3() { fetchData3() {
getTree().then(response => { // 获取人员信息树 getTree().then(response => {
const data = response.data const data = response.data
this.data2 = fn(data, 0) this.data2 = fn(data, 0)
}) })
}, },
handleNodeClick(data) { // 树节点点击 // 树节点点击
handleNodeClick(data) {
this.ssks = data.label this.ssks = data.label
getTable8(data.id).then(response => { getTable8(data.id).then(response => {
this.List1 = response.data this.List1 = response.data
@@ -665,12 +667,14 @@ export default {
this.List1 = response.data this.List1 = response.data
}) })
}, },
handleCurrentChange2(row) { // 获取当前行人员信息 // 获取当前行人员信息
handleCurrentChange2(row) {
this.ssks = row.节点名称 this.ssks = row.节点名称
this.Number1 = row.人员编号 this.Number1 = row.人员编号
this.Name = row.姓名 this.Name = row.姓名
}, },
getName() { // 提交人员 // 提交人员
getName() {
this.dialogFormVisible1 = false this.dialogFormVisible1 = false
this.form.人员 = this.Name this.form.人员 = this.Name
this.form.人员编号 = this.Number1 this.form.人员编号 = this.Number1
@@ -692,13 +696,15 @@ export default {
if (parseInt(row.考核状态) > 6) { if (parseInt(row.考核状态) > 6) {
return 'CompleteColor' return 'CompleteColor'
} }
}, // 工序状态变色 },
// 工序状态变色
tableRowClassName1({ row, rowIndex }) { tableRowClassName1({ row, rowIndex }) {
row.index = rowIndex row.index = rowIndex
if (parseInt(row.工序状态) > 3) { if (parseInt(row.工序状态) > 3) {
return 'CompleteColor' return 'CompleteColor'
} }
}, // 重置表单 },
// 重置表单
callOff(formName) { callOff(formName) {
this.dialogFormVisible = false this.dialogFormVisible = false
this.$refs[formName].resetFields() this.$refs[formName].resetFields()