|
@@ -34,7 +34,18 @@
|
|
|
</p>
|
|
|
|
|
|
<el-table border v-loading="loading" :data="tableData">
|
|
|
-<!-- <el-table-column label="序号" align="left" prop="sort" width="50"/>-->
|
|
|
+ <el-table-column label="" align="left" class-name="small-padding fixed-width" width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input
|
|
|
+ onkeyup="value=value.replace(/[^\d]/g,'')"
|
|
|
+ class="serial"
|
|
|
+ v-model="scope.row.sort"
|
|
|
+ @change="categorySort(scope.row)"
|
|
|
+ maxLength="3"
|
|
|
+ placeholder="序号">
|
|
|
+ </el-input>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="信息名称" align="left" prop="infoName"/>
|
|
|
<el-table-column label="公共信息" align="left">
|
|
|
<template slot-scope="scope">
|
|
@@ -130,7 +141,7 @@
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import {
|
|
|
infoCategoryList,
|
|
|
- infoConfigAdd, infoConfigList, infoConfigPut,infoConfigDelete
|
|
|
+ infoConfigAdd, infoConfigList, infoConfigPut, infoConfigDelete, infoCategoryPut
|
|
|
} from '@/api/laboratory/safetyInfo'
|
|
|
import safetyInfoConfig from "./safetyInfoConfig.vue"
|
|
|
import { listHazard } from '@/api/permissionRequired'
|
|
@@ -196,6 +207,7 @@ export default {
|
|
|
titleClick(type){
|
|
|
this.$parent.titleClick(type);
|
|
|
},
|
|
|
+
|
|
|
closeDialog(){
|
|
|
this.$refs['form'].clearValidate()
|
|
|
this.open=false
|
|
@@ -244,6 +256,17 @@ export default {
|
|
|
self.pageType=1;
|
|
|
}
|
|
|
},
|
|
|
+ categorySort(row){
|
|
|
+ let obj={
|
|
|
+ id:row.id,
|
|
|
+ sort:row.sort,
|
|
|
+ }
|
|
|
+ infoConfigPut(obj).then( response => {
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ },
|
|
|
categoryShow(row){
|
|
|
let obj={
|
|
|
id:row.id,
|