feat: 为多个页面添加操作帮助功能,替换旧版静态资源文件
1. 新增PageHelp通用帮助组件,实现页面左下角悬浮帮助按钮 2. 为WMS、MES、工位终端多个业务页面接入帮助系统 3. 替换项目中旧的打包静态资源文件,更新资源引用路径 4. 新增各模块的帮助文档配置数据
This commit is contained in:
@@ -52,12 +52,15 @@
|
||||
</template>
|
||||
</el-dialog>
|
||||
</el-card>
|
||||
<PageHelp :data="helpBom" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, onMounted } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import request from '../utils/request'
|
||||
import PageHelp from '../components/PageHelp.vue'
|
||||
import { helpBom } from '../help'
|
||||
|
||||
const orderNo = ref('')
|
||||
const workOrders = ref([])
|
||||
|
||||
@@ -19,11 +19,14 @@
|
||||
<el-pagination v-model:current-page="page" :page-size="pageSize" :total="total"
|
||||
layout="total, prev, pager, next" background style="margin-top:10px" @current-change="load" />
|
||||
</el-card>
|
||||
<PageHelp :data="helpEventLog" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, onMounted } from 'vue'
|
||||
import request from '../utils/request'
|
||||
import PageHelp from '../components/PageHelp.vue'
|
||||
import { helpEventLog } from '../help'
|
||||
|
||||
const query = reactive({ orderNo: '', operator: '', eventType: '' })
|
||||
const list = ref([])
|
||||
|
||||
@@ -27,12 +27,15 @@
|
||||
<el-table-column prop="operator" label="操作人" width="90" />
|
||||
</el-table>
|
||||
</el-card>
|
||||
<PageHelp :data="helpMaterial" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, onMounted } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import request from '../utils/request'
|
||||
import PageHelp from '../components/PageHelp.vue'
|
||||
import { helpMaterial } from '../help'
|
||||
|
||||
const query = reactive({ planDate: '', orderNo: '', status: '' })
|
||||
const list = ref([])
|
||||
|
||||
@@ -32,12 +32,15 @@
|
||||
<el-table-column prop="operator" label="操作人" width="90" />
|
||||
</el-table>
|
||||
</el-card>
|
||||
<PageHelp :data="helpPlc" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, onMounted } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import request from '../utils/request'
|
||||
import PageHelp from '../components/PageHelp.vue'
|
||||
import { helpPlc } from '../help'
|
||||
|
||||
const send = reactive({ orderNo: '', sn: '', stationNo: 1, processCombination: '' })
|
||||
const query = reactive({ orderNo: '', status: '' })
|
||||
|
||||
@@ -34,12 +34,15 @@
|
||||
</template>
|
||||
</el-dialog>
|
||||
</el-card>
|
||||
<PageHelp :data="helpProductType" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, onMounted } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import request from '../utils/request'
|
||||
import PageHelp from '../components/PageHelp.vue'
|
||||
import { helpProductType } from '../help'
|
||||
|
||||
const list = ref([])
|
||||
const dialog = reactive({ show: false, id: 0, name: '', code: '', category: '', remark: '', isActive: true })
|
||||
|
||||
@@ -110,12 +110,15 @@
|
||||
<template #footer><el-button @click="p.show=false">取消</el-button><el-button type="primary" @click="savePerm">保存</el-button></template>
|
||||
</el-dialog>
|
||||
</el-card>
|
||||
<PageHelp :data="helpRbac" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive, onMounted } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import request from '../utils/request'
|
||||
import PageHelp from '../components/PageHelp.vue'
|
||||
import { helpRbac } from '../help'
|
||||
|
||||
const tab = ref('users')
|
||||
const users = ref([]), roles = ref([]), perms = ref([])
|
||||
|
||||
@@ -32,12 +32,15 @@
|
||||
<el-table-column prop="time" label="时间" min-width="170" />
|
||||
</el-table>
|
||||
</el-card>
|
||||
<PageHelp :data="helpScan" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, onMounted } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import request from '../utils/request'
|
||||
import PageHelp from '../components/PageHelp.vue'
|
||||
import { helpScan } from '../help'
|
||||
|
||||
const scan = reactive({ sn: '', orderNo: '', station: '', type: 'PROCESS', processCode: 0 })
|
||||
const query = reactive({ sn: '', orderNo: '' })
|
||||
|
||||
@@ -34,12 +34,15 @@
|
||||
<el-table-column prop="time" label="时间" min-width="170" />
|
||||
</el-table>
|
||||
</el-card>
|
||||
<PageHelp :data="helpTorque" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, onMounted } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import request from '../utils/request'
|
||||
import PageHelp from '../components/PageHelp.vue'
|
||||
import { helpTorque } from '../help'
|
||||
|
||||
const query = reactive({ sn: '', workOrderNo: '' })
|
||||
const torque = reactive({ sn: '', workOrderNo: '', stationNo: '', strain: 20, angle: 90, operator: '' })
|
||||
|
||||
@@ -57,11 +57,14 @@
|
||||
</el-tabs>
|
||||
</template>
|
||||
</el-card>
|
||||
<PageHelp :data="helpTrace" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import request from '../utils/request'
|
||||
import PageHelp from '../components/PageHelp.vue'
|
||||
import { helpTrace } from '../help'
|
||||
|
||||
const sn = ref('')
|
||||
const data = ref(null)
|
||||
|
||||
@@ -84,12 +84,15 @@
|
||||
</el-table>
|
||||
</el-dialog>
|
||||
</div>
|
||||
<PageHelp :data="helpWorkOrder" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive, onMounted } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import request from '../utils/request'
|
||||
import PageHelp from '../components/PageHelp.vue'
|
||||
import { helpWorkOrder } from '../help'
|
||||
|
||||
const statusOptions = [
|
||||
{ v: 'CREATED', l: '已创建' }, { v: 'RELEASED', l: '已发布' },
|
||||
|
||||
Reference in New Issue
Block a user