sujunling преди 2 години
родител
ревизия
714462e179
променени са 1 файла, в които са добавени 6 реда и са изтрити 9 реда
  1. 6 9
      src/views/authorize/empower/index.vue

+ 6 - 9
src/views/authorize/empower/index.vue

@@ -8,13 +8,12 @@
         </div>
         <div class="input">
           <span>资源类型</span>
-          <!-- <a-select allowClear v-model:value="selectTypeValue" style="width: 200px" :options="typeOptions"></a-select> -->
-          <a-select allowClear @change="handleTypeChange" v-model:value="selectTypeValue" style="width: 200px" :options="typeOptions"></a-select>
+          <a-select allowClear @change="handleTypeChange" v-model:value="selectTypeValue" style="width: 200px"
+            :options="typeOptions"></a-select>
         </div>
         <div class="input" v-if="selectTypeValue != 'SR'">
           <span>应用系统</span>
-          <a-select allowClear v-model:value="selectSystemValue" style="width: 200px"
-            :options="sysOptions"></a-select>
+          <a-select allowClear v-model:value="selectSystemValue" style="width: 200px" :options="sysOptions"></a-select>
         </div>
         <div class="input">
           <span>审核状态</span>
@@ -93,8 +92,6 @@ import { useModal } from '/@/components/Modal';
 import { queryResourceById } from '/@/api/resource/map';
 
 export default defineComponent({
-  name: 'Empowerment',
-  components: { BasicTable, TableAction, AuditModal, MapResourceUpload, FileResourceUpload, SceneResourceUpload, AssResourceUpload },
   setup() {
     const appStore = useAppStore();
     const [registerModal, { openModal }] = useModal();
@@ -292,10 +289,10 @@ export default defineComponent({
 
     const onFetchSuccess = () => {
       // 请求后拿到数据,打开对应的资源审核弹窗
-      nextTick(()=>{
+      nextTick(() => {
         let dataList = getDataSource()
-        if(currRoute?.query?.bussid && appStore.routerPushAuditFlag){
-          dataList.forEach(item=>{
+        if (currRoute?.query?.bussid && appStore.routerPushAuditFlag) {
+          dataList.forEach(item => {
             item.BUSSID === currRoute.query.bussid && handleAudit(item)
           })
         }