|
@@ -28,24 +28,23 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
- type="success"
|
|
|
|
|
|
+ type="danger"
|
|
plain
|
|
plain
|
|
- icon="el-icon-edit"
|
|
|
|
|
|
+ icon="el-icon-delete"
|
|
size="mini"
|
|
size="mini"
|
|
- :disabled="single"
|
|
|
|
- @click="handleUpdate"
|
|
|
|
- >修改
|
|
|
|
|
|
+ :disabled="multiple"
|
|
|
|
+ @click="handleDelete"
|
|
|
|
+ >删除
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
- type="danger"
|
|
|
|
|
|
+ type="success"
|
|
plain
|
|
plain
|
|
- icon="el-icon-delete"
|
|
|
|
|
|
+ icon="el-icon-refresh"
|
|
size="mini"
|
|
size="mini"
|
|
- :disabled="multiple"
|
|
|
|
- @click="handleDelete"
|
|
|
|
- >删除
|
|
|
|
|
|
+ @click="handleCamera"
|
|
|
|
+ >同步摄像头
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
@@ -75,6 +74,13 @@
|
|
@click="handleDelete(scope.row)"
|
|
@click="handleDelete(scope.row)"
|
|
>删除
|
|
>删除
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ icon="el-icon-s-custom"
|
|
|
|
+ @click="handleDept(scope.row)"
|
|
|
|
+ >部门管理
|
|
|
|
+ </el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -116,7 +122,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import {addCamera, delCamera, getCamera, listCamera, updateCamera} from "@/api/system/camera";
|
|
|
|
|
|
+import {addCamera, delCamera, getCamera, getCameraList, listCamera, updateCamera} from "@/api/system/camera";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import {listDept} from "@/api/system/dept";
|
|
import {listDept} from "@/api/system/dept";
|
|
@@ -169,6 +175,16 @@ export default {
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handleDept(){},
|
|
|
|
+ /** 同步摄像头 */
|
|
|
|
+ handleCamera(){
|
|
|
|
+ getCameraList().then(res => {
|
|
|
|
+ if(res.code == 200){
|
|
|
|
+ this.$modal.msgSuccess("同步成功");
|
|
|
|
+ }
|
|
|
|
+ this.getList();
|
|
|
|
+ })
|
|
|
|
+ },
|
|
/** 查询部门列表 */
|
|
/** 查询部门列表 */
|
|
getDeptList() {
|
|
getDeptList() {
|
|
this.loading = true;
|
|
this.loading = true;
|