|
@@ -14,6 +14,21 @@
|
14
|
14
|
</div>
|
15
|
15
|
</div>
|
16
|
16
|
</li>
|
|
17
|
+ <li class="flex-h">
|
|
18
|
+ <span>选择案场:</span>
|
|
19
|
+ <div class="flex-item">
|
|
20
|
+ <div style="width:50%">
|
|
21
|
+ <el-select v-model="CaseId" placeholder="请选择">
|
|
22
|
+ <el-option
|
|
23
|
+ v-for="item in cases"
|
|
24
|
+ :key="item.CaseId"
|
|
25
|
+ :label="item.CaseName"
|
|
26
|
+ :value="item.CaseId">
|
|
27
|
+ </el-option>
|
|
28
|
+ </el-select>
|
|
29
|
+ </div>
|
|
30
|
+ </div>
|
|
31
|
+ </li>
|
17
|
32
|
<li style="text-align:center">
|
18
|
33
|
<el-button type="primary" size="mini" @click="submit">保存</el-button>
|
19
|
34
|
<el-button type="danger" size="mini" @click="cancel">取消</el-button>
|
|
@@ -24,6 +39,8 @@
|
24
|
39
|
</template>
|
25
|
40
|
|
26
|
41
|
<script>
|
|
42
|
+import { mapState } from 'vuex'
|
|
43
|
+
|
27
|
44
|
export default {
|
28
|
45
|
name: '',
|
29
|
46
|
data () {
|
|
@@ -37,6 +54,21 @@ export default {
|
37
|
54
|
}
|
38
|
55
|
}
|
39
|
56
|
},
|
|
57
|
+ computed: {
|
|
58
|
+ ...mapState({
|
|
59
|
+ cases: x => x.app.cases.list,
|
|
60
|
+ defaultCaseId: x => x.app.cases.default,
|
|
61
|
+ OrgId: x => x.app.user.OrgId,
|
|
62
|
+ }),
|
|
63
|
+ CaseId: {
|
|
64
|
+ get () {
|
|
65
|
+ return this.postData.CaseId === '' ? this.defaultCaseId || '' : this.postData.CaseId
|
|
66
|
+ },
|
|
67
|
+ set (val) {
|
|
68
|
+ this.postData.CaseId = val
|
|
69
|
+ }
|
|
70
|
+ }
|
|
71
|
+ },
|
40
|
72
|
components: {},
|
41
|
73
|
created () {
|
42
|
74
|
this.getInfo()
|