|
|
@@ -61,25 +61,18 @@
|
|
|
</td>
|
|
|
<td class="operationStyle">
|
|
|
<span @click="toggleModal">编辑</span>
|
|
|
- <!-- <span @click="toDel(index)">删除</span> -->
|
|
|
<span
|
|
|
@click="
|
|
|
toggleModal2();
|
|
|
- getIndex(index);
|
|
|
nowIndex = index;
|
|
|
"
|
|
|
>删除</span
|
|
|
>
|
|
|
- <!-- <Modal2
|
|
|
- v-show="showModal2"
|
|
|
- v-on:closeme2="closeme2"
|
|
|
- v-on:del="toDel2"
|
|
|
- :itemIndex="index"
|
|
|
- ></Modal2> -->
|
|
|
+ <!-- 弹窗: 确定删除? -->
|
|
|
<div class="modal-backdrop" v-show="showModal2">
|
|
|
<div class="modal">
|
|
|
<div class="modal-body">
|
|
|
- <div class="bodyRow">确认删除?</div>
|
|
|
+ <div class="bodyRow">确定删除?</div>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button
|
|
|
@@ -90,7 +83,7 @@
|
|
|
closeme2();
|
|
|
"
|
|
|
>
|
|
|
- 确认
|
|
|
+ 确定
|
|
|
</button>
|
|
|
<button type="button" class="btn-close" @click="closeme2">
|
|
|
取消
|
|
|
@@ -103,26 +96,71 @@
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
+ <!-- 弹窗: 编辑表格内容 -->
|
|
|
<Modal
|
|
|
v-show="showModal"
|
|
|
v-on:closeme="closeme"
|
|
|
:dataset_title="tableData.articleTitle"
|
|
|
@update="editTitle"
|
|
|
></Modal>
|
|
|
+
|
|
|
<div class="timeLimitStyle">
|
|
|
<span>仅可对上传时间为{{ feedbackTimeLimit }}个月内的资料进行反馈</span>
|
|
|
</div>
|
|
|
- <div class="fileOperation">
|
|
|
- <span class="operationStyle">导入模板</span>
|
|
|
- <button>导入</button>
|
|
|
- <button>导出</button>
|
|
|
+ <div class="pageBottom">
|
|
|
+ <div class="fileOperation">
|
|
|
+ <span class="operationStyle">导入模板</span>
|
|
|
+ <button @click="toggleModal3()">导入</button>
|
|
|
+ <button>导出</button>
|
|
|
+ </div>
|
|
|
+ <TablePage
|
|
|
+ :currentPage="currentPage"
|
|
|
+ :totalPage="totalPage"
|
|
|
+ @change_page="changePage"
|
|
|
+ @jump_page="jumpPage"
|
|
|
+ class="tablePageStyle"
|
|
|
+ ></TablePage>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 弹窗: 上传链接超过剩余限制数量,请修改后重新导入 -->
|
|
|
+ <div class="modal-backdrop" v-show="showModal3">
|
|
|
+ <div class="modal">
|
|
|
+ <div class="modal-body">
|
|
|
+ <div class="bodyRow">上传链接超过剩余限制数量,请修改后重新导入</div>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn-confirm" @click="closeme3()">
|
|
|
+ 确定
|
|
|
+ </button>
|
|
|
+ <button type="button" class="btn-close" @click="closeme3">
|
|
|
+ 取消
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 弹窗: 资料名称无法匹配,请修改后重新导入 -->
|
|
|
+ <div class="modal-backdrop" v-show="showModal4">
|
|
|
+ <div class="modal">
|
|
|
+ <div class="modal-body">
|
|
|
+ <div class="bodyRow">资料名称无法匹配,请修改后重新导入</div>
|
|
|
+ <div class="bodyRow">成功{{ 1 }}条,失败{{ 1 }}条</div>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer" style="position: relative; top: 95px;">
|
|
|
+ <button type="button" class="btn-confirm" @click="closeme4()">
|
|
|
+ 确定
|
|
|
+ </button>
|
|
|
+ <button type="button" class="btn-close" @click="closeme4">
|
|
|
+ 取消
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import Modal from "../../components/Modal";
|
|
|
-/* import Modal2 from "../../components/Modal2"; */
|
|
|
+import TablePage from "../../components/TablePage";
|
|
|
export default {
|
|
|
props: {
|
|
|
isManufacturer: {
|
|
|
@@ -132,13 +170,15 @@ export default {
|
|
|
},
|
|
|
components: {
|
|
|
Modal,
|
|
|
- /* Modal2, */
|
|
|
+ TablePage,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
feedbackTimeLimit: 6,
|
|
|
showModal: false,
|
|
|
showModal2: false,
|
|
|
+ showModal3: false,
|
|
|
+ showModal4: false,
|
|
|
sonConsfirmFlag: false,
|
|
|
// 表格配置
|
|
|
sum: 240, // 一共有多少条数据
|
|
|
@@ -230,6 +270,12 @@ export default {
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ // 表格总页数
|
|
|
+ totalPage() {
|
|
|
+ return Math.ceil(this.sum / this.pageSize);
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
EditForm: () => {
|
|
|
alert("编辑");
|
|
|
@@ -237,6 +283,7 @@ export default {
|
|
|
showDetail: () => {
|
|
|
alert("展示详情");
|
|
|
},
|
|
|
+ /*toggleModal:点击编辑后弹窗; toggleModal2:点击删除后弹窗; toggleModal3:点击导入后弹窗; */
|
|
|
toggleModal: function () {
|
|
|
this.showModal = !this.showModal;
|
|
|
},
|
|
|
@@ -249,6 +296,18 @@ export default {
|
|
|
closeme2: function () {
|
|
|
this.showModal2 = !this.showModal2;
|
|
|
},
|
|
|
+ toggleModal3: function () {
|
|
|
+ this.showModal3 = !this.showModal3;
|
|
|
+ },
|
|
|
+ closeme3: function () {
|
|
|
+ this.showModal3 = !this.showModal3;
|
|
|
+ },
|
|
|
+ toggleModal4: function () {
|
|
|
+ this.showModal4 = !this.showModal4;
|
|
|
+ },
|
|
|
+ closeme4: function () {
|
|
|
+ this.showModal4 = !this.showModal4;
|
|
|
+ },
|
|
|
editTitle: function (val) {
|
|
|
this.dataset_title = new Array(val);
|
|
|
console.log("inEditTitle:", this.dataset_title);
|
|
|
@@ -285,6 +344,29 @@ export default {
|
|
|
getIndex: function (index) {
|
|
|
console.log("inGetIndex", index);
|
|
|
},
|
|
|
+ /* 表格翻页 */
|
|
|
+ changePage: function (page) {
|
|
|
+ this.currentPage = page;
|
|
|
+ console.log(page);
|
|
|
+ },
|
|
|
+ // 点击上一页,下一页,首页,尾页
|
|
|
+ jumpPage: function (item) {
|
|
|
+ switch (item) {
|
|
|
+ case 1:
|
|
|
+ this.currentPage = 1;
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ this.currentPage = this.currentPage - 1;
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ this.currentPage = this.currentPage + 1;
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ this.currentPage = this.totalPage;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ console.log(this.currentPage);
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
@@ -300,7 +382,7 @@ export default {
|
|
|
}
|
|
|
.tableBox {
|
|
|
width: 1030px;
|
|
|
- overflow: auto;
|
|
|
+ overflow-y: hidden;
|
|
|
}
|
|
|
.tableBox {
|
|
|
text-align: center;
|
|
|
@@ -322,9 +404,14 @@ export default {
|
|
|
.table_gray {
|
|
|
background-color: #00549f;
|
|
|
}
|
|
|
-
|
|
|
+.tableBox table{
|
|
|
+ border-collapse: collapse;
|
|
|
+ border: 0px;
|
|
|
+}
|
|
|
.tableBox table td {
|
|
|
border: 1px solid #ccc;
|
|
|
+ border-right: 0px;
|
|
|
+ border-bottom: 0px;
|
|
|
text-overflow: ellipsis;
|
|
|
overflow: hidden;
|
|
|
white-space: nowrap;
|
|
|
@@ -379,6 +466,9 @@ export default {
|
|
|
display: block;
|
|
|
background-color: #fff;
|
|
|
}
|
|
|
+.bodyStyle tr > td:nth-last-child(2) {
|
|
|
+ color: #0000ff;
|
|
|
+}
|
|
|
.bodyContent td {
|
|
|
background-color: #fff;
|
|
|
height: 20px;
|
|
|
@@ -397,6 +487,9 @@ export default {
|
|
|
margin: 10px;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+.fileOperation button{
|
|
|
+ border-radius: 4px;
|
|
|
+}
|
|
|
.timeLimitStyle {
|
|
|
padding: 10px;
|
|
|
}
|
|
|
@@ -413,28 +506,46 @@ export default {
|
|
|
align-items: center;
|
|
|
}
|
|
|
.modal {
|
|
|
- background-color: #eeeeee;
|
|
|
+ background-color: #ffffff;
|
|
|
box-shadow: 2px 2px 20px 1px;
|
|
|
overflow-x: auto;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
width: 500px;
|
|
|
+ border-radius: 0px;
|
|
|
+ height: 230px;
|
|
|
}
|
|
|
.modal-footer {
|
|
|
border-top: 1px solid #eee;
|
|
|
- justify-content: center;
|
|
|
- padding: 15px;
|
|
|
+ position: relative;
|
|
|
+ top: 124px;
|
|
|
+ left: 232px;
|
|
|
+ width: 208px;
|
|
|
display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 0px;
|
|
|
+}
|
|
|
+.modal-footer button {
|
|
|
+ border-radius: 4px;
|
|
|
+ margin-left: 0px;
|
|
|
+ width: 80px;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+
|
|
|
+.modal-footer button:nth-child(1) {
|
|
|
+ background-color: #0056a0;
|
|
|
+}
|
|
|
+.modal-footer button:nth-child(2) {
|
|
|
+ background-color: #eeeeee;
|
|
|
}
|
|
|
.modal-body {
|
|
|
position: relative;
|
|
|
- padding: 20px 150px 20px 150px;
|
|
|
- /* display: flex;
|
|
|
- justify-content: flex-start; */
|
|
|
+ top: 64px;
|
|
|
+ margin-left: 50px;
|
|
|
+ padding: 0px;
|
|
|
}
|
|
|
.btn-close,
|
|
|
.btn-confirm {
|
|
|
- /* border-radius: 8px; */
|
|
|
margin-left: 16px;
|
|
|
width: 56px;
|
|
|
height: 36px;
|
|
|
@@ -449,9 +560,17 @@ export default {
|
|
|
color: #fff;
|
|
|
background-color: #2d8cf0;
|
|
|
}
|
|
|
-/* .bodyRow {
|
|
|
+.bodyRow {
|
|
|
+ font-size: 16px;
|
|
|
+ font-family: Arial;
|
|
|
+}
|
|
|
+/* .tablePageStyle{
|
|
|
+ position: relative;
|
|
|
+ left: 266px;
|
|
|
+} */
|
|
|
+.pageBottom{
|
|
|
display: flex;
|
|
|
- justify-content: flex-start;
|
|
|
+ justify-content: space-between;
|
|
|
align-items: center;
|
|
|
-} */
|
|
|
+}
|
|
|
</style>
|