|
@@ -2,7 +2,7 @@
|
2
|
2
|
* @Author: ysh
|
3
|
3
|
* @Date: 2024-01-19 16:29:01
|
4
|
4
|
* @LastEditors: Please set LastEditors
|
5
|
|
- * @LastEditTime: 2024-01-24 16:13:04
|
|
5
|
+ * @LastEditTime: 2024-01-24 17:34:14
|
6
|
6
|
-->
|
7
|
7
|
<template>
|
8
|
8
|
<div>
|
|
@@ -14,14 +14,19 @@
|
14
|
14
|
</el-checkbox-group>
|
15
|
15
|
</el-form-item>
|
16
|
16
|
<el-row type="flex" style="flex-wrap:wrap;">
|
17
|
|
- <el-card v-for="item in checkedBtn" style="flex:1;margin:10px;min-width: 350px;max-width: 400px;">
|
|
17
|
+ <el-card v-for="item in checkedBtn" style="flex:1;margin:10px;min-width: 400px;max-width: 450px;">
|
18
|
18
|
<div slot="header" class="clearfix">
|
19
|
19
|
<strong>{{ item }}</strong>
|
20
|
20
|
<el-button style="float: right; padding: 3px 0" type="text" @click="closeItem(item)">关闭</el-button>
|
21
|
21
|
</div>
|
22
|
|
- <el-scrollbar style="height: 400px;">
|
|
22
|
+ <el-scrollbar style="height: 500px;">
|
23
|
23
|
<div v-for="ass in AssessmentContent" v-if="ass.label == item">
|
24
|
24
|
<table border="1" cellspacing="0" align="center" cellpadding="5">
|
|
25
|
+ <tr style="background-color:#409EFF;color:#fff;">
|
|
26
|
+ <td>等级、比例尺等</td>
|
|
27
|
+ <td>工作量</td>
|
|
28
|
+ <td>单位</td>
|
|
29
|
+ </tr>
|
25
|
30
|
<tr v-for="child in ass.children">
|
26
|
31
|
<td v-if="!Array.isArray(child.label)">{{ child.label }}</td>
|
27
|
32
|
<td v-else colspan="2">
|
|
@@ -30,7 +35,7 @@
|
30
|
35
|
</el-checkbox-group>
|
31
|
36
|
</td>
|
32
|
37
|
<td v-if="!Array.isArray(child.label)">
|
33
|
|
- <el-input v-model="form[child.value]" style="width: 150px"></el-input>
|
|
38
|
+ <el-input v-model="form[child.value]" style="width: 100%"></el-input>
|
34
|
39
|
</td>
|
35
|
40
|
<td>{{ child.unit }}</td>
|
36
|
41
|
</tr>
|
|
@@ -43,6 +48,22 @@
|
43
|
48
|
</el-radio-group>
|
44
|
49
|
</td>
|
45
|
50
|
</tr>
|
|
51
|
+ <tr>
|
|
52
|
+ <td>承担角色</td>
|
|
53
|
+ <td colspan="2">
|
|
54
|
+ <el-checkbox-group v-model="form['role' + ass.value.slice(-2)]">
|
|
55
|
+ <el-checkbox v-for="role in ass.role" :label="role.substring(0,4)" :value="role.slice(-1)"></el-checkbox>
|
|
56
|
+ </el-checkbox-group>
|
|
57
|
+ </td>
|
|
58
|
+ </tr>
|
|
59
|
+ <tr>
|
|
60
|
+ <td>备注</td>
|
|
61
|
+ <td colspan="2">
|
|
62
|
+ <el-input type="textarea" :rows="2" placeholder="请输入内容"
|
|
63
|
+ v-model="form['remark' + ass.value.slice(-2)]">
|
|
64
|
+ </el-input>
|
|
65
|
+ </td>
|
|
66
|
+ </tr>
|
46
|
67
|
</table>
|
47
|
68
|
</div>
|
48
|
69
|
</el-scrollbar>
|
|
@@ -70,6 +91,7 @@ export default {
|
70
|
91
|
}
|
71
|
92
|
},
|
72
|
93
|
created() {
|
|
94
|
+ this.initForm();
|
73
|
95
|
},
|
74
|
96
|
watch: {
|
75
|
97
|
checkedBtn: (newval, oldval) => {
|
|
@@ -79,6 +101,17 @@ export default {
|
79
|
101
|
mounted() {
|
80
|
102
|
},
|
81
|
103
|
methods: {
|
|
104
|
+ initForm() {
|
|
105
|
+ debugger
|
|
106
|
+ for (let i = 0; i < SCContent.length; i++) {
|
|
107
|
+ if (i.toString().length == 1) {
|
|
108
|
+ this.$set(this.form, 'role' + '0' + i, [])
|
|
109
|
+ } else {
|
|
110
|
+ this.$set(this.form, 'role' + i, [])
|
|
111
|
+ }
|
|
112
|
+
|
|
113
|
+ }
|
|
114
|
+ },
|
82
|
115
|
submit() {
|
83
|
116
|
console.log(this.form);
|
84
|
117
|
},
|