vue2-client 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/index.js +30 -28
  3. package/package.json +1 -1
  4. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
  5. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -777
  6. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +553 -553
  7. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -163
  8. package/src/base-client/components/common/Upload/Upload.vue +161 -158
  9. package/src/base-client/components/common/XAddForm/XAddForm.vue +349 -349
  10. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +321 -322
  11. package/src/base-client/components/common/XForm/XForm.vue +273 -268
  12. package/src/base-client/components/common/XForm/XFormItem.vue +387 -371
  13. package/src/base-client/components/common/XFormTable/XFormTable.vue +6 -5
  14. package/src/base-client/components/common/XTable/XTable.vue +278 -274
  15. package/src/base-client/components/{iot → system}/LogDetailsView/LogDetailsView.vue +0 -0
  16. package/src/base-client/components/{iot → system}/LogDetailsView/index.js +0 -0
  17. package/src/base-client/components/{iot → system}/LogDetailsView/index.md +0 -0
  18. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -280
  19. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +806 -804
  20. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +24 -24
  21. package/src/base-client/plugins/PagedList.js +177 -176
  22. package/src/components/STable/index.js +318 -316
  23. package/src/components/index.js +36 -36
  24. package/src/components/table/StandardTable.vue +141 -142
  25. package/src/components/tool/TagSelect.vue +83 -83
  26. package/src/layouts/header/AdminHeader.vue +104 -109
  27. package/src/layouts/header/HeaderNotice.vue +167 -199
  28. package/src/layouts/header/InstitutionDetail.vue +181 -182
  29. package/src/pages/CreateQueryPage.vue +65 -59
  30. package/src/pages/system/dictionary/index.vue +43 -41
  31. package/src/pages/system/file/Info.vue +56 -0
  32. package/src/pages/system/file/index.vue +317 -0
  33. package/src/pages/system/queryParams/index.vue +43 -41
  34. package/src/pages/system/ticket/index.vue +458 -452
  35. package/src/pages/system/ticket/submitTicketSuccess.vue +206 -203
  36. package/src/router/async/router.map.js +56 -60
  37. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  38. package/src/services/api/LogDetailsViewApi.js +10 -10
  39. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  40. package/src/services/api/TicketDetailsViewApi.js +42 -40
  41. package/src/services/api/commonTempTable.js +10 -0
  42. package/src/services/api/index.js +2 -24
  43. package/src/services/api/manage.js +8 -16
  44. package/src/utils/excel/Blob.js +181 -181
  45. package/src/utils/excel/Export2Excel.js +141 -142
  46. package/src/utils/i18n.js +80 -80
  47. package/src/utils/request.js +4 -4
  48. package/src/utils/theme-color-replacer-extend.js +91 -92
  49. package/vue.config.js +109 -163
  50. package/src/base-client/all.js +0 -62
  51. package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +0 -225
  52. package/src/base-client/components/iot/CustomerDetailsView/index.js +0 -3
  53. package/src/base-client/components/iot/CustomerDetailsView/index.md +0 -40
  54. package/src/base-client/components/iot/DataAnalysisUser/DataAnalysisUser.vue +0 -127
  55. package/src/base-client/components/iot/DataAnalysisUser/index.js +0 -3
  56. package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +0 -452
  57. package/src/base-client/components/iot/DeviceBrandDetailsView/index.js +0 -3
  58. package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +0 -232
  59. package/src/base-client/components/iot/DeviceDetailsView/index.js +0 -3
  60. package/src/base-client/components/iot/DeviceDetailsView/index.md +0 -41
  61. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +0 -678
  62. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +0 -57
  63. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstruct.vue +0 -122
  64. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +0 -121
  65. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsMain.vue +0 -269
  66. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +0 -131
  67. package/src/base-client/components/iot/DeviceDetailsView/part/index.js +0 -8
  68. package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +0 -300
  69. package/src/base-client/components/iot/DeviceTypeDetailsView/index.js +0 -3
  70. package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +0 -464
  71. package/src/base-client/components/iot/InstructDetailsView/index.js +0 -3
  72. package/src/base-client/components/iot/InstructDetailsView/index.md +0 -43
  73. package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +0 -352
  74. package/src/base-client/components/iot/MeterDetailsView/index.js +0 -3
  75. package/src/base-client/components/iot/MeterDetailsView/index.md +0 -41
  76. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +0 -330
  77. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +0 -179
  78. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +0 -285
  79. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +0 -230
  80. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +0 -251
  81. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +0 -184
  82. package/src/base-client/components/iot/MeterDetailsView/part/index.js +0 -9
  83. package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +0 -960
  84. package/src/base-client/components/iot/WebmeterAnalysisView/index.js +0 -3
  85. package/src/base-client/components/iot/WebmeterAnalysisView/index.md +0 -42
  86. package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +0 -370
  87. package/src/base-client/components/ticket/EmployeeDetailsView/index.js +0 -3
  88. package/src/base-client/components/ticket/EmployeeDetailsView/index.md +0 -28
  89. package/src/components/Charts/DataUserOrderSituation.vue +0 -77
  90. package/src/components/Charts/DataUserReporting.vue +0 -74
  91. package/src/components/Charts/DataUserSituation.vue +0 -107
  92. package/src/services/api/CustomerDetailsViewApi.js +0 -6
  93. package/src/services/api/DeviceBrandDetailsViewApi.js +0 -14
  94. package/src/services/api/DeviceDetailsViewApi.js +0 -10
  95. package/src/services/api/DeviceTypeDetailsViewApi.js +0 -6
  96. package/src/services/api/EmployeeDetailsViewApi.js +0 -12
  97. package/src/services/api/FormGroupEditApi.js +0 -6
  98. package/src/services/api/InstructDetailsViewApi.js +0 -12
  99. package/src/services/api/MeterDetailsViewApi.js +0 -24
  100. package/src/services/api/WebmeterAnalysisViewApi.js +0 -24
  101. package/src/services/api/applyInstallApi.js +0 -14
  102. package/src/services/api/iot/DeviceDetailsView/DeviceDetailsCountApi.js +0 -18
  103. package/src/services/api/iot.js +0 -7
  104. package/src/services/api/service.js +0 -12
