Browse Source

页面修改

zbb 1 year ago
parent
commit
8951b695e8

+ 45 - 3
src/pages/index/components/announcement_function.vue

@@ -2,7 +2,7 @@
2 2
   <div class="body-wrapper">
3 3
     <div>
4 4
       <h2 style="color: white;margin-bottom: 20px;display: inline-block;width: 90%">公告信息</h2>
5
-      <el-button type="primary">发布公告</el-button>
5
+      <el-button type="primary" @click="handleAdd">发布公告</el-button>
6 6
     </div>
7 7
     <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
8 8
       <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
@@ -13,6 +13,26 @@
13 13
                      :current-page.sync="pageNum" :page-size.sync="pageSize">
14 14
       </el-pagination>
15 15
     </div>
16
+    <el-dialog
17
+      :title="title"
18
+      :visible.sync="dialogVisible"
19
+      width="50%"
20
+      custom-class="audit-dialog">
21
+      <div style="height: 100px" class="form-div">
22
+        <el-form label-position="left" label-width="80px" :model="formLabelAlign">
23
+          <el-form-item label="发布标题">
24
+            <el-input v-model="formLabelAlign.publicTitle"></el-input>
25
+          </el-form-item>
26
+          <el-form-item label="发布人">
27
+            <el-input v-model="formLabelAlign.publicPerson"></el-input>
28
+          </el-form-item>
29
+        </el-form>
30
+      </div>
31
+      <span slot="footer" class="dialog-footer">
32
+            <el-button @click="dialogVisible = false">取 消</el-button>
33
+            <el-button type="primary" @click="handleConfirm">确 定</el-button>
34
+        </span>
35
+    </el-dialog>
16 36
   </div>
17 37
 </template>
18 38
 <script>
@@ -45,7 +65,13 @@ export default {
45 65
       radio: '2',
46 66
       dialogVisible: false,
47 67
       selRow: {},
48
-      searchWords: undefined
68
+      searchWords: undefined,
69
+      formLabelAlign: {
70
+        publicTitle: '',
71
+        // publicTime: '',
72
+        publicPerson: ''
73
+      },
74
+      title: ''
49 75
     }
50 76
   },
