|
|
@ -38,17 +38,29 @@ |
|
|
|
> |
|
|
|
<el-option v-for="item in regions" :key="item.id" :label="item.label" :value="item.value" /> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
v-model="query.is_config" |
|
|
|
clearable |
|
|
|
filterable |
|
|
|
size="small" |
|
|
|
placeholder="是否配置" |
|
|
|
class="filter-item" |
|
|
|
style="width: 190px" |
|
|
|
@change="crud.toQuery" |
|
|
|
> |
|
|
|
<el-option v-for="item in is_configs" :key="item.id" :label="item.label" :value="item.value" /> |
|
|
|
</el-select> |
|
|
|
<rrOperation /> |
|
|
|
</div> |
|
|
|
<crudOperation :permission="permission"> |
|
|
|
<el-button |
|
|
|
slot="right" |
|
|
|
class="filter-item" |
|
|
|
size="mini" |
|
|
|
type="warning" |
|
|
|
icon="el-icon-download" |
|
|
|
@click="crud.doExport" |
|
|
|
>导出模型</el-button> |
|
|
|
slot="right" |
|
|
|
class="filter-item" |
|
|
|
size="mini" |
|
|
|
type="warning" |
|
|
|
icon="el-icon-download" |
|
|
|
@click="crud.doExport" |
|
|
|
>导出模型</el-button> |
|
|
|
<el-button |
|
|
|
slot="right" |
|
|
|
class="filter-item" |
|
|
@ -108,6 +120,16 @@ |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="是否配置" prop="is_config"> |
|
|
|
<el-select v-model="form.is_config" style="width: 370px" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in is_configs" |
|
|
|
:key="item.id" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="顺序号" prop="seq_num"> |
|
|
|
<el-input-number v-model="form.seq_num" value="1" :min="1" label="描述文字" /> |
|
|
|
</el-form-item> |
|
|
@ -194,8 +216,8 @@ import udOperation from '@crud/UD.operation' |
|
|
|
import pagination from '@crud/Pagination' |
|
|
|
import { get } from '@/api/system/dictDetail' |
|
|
|
import UploadDialog from '@/views/acs/device/UploadDialog' |
|
|
|
import {download} from '@/api/data' |
|
|
|
import {downloadFile} from '@/utils' |
|
|
|
import { download } from '@/api/data' |
|
|
|
import { downloadFile } from '@/utils' |
|
|
|
|
|
|
|
const defaultForm = { |
|
|
|
manufacturer: null, |
|
|
@ -239,6 +261,7 @@ export default { |
|
|
|
}, |
|
|
|
device_types: [], |
|
|
|
regions: [], |
|
|
|
is_configs: [], |
|
|
|
uploadShow: false, |
|
|
|
|
|
|
|
regions: [], |
|
|
@ -268,6 +291,10 @@ export default { |
|
|
|
get('region').then(data => { |
|
|
|
this.regions = data.content |
|
|
|
}) |
|
|
|
//获取是否配置 |
|
|
|
get('is_config').then(data => { |
|
|
|
this.is_configs = data.content |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|