|
|
@@ -32,7 +32,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import {getList, getDetail, add, update, remove,pageByBuilding} from "../../api/device/iotdevice.js";
|
|
|
+ import {getDetail, add, update, remove} from "../../api/device/iotdevice.js";
|
|
|
+ import {getList} from "@/api/device/videoclouddevice";
|
|
|
import {mapGetters} from "vuex";
|
|
|
|
|
|
export default {
|
|
|
@@ -146,7 +147,7 @@
|
|
|
dataType: "number",
|
|
|
type: "select",
|
|
|
search: true,
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=online_or_offline",
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=yt_online_status",
|
|
|
props: {
|
|
|
label: 'dictValue',
|
|
|
value: 'dictKey'
|
|
|
@@ -180,13 +181,20 @@
|
|
|
{
|
|
|
label: "是否支持云台",
|
|
|
prop: "isSupportPtz",
|
|
|
- dataType: "number",
|
|
|
+ // dataType: "number",
|
|
|
+ dicData: [{
|
|
|
+ label: "支持",
|
|
|
+ value: 1,
|
|
|
+ },{
|
|
|
+ label: "不支持",
|
|
|
+ value: 0,
|
|
|
+ }],
|
|
|
type: "select",
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=is_support",
|
|
|
- props: {
|
|
|
- label: 'dictValue',
|
|
|
- value: 'dictKey'
|
|
|
- },
|
|
|
+ // dicUrl: "/api/blade-system/dict-biz/dictionary?code=is_support",
|
|
|
+ // props: {
|
|
|
+ // label: 'dictValue',
|
|
|
+ // value: 'dictKey'
|
|
|
+ // },
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: "请输入是否支持云台(0:不支持,1:支持)",
|
|
|
@@ -563,7 +571,7 @@
|
|
|
onLoad(page, params = {}) {
|
|
|
this.loading = true;
|
|
|
params.buildingId = this.buildingId;
|
|
|
- pageByBuilding(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
|
|
+ getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
|
|
const data = res.data.data;
|
|
|
this.page.total = data.total;
|
|
|
this.data = data.records;
|