51 77
   mounted() {
@@ -64,10 +90,17 @@ export default {
64 90
     handleCancelApply(row) {
65 91
       console.log('enter handle cancel apply')
66 92
     },
93
+    handleAdd () {
94
+      this.title = '发布公告'
95
+      this.formLabelAlign.publicTitle = ''
96
+      // this.formLabelAlign.publicTime = ''
97
+      this.formLabelAlign.publicPerson = ''
98
+      this.dialogVisible = true
99
+    },
67 100
     handleConfirm() {
68 101
       const {id} = this.selRow
69 102
       console.log('radio', this.radio)
70
-      api.applyResource({id, applyType: this.radio}).then(res => {
103
+      api.applyResource({id, applyType: this.formLabelAlign.publicTitle}).then(res => {
71 104
         if(res.success) {
72 105
           this.dialogVisible = false
73 106
           this.$message({
@@ -155,5 +188,14 @@ export default {
155 188
   .label{
156 189
     text-align: right;
157 190
   }
191
+  .form-div{
192
+    /deep/ .el-input__inner{
193
+      background: white;
194
+      height: 35px;
195
+      width: 90%;
196
+      border: 1px solid #a6a5a5;
197
+      color: black;
198
+    }
199
+  }
158 200
 }
159 201
 </style>

+ 30 - 1
src/pages/index/components/message.vue

@@ -8,7 +8,7 @@
8 8
       </el-table-column>
9 9
       <el-table-column label="操作" width="150">
10 10
       <div slot-scope="scope">
11
-        <el-button type="primary" size="mini">详情</el-button>
11
+        <el-button  @click="handleDetail(scope.row)" type="primary" size="mini">详情</el-button>
12 12
       </div>
13 13
     </el-table-column>
14 14
     </el-table>
@@ -17,6 +17,17 @@
17 17
                      :current-page.sync="pageNum" :page-size.sync="pageSize">
18 18
       </el-pagination>
19 19
     </div>
20
+    <el-dialog
21
+      title="详情"
22
+      :visible.sync="dialogVisible"
23
+      width="50%"
24
+      custom-class="audit-dialog">
25
+      <div class="form-div">
26
+        <el-input disabled v-model="selRow.title"></el-input>
27
+        <el-input type="textarea" disabled v-model="selRow.messageType"></el-input>
28
+        <el-input disabled v-model="selRow.publicTime"></el-input>
29
+      </div>
30
+    </el-dialog>
20 31
   </div>
21 32
 </template>
22 33
 <script>
@@ -68,6 +79,10 @@ export default {
68 79
     handleCancelApply(row) {
69 80
       console.log('enter handle cancel apply')
70 81
     },
82
+    handleDetail(row) {
83
+      this.selRow = row
84
+      this.dialogVisible = true
85
+    },
71 86
     handleConfirm() {
72 87
       const {id} = this.selRow
73 88
       console.log('radio', this.radio)
@@ -127,5 +142,19 @@ export default {
127 142
   .label{
128 143
     text-align: right;
129 144
   }
145
+  .form-div{
146
+    width: 90%;
147
+    /deep/ .el-input__inner{
148
+      background: white;
149
+      height: 35px;
150
+      color: black;
151
+      margin-bottom: 10px;
152
+    }
153
+    /deep/ .el-textarea.is-disabled .el-textarea__inner {
154
+      background: white;
155
+      color: black;
156
+      margin-bottom: 10px;
157
+    }
158
+  }
130 159
 }
131 160
 </style>

+ 5 - 3
src/pages/index/components/parking_fee.vue

@@ -41,7 +41,7 @@
41 41
     <el-dialog
42 42
       :title="title"
43 43
       :visible.sync="dialogVisible"
44
-      width="40%"
44
+      width="50%"
45 45
       custom-class="audit-dialog">
46 46
       <div style="height: 350px" class="form-div">
47 47
         <el-form label-position="left" label-width="80px" :model="formLabelAlign">
@@ -162,6 +162,7 @@ export default {
162 162
       this.formLabelAlign.leaveTime = row.resourceName
163 163
       this.formLabelAlign.revisePerson = row.resourceName
164 164
       this.formLabelAlign.reviseTime = row.resourceName
165
+      this.formLabelAlign=row
165 166
       this.dialogVisible = true
166 167
     },
167 168
     deleteRow (record) {
@@ -174,7 +175,7 @@ export default {
174 175
       console.log('enter handle cancel apply')
175 176
     },
176 177
     handleConfirm() {
177
-      api.applyResource({id, applyType: this.radio}).then(res => {
178
+      api.applyResource({id, applyType: this.formLabelAlign.parkRoad}).then(res => {
178 179
         if(res.success) {
179 180
           this.dialogVisible = false
180 181
           this.$message({
@@ -236,8 +237,9 @@ export default {
236 237
   }
237 238
   .form-div{
238 239
     /deep/ .el-input__inner{
240
+      background: white;
239 241
       height: 35px;
240
-      width: 80%;
242
+      width: 90%;
241 243
       border: 1px solid #a6a5a5;
242 244
       color: black;
243 245
     }

+ 14 - 14
src/pages/index/components/service_publish.vue

@@ -16,9 +16,9 @@
16 16
     <el-dialog
17 17
       :title="title"
18 18
       :visible.sync="dialogVisible"
19
-      width="60%"
19
+      width="50%"
20 20
       custom-class="audit-dialog">
21
-      <div style="height: 200px" class="form-div">
21
+      <div style="height: 100px" class="form-div">
22 22
         <el-form label-position="left" label-width="80px" :model="formLabelAlign">
23 23
           <el-form-item label="接口名称">
24 24
             <el-input v-model="formLabelAlign.interfaceName"></el-input>
@@ -26,12 +26,12 @@
26 26
           <el-form-item label="接口地址">
27 27
             <el-input v-model="formLabelAlign.interfaceAddress"></el-input>
28 28
           </el-form-item>
29
-          <el-form-item label="提交状态">
30
-            <el-input v-model="formLabelAlign.submitState"></el-input>
31
-          </el-form-item>
32
-          <el-form-item label="发布状态">
33
-            <el-input v-model="formLabelAlign.publicState"></el-input>
34
-          </el-form-item>
29
+<!--          <el-form-item label="提交状态">-->
30
+<!--            <el-input v-model="formLabelAlign.submitState"></el-input>-->
31
+<!--          </el-form-item>-->
32
+<!--          <el-form-item label="发布状态">-->
33
+<!--            <el-input v-model="formLabelAlign.publicState"></el-input>-->
34
+<!--          </el-form-item>-->
35 35
         </el-form>
36 36
       </div>
37 37
       <span slot="footer" class="dialog-footer">
@@ -79,8 +79,8 @@ export default {
79 79
       formLabelAlign: {
80 80
         interfaceName: '',
81 81
         interfaceAddress: '',
82
-        submitState: '',
83
-        publicState: ''
82
+        // submitState: '',
83
+        // publicState: ''
84 84
       },
85 85
       title: ''
86 86
     }
@@ -105,14 +105,14 @@ export default {
105 105
       this.title = '配置服务'
106 106
       this.formLabelAlign.interfaceName = ''
107 107
       this.formLabelAlign.interfaceAddress = ''
108
-      this.formLabelAlign.submitState = ''
109
-      this.formLabelAlign.publicState = ''
108
+      // this.formLabelAlign.submitState = ''
109
+      // this.formLabelAlign.publicState = ''
110 110
       this.dialogVisible = true
111 111
     },
112 112
     handleConfirm() {
113 113
       const {id} = this.selRow
114 114
       console.log('radio', this.radio)
115
-      api.applyResource({id, applyType: this.radio}).then(res => {
115
+      api.applyResource({id, applyType: this.formLabelAlign.interfaceName}).then(res => {
116 116
         if(res.success) {
117 117
           this.dialogVisible = false
118 118
           this.$message({
@@ -171,7 +171,7 @@ export default {
171 171
   .form-div{
172 172
     /deep/ .el-input__inner{
173 173
       height: 35px;
174
-      width: 80%;
174
+      width: 90%;
175 175
       border: 1px solid #a6a5a5;
176 176
       color: black;
177 177
     }

+ 43 - 3
src/pages/index/components/support.vue

@@ -2,7 +2,7 @@
2 2
   <div class="body-wrapper">
3 3
     <div>
4 4
       <h2 style="color: white;margin-bottom: 20px;display: inline-block;width: 90%">技术支持</h2>
5
-      <el-button type="primary">申请技术支持</el-button>
5
+      <el-button type="primary" @click="handleAdd">申请技术支持</el-button>
6 6
     </div>
7 7
     <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
8 8
       <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
@@ -13,6 +13,28 @@
13 13
                      :current-page.sync="pageNum" :page-size.sync="pageSize">
14 14
       </el-pagination>
15 15
     </div>
16
+    <el-dialog
17
+      :title="title"
18
+      :visible.sync="dialogVisible"
19
+      width="50%"
20
+      custom-class="audit-dialog">
21
+      <div style="height: 100px" class="form-div">
22
+        <el-form label-position="left" label-width="80px" :model="formLabelAlign">
23
+          <el-form label-position="left" label-width="80px" :model="formLabelAlign">
24
+            <el-form-item label="申请名称">
25
+              <el-input v-model="formLabelAlign.requestTitle"></el-input>
26
+            </el-form-item>
27
+            <el-form-item label="支持渠道">
28
+              <el-input v-model="formLabelAlign.supportChannel"></el-input>
29
+            </el-form-item>
30
+          </el-form>
31
+        </el-form>
32
+      </div>
33
+      <span slot="footer" class="dialog-footer">
34
+            <el-button @click="dialogVisible = false">取 消</el-button>
35
+            <el-button type="primary" @click="handleConfirm">确 定</el-button>
36
+        </span>
37
+    </el-dialog>
16 38
   </div>
17 39
 </template>
18 40
 <script>
@@ -48,7 +70,11 @@ export default {
48 70
       radio: '2',
49 71
       dialogVisible: false,
50 72
       selRow: {},
51
-      searchWords: undefined
73
+      searchWords: undefined,
74
+      formLabelAlign: {
75
+        requestTitle: '',
76
+        supportChannel: ''
77
+      },
52 78
     }
53 79
   },
54 80
   mounted() {
@@ -67,10 +93,16 @@ export default {
67 93
     handleCancelApply(row) {
68 94
       console.log('enter handle cancel apply')
69 95
     },
96
+    handleAdd () {
97
+      this.title = '技术支持申请'
98
+      this.formLabelAlign.requestTitle = ''
99
+      this.formLabelAlign.supportChannel = ''
100
+      this.dialogVisible = true
101
+    },
70 102
     handleConfirm() {
71 103
       const {id} = this.selRow
72 104
       console.log('radio', this.radio)
73
-      api.applyResource({id, applyType: this.radio}).then(res => {
105
+      api.applyResource({id, applyType: this.formLabelAlign.requestTitle}).then(res => {
74 106
         if(res.success) {
75 107
           this.dialogVisible = false
76 108
           this.$message({
@@ -126,5 +158,13 @@ export default {
126 158
   .label{
127 159
     text-align: right;
128 160
   }
161
+  .form-div{
162
+    /deep/ .el-input__inner{
163
+      height: 35px;
164
+      width: 90%;
165
+      border: 1px solid #a6a5a5;
166
+      color: black;
167
+    }
168
+  }
129 169
 }
130 170
 </style>