|
@@ -282,7 +282,9 @@
|
|
|
this.$refs['testypeForm'].validate((valid) => {
|
|
this.$refs['testypeForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
_this.testypeForm.DepartmentId = parseInt(_this.selectedorg[_this.selectedorg.length - 1])
|
|
_this.testypeForm.DepartmentId = parseInt(_this.selectedorg[_this.selectedorg.length - 1])
|
|
|
- _this.testypeForm.Department = this.$refs.refDepartment.currentLabels[this.$refs.refDepartment.currentLabels.length - 1]
|
|
|
|
|
|
|
+ console.log(this.$refs.refDepartment.getCheckedNodes())
|
|
|
|
|
+ let arr = _this.$refs.refDepartment.getCheckedNodes()[0].pathLabels
|
|
|
|
|
+ _this.testypeForm.Department = arr[arr.length - 1]
|
|
|
if (_this.testypeForm.TemplateId > 0) {
|
|
if (_this.testypeForm.TemplateId > 0) {
|
|
|
_this.testypeForm.TemplateName = _this.$refs.refTemplateId.selectedLabel + ''
|
|
_this.testypeForm.TemplateName = _this.$refs.refTemplateId.selectedLabel + ''
|
|
|
_this.testypeForm.TemplateId = parseInt(_this.testypeForm.TemplateId)
|
|
_this.testypeForm.TemplateId = parseInt(_this.testypeForm.TemplateId)
|