zhaoke 3 лет назад
Родитель
Сommit
90b35e83e4

+ 10 - 4
src/views/authorityManagement/components/authorityAppAdd.vue

@@ -57,6 +57,9 @@
                 <el-form-item label="入参名称" :prop="'domains.' + index + '.name'">
                 <el-form-item label="入参名称" :prop="'domains.' + index + '.name'">
                   <el-input placeholder="请输入最大64位参数名称" maxlength="64" v-model.trim="domain.AppInputName"></el-input>
                   <el-input placeholder="请输入最大64位参数名称" maxlength="64" v-model.trim="domain.AppInputName"></el-input>
                 </el-form-item>
                 </el-form-item>
+                <el-form-item label="入参值" :prop="'domains.' + index + '.value'">
+                  <el-input placeholder="请输入最大64位参数值" maxlength="64" v-model.trim="domain.AppInputValue"></el-input>
+                </el-form-item>
                 <el-form-item label="入参类型" :prop="'domains.' + index + '.type'">
                 <el-form-item label="入参类型" :prop="'domains.' + index + '.type'">
                   <el-select v-model="domain.AppInputType" :disabled="typeFlag" placeholder="参数类型">
                   <el-select v-model="domain.AppInputType" :disabled="typeFlag" placeholder="参数类型">
                     <el-option label="string" value="string"></el-option>
                     <el-option label="string" value="string"></el-option>
@@ -134,7 +137,8 @@ export default {
         domains: [{
         domains: [{
           AppInputName: '',
           AppInputName: '',
           AppInputType: '',
           AppInputType: '',
-          AppInputSite: ''
+          AppInputSite: '',
+          AppInputValue: ''
         }]
         }]
       },
       },
       typeFlag: false
       typeFlag: false
@@ -196,13 +200,15 @@ export default {
         this.dynamicValidateForm.domains.push({
         this.dynamicValidateForm.domains.push({
           AppInputName: '',
           AppInputName: '',
           AppInputType: 'string',
           AppInputType: 'string',
-          AppInputSite: ''
+          AppInputSite: '',
+          AppInputValue: ''
         });
         });
       } else {
       } else {
         this.dynamicValidateForm.domains.push({
         this.dynamicValidateForm.domains.push({
           AppInputName: '',
           AppInputName: '',
           AppInputType: '',
           AppInputType: '',
-          AppInputSite: ''
+          AppInputSite: '',
+          AppInputValue: ''
         });
         });
       }
       }
     },
     },
@@ -282,7 +288,7 @@ export default {
     }
     }
   }
   }
   .addApp-upload {
   .addApp-upload {
-    width: 767px;
+    width: 500px;
     background: #ffffff;
     background: #ffffff;
     box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
     box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
     border-radius: 16px;
     border-radius: 16px;

+ 7 - 2
src/views/authorityManagement/components/authorityAppEdit.vue

@@ -67,6 +67,9 @@
                 <el-form-item label="入参名称" :prop="'domains.' + index + '.name'">
                 <el-form-item label="入参名称" :prop="'domains.' + index + '.name'">
                   <el-input placeholder="请输入最大64位参数名称" maxlength="64" v-model.trim="domain.AppInputName"></el-input>
                   <el-input placeholder="请输入最大64位参数名称" maxlength="64" v-model.trim="domain.AppInputName"></el-input>
                 </el-form-item>
                 </el-form-item>
+                <el-form-item label="入参值" :prop="'domains.' + index + '.value'">
+                  <el-input placeholder="请输入最大64位参数值" maxlength="64" v-model.trim="domain.AppInputValue"></el-input>
+                </el-form-item>
                 <el-form-item label="入参类型" :prop="'domains.' + index + '.type'">
                 <el-form-item label="入参类型" :prop="'domains.' + index + '.type'">
                   <el-select v-model="domain.AppInputType" :disabled="typeFlag" placeholder="参数类型">
                   <el-select v-model="domain.AppInputType" :disabled="typeFlag" placeholder="参数类型">
                     <el-option label="string" value="string"></el-option>
                     <el-option label="string" value="string"></el-option>
@@ -150,7 +153,8 @@ export default {
         domains: [{
         domains: [{
           AppInputName: '',
           AppInputName: '',
           AppInputType: '',
           AppInputType: '',
-          AppInputSite: ''
+          AppInputSite: '',
+          AppInputValue: ''
         }]
         }]
       },
       },
       typeFlag: false
       typeFlag: false
@@ -272,6 +276,7 @@ export default {
         AppInputName: '',
         AppInputName: '',
         AppInputType: '',
         AppInputType: '',
         AppInputSite: '',
         AppInputSite: '',
+        AppInputValue: '',
         AppId: this.AppId
         AppId: this.AppId
       });
       });
     },
     },
