dedsudiyu 1 year ago
parent
commit
db770861b7

+ 4 - 4
src/views/iotDevice/hardwareManagement/hardwareClassification/index.vue

@@ -28,7 +28,7 @@
           <p class="page-add-common-style-button"
           <p class="page-add-common-style-button"
              style="float: right;"
              style="float: right;"
              @click="dialogFormReset"
              @click="dialogFormReset"
-             v-hasPermiRouter="['demo:demo:add']"
+             v-hasPermiRouter="['iot:hardwareType:add']"
           >新增</p>
           >新增</p>
         </el-form>
         </el-form>
       </div>
       </div>
@@ -63,11 +63,11 @@
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(3,scope.row)"
                    @click="tableButton(3,scope.row)"
-                   v-hasPermiRouter="['demo:demo:edit']"
+                   v-hasPermiRouter="['iot:hardwareType:edit']"
                 >编辑</p>
                 >编辑</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(4,scope.row)"
                    @click="tableButton(4,scope.row)"
-                   v-hasPermiRouter="['demo:demo:del']"
+                   v-hasPermiRouter="['iot:hardwareType:del']"
                 >删除</p>
                 >删除</p>
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
               </div>
               </div>
@@ -141,7 +141,7 @@ import {
     name: 'index',
     name: 'index',
     data () {
     data () {
       return {
       return {
-        tableButtonType:this.hasPermiDom(['demo:demo:detail','demo:demo:edit','demo:demo:del',]),
+        tableButtonType:this.hasPermiDom(['iot:hardwareType:edit','iot:hardwareType:del',]),
         //页面状态
         //页面状态
         pageType:1,
         pageType:1,
         //页面遮罩
         //页面遮罩

+ 4 - 4
src/views/iotDevice/hardwareManagement/hardwareEquipment/index.vue

@@ -78,7 +78,7 @@
           <p class="page-add-common-style-button"
           <p class="page-add-common-style-button"
              style="float: right;"
              style="float: right;"
              @click="dialogFormReset"
              @click="dialogFormReset"
-             v-hasPermiRouter="['demo:demo:add']"
+             v-hasPermiRouter="['iot:hardware:add']"
           >新增</p>
           >新增</p>
         </el-form>
         </el-form>
       </div>
       </div>
@@ -126,11 +126,11 @@
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(3,scope.row)"
                    @click="tableButton(3,scope.row)"
-                   v-hasPermiRouter="['demo:demo:edit']"
+                   v-hasPermiRouter="['iot:hardware:edit']"
                 >编辑</p>
                 >编辑</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(4,scope.row)"
                    @click="tableButton(4,scope.row)"
-                   v-hasPermiRouter="['demo:demo:del']"
+                   v-hasPermiRouter="['iot:hardware:del']"
                 >删除</p>
                 >删除</p>
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
               </div>
               </div>
@@ -222,7 +222,7 @@ import { systemBuildingGetTreeList,laboratorySubRelInfoGetListByFloor } from "@/
     name: 'index',
     name: 'index',
     data () {
     data () {
       return {
       return {
-        tableButtonType:this.hasPermiDom(['demo:demo:detail','demo:demo:edit','demo:demo:del',]),
+        tableButtonType:this.hasPermiDom(['iot:hardware:edit','iot:hardware:del',]),
         //页面状态
         //页面状态
         pageType:1,
         pageType:1,
         //页面遮罩
         //页面遮罩

+ 7 - 3
src/views/iotDevice/intelligenceIot/classConfig/index.vue

@@ -29,7 +29,7 @@
           <p class="page-submit-common-style-button"
           <p class="page-submit-common-style-button"
              style="float: right;"
              style="float: right;"
              @click="dialogOpen"
              @click="dialogOpen"
-             v-hasPermiRouter="['demo:demo:add']"
+             v-hasPermiRouter="['iot:param:add']"
           >新增</p>
           >新增</p>
         </el-form>
         </el-form>
       </div>
       </div>
@@ -51,21 +51,24 @@
               <span>{{ parseTime(scope.row.createTime) }}</span>
               <span>{{ parseTime(scope.row.createTime) }}</span>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
-          <el-table-column label="操作" align="left" width="260">
+          <el-table-column label="操作" align="left" width="260" v-if="tableButtonType">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <div class="table-button-box">
               <div class="table-button-box">
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(1,scope.row)"
                    @click="tableButton(1,scope.row)"
+                   v-hasPermiRouter="['iot:param:edit']"
                 >编辑</p>
                 >编辑</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(2,scope.row)"
                    @click="tableButton(2,scope.row)"
+                   v-hasPermiRouter="['iot:param:perms']"
                 >配置</p>
                 >配置</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(3,scope.row)"
                    @click="tableButton(3,scope.row)"
+                   v-hasPermiRouter="['iot:param:del']"
                 >删除</p>
                 >删除</p>
                 <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)"
                 <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)"
-                             v-hasPermiRouter="['demo:demo:move']">
+                             v-hasPermiRouter="['iot:param:move']">
                   <p class="table-button-p">更多>></p>
                   <p class="table-button-p">更多>></p>
                   <el-dropdown-menu slot="dropdown">
                   <el-dropdown-menu slot="dropdown">
                     <el-dropdown-item command="1">上移</el-dropdown-item>
                     <el-dropdown-item command="1">上移</el-dropdown-item>
@@ -154,6 +157,7 @@
     },
     },
     data(){
     data(){
       return{
       return{
+        tableButtonType:this.hasPermiDom(['iot:param:edit','iot:param:perms','iot:param:del','iot:param:move']),
         pageType:1,
         pageType:1,
         loading:false,
         loading:false,
         options:[{label:'启用',value:true},{label:'停用',value:false}],
         options:[{label:'启用',value:true},{label:'停用',value:false}],

+ 7 - 2
src/views/iotDevice/intelligenceIot/iotClassification/index.vue

@@ -29,7 +29,7 @@
           <p class="page-submit-common-style-button"
           <p class="page-submit-common-style-button"
              style="float: right;"
              style="float: right;"
              @click="dialogOpen"
              @click="dialogOpen"
-             v-hasPermiRouter="['demo:demo:add']"
+             v-hasPermiRouter="['iot:type:add']"
           >新增</p>
           >新增</p>
         </el-form>
         </el-form>
       </div>
       </div>
@@ -48,18 +48,21 @@
               <span>{{ parseTime(scope.row.createTime) }}</span>
               <span>{{ parseTime(scope.row.createTime) }}</span>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
-          <el-table-column label="操作" align="left" class-name="small-padding fixed-width">
+          <el-table-column label="操作" align="left" class-name="small-padding fixed-width" v-if="tableButtonType">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <div class="table-button-box">
               <div class="table-button-box">
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(2,scope.row)"
                    @click="tableButton(2,scope.row)"
+                   v-hasPermiRouter="['iot:type:detail']"
                 >详情</p>
                 >详情</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(3,scope.row)"
                    @click="tableButton(3,scope.row)"
+                   v-hasPermiRouter="['iot:type:edit']"
                 >编辑</p>
                 >编辑</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(4,scope.row)"
                    @click="tableButton(4,scope.row)"
+                   v-hasPermiRouter="['iot:type:del']"
                 >删除</p>
                 >删除</p>
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
               </div>
               </div>
@@ -129,6 +132,7 @@
     },
     },
     data(){
     data(){
       return{
       return{
+        tableButtonType:this.hasPermiDom(['iot:type:detail','iot:type:edit','iot:type:del']),
         loading:false,
         loading:false,
         pageType:1,
         pageType:1,
         options:[{label:'启用',value:true},{label:'停用',value:false}],
         options:[{label:'启用',value:true},{label:'停用',value:false}],
@@ -252,6 +256,7 @@
           //编辑
           //编辑
           iotTypeDetail({id:row.typeId}).then(response => {
           iotTypeDetail({id:row.typeId}).then(response => {
             this.dialogFormReset();
             this.dialogFormReset();
+            this.$set(this,'dialogTitle','编辑');
             this.$set(this,'dialogForm',JSON.parse(JSON.stringify(response.data)));
             this.$set(this,'dialogForm',JSON.parse(JSON.stringify(response.data)));
             this.$set(this,'dialogType',true);
             this.$set(this,'dialogType',true);
           });
           });

+ 6 - 6
src/views/iotDevice/intelligenceIot/iotHardware/index.vue

@@ -72,12 +72,12 @@
           <p class="page-submit-common-style-button"
           <p class="page-submit-common-style-button"
              style="float: right;"
              style="float: right;"
              @click="tableButton(1)"
              @click="tableButton(1)"
-             v-hasPermiRouter="['demo:demo:add']"
+             v-hasPermiRouter="['iot:device:add']"
           >新增</p>
           >新增</p>
           <p class="page-save-common-style-button"
           <p class="page-save-common-style-button"
              style="float: right;margin-right:20px;"
              style="float: right;margin-right:20px;"
              @click="tableButton(7)"
              @click="tableButton(7)"
-             v-hasPermiRouter="['demo:demo:add']"
+             v-hasPermiRouter="['iot:device:batch']"
           >批量新增</p>
           >批量新增</p>
         </el-form>
         </el-form>
       </div>
       </div>
@@ -107,15 +107,15 @@
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(2,scope.row)"
                    @click="tableButton(2,scope.row)"
-                   v-hasPermiRouter="['demo:demo:detail']"
+                   v-hasPermiRouter="['iot:device:detail']"
                 >详情</p>
                 >详情</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(3,scope.row)"
                    @click="tableButton(3,scope.row)"
-                   v-hasPermiRouter="['demo:demo:edit']"
+                   v-hasPermiRouter="['iot:device:edit']"
                 >编辑</p>
                 >编辑</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(4,scope.row)"
                    @click="tableButton(4,scope.row)"
-                   v-hasPermiRouter="['demo:demo:del']"
+                   v-hasPermiRouter="['iot:device:del']"
                 >删除</p>
                 >删除</p>
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
               </div>
               </div>
@@ -151,7 +151,7 @@
     },
     },
     data () {
     data () {
       return {
       return {
-        tableButtonType:this.hasPermiDom(['demo:demo:detail','demo:demo:edit','demo:demo:del',]),
+        tableButtonType:this.hasPermiDom(['iot:device:detail','iot:device:edit','iot:device:del',]),
         //页面状态
         //页面状态
         pageType:1,
         pageType:1,
         //页面遮罩
         //页面遮罩

+ 7 - 2
src/views/iotDevice/monitoringWarning/messageTemplate/index.vue

@@ -29,7 +29,7 @@
           <p class="page-submit-common-style-button"
           <p class="page-submit-common-style-button"
              style="float: right;"
              style="float: right;"
              @click="tableButton(1)"
              @click="tableButton(1)"
-             v-hasPermiRouter="['demo:demo:add']"
+             v-hasPermiRouter="['iot:alertTemplate:add']"
           >新增</p>
           >新增</p>
         </el-form>
         </el-form>
       </div>
       </div>
@@ -76,21 +76,25 @@
               <span>{{ parseTime(scope.row.createTime) }}</span>
               <span>{{ parseTime(scope.row.createTime) }}</span>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
-          <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="240">
+          <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="240" v-if="tableButtonType">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <div class="table-button-box">
               <div class="table-button-box">
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(2,scope.row)"
                    @click="tableButton(2,scope.row)"
+                   v-hasPermiRouter="['iot:alertTemplate:detail']"
                 >详情</p>
                 >详情</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(3,scope.row)"
                    @click="tableButton(3,scope.row)"
+                   v-hasPermiRouter="['iot:alertTemplate:edit']"
                 >编辑</p>
                 >编辑</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(4,scope.row)"
                    @click="tableButton(4,scope.row)"
+                   v-hasPermiRouter="['iot:alertTemplate:perms']"
                 >调试</p>
                 >调试</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(5,scope.row)"
                    @click="tableButton(5,scope.row)"
+                   v-hasPermiRouter="['iot:alertTemplate:del']"
                 >删除</p>
                 >删除</p>
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
               </div>
               </div>
@@ -120,6 +124,7 @@
     },
     },
     data(){
     data(){
       return{
       return{
+        tableButtonType:this.hasPermiDom(['iot:alertTemplate:detail','iot:alertTemplate:edit','iot:alertTemplate:perms','iot:alertTemplate:del',]),
         pageType:1,
         pageType:1,
         loading:false,
         loading:false,
         typeList:[
         typeList:[

+ 6 - 2
src/views/iotDevice/monitoringWarning/warningMode/index.vue

@@ -36,7 +36,7 @@
           <p class="page-submit-common-style-button"
           <p class="page-submit-common-style-button"
              style="float: right;margin-right:20px;"
              style="float: right;margin-right:20px;"
              @click="tableButton(1)"
              @click="tableButton(1)"
-             v-hasPermiRouter="['demo:demo:add']"
+             v-hasPermiRouter="['iot:alertType:add']"
           >新增</p>
           >新增</p>
         </el-form>
         </el-form>
       </div>
       </div>
@@ -75,18 +75,21 @@
               <span>{{ parseTime(scope.row.createTime) }}</span>
               <span>{{ parseTime(scope.row.createTime) }}</span>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
-          <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="200">
+          <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="200" v-if="tableButtonType">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <div class="table-button-box">
               <div class="table-button-box">
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(2,scope.row)"
                    @click="tableButton(2,scope.row)"
+                   v-hasPermiRouter="['iot:alertType:detail']"
                 >详情</p>
                 >详情</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(3,scope.row)"
                    @click="tableButton(3,scope.row)"
+                   v-hasPermiRouter="['iot:alertType:edit']"
                 >编辑</p>
                 >编辑</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(4,scope.row)"
                    @click="tableButton(4,scope.row)"
+                   v-hasPermiRouter="['iot:alertType:del']"
                 >删除</p>
                 >删除</p>
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
               </div>
               </div>
@@ -140,6 +143,7 @@
     },
     },
     data(){
     data(){
       return{
       return{
+        tableButtonType:this.hasPermiDom(['iot:alertType:detail','iot:alertType:edit','iot:alertType:del',]),
         pageType:1,
         pageType:1,
         cardType:true,
         cardType:true,
         loading:false,
         loading:false,

+ 4 - 4
src/views/iotDevice/operationManagement/monitorConfig/index.vue

@@ -38,7 +38,7 @@
           <p class="page-add-common-style-button"
           <p class="page-add-common-style-button"
              style="float: right;"
              style="float: right;"
              @click="tableButton(1)"
              @click="tableButton(1)"
-             v-hasPermiRouter="['demo:demo:add']"
+             v-hasPermiRouter="['iot:monitorConfig:add']"
           >新增</p>
           >新增</p>
         </el-form>
         </el-form>
       </div>
       </div>
@@ -85,11 +85,11 @@
                 <!--&gt;详情</p>-->
                 <!--&gt;详情</p>-->
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(3,scope.row)"
                    @click="tableButton(3,scope.row)"
-                   v-hasPermiRouter="['demo:demo:edit']"
+                   v-hasPermiRouter="['iot:monitorConfig:edit']"
                 >编辑</p>
                 >编辑</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(4,scope.row)"
                    @click="tableButton(4,scope.row)"
-                   v-hasPermiRouter="['demo:demo:del']"
+                   v-hasPermiRouter="['iot:monitorConfig:del']"
                 >删除</p>
                 >删除</p>
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
               </div>
               </div>
@@ -118,7 +118,7 @@
     },
     },
     data () {
     data () {
       return {
       return {
-        tableButtonType:this.hasPermiDom(['demo:demo:detail','demo:demo:edit','demo:demo:del',]),
+        tableButtonType:this.hasPermiDom(['iot:monitorConfig:edit','iot:monitorConfig:del',]),
         //页面状态
         //页面状态
         pageType:1,
         pageType:1,
         //页面遮罩
         //页面遮罩

+ 6 - 2
src/views/iotDevice/operationManagement/networkComponent/index.vue

@@ -29,7 +29,7 @@
           <p class="page-submit-common-style-button"
           <p class="page-submit-common-style-button"
              style="float: right;"
              style="float: right;"
              @click="dialogOpen"
              @click="dialogOpen"
-             v-hasPermiRouter="['demo:demo:add']"
+             v-hasPermiRouter="['iot:network:add']"
           >新增</p>
           >新增</p>
         </el-form>
         </el-form>
       </div>
       </div>
@@ -60,18 +60,21 @@
               <span>{{ parseTime(scope.row.createTime) }}</span>
               <span>{{ parseTime(scope.row.createTime) }}</span>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
-          <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="200">
+          <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="200" v-if="tableButtonType">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <div class="table-button-box">
               <div class="table-button-box">
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(2,scope.row)"
                    @click="tableButton(2,scope.row)"
+                   v-hasPermiRouter="['iot:network:detail']"
                 >详情</p>
                 >详情</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(3,scope.row)"
                    @click="tableButton(3,scope.row)"
+                   v-hasPermiRouter="['iot:network:edit']"
                 >编辑</p>
                 >编辑</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(4,scope.row)"
                    @click="tableButton(4,scope.row)"
+                   v-hasPermiRouter="['iot:network:del']"
                 >删除</p>
                 >删除</p>
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
               </div>
               </div>
@@ -341,6 +344,7 @@
         }
         }
       };
       };
       return{
       return{
+        tableButtonType:this.hasPermiDom(['iot:network:detail','iot:network:edit','iot:network:del',]),
         loading:false,
         loading:false,
         options:[{label:'HTTP服务',value:1},{label:'TCP服务',value:2},{label:'MQTT服务',value:3},{label:'MQTT客户端',value:4}],
         options:[{label:'HTTP服务',value:1},{label:'TCP服务',value:2},{label:'MQTT服务',value:3},{label:'MQTT客户端',value:4}],
         queryParams:{
         queryParams:{

+ 5 - 2
src/views/iotDevice/operationManagement/protocolManagement/index.vue

@@ -19,7 +19,7 @@
           <p class="page-submit-common-style-button"
           <p class="page-submit-common-style-button"
              style="float: right;"
              style="float: right;"
              @click="dialogOpen"
              @click="dialogOpen"
-             v-hasPermiRouter="['demo:demo:add']"
+             v-hasPermiRouter="['iot:protocol:add']"
           >新增</p>
           >新增</p>
         </el-form>
         </el-form>
       </div>
       </div>
@@ -42,15 +42,17 @@
               <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}</span>
               <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}</span>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
-          <el-table-column label="操作" class-name="small-padding fixed-width" width="160">
+          <el-table-column label="操作" class-name="small-padding fixed-width" width="160" v-if="tableButtonType">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <div class="table-button-box">
               <div class="table-button-box">
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(1,scope.row)"
                    @click="tableButton(1,scope.row)"
+                   v-hasPermiRouter="['iot:protocol:edit']"
                 >编辑</p>
                 >编辑</p>
                 <p class="table-button-p"
                 <p class="table-button-p"
                    @click="tableButton(2,scope.row)"
                    @click="tableButton(2,scope.row)"
+                   v-hasPermiRouter="['iot:protocol:del']"
                 >删除</p>
                 >删除</p>
                 <p class="table-button-null"></p>
                 <p class="table-button-null"></p>
               </div>
               </div>
@@ -140,6 +142,7 @@
     name: 'index',
     name: 'index',
     data(){
     data(){
       return{
       return{
+        tableButtonType:this.hasPermiDom(['iot:protocol:edit','iot:protocol:del',]),
         uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
         uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
         headers: {
         headers: {
           Authorization:getToken(),
           Authorization:getToken(),