|
@@ -6,7 +6,9 @@
|
|
|
<el-col :span="6"> <div :id="'picker'+upId" class="text_color" >选择文件</div> </el-col> -->
|
|
|
<!-- <el-button :id="'picker'+upId"> {{name}} </el-button> -->
|
|
|
<div class="btntext upname wenjian" > {{ gfname}}</div>
|
|
|
- <div class="btntext upname" :id="'picker'+upId">{{name}}</div>
|
|
|
+ <div class="btntext upname" :id="'picker'+upId" style="width:28px;height:24px;">
|
|
|
+ <img :src="imgSrc" alt="upload icon" class="custom-icon"/>
|
|
|
+ </div>
|
|
|
</el-row>
|
|
|
|
|
|
<el-row v-for="(fileObj,key) in files" :key="key" class="disflex">
|
|
@@ -23,7 +25,7 @@
|
|
|
</template>
|
|
|
<script setup>
|
|
|
import $ from 'jquery' ;
|
|
|
-import WebUploader from 'webuploader';
|
|
|
+// import WebUploader from 'webuploader';
|
|
|
import store from "@/store";
|
|
|
import { request, uploadFile } from "@/utils/request";
|
|
|
import { ElMessage, ElButton, ElDialog } from "element-plus";
|
|
@@ -36,13 +38,14 @@ import {
|
|
|
Star,
|
|
|
} from '@element-plus/icons-vue'
|
|
|
const props = defineProps({
|
|
|
- projectId: Number,
|
|
|
+ projectId: Number,
|
|
|
solverType: String,
|
|
|
accept:String,
|
|
|
upId:String,
|
|
|
name:String,
|
|
|
namelist:Array,//文件名的集合
|
|
|
- gfname:String
|
|
|
+ gfname:String,
|
|
|
+ imgSrc:String, // 按钮logo
|
|
|
});
|
|
|
let emit = defineEmits(['Gassaddgfid', 'Gassaddbfid'])
|
|
|
let runupboolen=ref(true);
|
|
@@ -319,4 +322,10 @@ color: #fff;
|
|
|
.webuploader-container .el-icon{
|
|
|
color: #fff;
|
|
|
}
|
|
|
+
|
|
|
+.custom-icon {
|
|
|
+ width: 100%;
|
|
|
+ height: auto;
|
|
|
+ display: block;
|
|
|
+}
|
|
|
</style>
|