|
@@ -21,29 +21,91 @@
|
|
|
prop="jihua">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
+ <el-input type='number'
|
|
|
+ style="width:80px"
|
|
|
+ size='mini'
|
|
|
+ v-model="scope.row.jihua"
|
|
|
+ placeholder="请输入"></el-input>
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="预计收费"
|
|
|
prop="yuji">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <el-input v-if='scope.row.type == 1'
|
|
|
+ type='number'
|
|
|
+ style="width:80px"
|
|
|
+ size='mini'
|
|
|
+ v-model="scope.row.jihua"
|
|
|
+ placeholder="请输入"></el-input>
|
|
|
+ <p v-if='scope.row.type == 2'>{{scope.row.jihua}}</p>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
</el-table-column>
|
|
|
<el-table-column label="可选乐器种类"
|
|
|
prop="zhonglei"
|
|
|
width="300">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <el-select v-model="scope.row.zhonglei"
|
|
|
+ style="width:260px!important"
|
|
|
+ multiple>
|
|
|
+ <el-option :label="1"
|
|
|
+ :value="1"></el-option>
|
|
|
+ <el-option :label="2"
|
|
|
+ :value="2"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <p v-if='scope.row.type == 2'>{{scope.row.jihua}}</p>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
</el-table-column>
|
|
|
<el-table-column label="乐器提供方式"
|
|
|
prop="fangshi"
|
|
|
width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <div class="chiose"
|
|
|
+ v-if='scope.row.type == 1'
|
|
|
+ v-popover:popover>选择</div>
|
|
|
+ <p v-if='scope.row.type == 2'>{{scope.row.fangshi}}</p>
|
|
|
+ <el-popover ref='popover'
|
|
|
+ placement="bottom"
|
|
|
+ v-model="visible2">
|
|
|
+ <el-input placeholder="啦啦啦"
|
|
|
+ v-model="scope.row.fangshi"></el-input>
|
|
|
+ <div style="text-align: right; margin: 0">
|
|
|
+ <el-button size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="visible2 = false">取消</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ size="mini"
|
|
|
+ @click="visible2 = false">确定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="教辅组合"
|
|
|
prop="jiaopu">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <div v-if='scope.row.type == 1'
|
|
|
+ class="chiose">选择</div>
|
|
|
+ <p v-if='scope.row.type == 2'>{{scope.row.jiaopu}}</p>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- <div>编辑</div>
|
|
|
- <div>保存</div>
|
|
|
+ <el-button v-if='scope.row.type == 2'
|
|
|
+ type="text">编辑</el-button>
|
|
|
+ <el-button v-if='scope.row.type == 1'
|
|
|
+ type="text">保存</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -63,11 +125,13 @@ export default {
|
|
|
sound: '长笛',
|
|
|
jihua: '10',
|
|
|
yuji: '10',
|
|
|
- zhonglei: [1, 2],
|
|
|
+ zhonglei: [],
|
|
|
fangshi: [1, 2],
|
|
|
jiaopu: 'jiaopu1',
|
|
|
- type: 1
|
|
|
- }]
|
|
|
+ type: 1,
|
|
|
+ id: 1
|
|
|
+ }],
|
|
|
+ visible2: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -86,6 +150,9 @@ export default {
|
|
|
background-color: #14928a;
|
|
|
border-color: #14928a;
|
|
|
}
|
|
|
+.el-select__tags .el-tag__close.el-icon-close {
|
|
|
+ display: inline-block;
|
|
|
+}
|
|
|
.sound-container {
|
|
|
.topMsg {
|
|
|
display: flex;
|
|
@@ -93,6 +160,7 @@ export default {
|
|
|
justify-content: flex-start;
|
|
|
font-size: 14px;
|
|
|
color: #444;
|
|
|
+ margin-bottom: 15px;
|
|
|
}
|
|
|
.floor {
|
|
|
display: flex;
|
|
@@ -131,5 +199,14 @@ export default {
|
|
|
.xuanze {
|
|
|
width: 71px;
|
|
|
}
|
|
|
+ .chiose {
|
|
|
+ width: 65px;
|
|
|
+ height: 24px;
|
|
|
+ line-height: 24px;
|
|
|
+ border: 1px solid rgba(151, 151, 151, 1);
|
|
|
+ border-radius: 12px;
|
|
|
+ text-align: center;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|