Browse Source

Merge remote-tracking branch 'origin/dev-security' into dev-security

liuwenxun 4 years ago
parent
commit
2c4bad5433

security-protection-platform/.aid/mock/userRights.js → security-protection-platform/.aid/mock/usermana.js


+ 8 - 0
security-protection-platform/src/api/system/index.js

@ -75,6 +75,14 @@ const api = {
75 75
      return resp
76 76
    })
77 77
  },
78
  // 获取ai任务模型下拉框列表
79
  getAiTaskModelList() {
80
    return $default.get('/sp/sysConfigAiTask/queryAiTaskModelList')
81
  },
82
  // 获取ai任务列表
83
  getAiTaskList(params) {
84
    return $default.get('/sp/sysConfigAiTask/queryPageAiTask?', params)
85
  },
78 86
  // 获取设备列表数据
79 87
  getDeviceData (data) {
80 88
    // return $http.get('/system/getDeviceData', data).catch((err) => { return err })

security-protection-platform/src/api/userRights/index.js → security-protection-platform/src/api/usermana/index.js


+ 15 - 13
security-protection-platform/src/modules/aialarm/index.vue

@ -71,7 +71,7 @@
71 71
      </t-table-column>
72 72
      <t-table-column label="处理时间" prop="processTime" width="160px">
73 73
      </t-table-column>
74
      <t-table-column label="操作">
74
      <t-table-column label="操作" width="120">
75 75
        <template slot-scope="scope">
76 76

77 77
          <a href="javascript:void(0)" size="sm" style="color:#0089D4" @click="handleClick(scope,0)">详情</a>
@ -92,10 +92,10 @@
92 92
          <div class="detail">
93 93
            <label class="detail_title">状态:</label>
94 94
            <div class="detail_content">
95
              <t-tag v-if="alarmDetailData.status==='未确认'" state="warning">未确认</t-tag>
96
              <t-tag v-if="alarmDetailData.status==='已处理'" state="success">已处理</t-tag>
97
              <t-tag v-if="alarmDetailData.status==='处理中'" state="info">处理中</t-tag>
98
              <t-tag v-if="alarmDetailData.status==='误报'" state="danger">误报</t-tag>
95
              <t-tag v-if="alarmDetailData.statusZh==='未确认'" state="warning">未确认</t-tag>
96
              <t-tag v-if="alarmDetailData.statusZh==='已处理'" state="success">已处理</t-tag>
97
              <t-tag v-if="alarmDetailData.statusZh==='处理中'" state="info">处理中</t-tag>
98
              <t-tag v-if="alarmDetailData.statusZh==='误报'" state="danger">误报</t-tag>
99 99
            </div>
100 100

101 101
          </div>
@ -109,7 +109,7 @@
109 109
          </div>
110 110
          <div class="detail">
111 111
            <label class="detail_title">报警时间:</label>
112
            <div class="detail_content">{{ alarmDetailData.aiIdenTime }}</div>
112
            <div class="detail_content">{{ alarmDetailData.aiIdenTime|formatDateTime }}</div>
113 113
          </div>
114 114

115 115
          <div class="detail">
@ -121,14 +121,14 @@
121 121
            <div class="detail_content">{{ alarmDetailData.monitorSceneName }}</div>
122 122
          </div>
123 123

124
          <div v-if="alarmDetailData.workEmployeeRoleId!==null" class="detail">
124
          <div class="detail">
125 125
            <label class="detail_title">处理人:</label>
126 126
            <div class="detail_content">{{ alarmDetailData.workEmployeeRoleName }}</div>
127 127
          </div>
128 128

129
          <div v-if="alarmDetailData.workEmployeeRoleId!==null" class="detail">
129
          <div class="detail">
130 130
            <label class="detail_title">处理时间:</label>
131
            <div>{{ alarmDetailData.doneDate }}</div>
131
            <div>{{ alarmDetailData.disposeDate }}</div>
132 132
          </div>
133 133
        </div>
134 134

@ -147,9 +147,9 @@
147 147
          </div>
148 148
        </div>
149 149
        <div v-if="clickdetail==1">
150
          <div v-if="alarmDetailData.status!='END'" class="radio">
150
          <div v-if="alarmDetailData.statusZh!='END'" class="radio">
151 151
            <div>报警处理 : </div>
152
            <div v-if="alarmDetailData.status=='INI'">
152
            <div v-if="alarmDetailData.statusZh=='INI'">
153 153
              <t-radio-group v-model="status">
154 154
                <t-radio label="RUN">
155 155

@ -163,7 +163,7 @@
163 163
              </t-radio-group>
164 164
            </div>
165 165

166
            <div v-if="alarmDetailData.status=='RUN'||alarmDetailData.status=='FAL'">
166
            <div v-if="alarmDetailData.statusZh=='RUN'||alarmDetailData.statusZh=='FAL'">
167 167
              <t-radio-group v-model="status">
168 168
                <t-radio label="END">关闭</t-radio>
169 169
              </t-radio-group>
@ -195,7 +195,9 @@
195 195
import aialarmapi from '@/api/aialarm'
196 196
import formatDateTime from '@/utils/formatDateTime.js'
197 197
export default {
198

198
  filters: {
199
    formatDateTime
200
  },
199 201
  data () {
200 202
    return {
201 203
      searchdata: {

+ 3 - 2
security-protection-platform/src/modules/attendance/abnormal/index.vue

@ -2,8 +2,8 @@
2 2
  <div class="page-main">
3 3
    <div class="page-content">
4 4
      <div class="row mt-32">
5
        <div class="col-3">
6
          <span>月份:</span>
5
        <div class="keep-row">
6
          <span>月份</span>
7 7
          <t-date-picker v-model="form.month" style="width:200px" type="month" placeholder="请选择月份" />
8 8
        </div>
9 9
        <div class="keep-row">
@ -157,6 +157,7 @@ export default {
157 157
    font-size: 14px;
158 158
  }
159 159
  .keep-row{
160
    margin-left: 24px;
160 161
    display: flex;
161 162
    align-items: center;
162 163
  }

+ 32 - 9
security-protection-platform/src/modules/attendance/report/index.vue

@ -5,8 +5,8 @@
5 5
        <!-- 日报 -->
6 6
        <t-tab-panel label="日报" panel-id="tab-1">
7 7
          <div class="row mt-32">
8
            <div class="col-3">
9
              <span>日期:</span>
8
            <div class="keep-row">
9
              <span>日期</span>
10 10
              <t-date-picker v-model="dailyForm.workDay" style="width:200px" placeholder="请选择日期"></t-date-picker>
11 11
            </div>
12 12
            <div class="keep-row">
@ -15,6 +15,7 @@
15 15
            </div>
16 16
            <div class="search-btn">
17 17
              <t-button color="primary" @click="handSearchDay">查询</t-button>
18
              <t-button @click="resetDailyData">重置</t-button>
18 19
            </div>
19 20
          </div>
20 21
          <t-table :data="dailyTableData" :loading="loadDailyTable" size="sm" line class="table-detail">
@ -34,8 +35,8 @@
34 35
        <!-- 月报 -->
35 36
        <t-tab-panel label="月报" panel-id="tab-2">
36 37
          <div class="row mt-32">
37
            <div class="col-3">
38
              <span>月份:</span>
38
            <div class="keep-row">
39
              <span>月份</span>
39 40
              <t-date-picker v-model="monthlyForm.month" style="width:200px" type="month" placeholder="请选择月份"></t-date-picker>
40 41
            </div>
41 42
            <div class="keep-row">
@ -44,6 +45,7 @@
44 45
            </div>
45 46
            <div class="search-btn">
46 47
              <t-button color="primary" @click="handSearchMonth">查询</t-button>
48
              <t-button @click="resetMonthData">重置</t-button>
47 49
            </div>
48 50
          </div>
49 51
          <t-button class="export-excel" color="primary">
@ -147,16 +149,12 @@ export default {
147 149
      }
148 150
    }
149 151
  },
150
  mounted () {
151
    this.getDailyTable()
152
  },
153 152
  methods: {
154 153
    handleDailyInited () {
155
      this.getDailyTable()
154
      // this.getDailyTable()
156 155
    },
157 156
    changeTabs (tabName) {
158 157
      this.tabName = tabName
159
      this.getMonthTable()
160 158
    },
161 159
    // 搜索
162 160
    handSearchDay () {
@ -176,6 +174,30 @@ export default {
176 174
      this.monthlyForm.current = val
177 175
      this.getMonthTable()
178 176
    },
177
    // 重置日报数据
178
    resetDailyData() {
179
      let now = new Date()
180
      this.dailyForm = {
181
        workDay: formatDateTime(now, 'yyyy-MM-dd'),
182
        userid: null,
183
        depId: '',
184
        orgId: '',
185
        current: 1,
186
        pageSize: 10
187
      }
188
    },
189
    // 重置月报数据
190
    resetMonthData() {
191
      let now = new Date()
192
      this.monthlyForm = {
193
        month: formatDateTime(new Date().setMonth(now.getMonth() - 1), 'yyyy-MM'),
194
        userid: null,
195
        depId: '',
196
        orgId: '',
197
        current: 1,
198
        pageSize: 10
199
      }
200
    },
179 201
    // 获得月报表格数据
180 202
    getMonthTable () {
181 203
      this.loadMonthTable = true
@ -243,6 +265,7 @@ export default {
243 265
  .keep-row {
244 266
    display: flex;
245 267
    align-items: center;
268
    margin-left: 24px;
246 269
  }
247 270
  .search-btn {
248 271
    margin-left: auto;

+ 29 - 12
security-protection-platform/src/modules/system/assignment/index.vue

@ -33,15 +33,19 @@
33 33
      <div class="table-box">
34 34
        <t-table :data="taskDataList" line @selection-change="selectChange">
35 35
          <t-table-column type="selection" width="70"></t-table-column>
36
          <t-table-column prop="taskName" label="任务名称" width="110"></t-table-column>
37
          <t-table-column prop="taskId" label="任务编号" width="120"></t-table-column>
38
          <t-table-column prop="matchingType" label="匹配模型" width="120"></t-table-column>
39
          <t-table-column prop="executionDevice" label="执行设备" width="220"></t-table-column>
40
          <t-table-column prop="configurationTime" label="配置时间" width="180"></t-table-column>
41
          <t-table-column prop="status" style="background-color:#000" label="状态" width="120">
36
          <t-table-column prop="aiTaskName" label="任务名称" width="110"></t-table-column>
37
          <t-table-column prop="aiTaskCode" label="任务编号" width="120"></t-table-column>
38
          <t-table-column prop="aiIdenModel" label="匹配模型" width="120"></t-table-column>
39
          <t-table-column prop="executeDeviceString" label="执行设备" width="220"></t-table-column>
40
          <t-table-column prop="doneDate" label="配置时间" width="200">
42 41
            <template v-slot="{row}">
43
              <div :class="getTypecellClass(row.status)" class="tag-cell">
44
                <span class="status-ball"></span>{{ row.status }}
42
              {{ row.doneDate|formatDateTime }}
43
            </template>
44
          </t-table-column>
45
          <t-table-column prop="aiTaskStatus" align="center" style="background-color:#000" label="状态" width="120">
46
            <template v-slot="{row}">
47
              <div :class="getTypecellClass(row.aiTaskStatus)" class="tag-cell">
48
                <span class="status-ball"></span>{{ row.aiTaskStatus }}
45 49
              </div>
46 50
            </template>
47 51
          </t-table-column>
@ -69,8 +73,12 @@
69 73
70 74
<script>
71 75
import sysapi from '@/api/system'
76
import formatDateTime from '@/utils/formatDateTime.js'
72 77
// import sendOrderModal from './components/modal/sendordermodal.vue'
73 78
export default {
79
  filters: {
80
    formatDateTime
81
  },
74 82
  components: {
75 83
    // sendOrderModal
76 84
  },
@ -103,18 +111,27 @@ export default {
103 111
    }
104 112
  },
105 113
  created () {
106
    this.getTaskName()
107
    this.getmatchingType()
114
    this.getTaskName() // 获取任务名称下拉框
115
    this.getmatchingType() // 获取匹配模型下拉框
116
    this.getAiTaskData() // 查询任务列表
108 117
  },
109 118
  methods: {
119
    getAiTaskData() {
120
      sysapi.getAiTaskList({params: {aiTaskId: 9}}).then(res => {
121
        this.taskDataList = res.data.data.data
122
        console.log(this.taskDataList)
123
      })
124
    },
125
    // 获取任务名称下拉框
110 126
    getTaskName() {
111 127
      sysapi.getCharSpecList('AI_TASK_STATUS').then(res => {
112 128
        this.taskStatusList = res.data
113 129
      })
114 130
    },
131
    // 获取匹配模型下拉框
115 132
    getmatchingType() {
116
      sysapi.getCharSpecList('AI_MATCHER_MODE').then(res => {
117
        console.log(res);
133
      sysapi.getAiTaskModelList().then(res => {
134
        console.log(res)
118 135
        this.matchingTypeList = res.data
119 136
      })
120 137
    },

+ 0 - 12
security-protection-platform/src/modules/userRights/organizationmana/index.vue

@ -1,12 +0,0 @@
1
<template>
2
  <div>组织管理页面</div>
3
</template>
4
5
<script>
6
export default {
7
8
}
9
</script>
10
11
<style>
12
</style>

+ 0 - 48
security-protection-platform/src/modules/userRights/usermana/index.vue

@ -1,48 +0,0 @@
1
<template>
2
3
  <div>
4
    <div>123</div>
5
    <button @click="showaudit">点击</button>
6
7
    <audit :auditshow.sync="auditshow"></audit>
8
9
  </div>
10
11
</template>
12
13
<script>
14
import audit from './components/modal/audit'
15
16
export default {
17
  components: {
18
    audit
19
  },
20
  data () {
21
    return {
22
      auditshow: false
23
    }
24
  },
25
  methods: {
26
    showaudit () {
27
      // console.log(123)
28
      this.auditshow = true
29
    }
30
  }
31
}
32
33
</script>
34
35
  <style>
36
.video {
37
  width: 425px;
38
  height: 300px;
39
  border: 1px solid black;
40
}
41
.vjs-control-bar .vjs-picture-in-picture-control .vjs-control .vjs-button {
42
  width: 0;
43
}
44
45
.vjs-seek-to-live-control .vjs-control {
46
  width: 0;
47
}
48
</style>

+ 279 - 0
security-protection-platform/src/modules/usermana/index.vue

@ -0,0 +1,279 @@
1
<template>
2
  <div class="usermana-page">
3
    <t-card class="page-card">
4
      <div class="select-confidtion-box row">
5
        <div class="col-3">公司:
6
          <t-select v-model="companyTypeId" width="200px">
7
            <t-option v-for="item in companyTypesList" :key="item.id" :value="item.id">{{ item.name }}</t-option>
8
          </t-select>
9
        </div>
10
        <div class="col-3">部门:
11
          <t-select v-model="departmentTypeId" width="200px">
12
            <t-option v-for="item in departmentTypesList" :key="item.id" :value="item.id">{{ item.name }}</t-option>
13
          </t-select>
14
        </div>
15
        <div class="col-3">姓名:
16
          <t-select v-model="staffTypeId" width="200px">
17
            <t-option v-for="item in staffTypesList" :key="item.id" :value="item.id">{{ item.name }}</t-option>
18
          </t-select>
19
        </div>
20
        <div class="col-2 offset-1 select-button-box" align="end">
21
          <t-button color="primary" @click="selectHandle">查询</t-button>
22
          <t-button @click="resetData">重置</t-button>
23
        </div>
24
      </div>
25
      <div class="function-button-box">
26
        <t-button color="primary" @click="showAddDeviceModal">
27
          <t-icon icon="plus-circle-outline" size="16"></t-icon>新增
28
        </t-button>
29
        <t-button @click="multDeleteDeviceData">
30
          <t-icon icon="trash" size="16"></t-icon>删除
31
        </t-button>
32
      </div>
33
      <div class="table-box">
34
        <t-table :data="userDataList" line @selection-change="selectChange">
35
          <t-table-column type="selection" width="70"></t-table-column>
36
          <t-table-column prop="name" label="姓名" width="100"></t-table-column>
37
          <t-table-column prop="userId" label="员工编号" width="120"></t-table-column>
38
          <t-table-column prop="companyName" label="公司" width="150"></t-table-column>
39
          <t-table-column prop="departmentName" label="部门" width="150"></t-table-column>
40
          <t-table-column prop="post" label="职务" width="100"></t-table-column>
41
          <t-table-column prop="age" label="年龄" width="80"></t-table-column>
42
          <t-table-column prop="telephone" label="手机" width="120"></t-table-column>
43
          <t-table-column prop="status" label="人脸状态" width="120">
44
            <template v-slot="{row}">
45
              <t-tag v-if="row.status=== 'xxx'" state="primary">待审核</t-tag>
46
              <t-tag v-else state="success">已生效</t-tag>
47
            </template>
48
          </t-table-column>
49
          <t-table-column label="操作">
50
            <template v-slot="{row}">
51
              <a href="javascript:;" style="color:#0089D4;" @click="editDeviceData(row.resourceToolId)">编辑</a>
52
              <a href="javascript:;" style="color:#0089D4;" @click="deleteDeviceData(row)">删除</a>
53
              <a href="javascript:;" style="color:#0089D4;" @click="deleteDeviceData(row)">人脸审核</a>
54
            </template>
55
          </t-table-column>
56
        </t-table>
57
      </div>
58
      <div class="table-pager">
59
        <t-pager :current.sync="page" :total="total" :page-size="limit" :sizer-range="[10,20,50,100]" show-elevator show-sizer @on-size-change="onSizeChange" @on-change="onChange">>
60
        </t-pager>
61
      </div>
62
    </t-card>
63
  </div>
64
</template>
65
66
<script>
67
import sysapi from '@/api/system'
68
export default {
69
70
  data () {
71
    return {
72
      // 公司类型id
73
      companyTypeId: '',
74
      // 公司类型列表
75
      companyTypesList: [],
76
      // 部门类型id
77
      departmentTypeId: '',
78
      // 部门类型列表
79
      departmentTypesList: [],
80
      // 员工类型id
81
      staffTypeId: '',
82
      // 员工类型列表
83
      staffTypesList: [],
84
      // 用户数据列表
85
      userDataList: [],
86
      // 当前页
87
      page: 1,
88
      // 当前页的数据个数
89
      limit: 10,
90
      // 数据总数
91
      total: 100,
92
      // 批量删除的设备id
93
      deleteResourceToolId: [],
94
      // 当前设备数据
95
      currentDeviceData: {},
96
      // 显示/隐藏新增设备对话框
97
      addDeviceModal: false,
98
      currentEditDevice: {}
99
    }
100
  },
101
  created () {
102
    this.getDeviceData()
103
    this.getDeviceTypes()
104
  },
105
  methods: {
106
    // 获取设备列表数据
107
    async getDeviceData () {
108
109
    },
110
    // 向服务器发送请求获取设备类型列表数据
111
    async getDeviceTypes () {
112
      const res = await sysapi.getDeviceTypes()
113
      if (res.status === 200) {
114
        this.companyTypesList = res.data.data
115
      } else {
116
        this.$Message.danger('设备类型列表数据获取失败!')
117
      }
118
    },
119
    // 查询数据
120
    selectHandle () {
121
      this.page = 1
122
      this.getDeviceData()
123
    },
124
    // 重置查询数据
125
    resetData () {
126
      this.page = 1
127
      this.companyTypeId = ''
128
      this.staffTypeId = ''
129
      this.departmentTypeId = ''
130
      this.getDeviceData()
131
    },
132
    // 当前页改变 触发事件
133
    onChange (page) {
134
      this.page = page
135
      this.getDeviceData()
136
    },
137
    // 当前页数据总数改变 触发事件
138
    onSizeChange (pageSize) {
139
      this.limit = pageSize
140
      this.getDeviceData()
141
    },
142
    // 删除数据
143
    deleteDeviceData (row) {
144
      this.$Confirm.confirm({
145
        title: '正在准备删除...',
146
        content: '<p>确定要删除?</p><p>删除后将无法还原!</p>',
147
        ok: async () => {
148
          const res = await sysapi.deleteDeviceData({ resourceToolId: row.resourceToolId })
149
          if (res.status === 200) {
150
            this.getDeviceData()
151
            this.$Message.success('删除成功!')
152
          } else {
153
            this.$Message.danger('删除失败!')
154
          }
155
        },
156
        cancel: () => {
157
          this.$Message.info('已取消删除!')
158
        }
159
      })
160
    },
161
    // 当复选框发生改变时 触发事件
162
    selectChange (data) {
163
      const arr = []
164
      data.forEach(item => arr.push(item.resourceToolId))
165
      this.deleteResourceToolId = arr
166
    },
167
    // 批量删除数据
168
    multDeleteDeviceData () {
169
      if (this.deleteResourceToolId.length === 0) {
170
        return this.$Message.warning('请选择要删除的数据!')
171
      }
172
      this.$Confirm.confirm({
173
        title: '正在准备删除...',
174
        content: '<p>确定要删除?</p><p>删除后将无法还原!</p>',
175
        ok: async () => {
176
          const res = await sysapi.deleteDeviceData({ resourceToolId: this.deleteResourceToolId })
177
          if (res.status === 200) {
178
            this.getDeviceData()
179
            this.$Message.success('删除成功!')
180
          } else {
181
            this.$Message.danger('删除失败!')
182
          }
183
        },
184
        cancel: () => {
185
          this.$Message.info('已取消删除!')
186
        }
187
      })
188
    },
189
    // 获取设备详情数据
190
    async getDeviceInfo (id) {
191
      const res = await sysapi.getDeviceInfo(id)
192
      if (res.status === 200) {
193
        this.currentDeviceData = res.data
194
      } else {
195
        this.$Message.danger('设备详情数据获取失败!')
196
      }
197
    },
198
    // 显示新增设备对话框
199
    showAddDeviceModal () {
200
      this.addDeviceModal = true
201
    },
202
    async editDeviceData (id) {
203
      const res = await sysapi.getDeviceInfo(id)
204
      if (res.status === 200) {
205
        this.currentEditDevice = res.data
206
      } else {
207
        this.$Message.danger('设备数据获取失败!')
208
      }
209
      this.addDeviceModal = true
210
    }
211
  }
212
}
213
</script>
214
215
<style lang="scss">
216
.usermana-page {
217
  .card-block {
218
    padding: 0px 24px !important;
219
  }
220
  .tabs {
221
    overflow: inherit;
222
  }
223
  .tabs-list {
224
    .tabs-list__content {
225
      display: flex;
226
      justify-content: flex-end;
227
      margin-top: -10px;
228
      .tabs-list__nav {
229
        height: 32px;
230
        line-height: 16px;
231
      }
232
    }
233
    .tabs-tab {
234
      margin: 0;
235
      padding: 0 25px;
236
      font-size: 14px;
237
    }
238
    .tabs-tab.checked {
239
      border-bottom: 3px solid #2d98ff;
240
    }
241
  }
242
  .select-button-box {
243
    padding: 0;
244
    button {
245
      margin-left: 5px;
246
    }
247
  }
248
  .select-confidtion-box {
249
    margin: 24px 0;
250
    .col-3 {
251
      padding: 0;
252
    }
253
  }
254
  .function-button-box {
255
    line-height: 32px;
256
    button {
257
      margin-right: 12px;
258
      i {
259
        line-height: 32px;
260
        margin-right: 8px;
261
      }
262
    }
263
    a {
264
      color: #0089d4;
265
      i {
266
        line-height: 32px !important;
267
        margin-left: 4px;
268
      }
269
    }
270
  }
271
  .table-box {
272
    margin: 20px 0;
273
  }
274
  .table-pager {
275
    display: flex;
276
    justify-content: flex-end;
277
  }
278
}
279
</style>

+ 1 - 1
security-protection-platform/src/modules/workorder/components/modal/approvalmodal.vue

@ -1,5 +1,5 @@
1 1
<template>
2
  <t-modal :visibled.sync="visibled" :mask-closable="false" width="600px" height="500px">
2
  <t-modal :closable="false" :visibled.sync="visibled" :mask-closable="false" width="600px" height="500px">
3 3
    <template slot="header">
4 4
      <div class="approval-modal-title">工单审批</div>
5 5
    </template>

+ 1 - 1
security-protection-platform/src/modules/workorder/components/modal/cardreplacementmodal.vue

@ -1,5 +1,5 @@
1 1
<template>
2
  <t-modal :visibled.sync="cardReplacementModal" :mask-closable="false" width="600px" height="500px">
2
  <t-modal :closable="false" :visibled.sync="cardReplacementModal" :mask-closable="false" width="600px" height="500px">
3 3
    <template slot="header">
4 4
      <div class="card-modal-title">新增补卡</div>
5 5
    </template>

+ 1 - 1
security-protection-platform/src/modules/workorder/components/modal/fieldservicemodal.vue

@ -1,5 +1,5 @@
1 1
<template>
2
  <t-modal :visibled.sync="fieldServiceModal" :mask-closable="false" width="600px" height="500px">
2
  <t-modal :closable="false" :visibled.sync="fieldServiceModal" :mask-closable="false" width="600px" height="500px">
3 3
    <template slot="header">
4 4
      <div class="field-modal-title">新增外勤</div>
5 5
    </template>

+ 1 - 1
security-protection-platform/src/modules/workorder/components/modal/importworkordermodal.vue

@ -1,5 +1,5 @@
1 1
<template>
2
  <t-modal :visibled.sync="visibled" :mask-closable="false" width="600px" height="500px">
2
  <t-modal :closable="false" :visibled.sync="visibled" :mask-closable="false" width="600px" height="500px">
3 3
    <template slot="header">
4 4
      <div class="leave-modal-title">导入工单</div>
5 5
    </template>

+ 1 - 1
security-protection-platform/src/modules/workorder/components/modal/leavemodal.vue

@ -1,6 +1,6 @@
1 1
<template>
2 2
  <!-- 请假对话框 -->
3
  <t-modal :visibled.sync="visibled" :mask-closable="false" width="600px" height="500px">
3
  <t-modal :visibled.sync="visibled" :mask-closable="false" :closable="false" width="600px" height="500px">
4 4
    <template slot="header">
5 5
      <div class="leave-modal-title">新增请假</div>
6 6
    </template>

+ 1 - 1
security-protection-platform/src/modules/workorder/components/modal/overtimemodal.vue

@ -1,5 +1,5 @@
1 1
<template>
2
  <t-modal :visibled.sync="overtimeModal" :mask-closable="false" width="600px" height="500px">
2
  <t-modal :closable="false" :visibled.sync="overtimeModal" :mask-closable="false" width="600px" height="500px">
3 3
    <template slot="header">
4 4
      <div class="work-modal-title">新增加班</div>
5 5
    </template>

+ 5 - 12
security-protection-platform/src/routes.js

@ -133,22 +133,15 @@ export const constantRoutes = [
133 133
    ]
134 134
  },
135 135
  {
136
    path: '/userRights',
136
    path: '/usermana',
137 137
    component: Layout,
138
    meta: { title: '用户权限', icon: 'lock' },
139
    redirect: '/userRights/usermana',
138
    meta: { icon: 'lock' },
140 139
    children: [
141 140
      {
142
        name: 'organizationmana',
143
        path: 'organizationmana',
144
        component: () => import(/* webpackChunkName: "user_rights" */ './modules/userRights/organizationmana'),
145
        meta: { title: '组织管理' }
146
      },
147
      {
148 141
        name: 'usermana',
149
        path: 'usermana',
150
        component: () => import(/* webpackChunkName: "user_rights" */ './modules/userRights/usermana'),
151
        meta: { title: '用户管理' }
142
        path: '',
143
        component: () => import(/* webpackChunkName: "user_rights" */ './modules/usermana'),
144
        meta: { title: '用户管理', icon: 'lock' }
152 145
      }
153 146
154 147
    ]