ソースを参照

学校-策略模板列表

gzb
wangzhonglu 10ヶ月前
コミット
a0c8715d51

+ 32
- 0
src/api/stPad.js ファイルの表示

@@ -0,0 +1,32 @@
1
+import { setRequest } from "@/utils/httpRequest";
2
+
3
+/**
4
+ * 6.1.1 平板策略-公共策略列表
5
+ */
6
+export const stPad_list = (data) => setRequest("stPad/list", data);
7
+/**
8
+ * 6.1.2 平板策略-新增
9
+ */
10
+export const stPad_add = (data) => setRequest("stPad/add", data);
11
+/**
12
+ * 6.1.3 平板策略-更新
13
+ */
14
+export const stPad_edit = (data) => setRequest("stPad/edit", data);
15
+/**
16
+ * 6.1.4 平板策略-删除
17
+ */
18
+export const stPad_delete = (data) => setRequest("stPad/delete", data);
19
+/**
20
+ * 6.1.5 平板策略-详情
21
+ */
22
+export const stPad_detail = (data) => setRequest("stPad/detail", data);
23
+/**
24
+ * 6.1.6 平板策略-启用
25
+ */
26
+export const stPad_edit_enable = (data) =>
27
+  setRequest("stPad/edit_enable", data);
28
+/**
29
+ * 6.1.7 平板策略-禁用
30
+ */
31
+export const stPad_edit_unenable = (data) =>
32
+  setRequest("stPad/edit_unenable", data);

+ 25
- 1
src/views/schoolSection/applicationManage/greenBrowser.vue ファイルの表示

@@ -10,7 +10,15 @@
10 10
           style="width: 180px"
11 11
         />
12 12
       </div>
13
-      <Button type="primary" class="primary_btn" @click="toAdd()">新建</Button>
13
+      <div class="search_right">
14
+        <div class="download_btn">
15
+          <Icon type="md-download" />
16
+          <div>下载浏览器</div>
17
+        </div>
18
+        <Button type="primary" class="primary_btn" @click="toAdd()"
19
+          >新建</Button
20
+        >
21
+      </div>
14 22
     </div>
15 23
     <div class="table_wrap">
16 24
       <Table :columns="columns" :data="searchForm.list">
@@ -277,5 +285,21 @@ export default {
277 285
     justify-content: flex-start;
278 286
     align-items: center;
279 287
   }
288
+  .search_right {
289
+    display: flex;
290
+    justify-content: flex-start;
291
+    align-items: center;
292
+    .download_btn {
293
+      display: flex;
294
+      justify-content: flex-start;
295
+      align-items: center;
296
+      margin-right: 16px;
297
+      color: #95abdf;
298
+      cursor: pointer;
299
+      &:hover {
300
+        color: #339dff;
301
+      }
302
+    }
303
+  }
280 304
 }
281 305
 </style>

+ 1
- 1
src/views/schoolSection/networkManage/whitelist.vue ファイルの表示

@@ -3,7 +3,7 @@
3 3
     <div class="search_header">
4 4
       <div class="search_left">
5 5
         <Input
6
-          v-model="searchForm.aname"
6
+          v-model="searchForm.whiteName"
7 7
           placeholder="请输入名称"
8 8
           search
9 9
           @on-search="searchList()"

+ 1
- 1
src/views/schoolSection/networkManage/whitelistLibrary.vue ファイルの表示

@@ -3,7 +3,7 @@
3 3
     <div class="search_header">
4 4
       <div class="search_left">
5 5
         <Input
6
-          v-model="searchForm.aname"
6
+          v-model="searchForm.name"
7 7
           placeholder="请输入名称"
8 8
           search
9 9
           @on-search="searchList()"

+ 196
- 4
src/views/schoolSection/strategy/strategyTemplate.vue ファイルの表示

@@ -1,14 +1,206 @@
1 1
 <template>
2
-  <div class="main_root"></div>
2
+  <div class="main_root">
3
+    <div class="search_header">
4
+      <div class="search_left">
5
+        <Input
6
+          v-model="searchForm.name"
7
+          placeholder="请输入名称"
8
+          search
9
+          @on-search="searchList()"
10
+          style="width: 150px"
11
+        />
12
+      </div>
13
+      <Button type="primary" class="primary_btn" @click="toAdd()">新建</Button>
14
+    </div>
15
+    <div class="table_wrap">
16
+      <Table :columns="columns" :data="searchForm.list">
17
+        <template slot-scope="{ row }" slot="actionSlot">
18
+          <div class="action_list">
19
+            <div @click="toView(row)">查看</div>
20
+            <div @click="toEdit(row)">编辑</div>
21
+            <div class="action_del" @click="toDel(row)">删除</div>
22
+            <div @click="toEmpower(row)">授权</div>
23
+          </div>
24
+        </template>
25
+      </Table>
26
+    </div>
27
+    <div class="page_wrap">
28
+      <Page
29
+        :transfer="true"
30
+        :total="searchForm.total"
31
+        :current="searchForm.page"
32
+        :page-size="searchForm.size"
33
+        :page-size-opts="[10, 20, 40, 60]"
34
+        @on-change="pageChange"
35
+        @on-page-size-change="pageSizeChange"
36
+        show-total
37
+        show-sizer
38
+      ></Page>
39
+    </div>
40
+  </div>
3 41
 </template>
