mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-08 18:34:46 +09:00
공지사항 삭제 기능 추가
This commit is contained in:
@@ -98,16 +98,6 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width: 10%">
|
||||
이미지셋 <br />
|
||||
<button type="button" @click="setImg">이미지추가</button>
|
||||
<button type="button" @click="testImg = ''">이미지클리어</button>
|
||||
</th>
|
||||
<td class="sender" colspan="5">
|
||||
<p v-html="testImg"></p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
@@ -133,7 +123,6 @@ export default {
|
||||
mixins: [utils_mixin, chkPattern2],
|
||||
data() {
|
||||
return {
|
||||
testImg: '',
|
||||
props: {},
|
||||
row: {},
|
||||
rsnType: [],
|
||||
@@ -177,11 +166,6 @@ export default {
|
||||
ValidationConfirmPopup,
|
||||
},
|
||||
methods: {
|
||||
setImg() {
|
||||
///%7Cefs%7Chome%7CsendMessage%7C2022%7C09%7C20%7C10%7C2022092010000168664_1.jpg
|
||||
this.testImg =
|
||||
"<img src='/api/v1/bo/homeMgt/preview/%7Cefs%7Chome%7CsendMessage%7C2022%7C09%7C20%7C10%7C2022092010000168664_1.jpg' />";
|
||||
},
|
||||
handleImageAdded(file, Editor, cursorLocation, resetUploader) {
|
||||
var fd = new FormData();
|
||||
fd.append('files', file);
|
||||
@@ -189,8 +173,9 @@ export default {
|
||||
homeMgtApi
|
||||
.getImageUrl(fd)
|
||||
.then((response) => {
|
||||
const url = '..' + response.data.data.replaceAll('\\', '/'); // Get url from response
|
||||
console.log(url);
|
||||
const url =
|
||||
'/api/v1/bo/homeMgt/preview/' +
|
||||
encodeURIComponent(response.data.data.replaceAll('\\', '/').replaceAll('/', '|')); // Get url from response
|
||||
Editor.insertEmbed(cursorLocation, 'image', url);
|
||||
resetUploader();
|
||||
})
|
||||
|
||||
@@ -188,8 +188,9 @@ export default {
|
||||
homeMgtApi
|
||||
.getImageUrl(fd)
|
||||
.then((response) => {
|
||||
const url = '..' + response.data.data.replaceAll('\\', '/'); // Get url from response
|
||||
console.log(url);
|
||||
const url =
|
||||
'/api/v1/bo/homeMgt/preview/' +
|
||||
encodeURIComponent(response.data.data.replaceAll('\\', '/').replaceAll('/', '|')); // Get url from response
|
||||
Editor.insertEmbed(cursorLocation, 'image', url);
|
||||
resetUploader();
|
||||
})
|
||||
@@ -502,7 +503,6 @@ export default {
|
||||
this.row.fileTitle = fileTitle;
|
||||
this.row.filePath = filePath;
|
||||
this.row.fileNm = fileName;
|
||||
console.log(this.row);
|
||||
homeMgtApi.fileDownload(this.row);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user