Przeglądaj źródła

修改扩展页权限

尹帮元 2 lat temu
rodzic
commit
c29dcf32d8
2 zmienionych plików z 214 dodań i 211 usunięć
  1. 207 205
      src/views/system/dept/extend.vue
  2. 7 6
      src/views/system/dept/index.vue

+ 207 - 205
src/views/system/dept/extend.vue

@@ -120,7 +120,7 @@
         ></el-switch>
       </div>
       <!--  表格   -->
-      <div style="margin-top: 30px;">
+      <div  style="margin-top: 30px;">
         <el-button
           style="margin-bottom: 20px;"
           type="primary"
@@ -197,7 +197,7 @@
         </el-table>
       </div>
       <!--   上传   -->
-      <div style="margin-top: 30px;">
+      <div   style="margin-top: 30px;">
         <el-switch
           v-model="askari"
           active-text
@@ -225,46 +225,47 @@
       </div>
     </div>
 
-    <h3 class="title">业务库设置</h3>
-    <div class="info-box">
-      <el-form inline label-position="left" label-width="100px">
-        <el-row>
-          <el-col :span="7">
-            <el-form-item label="业务库类型">
-              <el-select
-                v-model="businessLibraryType"
-                placeholder="活动区域">
-                <el-option
-                  v-for="(businessLibraryTy, key) in businessLibraryTypes"
-                  :key="key"
-                  :label="businessLibraryTy.label"
-                  :value="businessLibraryTy.value"></el-option>
-              </el-select>
-            </el-form-item>
-          </el-col>
-          <el-col :span="7">
-            <el-form-item label="值守方式">
-              <el-radio-group v-model="dutyMode">
-                <el-radio :label="0">同楼异地值守</el-radio>
-                <el-radio :label="1">远程值守</el-radio>
-              </el-radio-group>
-            </el-form-item>
-          </el-col>
-          <el-col :span="7">
-            <el-form-item label="业务库出入口远程控制" label-width="150">
-              <el-switch
-                v-model="remoteControl"
-                active-text
-                inactive-text
-                :active-value="1"
-                :inactive-value="0"
-              ></el-switch>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-    </div>
-    <div class="info-box">
+    <div v-if="orgType">
+      <h3 class="title">业务库设置</h3>
+      <div class="info-box">
+        <el-form inline label-position="left" label-width="100px">
+          <el-row>
+            <el-col :span="7">
+              <el-form-item label="业务库类型">
+                <el-select
+                  v-model="businessLibraryType"
+                  placeholder="活动区域">
+                  <el-option
+                    v-for="(businessLibraryTy, key) in businessLibraryTypes"
+                    :key="key"
+                    :label="businessLibraryTy.label"
+                    :value="businessLibraryTy.value"></el-option>
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col :span="7">
+              <el-form-item label="值守方式">
+                <el-radio-group v-model="dutyMode">
+                  <el-radio :label="0">同楼异地值守</el-radio>
+                  <el-radio :label="1">远程值守</el-radio>
+                </el-radio-group>
+              </el-form-item>
+            </el-col>
+            <el-col :span="7">
+              <el-form-item label="业务库出入口远程控制" label-width="150">
+                <el-switch
+                  v-model="remoteControl"
+                  active-text
+                  inactive-text
+                  :active-value="1"
+                  :inactive-value="0"
+                ></el-switch>
+              </el-form-item>
+            </el-col>
+          </el-row>
+        </el-form>
+      </div>
+      <div class="info-box">
         <el-button
           style="margin-bottom: 20px;"
           type="primary"
@@ -274,108 +275,108 @@
           @click="handleBankAdd"
           v-hasPermi="['system:BankPhysicalDefenseConstruction:add']"
         >新增</el-button>
