|
@@ -81,12 +81,11 @@
|
|
|
<span
|
|
|
class="oper-span"
|
|
|
@click="
|
|
|
- auth.delete &&
|
|
|
- user.info.departmentId == row.deptId &&
|
|
|
+ auth.delete &&(user.info.id === ADMIN_USER_ID || user.info.departmentId == row.deptId) &&
|
|
|
dataList.delete(row)
|
|
|
"
|
|
|
:class="{
|
|
|
- disable: !(auth.delete && user.info.departmentId == row.deptId),
|
|
|
+ disable: !(auth.delete && (user.info.departmentId == row.deptId || user.info.id === ADMIN_USER_ID)),
|
|
|
}"
|
|
|
style="color: var(--primaryColor)"
|
|
|
>删除</span
|
|
@@ -127,9 +126,9 @@
|
|
|
<el-select v-model="cameraCompany.data" placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in cameras"
|
|
|
- :key="item.snCode"
|
|
|
- :label="item.snCode"
|
|
|
- :value="item.snCode"
|
|
|
+ :key="item.cameraSn"
|
|
|
+ :label="item.cameraSn"
|
|
|
+ :value="item.cameraSn"
|
|
|
>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -203,10 +202,12 @@ import comPagination from "@/components/pagination";
|
|
|
import comCompany from "@/components/company-select";
|
|
|
import { getApp } from "@/app";
|
|
|
import { dateFormat } from "@/util";
|
|
|
+import { ADMIN_USER_ID } from '@/constant'
|
|
|
import {
|
|
|
getSceneList,
|
|
|
deleteScene,
|
|
|
- getCameraOptions,
|
|
|
+ // getCameraOptions,
|
|
|
+ getCameraListByUser,
|
|
|
checkHasDownload,
|
|
|
getDownloadProcess,
|
|
|
downloadScene,
|
|
@@ -274,6 +275,7 @@ export default {
|
|
|
cameraCompany,
|
|
|
asyncSceneCompany,
|
|
|
user,
|
|
|
+ ADMIN_USER_ID
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -389,8 +391,8 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
async activated() {
|
|
|
- let res = await axios.get(getCameraOptions);
|
|
|
- this.cameras = res.data.list;
|
|
|
+ let res = await axios.get(getCameraListByUser);
|
|
|
+ this.cameras = res.data;
|
|
|
},
|
|
|
components: {
|
|
|
"com-head": comHead,
|