4 42
 
5 43
 <script>
44
+// import { stPad_list } from "@/api/stPad";
6 45
 export default {
7 46
   data() {
8
-    return {};
47
+    return {
48
+      searchForm: {
49
+        name: "",
50
+        page: 1,
51
+        size: 10,
52
+        list: [],
53
+        total: 0
54
+      },
55
+      rules: {
56
+        name: [
57
+          {
58
+            required: true,
59
+            message: "请输入名称",
60
+            trigger: "change"
61
+          }
62
+        ]
63
+      },
64
+      columns: [
65
+        {
66
+          title: "序号",
67
+          align: "center",
68
+          width: 70,
69
+          render: (h, params) => {
70
+            return h(
71
+              "span",
72
+              params.index +
73
+                (this.searchForm.page - 1) * this.searchForm.size +
74
+                1
75
+            );
76
+          }
77
+        },
78
+        {
79
+          title: "策略名称",
80
+          key: "name",
81
+          align: "center"
82
+        },
83
+        {
84
+          title: "操作人",
85
+          key: "updatename",
86
+          width: 140,
87
+          align: "center"
88
+        },
89
+        {
90
+          title: "操作时间",
91
+          key: "updatetime",
92
+          width: 190,
93
+          align: "center"
94
+        },
95
+        {
96
+          title: "操作",
97
+          slot: "actionSlot",
98
+          width: 200,
99
+          align: "center"
100
+        }
101
+      ]
102
+    };
9 103
   },
10
-  methods: {}
104
+  created() {
105
+    this.searchList();
106
+  },
107
+  methods: {
108
+    // 搜索
109
+    searchList() {
110
+      this.searchForm.page = 1;
111
+      this.getList();
112
+    },
113
+    // 页码改变
114
+    pageChange(page) {
115
+      this.searchForm.page = page;
116
+      this.getList();
117
+    },
118
+    // 每页显示数量改变
119
+    pageSizeChange(size) {
120
+      this.searchForm.size = size;
121
+      this.searchForm.page = 1;
122
+      this.getList();
123
+    },
124
+    // 获取列表
125
+    getList() {},
126
+    // 新建
127
+    toAdd() {},
128
+    // 保存新建
129
+    saveAddInfo() {},
130
+    // 查看
131
+    toView() {},
132
+    // 编辑
133
+    toEdit() {},
134
+    // 删除
135
+    toDel() {
136
+      this.$Modal.confirm({
137
+        title: "提示",
138
+        content: `您确定删除选中数据吗?`,
139
+        onOk: () => {},
140
+        onCancel: () => {}
141
+      });
142
+    },
143
+    toEmpower() {}
144
+  }
11 145
 };
12 146
 </script>
13 147
 
14
-<style lang="less" scoped></style>
148
+<style lang="less" scoped>
149
+.search_header {
150
+  display: flex;
151
+  justify-content: space-between;
152
+  align-items: center;
153
+  margin: 16px 16px;
154
+  .search_left {
155
+    display: flex;
156
+    justify-content: flex-start;
157
+    align-items: center;
158
+  }
159
+}
160
+.view_title {
161
+  display: flex;
162
+  justify-content: center;
163
+  align-items: center;
164
+  margin-bottom: 16px;
165
+  font-size: 18px;
166
+  font-weight: bold;
167
+  text-align: center;
168
+  .public {
169
+    margin-left: 10px;
170
+    padding: 0 10px;
171
+    line-height: 20px;
172
+    color: #fff;
173
+    font-weight: normal;
174
+    font-size: 12px;
175
+    border-radius: 4px;
176
+    background: #52c41a;
177
+  }
178
+}
179
+.name_slot {
180
+  display: flex;
181
+  justify-content: center;
182
+  align-items: center;
183
+  .name_content {
184
+    max-width: calc(100% - 38px);
185
+    overflow: hidden;
186
+    text-overflow: ellipsis;
187
+    white-space: nowrap;
188
+  }
189
+  .public_tag {
190
+    margin-left: 4px;
191
+    width: 32px;
192
+    text-align: center;
193
+    color: #fff;
194
+    line-height: 1.6;
195
+    font-size: 12px;
196
+    border-radius: 5px;
197
+    background-color: #7854f6;
198
+  }
199
+}
200
+.white_address {
201
+  max-width: 100%;
202
+  overflow: hidden;
203
+  text-overflow: ellipsis;
204
+  white-space: nowrap;
205
+}
206
+</style>

読み込み中…
キャンセル
保存