diff --git a/src/views/projectFront/examSystem/subjectManagement/subjectManagement.vue b/src/views/projectFront/examSystem/subjectManagement/subjectManagement.vue
index c27fbf3c..57d692e8 100644
--- a/src/views/projectFront/examSystem/subjectManagement/subjectManagement.vue
+++ b/src/views/projectFront/examSystem/subjectManagement/subjectManagement.vue
@@ -6,110 +6,59 @@
刷新
-
- 新增
-
+ 新增
-
-
+
+
+
-
- {{ scope.row.processName }}
-
-
- {{ scope.row.processName }}
-
-
-
-
+
-
+
-
+
+
+
+
+
-
-
-
-
@@ -132,8 +81,8 @@ export default {
subjectName: '科目名称1',
parentId: '0',
children: [
- { id: 1, subjectName: '子科目名称1', parentId: '1' },
- { id: 2, subjectName: '子科目名称1', parentId: '1' },
+ { id: '4', subjectName: '子科目名称1', parentId: '1' },
+ { id: '5', subjectName: '子科目名称2', parentId: '1' },
],
},
{
@@ -141,16 +90,17 @@ export default {
subjectName: '科目名称2',
parentId: '0',
children: [
- { id: 1, subjectName: '子科目名称1', parentId: '2' },
- { id: 2, subjectName: '子科目名称1', parentId: '2' },
+ { id: '6', subjectName: '子科目名称1', parentId: '2' },
+ { id: '7', subjectName: '子科目名称2', parentId: '2' },
],
},
{
id: '3',
subjectName: '科目名称3',
+ parentId: '0',
children: [
- { id: 1, subjectName: '子科目名称1', parentId: '2' },
- { id: 2, subjectName: '子科目名称1', parentId: '2' },
+ { id: '8', subjectName: '子科目名称1', parentId: '3' },
+ { id: '9', subjectName: '子科目名称2', parentId: '3' },
],
},
],
@@ -206,6 +156,10 @@ export default {
riskLevel: '',
riskPossibleConsequence: '',
},
+ subjectInfo: {
+ subjectName: '',
+ parentId: '0'
+ },
principalLsit: [], //负责人
seedId: '',
showTime: false, //工期
@@ -214,7 +168,7 @@ export default {
},
type: 'add',
addEditRules: {
- processName: [
+ subjectName: [
{
required: true,
message: this.$t('message.personnelPosition.required'),
@@ -313,8 +267,20 @@ export default {
this.$http.defaults.baseURL + 'xmgl/progressTask/downloadTemplate'
this.getProgressListData()
// this.getCrewListData()
+ console.log('👇')
+ console.log(this.listData1)
+ console.log(this.listData1[0].children)
+ console.log(new Date().getTime())
},
methods: {
+ handleCancel(){
+ this.dialogVisible = false
+ this.clearObj()
+ },
+ clearObj(){
+ this.subjectInfo.subjectName = ''
+ this.subjectInfo.parentId = '0'
+ },
//导入确定提交
handleUploadConfirm() {
if (this.fileName == '') {
@@ -365,14 +331,14 @@ export default {
//新增
addBefore(addType, value) {
if (addType == 1) {
- this.title = '新增风险清册'
+ this.title = '新增科目类别'
this.dialogType = 1
} else {
- console.log('新增子分项点击', value)
- this.title = '新增子分项'
+ console.log('新增子科目类别', value)
+ this.title = '新增子科目类别'
this.dialogType = 3
- this.workerInfo.parentId = value.id
- this.parentTaskName = value.processName
+ // this.workerInfo.parentId = value.id
+ // this.parentTaskName = value.processName
}
this.dialogVisible = true
},