优化用户权限以及页面等样式问题

This commit is contained in:
BianLzhaoMin 2024-05-17 14:27:43 +08:00
parent ea33107e86
commit a71a21d070
16 changed files with 901 additions and 871 deletions

View File

@ -1,6 +1,8 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 施工装备管理系统 VUE_APP_TITLE = 施工装备管理系统
NODE_ENV = production
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'

View File

@ -1,10 +0,0 @@
# 南网系统配置
# 页面标题
VUE_APP_TITLE = 施工装备管理系统
# 生产环境配置
ENV = 'production-nw'
# 若依管理系统/生产环境
VUE_APP_BASE_API = '/gl/dev-api'

View File

@ -1,10 +1,10 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 若依管理系统 VUE_APP_TITLE = 若依管理系统
NODE_ENV = production NODE_ENV = testing
# 测试环境配置 # 测试环境配置
ENV = 'staging' ENV = 'testing'
# 若依管理系统/测试环境 # 若依管理系统/测试环境
VUE_APP_BASE_API = '/stage-api' VUE_APP_BASE_API = '/dev-api'

View File

@ -0,0 +1,12 @@
@echo off
echo.
echo [<5B><>Ϣ] <20><><EFBFBD>Web<65><62><EFBFBD>̣<EFBFBD><CCA3><EFBFBD><EFBFBD><EFBFBD>dist<73>ļ<EFBFBD><C4BC><EFBFBD>
echo.
%~d0
cd %~dp0
cd ..
npm run build:prod
pause

View File

@ -0,0 +1,12 @@
@echo off
echo.
echo [<5B><>Ϣ] <20><><EFBFBD>Web<65><62><EFBFBD>̣<EFBFBD><CCA3><EFBFBD><EFBFBD><EFBFBD>dist<73>ļ<EFBFBD><C4BC><EFBFBD>
echo.
%~d0
cd %~dp0
cd ..
npm run build:test
pause

View File

@ -7,7 +7,8 @@
"scripts": { "scripts": {
"dev": "vue-cli-service serve", "dev": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging", "build:test": "vue-cli-service build --mode testing",
"build:prod": "vue-cli-service build --mode production",
"preview": "node build/index.js --preview", "preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src" "lint": "eslint --ext .js,.vue src"
}, },

View File

@ -4,7 +4,7 @@
// const qrUrl = 'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode='; //宁夏 // const qrUrl = 'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode='; //宁夏
// const qrUrl = 'https://z.csgmall.com.cn/gl/qrCode/qrCodePage?qrCode='; //南网 // const qrUrl = 'https://z.csgmall.com.cn/gl/qrCode/qrCodePage?qrCode='; //南网
const qrUrl = process.env.NODE_ENV === 'production' ? 'https://z.csgmall.com.cn/gl/qrCode/qrCodePage?qrCode=' : 'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode=' const qrUrl = process.env.NODE_ENV === 'production' ? 'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode=' : 'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode='
export default { export default {
qrUrl, qrUrl,

View File

@ -168,6 +168,7 @@
type="primary" type="primary"
v-if="scope.row.taskStatus != 35" v-if="scope.row.taskStatus != 35"
@click="handleOut(scope.row)" @click="handleOut(scope.row)"
v-hasPermi="['picking:outbound']"
> >
出库 出库
</el-button> </el-button>

View File

@ -238,6 +238,7 @@
icon="el-icon-setting" icon="el-icon-setting"
v-if="scope.row.repairStatusCode == '43'" v-if="scope.row.repairStatusCode == '43'"
@click="handleUpdate(scope.row, 'update')" @click="handleUpdate(scope.row, 'update')"
v-hasPermi="['service:button']"
> >
维修 维修
</el-button> </el-button>

View File

@ -136,6 +136,7 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="checkClick" @click="checkClick"
v-hasPermi="['service:batch:auditing']"
>批量审核</el-button >批量审核</el-button
> >
</el-col> </el-col>
@ -244,6 +245,7 @@
icon="el-icon-circle-check" icon="el-icon-circle-check"
v-if="scope.row.taskStatus == 46" v-if="scope.row.taskStatus == 46"
@click="handleUpdate(scope.row, 'update')" @click="handleUpdate(scope.row, 'update')"
v-hasPermi="['service:auditing']"
>审核</el-button >审核</el-button
> >
</template> </template>
@ -754,24 +756,24 @@
</template> </template>
<script> <script>
import { import {
getQuestListApi, getQuestListApi,
getRepairAuditListApi, getRepairAuditListApi,
addDetailsAuditApi, addDetailsAuditApi,
getRepairRecord, getRepairRecord,
getPartRecord, getPartRecord,
} from '@/api/repairTest/testExamine' } from '@/api/repairTest/testExamine'
import { getProjectList } from '@/api/claimAndRefund/receive' import { getProjectList } from '@/api/claimAndRefund/receive'
import { import {
getUnitInfoSelectApi, getUnitInfoSelectApi,
getProjectSelectApi, getProjectSelectApi,
getDicSelectApi, getDicSelectApi,
listPartTypeApi, listPartTypeApi,
getMaTypeSelectApi, getMaTypeSelectApi,
} from '@/api/repairTest/repair' } from '@/api/repairTest/repair'
import selectTree from '../repair/selectTree.vue' import selectTree from '../repair/selectTree.vue'
import Tree from '@/views/repairTest/repair/tree.vue' import Tree from '@/views/repairTest/repair/tree.vue'
export default { export default {
name: 'TestExamine', name: 'TestExamine',
components: { Tree, selectTree }, components: { Tree, selectTree },
dicts: ['sys_normal_disable'], dicts: ['sys_normal_disable'],
@ -1246,10 +1248,10 @@ export default {
) )
}, },
}, },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.submit_box { .submit_box {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
@ -1269,9 +1271,9 @@ export default {
font-size: 12px; font-size: 12px;
} }
} }
} }
.submit_box_two { .submit_box_two {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
@ -1285,23 +1287,23 @@ export default {
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
} }
} }
::v-deep.el-table .fixed-width .el-button--mini { ::v-deep.el-table .fixed-width .el-button--mini {
width: 70px !important; width: 70px !important;
margin-bottom: 6px; margin-bottom: 6px;
} }
.dialog-footer-btn { .dialog-footer-btn {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
} }
.submit_box_openFour { .submit_box_openFour {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-content: center; align-content: center;
font-size: 18px; font-size: 18px;
} }
</style> </style>