-      <el-table
-        border
-        size="small"
-        v-loading="bankloading"
-        :data="BankPhysicalDefenseConstructionList"
-        @selection-change="handleBankSelectionChange">
-        <el-table-column type="selection" width="55" align="center" />
-        <el-table-column label="id" align="center" prop="id" />
-        <el-table-column label="标准" align="center" prop="standard" />
-        <el-table-column
-          label="达标日期"
-          align="center"
-          prop="dateOfCompliance"
-          width="180">
-          <template slot-scope="scope">
-            <span>{{parseTime(scope.row.dateOfCompliance, "YYYY-MM-dd HH:mm:ss") }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column
-          label="是否证书佐证"
-          align="center"
-          prop="certificateEvidence"
-        />
-        <el-table-column label="证书" align="center" prop="certificate" />
-        <el-table-column label="佐证" align="center" prop="evidence" />
-        <el-table-column
-          v-if="false"
-          label="机构id"
-          align="center"
-          prop="orgId"
-        />
-        <el-table-column
-          label="操作"
-          align="center"
-          class-name="small-padding fixed-width"
-        >
-          <template slot-scope="scope">
-            <el-button
-              size="mini"
-              type="text"
-              icon="el-icon-edit"
-              @click="handleBankUpdate(scope.row)"
-              v-hasPermi="['system:construction:edit']"
-            >查看证书</el-button
-            >
-            <el-button
-              size="mini"
-              type="text"
-              icon="el-icon-edit"
-              @click="handleBankUpdate(scope.row)"
-              v-hasPermi="['system:BankPhysicalDefenseConstruction:edit']"
-            >修改</el-button
-            >
-            <el-button
-              size="mini"
-              type="text"
-              icon="el-icon-delete"
-              @click="handleBankDelete(scope.row)"
-              v-hasPermi="['system:BankPhysicalDefenseConstruction:remove']"
-            >删除</el-button
-            >
-          </template>
-        </el-table-column>
-      </el-table>
+        <el-table
+          border
+          size="small"
+          v-loading="bankloading"
+          :data="BankPhysicalDefenseConstructionList"
+          @selection-change="handleBankSelectionChange">
+          <el-table-column type="selection" width="55" align="center" />
+          <el-table-column label="id" align="center" prop="id" />
+          <el-table-column label="标准" align="center" prop="standard" />
+          <el-table-column
+            label="达标日期"
+            align="center"
+            prop="dateOfCompliance"
+            width="180">
+            <template slot-scope="scope">
+              <span>{{parseTime(scope.row.dateOfCompliance, "YYYY-MM-dd HH:mm:ss") }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column
+            label="是否证书佐证"
+            align="center"
+            prop="certificateEvidence"
+          />
+          <el-table-column label="证书" align="center" prop="certificate" />
+          <el-table-column label="佐证" align="center" prop="evidence" />
+          <el-table-column
+            v-if="false"
+            label="机构id"
+            align="center"
+            prop="orgId"
+          />
+          <el-table-column
+            label="操作"
+            align="center"
+            class-name="small-padding fixed-width"
+          >
+            <template slot-scope="scope">
+              <el-button
+                size="mini"
+                type="text"
+                icon="el-icon-edit"
+                @click="handleBankUpdate(scope.row)"
+                v-hasPermi="['system:construction:edit']"
+              >查看证书</el-button
+              >
+              <el-button
+                size="mini"
+                type="text"
+                icon="el-icon-edit"
+                @click="handleBankUpdate(scope.row)"
+                v-hasPermi="['system:BankPhysicalDefenseConstruction:edit']"
+              >修改</el-button
+              >
+              <el-button
+                size="mini"
+                type="text"
+                icon="el-icon-delete"
+                @click="handleBankDelete(scope.row)"
+                v-hasPermi="['system:BankPhysicalDefenseConstruction:remove']"
+              >删除</el-button
+              >
+            </template>
+          </el-table-column>
+        </el-table>
 
 
-    </div>
-
-    <h3 class="title">在行自助银行设置</h3>
-    <div class="info-box">
-      <el-switch
-        v-model="selfServiceBank"
-        active-text
-        inactive-text="是否有在行自助银行"
-        :active-value="1"
-        :inactive-value="0"
-      ></el-switch>
-      <span style="margin-left: 50px">在行式大堂设备</span>
-      <div style="display: inline-block; width: 200px">
-        <el-input-number
-          style="margin-left: 10px"
-          v-model="lobbyEquipment"
-          controls-position="right"
-          @change="handleChange"
-          :min="1"
-          :max="10"
-        ></el-input-number>
       </div>
-      <span style="margin-left: 50px">在行式穿墙设备</span>
-      <div style="display: inline-block; width: 200px">
-        <el-input-number
-          style="margin-left: 10px"
-          v-model="wallPenetratingEquipment"
-          controls-position="right"
-          @change="handleChange"
-          :min="1"
-          :max="10"
-        ></el-input-number>
+
+      <h3 class="title">在行自助银行设置</h3>
+      <div class="info-box">
+        <el-switch
+          v-model="selfServiceBank"
+          active-text
+          inactive-text="是否有在行自助银行"
+          :active-value="1"
+          :inactive-value="0"
+        ></el-switch>
+        <span style="margin-left: 50px">在行式大堂设备</span>
+        <div style="display: inline-block; width: 200px">
+          <el-input-number
+            style="margin-left: 10px"
+            v-model="lobbyEquipment"
+            controls-position="right"
+            @change="handleChange"
+            :min="1"
+            :max="10"
+          ></el-input-number>
+        </div>
+        <span style="margin-left: 50px">在行式穿墙设备</span>
+        <div style="display: inline-block; width: 200px">
+          <el-input-number
+            style="margin-left: 10px"
+            v-model="wallPenetratingEquipment"
+            controls-position="right"
+            @change="handleChange"
+            :min="1"
+            :max="10"
+          ></el-input-number>
+        </div>
       </div>
-    </div>
-    <div class="info-box">
-      <el-button
+      <div class="info-box">
+        <el-button
           style="margin-bottom: 20px;"
           type="primary"
           plain
@@ -384,71 +385,72 @@
           @click="handleBankAdd"
           v-hasPermi="['system:BankPhysicalDefenseConstruction:add']"
         >新增</el-button>
-      <el-table
-        border
-        size="small"
-        v-loading="bankloading"
-        :data="BankPhysicalDefenseConstructionList"
-        @selection-change="handleBankSelectionChange">
-        <el-table-column type="selection" width="55" align="center" />
-        <el-table-column label="id" align="center" prop="id" />
-        <el-table-column label="标准" align="center" prop="standard" />
-        <el-table-column
-          label="达标日期"
-          align="center"
-          prop="dateOfCompliance"
-          width="180"
-        >
-          <template slot-scope="scope">
-            <span>{{parseTime(scope.row.dateOfCompliance, "YYYY-MM-dd HH:mm:ss") }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column
-          label="是否证书佐证"
-          align="center"
-          prop="certificateEvidence"
-        />
-        <el-table-column label="证书" align="center" prop="certificate" />
-        <el-table-column label="佐证" align="center" prop="evidence" />
-        <el-table-column
-          v-if="false"
-          label="机构id"
-          align="center"
-          prop="orgId"
-        />
-        <el-table-column
-          label="操作"
-          align="center"
-          class-name="small-padding fixed-width"
-        >
-          <template slot-scope="scope">
-            <el-button
-              size="mini"
-              type="text"
-              icon="el-icon-edit"
-              @click="handleBankUpdate(scope.row)"
-              v-hasPermi="['system:construction:edit']"
-            >查看证书</el-button
-            >
-            <el-button
-              size="mini"
-              type="text"
-              icon="el-icon-edit"
-              @click="handleBankUpdate(scope.row)"
-              v-hasPermi="['system:BankPhysicalDefenseConstruction:edit']"
-            >修改</el-button
-            >
-            <el-button
-              size="mini"
-              type="text"
-              icon="el-icon-delete"
-              @click="handleBankDelete(scope.row)"
-              v-hasPermi="['system:BankPhysicalDefenseConstruction:remove']"
-            >删除</el-button
-            >
-          </template>
-        </el-table-column>
-      </el-table>
+        <el-table
+          border
+          size="small"
+          v-loading="bankloading"
+          :data="BankPhysicalDefenseConstructionList"
+          @selection-change="handleBankSelectionChange">
+          <el-table-column type="selection" width="55" align="center" />
+          <el-table-column label="id" align="center" prop="id" />
+          <el-table-column label="标准" align="center" prop="standard" />
+          <el-table-column
+            label="达标日期"
+            align="center"
+            prop="dateOfCompliance"
+            width="180"
+          >
+            <template slot-scope="scope">
+              <span>{{parseTime(scope.row.dateOfCompliance, "YYYY-MM-dd HH:mm:ss") }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column
+            label="是否证书佐证"
+            align="center"
+            prop="certificateEvidence"
+          />
+          <el-table-column label="证书" align="center" prop="certificate" />
+          <el-table-column label="佐证" align="center" prop="evidence" />
+          <el-table-column
+            v-if="false"
+            label="机构id"
+            align="center"
+            prop="orgId"
+          />
+          <el-table-column
+            label="操作"
+            align="center"
+            class-name="small-padding fixed-width"
+          >
+            <template slot-scope="scope">
+              <el-button
+                size="mini"
+                type="text"
+                icon="el-icon-edit"
+                @click="handleBankUpdate(scope.row)"
+                v-hasPermi="['system:construction:edit']"
+              >查看证书</el-button
+              >
+              <el-button
+                size="mini"
+                type="text"
+                icon="el-icon-edit"
+                @click="handleBankUpdate(scope.row)"
+                v-hasPermi="['system:BankPhysicalDefenseConstruction:edit']"
+              >修改</el-button
+              >
+              <el-button
+                size="mini"
+                type="text"
+                icon="el-icon-delete"
+                @click="handleBankDelete(scope.row)"
+                v-hasPermi="['system:BankPhysicalDefenseConstruction:remove']"
+              >删除</el-button
+              >
+            </template>
+          </el-table-column>
+        </el-table>
+      </div>
     </div>
 
     <div style="margin-top: 50px; margin-left: 42%">

+ 7 - 6
src/views/system/dept/index.vue

@@ -92,12 +92,13 @@
 
           <router-link :to="'/system/dept-extend/extend/'+ scope.row.id " class="link-type">
 
-            <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            >扩展</el-button
-          >
+              <el-button
+              size="mini"
+              type="text"
+              icon="el-icon-edit"
+              v-hasPermi="['system:dept:extend']"
+              >扩展</el-button
+            >
           </router-link>
           <el-button
             size="mini"