多体系建设信息化条统-前端
zhouwx
2026-02-02 ea6f80179c8c45d743d45aa02e54640aad6355f7
修改
7 files modified
133 ■■■■■ changed files
src/api/standardSys/standardSys.js 10 ●●●●● patch | view | raw | blame | history
src/views/build/conpanyFunctionConsult/staffManage/staffRegister/components/staffDialog.vue 3 ●●●● patch | view | raw | blame | history
src/views/build/conpanyFunctionConsult/standardSysTemp/appStandardModule/index.vue 24 ●●●●● patch | view | raw | blame | history
src/views/build/conpanyFunctionConsult/standardSysTemp/programStanderdModule/index.vue 24 ●●●●● patch | view | raw | blame | history
src/views/build/conpanyFunctionConsult/standardSysTemp/recordStandardModule/index.vue 24 ●●●●● patch | view | raw | blame | history
src/views/build/conpanyFunctionConsult/standardSysTemp/sysStandardModule/index.vue 24 ●●●●● patch | view | raw | blame | history
src/views/build/conpanyFunctionConsult/standardSysTemp/techStandardModule/index.vue 24 ●●●●● patch | view | raw | blame | history
src/api/standardSys/standardSys.js
@@ -127,3 +127,13 @@
        params: params
    })
}
// 置顶
export function templateToTop(params) {
    return request({
        url: `/template/standardizedTemplate/top?id=${params}`,
        method: 'get',
    })
}
src/views/build/conpanyFunctionConsult/staffManage/staffRegister/components/staffDialog.vue
@@ -90,7 +90,8 @@
<!--            <el-radio :label="3">车间(岗位)级</el-radio>-->
<!--            <el-radio :label="4" v-if="state.currentUserType == 0">其他</el-radio>-->
          </el-radio-group>
          <span v-else>{{state.currentUserType === 0 ? '系统管理员' : state.currentUserType === 1 ? '企业用户' : state.currentUserType === 6 ? '企业管理员' : state.currentUserType === 2 ? '部门级' : state.currentUserType === 3 ? '车间级' :'其他'}}</span>
<!--          <span v-else>{{state.currentUserType === 0 ? '系统管理员' : state.currentUserType === 1 ? '企业用户' : state.currentUserType === 6 ? '企业管理员' : state.currentUserType === 2 ? '部门级' : state.currentUserType === 3 ? '车间级' :'其他'}}</span>-->
          <span v-else>{{state.form.userType === 0 ? '系统管理员' : state.form.userType === 1 ? '企业用户' : state.form.userType === 6 ? '企业管理员' : state.form.userType === 2 ? '部门级' : state.form.userType === 3 ? '车间级' :'其他'}}</span>
<!--          <span v-else-if="state.title == '编辑'">{{state.form.userType === 0 ? '系统管理员' : state.form.userType === 1 ? '企业用户' : state.form.userType === 2 ? '部门级' : state.form.userType === 3 ? '车间级' :'其他'}}</span>-->
          <!--          <el-radio-group v-model="state.form.userType"  :disabled="disabled" @change="changeType" v-else-if="state.title == '编辑'">-->
<!--            <el-radio :label="0" v-if="state.currentUserType == 0">管理员</el-radio>-->
src/views/build/conpanyFunctionConsult/standardSysTemp/appStandardModule/index.vue
@@ -41,8 +41,9 @@
        </template>
      </el-table-column>
      <el-table-column label="行业" prop="industryTypeName" header-align="center" align="left"/>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" >
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
        <template #default="scope">
          <el-button link type="danger" @click="toTop(scope.row)" >置顶</el-button>
          <el-button link type="primary" @click="downloadFile(scope.row.filePath)" v-hasPermi="['appStandard:view']">下载</el-button>
          <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['appStandard:update']">编辑</el-button>
          <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['appStandard:update']">删除</el-button>