View File

@ -63,6 +63,7 @@
size="mini" size="mini"
v-if="data.taskStatus === 121 || data.taskStatus === 120" v-if="data.taskStatus === 121 || data.taskStatus === 120"
@click="handleAuditing(data)" @click="handleAuditing(data)"
v-hasPermi="['forecast:waste:auditing']"
>审核</el-button >审核</el-button
> >
</template> </template>

View File

@ -21,9 +21,12 @@
icon="el-icon-circle-check" icon="el-icon-circle-check"
size="mini" size="mini"
@click="handelSubmitScrap" @click="handelSubmitScrap"
v-hasPermi="['submit:batch:scrap']"
>提交报废</el-button >提交报废</el-button
> >
<!-- 批量提交报废 -->
<el-button <el-button
type="success" type="success"
plain plain
@ -75,7 +78,7 @@
type="text" type="text"
size="mini" size="mini"
v-if="data.taskStatus == 124" v-if="data.taskStatus == 124"
v-hasPermi="['scrap:auditing']" v-hasPermi="['submit:scrap']"
@click="handleSubmitScrap(data)" @click="handleSubmitScrap(data)"
>提交报废</el-button >提交报废</el-button
> >

View File

@ -18,6 +18,7 @@
plain plain
size="mini" size="mini"
@click="handleBatchDisposition()" @click="handleBatchDisposition()"
v-hasPermi="['scrap:batch:disposition']"
>批量处置</el-button >批量处置</el-button
> >
<el-button <el-button
@ -69,6 +70,7 @@
type="text" type="text"
@click="handleDisposition(data)" @click="handleDisposition(data)"
v-if="data.disposition == 0" v-if="data.disposition == 0"
v-hasPermi="['scrap:disposition']"
> >
处置 处置
</el-button> </el-button>

View File

@ -243,6 +243,7 @@
scope.row.manageType != '1' scope.row.manageType != '1'
" "
@click="handleCode(scope.row)" @click="handleCode(scope.row)"
v-hasPermi="['coding:manage']"
>编码管理</el-button >编码管理</el-button
> >
<el-button <el-button

View File

@ -184,6 +184,7 @@
scope.row.taskStatus == '105' scope.row.taskStatus == '105'
" "
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['warehousing:auditing']"
>审核</el-button >审核</el-button
> >
<el-button <el-button
@ -526,15 +527,15 @@
</template> </template>
<script> <script>
import { getTypeList } from '@/api/store/warehousing' import { getTypeList } from '@/api/store/warehousing'
import { import {
getPutInList, getPutInList,
getPutinDetailsList, getPutinDetailsList,
changePutinStatus, changePutinStatus,
warehousingEntry, warehousingEntry,
} from '@/api/store/newBuy' } from '@/api/store/newBuy'
import vueEasyPrint from 'vue-easy-print' import vueEasyPrint from 'vue-easy-print'
export default { export default {
// name: "NewDevicesWarehousing", // name: "NewDevicesWarehousing",
// dicts: ['sys_normal_disable'], // dicts: ['sys_normal_disable'],
components: { vueEasyPrint }, components: { vueEasyPrint },
@ -843,10 +844,10 @@ export default {
) )
}, },
}, },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.print { .print {
width: 90%; width: 90%;
padding-left: 5%; padding-left: 5%;
padding-right: 1%; padding-right: 1%;
@ -875,10 +876,10 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
} }
::v-deep.el-table .fixed-width .el-button--mini { ::v-deep.el-table .fixed-width .el-button--mini {
width: 60px !important; width: 60px !important;
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>

View File

@ -181,6 +181,7 @@
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-if="scope.row.taskStatus == '入库进行中'" v-if="scope.row.taskStatus == '入库进行中'"
v-hasPermi="['repairTest:auditing']"
>审核</el-button >审核</el-button
> >
<!-- <el-button--> <!-- <el-button-->