|
@@ -31,8 +31,8 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="index !== 1" label="关联设备:">
|
|
|
<el-select v-model="ids" multiple placeholder="请选择关联设备">
|
|
|
- <el-option v-for="item in devOptions" :key="item.label" :value="item.value.toString()"
|
|
|
- :label="item.label" />
|
|
|
+ <el-option v-for="item in devOptions" :key="item.clientTypeId" :value="item.clientTypeId.toString()"
|
|
|
+ :label="item.name" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="title === '编辑'" label="内容列表:">
|
|
@@ -50,8 +50,8 @@
|
|
|
<el-button type="text" @click="edit(scope)">编辑</el-button>
|
|
|
<el-button v-if="scope.row.sort > 3" type="text" icon="el-icon-caret-top"
|
|
|
@click="getChange(scope.row.id, scope.row.sort - 1)" />
|
|
|
- <el-button v-if="scope.row.sort > 2 && scope.row.sort < 12" type="text" icon="el-icon-caret-bottom"
|
|
|
- @click="getChange(scope.row.id, scope.row.sort + 1)" />
|
|
|
+ <el-button v-if="scope.row.sort > 2 && scope.row.sort < 12" type="text"
|
|
|
+ icon="el-icon-caret-bottom" @click="getChange(scope.row.id, scope.row.sort + 1)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -168,13 +168,7 @@ export default {
|
|
|
let type = row ? 1 : 0
|
|
|
devList(type).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
- this.devOptions = []
|
|
|
- res.data.map(i => {
|
|
|
- this.devOptions.push({
|
|
|
- value: i.clientTypeId,
|
|
|
- label: i.name
|
|
|
- })
|
|
|
- })
|
|
|
+ this.devOptions = res.data
|
|
|
}
|
|
|
})
|
|
|
|