| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-06-16 00:08:37 |
| | | * @LastEditTime: 2024-09-26 15:25:23 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | <el-icon><Plus /></el-icon> |
| | | </el-upload> |
| | | <div v-for="(item1,index1) in item.children" class="imgStyle"> |
| | | <img :src="'http://120.46.212.231:19000/visual/' + item1.link" alt=""> |
| | | <img :src="hostname + '/visual/' + item1.link" alt=""> |
| | | <div class="img-edit"> |
| | | <el-icon @click="viewUrl(item1)"><CirclePlus /></el-icon> |
| | | <el-icon @click="delUrl(item1)"><Delete /></el-icon> |
| | |
| | | dialogVisible: false, |
| | | latticeList: [], |
| | | ImageUrlList: [], |
| | | myHeader: {} |
| | | myHeader: {}, |
| | | hostname: "" |
| | | } |
| | | }, |
| | | created(){ |
| | |
| | | }, |
| | | mounted(){ |
| | | this.getTreeList(); |
| | | //获取地址 |
| | | this.$HTTP.get(`/api/blade-resource/oss/default`).then(res=> { |
| | | if(res.success) { |
| | | this.hostname = res.data; |
| | | }else { |
| | | this.$message.error(res.msg); |
| | | } |
| | | }) |
| | | }, |
| | | components: { |
| | | ...ElementPlusIconsVue |
| | |
| | | methods: { |
| | | viewUrl(item1) { |
| | | this.dialogVisible = true; |
| | | this.dialogImageUrl = "http://120.46.212.231:19000/visual/" + item1.link; |
| | | this.dialogImageUrl = `${this.hostname}/visual/${item1.link}`; |
| | | }, |
| | | delUrl(item1) { |
| | | this.$confirm(`删除`, '', { |