@@ -1,464 +0,0 @@
1
- <template>
2
- <a-drawer
3
- :visible="visible"
4
- :width="isMobile ? screenWidth : screenWidth * 0.85"
5
- placement="right"
6
- title="指令详情"
7
- @close="onClose"
8
- >
9
- <a-spin :spinning="loadInstructDetails">
10
- <meter-details-view
11
- v-if="selectUserId && isShowUserFiles"
12
- :userid="selectUserId"
13
- :visible.sync="detailVisible"
14
- />
15
- <a-page-header
16
- :title="'指令:' + details.f_instruct_type"
17
- >
18
- <div class="row">
19
- <div class="content">
20
- <a-descriptions :column="isMobile ? 1 : 2" size="small">
21
- <a-descriptions-item :span="isMobile ? 1 : 2" label="指令编号">{{ details.id }}</a-descriptions-item>
22
- <a-descriptions-item label="表编号">
23
- <a v-if="isShowUserFiles" @click="openUserFilesDetails">{{ details.userid }}</a>
24
- <span v-else>{{ details.userid }}</span>
25
- </a-descriptions-item>
26
- <a-descriptions-item label="表号">{{ details.f_meternumber }}</a-descriptions-item>
27
- <a-descriptions-item label="操作人员">{{ details.f_inputtor }}</a-descriptions-item>
28
- <a-descriptions-item label="指令说明">{{ details.f_instruct_title }}</a-descriptions-item>
29
- <a-descriptions-item label="生成时间">{{ format(details.f_instruct_date,'yyyy-MM-dd hh:mm:ss') }}</a-descriptions-item>
30
- <a-descriptions-item label="表厂别名">{{ details.f_alias }}</a-descriptions-item>
31
- <a-descriptions-item label="最后发送时间">{{ format(details.f_send_date,'yyyy-MM-dd hh:mm:ss') }}</a-descriptions-item>
32
- <a-descriptions-item label="最后响应时间">{{ format(details.f_callback_date,'yyyy-MM-dd hh:mm:ss') }}</a-descriptions-item>
33
- </a-descriptions>
34
- </div>
35
- <div class="extra">
36
- <a-row class="status-list">
37
- <a-col :sm="24" :xs="12">
38
- <div class="text">指令状态</div>
39
- <div class="heading">
40
- <x-badge :is-external-text="true" :value="details.f_instruct_state" badge-key="instructStateMap"/>
41
- </div>
42
- </a-col>
43
- </a-row>
44
- <p></p>
45
- <a-row class="status-list">
46
- <a-col :sm="24" :xs="12">
47
- <div class="text">响应结果</div>
48
- <div class="heading">{{ details.f_receive_state }}</div>
49
- </a-col>
50
- </a-row>
51
- </div>
52
- </div>
53
-
54
- <!-- actions -->
55
- <template v-slot:extra>
56
- <a-button-group style="margin-right: 4px;">
57
- <a-button :loading="loadInstructDetails" type="dashed" @click="initView">刷新</a-button>
58
- </a-button-group>
59
- <a-button-group style="margin-right: 4px;">
60
- <a-popover placement="bottomLeft" title="重新发送">
61
- <template slot="content">
62
- <p>将指令标记为待发送状态</p>
63
- <p>指令将在 定时器轮询/表具上报 后重新发送</p>
64
- <p style="color: red">此操作不可撤销</p>
65
- </template>
66
- <a-button :disabled="againSendBtnHide()" type="primary" @click="againSend(details.id)">重新发送</a-button>
67
- </a-popover>
68
- <a-popover placement="bottomLeft" title="取消发送">
69
- <template slot="content">
70
- <p>该指令将被<span style="color: red;font-weight: bold">取消</span>,请谨慎操作</p>
71
- <p>只有待发送或已发送的指令可以取消发送</p>
72
- <p style="color: red">此操作不可撤销</p>
73
- </template>
74
- <a-button :disabled="cancelSendBtnHide()" type="danger" @click="cancelSend(details.id)">取消发送</a-button>
75
- </a-popover>
76
- </a-button-group>
77
- </template>
78
-
79
- <!-- 操作 -->
80
- <a-card :bordered="false" title="指令状态">
81
- <a-steps :current="step" :direction="'horizontal'" :status="status">
82
- <a-step>
83
- <template v-slot:title><span>待发送</span></template>
84
- <template v-slot:description>
85
- <div>指令已经就绪,待发送<div>{{ format(details.f_instruct_date,'yyyy-MM-dd hh:mm:ss') }}</div></div>
86
- </template>
87
- </a-step>
88
- <a-step>
89
- <template v-slot:title><span>已发送</span></template>
90
- <template v-slot:description>
91
- <div>{{ getIntroduction() }}<div>{{ format(details.f_send_date,'yyyy-MM-dd hh:mm:ss') }}</div></div>
92
- </template>
93
- </a-step>
94
- <a-step>
95
- <template v-slot:title><span>{{ instructResult }}</span></template>
96
- <template v-slot:description>
97
- <div>{{ getResultText(instructResult) }}<div>{{ format(details.f_callback_date,'yyyy-MM-dd hh:mm:ss') }}</div></div>
98
- </template>
99
- </a-step>
100
- </a-steps>
101
- </a-card>
102
- <a-card
103
- :activeTabKey="operationActiveTabKey"
104
- :bordered="false"
105
- :tabList="operationTabList"
106
- style="margin-top: 24px"
107
- @tabChange="(key) => {this.operationActiveTabKey = key}"
108
- >
109
- <div v-if="operationActiveTabKey === '1'">
110
- <a-card title="指令内容" type="inner">
111
- <json-viewer :copyable="{copyText: '复制', copiedText: '已复制'}" :value="details.f_instruct_content === undefined ? {} : toJSON(details.f_instruct_content)"></json-viewer>
112
- </a-card>
113
- <a-card title="指令元数据" type="inner">
114
- <json-viewer :copyable="{copyText: '复制', copiedText: '已复制'}" :value="details.f_instruct_meta_data === undefined ? {} : toJSON(details.f_instruct_meta_data)"></json-viewer>
115
- </a-card>
116
- </div>
117
-
118
- <x-table
119
- v-if="loaded && operationActiveTabKey === '2'"
120
- :fixedQueryForm="form"
121
- :json-data="showColumns"
122
- :queryParamsName="queryParamsName"
123
- @loadData="loadData"
124
- />
125
- <div v-else-if="operationActiveTabKey === '3'" class="no-data"><a-icon type="frown-o"/>暂无数据</div>
126
- </a-card>
127
- </a-page-header>
128
- </a-spin>
129
- </a-drawer>
130
- </template>
131
-
132
- <script>
133
- import JsonViewer from 'vue-json-viewer'
134
- import { formatDate } from '@vue2-client/utils/util'
135
- import { InstructDetailsViewApi, post, query, commonApi } from '@vue2-client/services/api'
136
- import XTable from '@vue2-client/base-client/components/common/XTable/XTable'
137
- import { mapState } from 'vuex'
138
-
139
- export default {
140
- name: 'InstructDetailsView',
141
- components: {
142
- JsonViewer,
143
- XTable
144
- },
145
- data () {
146
- return {
147
- // 页面宽度
148
- screenWidth: document.documentElement.clientWidth,
149
- // 服务名称
150
- serviceName: undefined,
151
- // 指令详情
152
- details: {
153
- id: 0,
154
- userid: 0,
155
- f_meternumber: '',
156
- f_instruct_type: '',
157
- f_instruct_title: '',
158
- f_instruct_state: '待发送',
159
- f_receive_state: '',
160
- f_inputtor: '',
161
- f_alias: '',
162
- f_instruct_date: '',
163
- f_send_date: '',
164
- f_callback_date: '',
165
- f_instruct_meta_data: {},
166
- f_instruct_content: {}
167
- },
168
- // 当前步骤
169
- step: 0,
170
- // 当前状态,
171
- status: 'process',
172
- // 指令状态结果
173
- instructResult: '执行成功',
174
- // 档案详情组件显示
175
- detailVisible: false,
176
- // 查询的档案id
177
- selectUserId: undefined,
178
- // 档案id
179
- userId: undefined,
180
- // 指令详情加载
181
- loadInstructDetails: true,
182
- // 查询配置文件名
183
- queryParamsName: 'recordQueryParams',
184
- // 查询列集合
185
- showColumns: [],
186
- // queryJson加载是否完成
187
- loaded: false,
188
- // 查询操作日志表单
189
- form: {
190
- r_f_data_id: this.instructid
191
- },
192
- operationTabList: [
193
- {
194
- key: '1',
195
- tab: '开发者信息'
196
- },
197
- {
198
- key: '2',
199
- tab: '操作日志'
200
- },
201
- {
202
- key: '3',
203
- tab: '维护教程'
204
- }
205
- ],
206
- operationActiveTabKey: '1'
207
- }
208
- },
209
- created () {
210
- this.getColumnsJson()
211
- },
212
- mounted () {
213
- this.initView()
214
- },
215
- computed: {
216
- ...mapState('account', { currUser: 'user' }),
217
- ...mapState('setting', ['isMobile'])
218
- },
219
- props: {
220
- instructid: {
221
- type: String || Number,
222
- required: true
223
- },
224
- visible: {
225
- type: Boolean,
226
- default: false
227
- },
228
- isShowUserFiles: {
229
- type: Boolean,
230
- default: true
231
- }
232
- },
233
- methods: {
234
- // 初始化组件
235
- initView () {
236
- this.getInstruct(this.instructid)
237
- },
238
- // 获取查询配置JSON
239
- getColumnsJson () {
240
- post(commonApi.getColumnsJson, { str: this.queryParamsName }).then((res) => {
241
- this.serviceName = res.serviceName
242
- this.showColumns = res.columnJson
243
- this.loaded = true
244
- })
245
- },
246
- // 关闭抽屉时回调
247
- onClose () {
248
- this.$emit('update:visible', false)
249
- },
250
- // 加载xTable数据
251
- loadData (requestParameters, callback) {
252
- callback(query(requestParameters, null, this.serviceName))
253
- },
254
- // 获取指令详情信息
255
- getInstruct (instructId) {
256
- this.loadInstructDetails = true
257
- return post(InstructDetailsViewApi.getInstructDetails, {
258
- id: instructId
259
- })
260
- .then(res => {
261
- this.details = res
262
- this.userId = res.userid + ''
263
- // 判断当前指令状态是不是最终流程
264
- if (this.details.f_instruct_state === '待发送') {
265
- this.status = 'process'
266
- this.step = 0
267
- this.instructResult = '执行成功'
268
- } else if (this.details.f_instruct_state === '已发送') {
269
- this.status = 'process'
270
- this.step = 1
271
- this.instructResult = '执行成功'
272
- } else {
273
- this.step = 2
274
- this.instructResult = this.details.f_instruct_state
275
- if (this.details.f_instruct_state === '发送失败' || this.details.f_instruct_state === '执行失败' ||
276
- this.details.f_instruct_state === '响应超时') {
277
- this.status = 'error'
278
- } else if (this.details.f_instruct_state === '忽略冗余' || this.details.f_instruct_state === '无响应' || this.details.f_instruct_state === '已延迟') {
279
- this.status = 'wait'
280
- } else {
281
- this.status = 'finish'
282
- }
283
- }
284
- this.loadInstructDetails = false
285
- }, err => {
286
- this.loadInstructDetails = false
287
- console.error(err)
288
- })
289
- },
290
- // 获取指令操作记录
291
- getRecord (requestParameters) {
292
- return post(InstructDetailsViewApi.getInstructRecordList, requestParameters)
293
- .then(res => {
294
- return res
295
- })
296
- },
297
- // 日期格式化
298
- format (date, format) {
299
- return formatDate(date, format)
300
- },
301
- // 重新发送指令
302
- againSend (id) {
303
- const _this = this
304
- this.$confirm({
305
- title: '您确定要重新发送该指令吗?',
306
- content: '指令状态将被标记为待发送',
307
- okText: '确定',
308
- okType: 'danger',
309
- cancelText: '取消',
310
- onOk () {
311
- return post(InstructDetailsViewApi.againSendInstruct, {
312
- id: id,
313
- username: _this.currUser.username
314
- }).then(res => {
315
- _this.getInstruct(id)
316
- if (res.nums === 1) {
317
- _this.$message.success('操作成功')
318
- } else {
319
- _this.$message.error('操作失败')
320
- }
321
- })
322
- }
323
- })
324
- },
325
- // 取消发送指令
326
- cancelSend (id) {
327
- const _this = this
328
- this.$confirm({
329
- title: '您确定要取消发送该指令吗?',
330
- content: '指令状态将被标记为忽略冗余',
331
- okText: '确定',
332
- okType: 'danger',
333
- cancelText: '取消',
334
- onOk () {
335
- return post(InstructDetailsViewApi.cancelSendInstruct, {
336
- id: id,
337
- username: _this.currUser.username
338
- }).then(res => {
339
- _this.getInstruct(id)
340
- if (res.nums === 1) {
341
- _this.$message.success('操作成功')
342
- } else {
343
- _this.$message.error('操作失败')
344
- }
345
- })
346
- }
347
- })
348
- },
349
- // 控制重新发送按钮的显示
350
- againSendBtnHide () {
351
- return this.step === 0 || this.loadInstructDetails
352
- },
353
- // 控制取消发送按钮的显示
354
- cancelSendBtnHide () {
355
- return (this.step !== 0 && this.step !== 1 && this.details.f_instruct_state !== '已延迟') || this.loadInstructDetails
356
- },
357
- // 转换JSON
358
- toJSON (value) {
359
- try {
360
- return JSON.parse(value)
361
- } catch (e) {
362
- return value
363
- }
364
- },
365
- // 获取指令过程说明
366
- getIntroduction () {
367
- if (this.step > 0) {
368
- return '已发送,等待响应结果'
369
- } else if (this.step === 0) {
370
- return ''
371
- }
372
- },
373
- // 获取指令结果说明
374
- getResultText (value) {
375
- if (this.step === 2) {
376
- if (value === '执行成功') {
377
- return '指令已发送成功'
378
- } else if (value === '执行失败') {
379
- return '失败,请查看响应结果'
380
- } else if (value === '忽略冗余') {
381
- return '指令已被取消发送'
382
- } else if (value === '无响应') {
383
- return '无法得到指令响应结果'
384
- } else if (value === '响应超时') {
385
- return '未得到指令响应结果'
386
- } else if (value === '已延迟') {
387
- return '由于表具限制,指令已被延迟发送'
388
- }
389
- }
390
- },
391
- // 打开档案详情抽屉
392
- openUserFilesDetails () {
393
- this.selectUserId = this.userId
394
- this.detailVisible = true
395
- }
396
- },
397
- watch: {
398
- 'visible' (val) {
399
- if (val) {
400
- this.initView()
401
- }
402
- }
403
- }
404
- }
405
- </script>
406
-
407
- <style lang="less" scoped>
408
- .detail-layout {
409
- margin-left: 44px;
410
- }
411
- .text {
412
- color: rgba(0, 0, 0, .45);
413
- }
414
-
415
- .heading {
416
- color: rgba(0, 0, 0, .85);
417
- font-size: 20px;
418
- }
419
-
420
- .no-data {
421
- color: rgba(0, 0, 0, .25);
422
- text-align: center;
423
- line-height: 64px;
424
- font-size: 16px;
425
-
426
- i {
427
- font-size: 24px;
428
- margin-right: 16px;
429
- position: relative;
430
- top: 3px;
431
- }
432
- }
433
-
434
- .mobile {
435
- .detail-layout {
436
- margin-left: unset;
437
- }
438
- .text {
439
-
440
- }
441
- .status-list {
442
- text-align: left;
443
- }
444
- }
445
-
446
- .row {
447
- display: flex;
448
-
449
- .content {
450
- -webkit-box-flex: 1;
451
- flex: auto;
452
- -ms-flex: auto;
453
- }
454
-
455
- .extra {
456
- flex: 0 1 auto;
457
- -webkit-box-flex: 0;
458
- -ms-flex: 0 1 auto;
459
- min-width: 242px;
460
- margin-left: 88px;
461
- text-align: right;
462
- }
463
- }
464
- </style>
@@ -1,3 +0,0 @@
1
- import InstructDetailsView from './InstructDetailsView'
2
-
3
- export default InstructDetailsView
@@ -1,43 +0,0 @@
1
- # InstructDetailsView 指令详情页
2
-
3
- 提供一个可以对单个指令进行一系列通用业务操作的抽屉实现
4
-
5
-
6
-
7
- ## 何时使用
8
-
9
- 允许用户对单个指令进行一系列通用业务操作,常用于作为指令详情页的通用实现。
10
-
11
-
12
-
13
- 引用方式:
14
-
15
- ```javascript
16
- import InstructDetailsView from '@vue2-client/base-client/components/InstructDetailsView'
17
-
18
- export default {
19
- components: {
20
- InstructDetailsView
21
- }
22
- }
23
- ```
24
-
25
-
26
-
27
- ## 代码演示
28
-
29
- ```html
30
- <instruct-details-view
31
- :visible.sync="detailVisible"
32
- :instructid="selectInstructId"
33
- :isShowUserFiles="isShowUserFiles"
34
- v-if="selectInstructId" />
35
- ```
36
-
37
- ## API
38
-
39
- | 参数 | 说明 | 类型 | 默认值 |
40
- |-----------------|-------------|---------|-------|
41
- | visible | 是否显示 | Boolean | false |
42
- | instructid | 指令ID | String | null |
43
- | isShowUserFiles | 是否允许跳转到档案详情 | Boolean | true |