样式修改

master
jinna 7 months ago
parent f486cab5d7
commit 904140e4d3
  1. 400
      src/views/tankSolutionSystem/info.vue
  2. 14
      src/views/tankSolutionSystem/tankSolutionTaskAssignment.vue
  3. 15
      src/views/tankSolutionSystem/tankSolutionTaskDispose.vue
  4. 15
      src/views/tankSolutionSystem/workTankLine.vue
  5. 10
      src/views/tankSolutionSystem/workTankMangage.vue

@ -1,97 +1,103 @@
<template> <template>
<basic-container> <basic-container>
<avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud" <avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud"
@row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" @row-del="rowDel" @search-change="searchChange" @search-reset="searchReset"
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
@refresh-change="refreshChange" @on-load="onLoad"> @refresh-change="refreshChange" @on-load="onLoad" >
<template #menu-left> <template #menu-left>
<el-button type="danger" icon="el-icon-delete" @click="handleDelete"> <el-button type="danger" icon="el-icon-delete" @click="handleDelete"
</el-button> >
<el-button type="success" icon="el-icon-upload" @click="handleImport">导入 </el-button>
</el-button> <el-button
<el-button type="primary" icon="el-icon-setting" @click="handleSetting">批量设置 type="success"
</el-button> icon="el-icon-upload"
</template> @click="handleImport"
<template #menu="{ row }"> >导入
<el-button type="primary" text plain style="border: 0; background-color: transparent !important" </el-button>
size="medium" @click.stop="handleIssue(row)"> <el-button
<el-icon> type="primary"
<Pointer /> icon="el-icon-setting"
</el-icon> @click="handleSetting"
</el-button> >批量设置
</template> </el-button>
<template #targetLimit-form="{ type }"> </template>
<div style="width: 100%;display: flex;justify-content: space-between;" <template #menu="{ row }">
v-show="type == 'add' || type == 'edit'"> <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
<el-input style="width: 47%;" placeholder="请输入"></el-input>~<el-input style="width: 47%;" size="medium" @click.stop="handleIssue(row)" >下发</el-button>
placeholder="请输入"></el-input> </template>
</div> <template #targetLimit-form="{type}">
<div v-show="type == 'view'">5 ~ 10</div> <div style="width: 100%;display: flex;justify-content: space-between;" v-show="type == 'add' || type == 'edit'">
</template> <el-input style="width: 47%;" placeholder="请输入"></el-input>~<el-input style="width: 47%;" placeholder=""></el-input>
<template #assayCycle1-form="{ type }"> </div>
<div style="width: 100%;" v-show="type == 'add' || type == 'edit'"> <div v-show="type == 'view'">5 ~ 10</div>
<el-select style="width: 200px;margin-bottom: 10px;"> </template>
<el-option label="每周" :value="1"></el-option> <template #assayCycle1-form="{type}">
</el-select> <div style="width: 100%;" v-show="type == 'add' || type == 'edit'">
<div class="check_box"> <el-select style="width: 200px;margin-bottom: 10px;">
<el-checkbox-group v-model="checkList1"> <el-option label="每周" :value="1"></el-option>
<el-checkbox :label="getName(item)" :value="item" v-for="item in 7" :key="item" /> </el-select>
</el-checkbox-group> <div class="check_box">
</div> <el-checkbox-group v-model="checkList1">
<el-checkbox :label="getName(item)" :value="item" v-for="item in 7" :key="item" />
</el-checkbox-group>
</div> </div>
<div v-show="type == 'view'"> </div>
<div>每周</div> <div v-show="type == 'view'">
<div class="check_box"> <div>每周</div>
<el-checkbox-group v-model="checkList"> <div class="check_box">
<el-checkbox :label="getName(item)" :value="item" v-for="item in 7" :key="item" /> <el-checkbox-group v-model="checkList">
</el-checkbox-group> <el-checkbox :label="getName(item)" :value="item" v-for="item in 7" :key="item" />
</div> </el-checkbox-group>
</div> </div>
</div>
</template>
</avue-crud>
<el-dialog title="导入" append-to-body v-model="excelBox" width="555px">
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
<template #excelTemplate>
<el-button type="primary" @click="handleTemplate">
点击下载<i class="el-icon-download el-icon--right"></i>
</el-button>
</template> </template>
</avue-crud> </avue-form>
<el-dialog title="导入" append-to-body v-model="excelBox" width="555px"> </el-dialog>
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter"> <el-dialog title="批量设置" append-to-body v-model="setBox" width="555px">
<template #excelTemplate> <el-form v-model="settingForm" label-width="80px">
<el-button type="primary" @click="handleTemplate"> <el-form-item label="有效期">
点击下载<i class="el-icon-download el-icon--right"></i> <el-date-picker
</el-button> v-model="settingForm.reallyDate"
</template> type="date"
</avue-form> style="width: 100%;"
</el-dialog> placeholder="请选择有效期"
<el-dialog title="批量设置" append-to-body v-model="setBox" width="555px"> />
<el-form v-model="settingForm" label-width="80px"> </el-form-item>
<el-form-item label="有效期"> <el-form-item label="主管工艺">
<el-date-picker v-model="settingForm.reallyDate" type="date" style="width: 100%;" <el-select v-model="settingForm.chargeCraft"></el-select>
placeholder="请选择有效期" /> </el-form-item>
</el-form-item> </el-form>
<el-form-item label="主管工艺"> <template #footer>
<el-select v-model="settingForm.chargeCraft"></el-select> <span class="dialog-footer">
</el-form-item> <el-button @click="setBox = false"> </el-button>
</el-form> <el-button type="primary" @click="setBox = false"> </el-button>
<template #footer> </span>
<span class="dialog-footer"> </template>
<el-button @click="setBox = false"> </el-button> </el-dialog>
<el-button type="primary" @click="setBox = false"> </el-button> </basic-container>
</span>
</template>
</el-dialog>
</basic-container>
</template> </template>
<script> <script>
export default { export default {
data() { data(){
return { return{
excelBox: false, excelBox:false,
loading: false, loading:false,
setBox: false, setBox:false,
data: [], data:[],
settingForm: {}, settingForm:{},
checkList: [1, 2, 3, 4, 5, 6, 7], checkList:[1,2,3,4,5,6,7],
option: { option:{
// sortable:true, height:'auto',
rowSort: false, calcHeight: 32,
columnSort: true,
tip: false, tip: false,
size: 'medium', size: 'medium',
simplePage: true, simplePage: true,
@ -106,9 +112,12 @@ export default {
viewBtn: true, viewBtn: true,
delBtn: true, delBtn: true,
editBtnText: '修改', editBtnText: '修改',
viewBtnText: '详情', viewBtnIcon:' ',
delBtnIcon:' ',
editBtnIcon:' ',
viewBtnText:'详情',
labelWidth: 120, labelWidth: 120,
menuWidth: 330, menuWidth: 220,
dialogWidth: 1200, dialogWidth: 1200,
dialogClickModal: false, dialogClickModal: false,
searchEnter: true, searchEnter: true,
@ -116,18 +125,19 @@ export default {
filterBtn: true, filterBtn: true,
searchShowBtn: false, searchShowBtn: false,
excelBtn: true, excelBtn: true,
columnSort:true,
index: false, index: false,
showOverflowTooltip: true, showOverflowTooltip: true,
column: [ column:[
{ {
label: '作业中心', label: '作业中心',
prop: 'wcName', prop: 'wcName',
type: 'select', type: 'select',
sortable: true, sortable: true,
width: 150, width:150,
filter: true, filter: true,
span: 8, span: 8,
search: true, search:true,
rules: [ rules: [
{ {
required: true, required: true,
@ -139,7 +149,7 @@ export default {
{ {
label: '化学镀镍作业中心', label: '化学镀镍作业中心',
value: 0 value: 0
}, },
{ {
label: '镀后库作业中心', label: '镀后库作业中心',
value: 1 value: 1
@ -150,16 +160,16 @@ export default {
label: '槽号', label: '槽号',
prop: 'slotNo', prop: 'slotNo',
search: true, search: true,
type: 'select', type:'select',
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
span: 8, span: 8,
dicData: [ dicData: [
{ {
label: '#22', label: '#22',
value: 0 value: 0
}, },
{ {
label: '#21', label: '#21',
value: 1 value: 1
@ -178,7 +188,7 @@ export default {
prop: 'testEle', prop: 'testEle',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -194,7 +204,7 @@ export default {
prop: 'proContent', prop: 'proContent',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -210,9 +220,9 @@ export default {
prop: 'targetLimit', prop: 'targetLimit',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
hide: true, hide:true,
span: 8, span: 8,
rules: [ rules: [
{ {
@ -227,11 +237,11 @@ export default {
prop: 'targetUpperLimit', prop: 'targetUpperLimit',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
addDisplay: false, addDisplay:false,
viewDisplay: false, viewDisplay:false,
editDisplay: false, editDisplay:false,
span: 8, span: 8,
rules: [ rules: [
{ {
@ -246,10 +256,10 @@ export default {
prop: 'targetLowerLimit', prop: 'targetLowerLimit',
search: false, search: false,
sortable: true, sortable: true,
addDisplay: false, addDisplay:false,
viewDisplay: false, viewDisplay:false,
editDisplay: false, editDisplay:false,
width: 120, width:120,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -265,7 +275,7 @@ export default {
prop: 'targetValue', prop: 'targetValue',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -282,7 +292,7 @@ export default {
search: false, search: false,
type: 'select', type: 'select',
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -296,7 +306,7 @@ export default {
{ {
label: '药品一', label: '药品一',
value: 0 value: 0
}, },
{ {
label: '药品二', label: '药品二',
value: 1 value: 1
@ -309,9 +319,9 @@ export default {
search: false, search: false,
type: 'select', type: 'select',
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
hide: true, hide:true,
span: 8, span: 8,
rules: [ rules: [
{ {
@ -324,7 +334,7 @@ export default {
{ {
label: '物料一', label: '物料一',
value: 0 value: 0
}, },
{ {
label: '物料二', label: '物料二',
value: 1 value: 1
@ -337,9 +347,9 @@ export default {
disabled: true, disabled: true,
search: false, search: false,
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
hide: true, hide:true,
span: 8, span: 8,
rules: [ rules: [
{ {
@ -354,7 +364,7 @@ export default {
prop: 'addPoints', prop: 'addPoints',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -370,10 +380,10 @@ export default {
prop: 'assayCycle', prop: 'assayCycle',
search: false, search: false,
sortable: true, sortable: true,
addDisplay: false, addDisplay:false,
viewDisplay: false, viewDisplay:false,
editDisplay: false, editDisplay:false,
width: 120, width:120,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -389,8 +399,8 @@ export default {
prop: 'reallyDate', prop: 'reallyDate',
search: false, search: false,
sortable: true, sortable: true,
type: 'date', type:'date',
width: 120, width:120,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -406,10 +416,10 @@ export default {
prop: 'lastTest', prop: 'lastTest',
search: false, search: false,
sortable: true, sortable: true,
addDisplay: false, addDisplay:false,
viewDisplay: false, viewDisplay:false,
editDisplay: false, editDisplay:false,
width: 150, width:150,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -423,10 +433,10 @@ export default {
{ {
label: '槽液到期日期', label: '槽液到期日期',
prop: 'dueDate', prop: 'dueDate',
type: 'date', type:'date',
search: false, search: false,
sortable: true, sortable: true,
width: 150, width:150,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -440,10 +450,10 @@ export default {
{ {
label: '化验人', label: '化验人',
prop: 'userName', prop: 'userName',
type: 'select', type:'select',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -457,10 +467,10 @@ export default {
{ {
label: '主管工艺', label: '主管工艺',
prop: 'chargeCraft', prop: 'chargeCraft',
type: 'select', type:'select',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width:120,
filter: true, filter: true,
span: 16, span: 16,
rules: [ rules: [
@ -476,10 +486,10 @@ export default {
prop: 'updateTime', prop: 'updateTime',
search: false, search: false,
sortable: true, sortable: true,
width: 120, width:120,
addDisplay: false, addDisplay:false,
viewDisplay: false, viewDisplay:false,
editDisplay: false, editDisplay:false,
filter: true, filter: true,
span: 8, span: 8,
rules: [ rules: [
@ -495,8 +505,8 @@ export default {
prop: 'assayCycle1', prop: 'assayCycle1',
search: false, search: false,
sortable: true, sortable: true,
hide: true, hide:true,
width: 120, width:120,
filter: true, filter: true,
span: 24, span: 24,
rules: [ rules: [
@ -509,7 +519,7 @@ export default {
}, },
] ]
}, },
form: { form:{
}, },
page: { page: {
@ -517,7 +527,7 @@ export default {
currentPage: 1, currentPage: 1,
total: 0, total: 0,
}, },
excelOption: { excelOption:{
submitBtn: false, submitBtn: false,
emptyBtn: false, emptyBtn: false,
column: [ column: [
@ -544,11 +554,11 @@ export default {
}, },
} }
}, },
mounted() { mounted(){
}, },
methods: { methods:{
getName(val) { getName(val){
return val == 1 ? '周一' : val == 2 ? '周二' : val == 3 ? '周三' : val == 4 ? '周四' : val == 5 ? '周五' : val == 6 ? '周六' : '周日' return val == 1 ? '周一' : val == 2 ? '周二' : val == 3 ? '周三' : val == 4 ? '周四' : val == 5 ? '周五' : val == 6 ? '周六' : '周日'
}, },
handleImport() { handleImport() {
@ -563,10 +573,10 @@ export default {
this.$refs.crud.toggleSelection(); this.$refs.crud.toggleSelection();
}, },
rowUpdate(row, index, done, loading) { rowUpdate(row, index, done, loading) {
}, },
rowSave(row, done, loading) { rowSave(row, done, loading) {
}, },
searchReset() { searchReset() {
this.query = {}; this.query = {};
@ -584,7 +594,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
}).then(() => { }).then(() => {
}) })
}, },
currentChange(currentPage) { currentChange(currentPage) {
@ -608,71 +618,91 @@ export default {
}).then(() => { }).then(() => {
}) })
}, },
handleSetting() { handleSetting(){
if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
this.$message.warning('请选择至少一条数据'); this.$message.warning('请选择至少一条数据');
return; return;
} }
this.setBox = true this.setBox = true
}, },
handleIssue(row) { handleIssue(row){
this.$confirm('此操作将产生新的任务, 是否继续?', { this.$confirm('此操作将产生新的任务, 是否继续?', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
}).then(() => { }).then(() => {
}) })
}, },
onLoad() { onLoad(){
this.loading = true this.loading = true
this.data = [ this.data = [
{ {
id: '1', id:'1',
wcName: '化学镀镍作业中心', wcName:'化学镀镍作业中心',
slotNo: '11#氰化镀铜槽', slotNo:'11#氰化镀铜槽',
testEle: '碳酸钠', testEle:'碳酸钠',
proContent: '0', proContent:'0',
targetUpperLimit: '10', targetUpperLimit:'10',
targetLowerLimit: '5', targetLowerLimit:'5',
targetValue: '3', targetValue:'3',
drugName: '111', drugName:'111',
addPoints: '0', addPoints:'0',
assayCycle: '7', assayCycle:'7',
reallyDate: '2025-10-09', reallyDate:'2025-10-09',
lastTest: '2023-06-13', lastTest:'2023-06-13',
dueDate: '2023-06-20', dueDate:'2023-06-20',
userName: '崔殿龙', userName:'崔殿龙',
chargeCraft: '崔殿龙', chargeCraft:'崔殿龙',
updateTime: '2024-01-12' updateTime:'2024-01-12'
}, },
{ {
id: '2', id:'2',
wcName: '化学镀镍作业中心', wcName:'化学镀镍作业中心',
slotNo: '22#氰化镀铜槽', slotNo:'22#氰化镀铜槽',
testEle: '碳酸钠', testEle:'碳酸钠',
proContent: '0', proContent:'0',
targetUpperLimit: '10', targetUpperLimit:'10',
targetLowerLimit: '5', targetLowerLimit:'5',
targetValue: '3', targetValue:'3',
drugName: '111', drugName:'111',
addPoints: '0', addPoints:'0',
assayCycle: '7', assayCycle:'7',
reallyDate: '2025-10-09', reallyDate:'2025-10-09',
lastTest: '2023-06-13', lastTest:'2023-06-13',
dueDate: '2023-06-20', dueDate:'2023-06-20',
userName: '崔殿龙', userName:'崔殿龙',
chargeCraft: '崔殿龙', chargeCraft:'崔殿龙',
updateTime: '2024-01-12' updateTime:'2024-01-12'
} }
] ]
this.page.total = this.data.length this.page.total = this.data.length
this.loading = false this.loading = false
setTimeout(() => { setTimeout(() =>{
this.selectionClear() this.selectionClear()
}, 500) },500)
} }
} }
} }
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped>
</style>
<style lang="scss">
.el-table .el-table__cell{
height: 36px !important;
padding: 0 !important;
line-height: 36px !important;
}
.el-table th.el-table__cell{
background: #284c89 !important;
color: #fff !important;
}
.el-table .sort-caret.ascending{
border-bottom-color: #fff !important;
}
.el-table .sort-caret.descending {
border-top-color: #fff;
}
</style>

@ -117,7 +117,6 @@ export default {
issueForm:{}, issueForm:{},
option:{ option:{
tip: false, tip: false,
simplePage: true,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,
searchIcon: true, searchIcon: true,
@ -141,6 +140,19 @@ export default {
searchShowBtn: false, searchShowBtn: false,
excelBtn: true, excelBtn: true,
showOverflowTooltip: true, showOverflowTooltip: true,
align:'center',
height:'auto',
calcHeight: 32,
// height: 'auto',
// calcHeight: 32,
// tip: false,
// searchShow: true,
// searchMenuSpan: 6,
// border: true,
// index: true,
// viewBtn: true,
// selection: true,
// dialogClickModal: false,
column:[ column:[
{ {
label: '任务编号', label: '任务编号',

@ -19,13 +19,12 @@
@on-load="onLoad" @on-load="onLoad"
> >
<template #menu="scope"> <template #menu="scope">
<el-button text icon="el-icon-view" @click="handleView(scope.row,'view')">详情</el-button> <el-button text @click="handleView(scope.row,'view')">详情</el-button>
<el-button text @click="handleView(scope.row,'add')" v-show="scope.row.status == 1 || scope.row.status == 4"> <el-button text @click="handleView(scope.row,'add')" v-show="scope.row.status == 1 || scope.row.status == 4">
<el-icon style="margin-right: 5px;"><Edit /></el-icon>
填报 填报
</el-button> </el-button>
<el-button text v-show="scope.row.status == 3" icon="el-icon-first-aid-kit" @click="handleView(scope.row,'drug')">领药</el-button> <el-button text v-show="scope.row.status == 3" @click="handleView(scope.row,'drug')">领药</el-button>
<el-button text v-show="scope.row.status == 2" icon="el-icon-circle-check" @click="handleView(scope.row,'check')">审核</el-button> <el-button text v-show="scope.row.status == 2" @click="handleView(scope.row,'check')">审核</el-button>
</template> </template>
<template #userId="{ row }"> <template #userId="{ row }">
{{ row.testMan.userName }} {{ row.testMan.userName }}
@ -66,7 +65,9 @@ export default {
issueForm:{}, issueForm:{},
option:{ option:{
tip: false, tip: false,
simplePage: true, height:'auto',
calcHeight: 32,
// simplePage: true,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,
searchIcon: true, searchIcon: true,
@ -81,6 +82,9 @@ export default {
editBtn:false, editBtn:false,
editBtnText: '修改', editBtnText: '修改',
viewBtnText:'详情', viewBtnText:'详情',
viewBtnIcon:' ',
delBtnIcon:' ',
editBtnIcon:' ',
labelWidth: 120, labelWidth: 120,
// menuWidth: 330, // menuWidth: 330,
dialogWidth: 600, dialogWidth: 600,
@ -90,6 +94,7 @@ export default {
searchShowBtn: false, searchShowBtn: false,
excelBtn: true, excelBtn: true,
showOverflowTooltip: true, showOverflowTooltip: true,
align:'center',
column:[ column:[
{ {
label: '任务编号', label: '任务编号',

@ -13,8 +13,8 @@
</el-button> </el-button>
</template> </template>
<template #menu="scope"> <template #menu="scope">
<el-button icon="el-icon-view" type="text" @click="handleView(scope.row)">详情</el-button> <el-button type="text" @click="handleView(scope.row)">详情</el-button>
<el-button icon="el-icon-view" type="text" @click="rowDel(scope.row)">删除</el-button> <el-button type="text" @click="rowDel(scope.row)">删除</el-button>
</template> </template>
</avue-crud> </avue-crud>
<el-dialog title="生产曲线" append-to-body v-model="lineBox" width="70%"> <el-dialog title="生产曲线" append-to-body v-model="lineBox" width="70%">
@ -111,7 +111,10 @@ export default {
option:{ option:{
tip: false, tip: false,
size: 'medium', size: 'medium',
simplePage: true, height:'auto',
align:'center',
calcHeight: 32,
// simplePage: true,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,
searchIcon: true, searchIcon: true,
@ -127,7 +130,7 @@ export default {
editBtnText: '修改', editBtnText: '修改',
viewBtnText:'详情', viewBtnText:'详情',
labelWidth: 120, labelWidth: 120,
menuWidth: 200, // menuWidth: 200,
dialogWidth: 1200, dialogWidth: 1200,
dialogClickModal: false, dialogClickModal: false,
searchEnter: true, searchEnter: true,
@ -135,6 +138,9 @@ export default {
filterBtn: true, filterBtn: true,
searchShowBtn: false, searchShowBtn: false,
excelBtn: true, excelBtn: true,
viewBtnIcon:' ',
delBtnIcon:' ',
editBtnIcon:' ',
index: false, index: false,
showOverflowTooltip: true, showOverflowTooltip: true,
column:[ column:[
@ -230,6 +236,7 @@ export default {
filter: true, filter: true,
span: 8, span: 8,
search:false, search:false,
width:240,
rules: [ rules: [
{ {
required: true, required: true,

@ -30,7 +30,7 @@
</el-button> </el-button>
</template> </template>
<template #status="{ row }"> <template #status="{ row }">
<div style="display: flex;align-items: center;"> <div style="display: flex;align-items: center;justify-content: center;">
<span :style="{marginRight:'5px',backgroundColor:row.status == 1 ? '#00A854' : '#F04134',width:'12px',height:'12px',borderRadius:'50%',display:'inline-block'}"></span><span>{{ row.status == 0 ? '暂停使用' : '使用中' }}</span> <span :style="{marginRight:'5px',backgroundColor:row.status == 1 ? '#00A854' : '#F04134',width:'12px',height:'12px',borderRadius:'50%',display:'inline-block'}"></span><span>{{ row.status == 0 ? '暂停使用' : '使用中' }}</span>
</div> </div>
</template> </template>
@ -63,7 +63,8 @@ export default {
excelBox:false, excelBox:false,
option:{ option:{
tip: false, tip: false,
simplePage: true, height:'auto',
calcHeight: 32,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,
searchIcon: true, searchIcon: true,
@ -76,8 +77,10 @@ export default {
delBtn: true, delBtn: true,
editBtnText: '修改', editBtnText: '修改',
viewBtnText:'详情', viewBtnText:'详情',
editBtnIcon:' ',
viewBtnIcon:' ',
delBtnIcon:' ',
labelWidth: 120, labelWidth: 120,
menuWidth: 330,
dialogWidth: 600, dialogWidth: 600,
dialogClickModal: false, dialogClickModal: false,
searchEnter: true, searchEnter: true,
@ -85,6 +88,7 @@ export default {
searchShowBtn: false, searchShowBtn: false,
excelBtn: true, excelBtn: true,
showOverflowTooltip: true, showOverflowTooltip: true,
align:'center',
column:[ column:[
{ {
label: '编码', label: '编码',

Loading…
Cancel
Save