@@ -69,7 +70,7 @@
import Cookies from "js-cookie";
import editDialog from './components/editDialog.vue'
import useUserStore from "@/store/modules/user";
import {getStandardTemp,delStandardTemp} from "@/api/standardSys/standardSys";
import {getStandardTemp, delStandardTemp, templateToTop} from "@/api/standardSys/standardSys";
import { renderAsync } from "docx-preview";
@@ -230,6 +231,25 @@
        }
      })
}
const toTop = (val) => {
  ElMessageBox.confirm(
      '确定置顶此条数据?',
      '提示',
      {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      })
      .then( async() => {
        const res = await templateToTop(val.id)
        if(res.code == 200){
          ElMessage.success('置顶成功')
          await getList()
        }else{
          ElMessage.warning(res.message)
        }
      })
}
const handleSortChange = (val) => {
  console.log('bal',val)
  if(val.order === 'ascending' ){
src/views/build/conpanyFunctionConsult/standardSysTemp/programStanderdModule/index.vue
@@ -41,8 +41,9 @@
          <el-link type="primary" @click="openFile(scope.row.filePath)">{{scope.row.templateName + '模板' + scope.row.format}}</el-link>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" >
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
        <template #default="scope">
          <el-button link type="danger" @click="toTop(scope.row)" >置顶</el-button>
          <el-button link type="primary" @click="downloadFile(scope.row.filePath)" v-hasPermi="['programStanderd:view']">下载</el-button>
          <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['programStanderd:update']">编辑</el-button>
          <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['programStanderd:update']">删除</el-button>
@@ -69,7 +70,7 @@
import Cookies from "js-cookie";
import editDialog from './components/editDialog.vue'
import useUserStore from "@/store/modules/user";
import {getStandardTemp,delStandardTemp} from "@/api/standardSys/standardSys";
import {getStandardTemp, delStandardTemp, templateToTop} from "@/api/standardSys/standardSys";
import { renderAsync } from "docx-preview";
import {getIndustryPage} from "@/api/system/industry";
const userStore = useUserStore()
@@ -241,6 +242,25 @@
        }
      })
}
const toTop = (val) => {
  ElMessageBox.confirm(
      '确定置顶此条数据?',
      '提示',
      {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      })
      .then( async() => {
        const res = await templateToTop(val.id)
        if(res.code == 200){
          ElMessage.success('置顶成功')
          await getList()
        }else{
          ElMessage.warning(res.message)
        }
      })
}
const handleSortChange = (val) => {
  console.log('bal',val)
  if(val.order === 'ascending' ){
src/views/build/conpanyFunctionConsult/standardSysTemp/recordStandardModule/index.vue
@@ -44,8 +44,9 @@
          <el-link type="primary" @click="openFile(scope.row.filePath)">{{scope.row.templateName + scope.row.format}}</el-link>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" >
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
        <template #default="scope">
          <el-button link type="danger" @click="toTop(scope.row)" >置顶</el-button>
          <el-button link type="primary" @click="downloadFile(scope.row.filePath)" v-hasPermi="['recordStandard:view']">下载</el-button>
          <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['recordStandard:update']">编辑</el-button>
          <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['recordStandard:update']">删除</el-button>
@@ -72,7 +73,7 @@
import Cookies from "js-cookie";
import editDialog from './components/editDialog.vue'
import useUserStore from "@/store/modules/user";
import {getStandardTemp,delStandardTemp} from "@/api/standardSys/standardSys";
import {getStandardTemp, delStandardTemp, templateToTop} from "@/api/standardSys/standardSys";
import { renderAsync } from "docx-preview";
import router from "@/router";
import {useRoute} from "vue-router";
@@ -237,6 +238,25 @@
        }
      })
}
const toTop = (val) => {
  ElMessageBox.confirm(
      '确定置顶此条数据?',
      '提示',
      {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      })
      .then( async() => {
        const res = await templateToTop(val.id)
        if(res.code == 200){
          ElMessage.success('置顶成功')
          await getList()
        }else{
          ElMessage.warning(res.message)
        }
      })
}
const handleSortChange = (val) => {
  console.log('bal',val)
  if(val.order === 'ascending' ){
src/views/build/conpanyFunctionConsult/standardSysTemp/sysStandardModule/index.vue
@@ -44,8 +44,9 @@
          <el-link type="primary" @click="openFile(scope.row.filePath)">{{scope.row.templateName + scope.row.format}}</el-link>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" >
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
        <template #default="scope">
          <el-button link type="danger" @click="toTop(scope.row)" >置顶</el-button>
          <el-button link type="primary" @click="downloadFile(scope.row.filePath)" v-hasPermi="['sysStandard:view']">下载</el-button>
          <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['sysStandard:update']">编辑</el-button>
          <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['sysStandard:update']">删除</el-button>
@@ -72,7 +73,7 @@
import Cookies from "js-cookie";
import editDialog from './components/editDialog.vue'
import useUserStore from "@/store/modules/user";
import {getStandardTemp,delStandardTemp} from "@/api/standardSys/standardSys";
import {getStandardTemp, delStandardTemp, templateToTop} from "@/api/standardSys/standardSys";
import { renderAsync } from "docx-preview";
const userStore = useUserStore()
@@ -233,6 +234,25 @@
        }
      })
}
const toTop = (val) => {
  ElMessageBox.confirm(
      '确定置顶此条数据?',
      '提示',
      {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      })
      .then( async() => {
        const res = await templateToTop(val.id)
        if(res.code == 200){
          ElMessage.success('置顶成功')
          await getList()
        }else{
          ElMessage.warning(res.message)
        }
      })
}
const handleSortChange = (val) => {
  console.log('bal',val)
  if(val.order === 'ascending' ){
src/views/build/conpanyFunctionConsult/standardSysTemp/techStandardModule/index.vue
@@ -41,8 +41,9 @@
          <el-link type="primary" @click="openFile(scope.row.filePath)">{{scope.row.templateName + '模板' + scope.row.format}}</el-link>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" >
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
        <template #default="scope">
          <el-button link type="danger" @click="toTop(scope.row)" >置顶</el-button>
          <el-button link type="primary" @click="downloadFile(scope.row.filePath)" v-hasPermi="['techStandard:view']">下载</el-button>
          <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['techStandard:update']">编辑</el-button>
          <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['techStandard:update']">删除</el-button>
@@ -69,7 +70,7 @@
import Cookies from "js-cookie";
import editDialog from './components/editDialog.vue'
import useUserStore from "@/store/modules/user";
import {getStandardTemp,delStandardTemp} from "@/api/standardSys/standardSys";
import {getStandardTemp, delStandardTemp, templateToTop} from "@/api/standardSys/standardSys";
import { renderAsync } from "docx-preview";
import {getIndustryPage} from "@/api/system/industry";
const userStore = useUserStore()
@@ -241,6 +242,25 @@
        }
      })
}
const toTop = (val) => {
  ElMessageBox.confirm(
      '确定置顶此条数据?',
      '提示',
      {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      })
      .then( async() => {
        const res = await templateToTop(val.id)
        if(res.code == 200){
          ElMessage.success('置顶成功')
          await getList()
        }else{
          ElMessage.warning(res.message)
        }
      })
}
const handleSortChange = (val) => {
  console.log('bal',val)
  if(val.order === 'ascending' ){