|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="upload_Link">
|
|
|
- <span><b>经销商</b></span>
|
|
|
- <span><b>针对论坛及其他平台链接上传</b></span>
|
|
|
+ <!-- <span><b>经销商</b></span> -->
|
|
|
+ <span>针对论坛及其他平台链接上传</span>
|
|
|
<div class="contentHead">
|
|
|
<span>上传平台</span>
|
|
|
<select name="" id="">
|
|
|
@@ -60,37 +60,15 @@
|
|
|
{{ obj.articleLink }}
|
|
|
</td>
|
|
|
<td class="operationStyle">
|
|
|
- <span @click="toggleModal">编辑</span>
|
|
|
- <span
|
|
|
- @click="
|
|
|
- toggleModal2();
|
|
|
- nowIndex = index;
|
|
|
- "
|
|
|
- >删除</span
|
|
|
- >
|
|
|
+ <span @click="toggleModal(index)">编辑</span>
|
|
|
+ <span @click="toggleModal2(index)">删除</span>
|
|
|
<!-- 弹窗: 确定删除? -->
|
|
|
- <div class="modal-backdrop" v-show="showModal2">
|
|
|
- <div class="modal">
|
|
|
- <div class="modal-body">
|
|
|
- <div class="bodyRow">确定删除?</div>
|
|
|
- </div>
|
|
|
- <div class="modal-footer">
|
|
|
- <button
|
|
|
- type="button"
|
|
|
- class="btn-confirm"
|
|
|
- @click="
|
|
|
- toDel(nowIndex);
|
|
|
- closeme2();
|
|
|
- "
|
|
|
- >
|
|
|
- 确定
|
|
|
- </button>
|
|
|
- <button type="button" class="btn-close" @click="closeme2">
|
|
|
- 取消
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <deleteModal
|
|
|
+ @dataDel="toDel"
|
|
|
+ @hide_modal="closeme2"
|
|
|
+ :showModalFlag="showModal2"
|
|
|
+ :chooseItemIndex="nowIndex"
|
|
|
+ ></deleteModal>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
@@ -109,9 +87,9 @@
|
|
|
</div>
|
|
|
<div class="pageBottom">
|
|
|
<div class="fileOperation">
|
|
|
- <span class="operationStyle">导入模板</span>
|
|
|
+ <span class="operationStyle xiahuaxian">导入模板</span>
|
|
|
<button @click="toggleModal3()">导入</button>
|
|
|
- <button>导出</button>
|
|
|
+ <button @click="toggleModal4()">导出</button>
|
|
|
</div>
|
|
|
<TablePage
|
|
|
:currentPage="currentPage"
|
|
|
@@ -145,7 +123,7 @@
|
|
|
<div class="bodyRow">资料名称无法匹配,请修改后重新导入</div>
|
|
|
<div class="bodyRow">成功{{ 1 }}条,失败{{ 1 }}条</div>
|
|
|
</div>
|
|
|
- <div class="modal-footer" style="position: relative; top: 95px;">
|
|
|
+ <div class="modal-footer" style="position: relative; top: 95px">
|
|
|
<button type="button" class="btn-confirm" @click="closeme4()">
|
|
|
确定
|
|
|
</button>
|
|
|
@@ -161,6 +139,7 @@
|
|
|
<script>
|
|
|
import Modal from "../../components/Modal";
|
|
|
import TablePage from "../../components/TablePage";
|
|
|
+import deleteModal from "../data/components/UploadLinkModalDelete";
|
|
|
export default {
|
|
|
props: {
|
|
|
isManufacturer: {
|
|
|
@@ -171,15 +150,17 @@ export default {
|
|
|
components: {
|
|
|
Modal,
|
|
|
TablePage,
|
|
|
+ deleteModal,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ nowIndex: 0,
|
|
|
+ /* modal */
|
|
|
feedbackTimeLimit: 6,
|
|
|
showModal: false,
|
|
|
showModal2: false,
|
|
|
showModal3: false,
|
|
|
showModal4: false,
|
|
|
- sonConsfirmFlag: false,
|
|
|
// 表格配置
|
|
|
sum: 240, // 一共有多少条数据
|
|
|
pageSize: 20, // 每页展示的数据
|
|
|
@@ -268,6 +249,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
],
|
|
|
+ modalData: {}, //17:44
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -284,14 +266,19 @@ export default {
|
|
|
alert("展示详情");
|
|
|
},
|
|
|
/*toggleModal:点击编辑后弹窗; toggleModal2:点击删除后弹窗; toggleModal3:点击导入后弹窗; */
|
|
|
- toggleModal: function () {
|
|
|
+ toggleModal: function (i) {
|
|
|
this.showModal = !this.showModal;
|
|
|
+ this.modalData = this.tableData[i];
|
|
|
+ console.log("INtoggleModal", this.modalData);
|
|
|
},
|
|
|
closeme: function () {
|
|
|
this.showModal = !this.showModal;
|
|
|
},
|
|
|
- toggleModal2: function () {
|
|
|
+ toggleModal2: function (i) {
|
|
|
this.showModal2 = !this.showModal2;
|
|
|
+ this.nowIndex = i;
|
|
|
+ this.modalData = this.tableData[i];
|
|
|
+ console.log("INtoggleModal2", this.modalData, this.nowIndex);
|
|
|
},
|
|
|
closeme2: function () {
|
|
|
this.showModal2 = !this.showModal2;
|
|
|
@@ -320,8 +307,7 @@ export default {
|
|
|
(this.username = ""), (this.age = "");
|
|
|
}, */
|
|
|
toDel: function (n) {
|
|
|
- console.log("inToDel:", n, this.sonConsfirmFlag);
|
|
|
- // if (this.sonConsfirmFlag) {
|
|
|
+ console.log("inToDel:", n);
|
|
|
//清空数据
|
|
|
if (n == -2) {
|
|
|
this.tableData = "";
|
|
|
@@ -334,13 +320,8 @@ export default {
|
|
|
obj[key] = "";
|
|
|
});
|
|
|
}
|
|
|
- // }
|
|
|
- // this.sonConsfirmFlag = false;
|
|
|
+ this.showModal2 = !this.showModal2;
|
|
|
},
|
|
|
- /* toDel2: function (flag) {
|
|
|
- this.sonConsfirmFlag = flag;
|
|
|
- console.log("inToDel2:", this.sonConsfirmFlag);
|
|
|
- }, */
|
|
|
getIndex: function (index) {
|
|
|
console.log("inGetIndex", index);
|
|
|
},
|
|
|
@@ -404,7 +385,7 @@ export default {
|
|
|
.table_gray {
|
|
|
background-color: #00549f;
|
|
|
}
|
|
|
-.tableBox table{
|
|
|
+.tableBox table {
|
|
|
border-collapse: collapse;
|
|
|
border: 0px;
|
|
|
}
|
|
|
@@ -478,6 +459,9 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
+.xiahuaxian{
|
|
|
+ text-decoration: underline;
|
|
|
+}
|
|
|
.operationStyle span {
|
|
|
color: #0000ff;
|
|
|
}
|
|
|
@@ -487,7 +471,7 @@ export default {
|
|
|
margin: 10px;
|
|
|
align-items: center;
|
|
|
}
|
|
|
-.fileOperation button{
|
|
|
+.fileOperation button {
|
|
|
border-radius: 4px;
|
|
|
}
|
|
|
.timeLimitStyle {
|
|
|
@@ -568,7 +552,7 @@ export default {
|
|
|
position: relative;
|
|
|
left: 266px;
|
|
|
} */
|
|
|
-.pageBottom{
|
|
|
+.pageBottom {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|