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