haoxuan
2023-09-07 351480c2cc022c886429192fc2893e3fc2c9877f
修改滚动条样式  开始生产增加 loading状态
3个文件已修改
74 ■■■■ 已修改文件
src/assets/style/index.scss 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/style/public.scss 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/AddIssue.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/style/index.scss
@@ -361,24 +361,9 @@
 
//滚动条样式
::-webkit-scrollbar {
  width:8px!important;
  height:8px!important;
  -webkit-appearance:none;
  background-color:#00000040;
}
::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
  background: #e1e1e1;
}
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
  // border-radius: 10px;
  background: #ffffff;
  // background:#2c60c5;
}
//表格滚动
// .el-table__body-wrapper::-webkit-scrollbar-thumb {
//   border-radius: 5px;
src/assets/style/public.scss
@@ -42,3 +42,37 @@
  font-size: 14px;
  position: relative;
}
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  width: 10px;
  /*滚动条宽度*/
  height: 10px;
  border-radius: 8px;
    /*滚动条高度*/
    -webkit-appearance:none;
    background-color:#f2f2f22a;
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  /*滚动条的背景区域的内阴影*/
  /*box-shadow:0px 1px 3px rgba(0,0,0,0.3) inset;*/
  /*滚动条的背景区域的圆角*/
  border-radius: 8px;
  /*滚动条的背景颜色*/
  background-color: #f2f2f22a;
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  /*滚动条的内阴影*/
  /*box-shadow:0px 1px 3px rgba(0,0,0,0.1) inset;*/
  /*滚动条的圆角*/
  border-radius: 8px;
  /*滚动条的背景颜色*/
  background-color:#939393;
}
src/components/AddIssue.vue
@@ -7,7 +7,7 @@
    class="add-event-dialog"
    :show-close="false"
  >
    <div class="tank-box" v-loading.fullscreen.lock="isLoading" element-loading-text="下发中,请稍后...">
    <div class="tank-box">
      <div slot="title" class="tac drawerHeader">新任务</div>
      <div class="dialog-content-box">
        <div
@@ -97,7 +97,8 @@
                  v-for="(item, index) in Arr"
                  :key="index"
                >
                  {{ item.Key }}:{{ item.Value || "" }}
                  {{ item.Key }}:{{ item.Value || "" }}
                </div>
              </div>
            </div>
@@ -159,8 +160,10 @@
            v-prevent-re-click="3000"
            @click="onSubmit()"
          >
            <i class="el-icon-loading icon-loading" v-if="isLoading"/>
            <img src="../../public/confirm1.png" />
          </div>
        </template>
      </div>
      <!-- <ErrorIssue ref="error" :messageError="messageError" @shutdown="shutdown"/> -->
@@ -305,6 +308,9 @@
            this.getCode(this.resParams);
          }
        }, 1000);
        if(this.isLoading){
          return true;
        }
        this.isLoading=true;
          sendProcessParams({ id: this.taskData.Procedure.ID }).then((res) => {
            console.log(res,'====res')
@@ -318,6 +324,9 @@
              this.resParams = res;
            }
          });
          setTimeout(()=>{
            this.isLoading=false;
          },30000)
      }
    },
    getCode(res) {
@@ -434,9 +443,17 @@
  height: auto;
  float: left;
  display: inline-block;
  position:relative;
  img {
    width: 100%;
  }
  .icon-loading{
    font-size:19px;
    color:#4efefa;
    position:absolute;
    line-height:2.7;
    left:18%;
  }
  &:nth-of-type(1) {
    margin-right: 30px;
    margin-left: 110px;