@@ -351,7 +356,7 @@ export default {
     }
     }
   }
   }
   .addApp-upload {
   .addApp-upload {
-    width: 767px;
+    width: 500px;
     background: #ffffff;
     background: #ffffff;
     box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
     box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
     border-radius: 16px;
     border-radius: 16px;

+ 14 - 39
src/views/dashboard/index.vue

@@ -10,12 +10,7 @@
   <div class="dashboard">
   <div class="dashboard">
     <!--分类信息-->
     <!--分类信息-->
     <div class="flex-wrap tu-fl">
     <div class="flex-wrap tu-fl">
-      <div
-        v-for="(item, index) in flList"
-        :key="index"
-        @click="toApp(item)"
-        class="flex fl-list"
-      >
+      <div v-for="(item, index) in flList" :key="index" @click="toApp(item)" class="flex fl-list">
         <div class="fl-list-img">
         <div class="fl-list-img">
           <template v-if="item.logo">
           <template v-if="item.logo">
             <img :alt="item.appName" :src="item.logo" />
             <img :alt="item.appName" :src="item.logo" />
@@ -37,37 +32,17 @@
       </div>
       </div>
       <div class="search flex-wrap">
       <div class="search flex-wrap">
         <div class="search-input flex-wrap r24">
         <div class="search-input flex-wrap r24">
-          <el-select
-            :style="inputFlag ? 'width:150px;' : 'width:200px;'"
-            @change="handleChange"
-            v-model="select"
-            placeholder="功能菜单"
-            @keyup.enter.native="searchByLink"
-          >
-            <el-option
-              v-for="(item, index) in routes"
-              :key="index"
-              :label="item.meta.title"
-              :value="item.path"
-            ></el-option>
+          <el-select :style="inputFlag ? 'width:150px;' : 'width:200px;'" @change="handleChange" v-model="select" placeholder="功能菜单">
+            <el-option v-for="(item, index) in routes" :key="index" :label="item.meta.title" :value="item.path"></el-option>
           </el-select>
           </el-select>
-          <el-input
-            v-show="inputFlag"
-            :style="inputFlag ? 'width:330px;' : 'width:280px;'"
-            @keyup.enter.native="searchByLink"
-            placeholder="如需搜索,请输入"
-            v-model.trim="input"
-            class="input-with-select"
-          >
+          <el-input v-show="inputFlag" :style="inputFlag ? 'width:330px;' : 'width:280px;'" @keyup.enter.native="searchByLink" placeholder="如需搜索,请输入" v-model.trim="input" class="input-with-select">
           </el-input>
           </el-input>
           <!-- <el-select v-model="select" slot="prepend" placeholder="功能菜单">
           <!-- <el-select v-model="select" slot="prepend" placeholder="功能菜单">
             <el-option v-for="(item,index) in selectArr" :key="index" :label="item.name" :value="item.value"></el-option>
             <el-option v-for="(item,index) in selectArr" :key="index" :label="item.name" :value="item.value"></el-option>
           </el-select> -->
           </el-select> -->
         </div>
         </div>
         <div class="search-btn">
         <div class="search-btn">
-          <el-button @click="searchByLink" class="btn" type="primary"
-            >进入</el-button
-          >
+          <el-button @click="searchByLink" class="btn" type="primary">进入</el-button>
         </div>
         </div>
       </div>
       </div>
     </div>
     </div>
@@ -87,7 +62,7 @@ import axios from "axios";
 export default {
 export default {
   name: "Dashboard",
   name: "Dashboard",
   components: { Analysis, Journal },
   components: { Analysis, Journal },
-  data() {
+  data () {
     return {
     return {
       roleFlag: true,
       roleFlag: true,
       inputFlag: false,
       inputFlag: false,
@@ -151,7 +126,7 @@ export default {
   },
   },
   computed: {
   computed: {
     ...mapGetters(["systemSet", "UserType", "UserId"]),
     ...mapGetters(["systemSet", "UserType", "UserId"]),
-    routes() {
+    routes () {
       const arrs = this.$store.getters.permission_routes;
       const arrs = this.$store.getters.permission_routes;
       const datas = arrs.filter(
       const datas = arrs.filter(
         (item) => item.meta && item.meta.title != "首页"
         (item) => item.meta && item.meta.title != "首页"
@@ -159,20 +134,20 @@ export default {
       return datas;
       return datas;
     },
     },
   },
   },
-  mounted() {
+  mounted () {
     this.isPower();
     this.isPower();
     this.getOthSystem();
     this.getOthSystem();
   },
   },
   methods: {
   methods: {
     //搜索-跳转
     //搜索-跳转
-    searchByLink() {
+    searchByLink () {
       const url = this.select;
       const url = this.select;
       this.input
       this.input
         ? this.$router.push({ path: url, query: { keyWords: this.input } })
         ? this.$router.push({ path: url, query: { keyWords: this.input } })
         : this.$router.push(url);
         : this.$router.push(url);
     },
     },
     //获取接入系统信息
     //获取接入系统信息
-    async getOthSystem() {
+    async getOthSystem () {
       try {
       try {
         const result = await GetOthSystem({
         const result = await GetOthSystem({
           userId: Number(this.UserId),
           userId: Number(this.UserId),
@@ -188,7 +163,7 @@ export default {
       }
       }
     },
     },
     //判断页面展示权限
     //判断页面展示权限
-    isPower() {
+    isPower () {
       const obj =
       const obj =
         typeof this.systemSet === "string"
         typeof this.systemSet === "string"
           ? JSON.parse(this.systemSet)
           ? JSON.parse(this.systemSet)
@@ -216,14 +191,14 @@ export default {
         });
         });
       }
       }
     },
     },
-    handleChange(val) {
+    handleChange (val) {
       if (val !== "/systemManagement") {
       if (val !== "/systemManagement") {
         this.inputFlag = true;
         this.inputFlag = true;
       } else {
       } else {
         this.inputFlag = false;
         this.inputFlag = false;
       }
       }
     },
     },
-    paramsType(t, num, url, name) {
+    paramsType (t, num, url, name) {
       let type = "application/json";
       let type = "application/json";
       let result = "";
       let result = "";
       if (t == "json") {
       if (t == "json") {
@@ -265,7 +240,7 @@ export default {
         });
         });
     },
     },
     //应用跳转
     //应用跳转
-    toApp(item) {
+    toApp (item) {
       if (item.appUrl) {
       if (item.appUrl) {
         window.open(item.appUrl);
         window.open(item.appUrl);
         const datas = item.inputs;
         const datas = item.inputs;

+ 1 - 1
src/views/staffManagement/compontents/staffEdit.vue

@@ -585,7 +585,7 @@ export default {
           OfficerLoginName: this.form.loginName,
           OfficerLoginName: this.form.loginName,
           OfficerPwd: this.form.loginPwd,
           OfficerPwd: this.form.loginPwd,
           Phone: this.form.phone,
           Phone: this.form.phone,
-          RoleList: checks.length ? checks : [],
+          RoleList: GroupIds.length ? checks : [],
           AuthList: this.openRole ? [] : datas,
           AuthList: this.openRole ? [] : datas,
           TacList: this.loginCheckBoxs,
           TacList: this.loginCheckBoxs,
           GroupList: GroupIds.length ? GroupIds : [],
           GroupList: GroupIds.length ? GroupIds : [],