From 80e121b4fb8a193c7c7fba4c787524460d307db7 Mon Sep 17 00:00:00 2001
From: luobisheng <727299681@qq.com>
Date: 星期二, 29 十一月 2022 17:05:00 +0800
Subject: [PATCH] 上传处置类型修改
---
src/views/systemSetting/platform/otherInterface/index.vue | 224 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 221 insertions(+), 3 deletions(-)
diff --git a/src/views/systemSetting/platform/otherInterface/index.vue b/src/views/systemSetting/platform/otherInterface/index.vue
index 8b407a0..376e806 100644
--- a/src/views/systemSetting/platform/otherInterface/index.vue
+++ b/src/views/systemSetting/platform/otherInterface/index.vue
@@ -1,5 +1,223 @@
<template>
- <div>
-
+ <div class="otherInterface">
+ <header>
+ <div class="headerTitle">绯荤粺璁剧疆 >> 闂ㄦ埛绠$悊 > 绗笁鏂瑰簲鐢ㄦ帴鍙g鐞�</div>
+ <div class="addInterface">
+ <el-button class="add button-addition" @click="handleAdd">娣诲姞绗笁鏂规帴鍙�</el-button>
+ </div>
+ </header>
+ <main>
+ <div class="mainContent">
+ <!-- @selection-change="handleSelectionChange" -->
+ <!-- 鏁版嵁娓叉煋 -->
+ <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
+ :header-cell-style="{background:'#06122c','font-size':'12px',color:'#4b9bb7','font-weight':'650','line-height':'45px'}"
+ :row-class-name="tableRowClassName">
+ <el-table-column type="selection" width="55">
+ </el-table-column>
+ <el-table-column label="搴旂敤鍚嶇О" prop="applicationName" min-width="10">
+ </el-table-column>
+ <el-table-column prop="applicationType" label="搴旂敤绫诲瀷" min-width="10">
+ </el-table-column>
+ <el-table-column prop="websiteUrl" label="缃戠珯鍦板潃" min-width="10">
+ </el-table-column>
+ <el-table-column prop="description" label="搴旂敤鎻忚堪" min-width="10">
+ </el-table-column>
+ <el-table-column label="鎿嶄綔" min-width="10">
+ <template slot-scope="scope">
+ <span @click="handleView(scope.row)">鏌ョ湅</span>
+ <span class="line">|</span>
+ <span @click="handleDelete(scope.row)">鍒犻櫎</span>
+ </template>
+ </el-table-column>
+ </el-table>
+ <!-- 鍒嗛〉 -->
+ <!-- <div class="pagination">
+ <el-pagination background :current-page="currentPage" layout="prev, pager, next" :total="totalNum"
+ :page-size="pageSize" @current-change="changeCurrentPage" @prev-click="handlePrev"
+ @next-click="handleNext">
+ </el-pagination>
+ </div> -->
+ </div>
+ </main>
+ <footer>
+ <!-- 鍒涘缓寮圭獥 -->
+ <el-dialog :visible.sync="dialogCreate" title="鏂板绗笁鏂规帴鍙�" width="45%" v-if="dialogCreate"
+ :before-close="handleClose">
+ <createInterface />
+ </el-dialog>
+ <!-- 鏌ョ湅寮圭獥 -->
+ <el-dialog :visible.sync="dialogUpdate" :title="updateFlag ?'淇敼绗笁鏂规帴鍙�':'鏌ョ湅绗笁鏂规帴鍙�'" width="45%" v-if="dialogUpdate"
+ :before-close="handleClose">
+ <viewInterface :updateFlag="updateFlag" :userInfo=userInfo />
+ </el-dialog>
+ </footer>
</div>
-</template>
\ No newline at end of file
+</template>
+<script>
+import createInterface from './components/createInterface';
+import viewInterface from './components/viewInterface'
+export default {
+ components: {
+ createInterface,viewInterface
+ },
+ data() {
+ return {
+ tableData: [],
+ search: "",
+ dialogCreate: false,
+ dialogUpdate: false,
+ updateFlag: false,
+ userInfo: '',
+ // totalNum: 200,
+ // pageSize: 10,
+ // currentPage: 1,
+ }
+ },
+ created() {
+ this.getUserList();
+ },
+ methods: {
+ // 鑾峰彇鎺ュ彛鍒楄〃
+ getUserList() {
+ const that = this;
+ // const { currentPage, pageSize, search } = this;
+ this.dialogCreate = false;
+ this.$axios.get("sccg/system/portal/thirdApp/search").then(res => {
+ const { code, data } = res;
+ if (code == 200) {
+ this.tableData = data;
+ }
+ })
+ },
+ // 璁剧疆琛ㄦ牸鏂戦┈绾�
+ tableRowClassName({ row, rowIndex }) {
+ if ((rowIndex + 1) % 2 == 0) {
+ return 'warning-row';
+ } else {
+ return 'success-row';
+ }
+ return '';
+ },
+ // 鎵撳紑鏂板鐣岄潰
+ handleAdd() {
+ this.dialogCreate = true;
+ },
+ // 鍒涘缓寮圭獥鍏抽棴
+ handleClose(done) {
+ const that = this;
+ this.$confirm('纭鍏抽棴锛�')
+ .then(_ => {
+ that.dialogCreate = false;
+ done();
+ })
+ .catch(_ => { });
+ },
+ // 鍒涘缓鏌ョ湅寮圭獥
+ handleView(rowData){
+ this.userInfo = rowData;
+ this.dialogUpdate = true;
+ },
+ // 鍒犻櫎绗笁鏂规帴鍙�
+ handleDelete({id}){
+ console.log(id);
+ this.$axios.delete('sccg/system/portal/thirdApp/delete',{params:{
+ id
+ }}).then(res=>{
+ })
+ }
+ // // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
+ // changeCurrentPage(page) {
+ // this.currentPage = page;
+ // this.getUserList();
+ // },
+ // // 涓婁竴椤电偣鍑讳簨浠�
+ // handlePrev(page) {
+ // this.currentPage = page;
+ // this.getUserList();
+ // },
+ // // 涓嬩竴椤电偣鍑讳簨浠�
+ // handleNext(page) {
+ // this.currentPage = page;
+ // this.getUserList();
+ // },
+ }
+}
+</script>
+<!-- sccg/system/portal/thirdApp/search -->
+<style lang="scss" scoped>
+.otherInterface {
+ header {
+ display: flex;
+ line-height: 60px;
+ justify-content: space-between;
+ padding: 0 20px;
+ color: #4b9bb7;
+
+ &::v-deep .el-button {
+ background-color: #eb5d01;
+ border: none;
+ color: #fff;
+ border-radius: 20px;
+ }
+ }
+
+ main {
+ .mainContent {
+ .el-table {
+ color: #4b9bb7;
+
+ &::v-deep .el-table__empty-block {
+ background-color: #06122c;
+ }
+
+ &::v-deep .el-table__empty-text {
+ color: #4b9bb7;
+ }
+
+ &::v-deep .warning-row {
+ background-color: #06122c;
+ }
+
+ &::v-deep .success-row {
+ background-color: #071f39;
+ }
+ }
+ .line{
+ padding: 0 5px;
+ // margin-top: -10px;
+ }
+ }
+ }
+
+ footer {
+
+ &::v-deep .el-dialog__header,
+ &::v-deep .el-dialog__body {
+ background-color: #06122c;
+ }
+
+ &::v-deep .el-dialog__header {
+ display: flex;
+ align-items: center;
+ background-color: #fff;
+ padding: 20px;
+ line-height: 60px;
+ }
+
+ &::v-deep .el-dialog__title {
+ color: #4b9bb7;
+ }
+
+ &::v-deep .el-dialog__close {
+ width: 20px;
+ height: 20px;
+ // color: #fff;
+ }
+
+ &::v-deep .el-dialog__body {
+ padding: 0;
+ }
+ }
+}
+</style>
\ No newline at end of file
--
Gitblit v1.8.0