|
@@ -145,7 +145,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
-import { laboratoryInfoBrandAdd, laboratoryInfoBrandDelete, laboratoryInfoBrandList, laboratoryInfoBrandUpdate } from '@/api/integratedManagement/index'
|
|
|
+import { laboratoryInfoBrandAdd, laboratoryInfoBrandDelete, laboratoryInfoBrandList, laboratoryInfoBrandUpdate,laboratoryBoardGetBrandInOrder } from '@/api/integratedManagement/index'
|
|
|
import infoConfig from "./infoConfig.vue"
|
|
|
export default {
|
|
|
name: "Approval",
|
|
@@ -207,6 +207,20 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ //获取安全类目最大排序
|
|
|
+ laboratoryBoardGetBrandInOrder(){
|
|
|
+ laboratoryBoardGetBrandInOrder({}).then(response => {
|
|
|
+ this.title='新增安全信息类目';
|
|
|
+ this.$set(this,'form',{
|
|
|
+ brandName:'',
|
|
|
+ brandType:'',
|
|
|
+ isSpecial:'',
|
|
|
+ showColour:'',
|
|
|
+ orderNum:response.data,
|
|
|
+ });
|
|
|
+ this.open = true;
|
|
|
+ })
|
|
|
+ },
|
|
|
//保存当前序号
|
|
|
liveSort(row) {
|
|
|
let obj = {
|
|
@@ -252,14 +266,7 @@ export default {
|
|
|
handleClick(index,row,doType){
|
|
|
let _this=this;
|
|
|
if(doType=='add'){//添加
|
|
|
- this.title='新增安全信息类目';
|
|
|
- this.$set(this,'form',{
|
|
|
- brandName:'',
|
|
|
- brandType:'',
|
|
|
- isSpecial:'',
|
|
|
- showColour:'',
|
|
|
- });
|
|
|
- this.open = true;
|
|
|
+ this.laboratoryBoardGetBrandInOrder();
|
|
|
}else if(doType=='edit'){//编辑
|
|
|
this.title='编辑安全信息类目';
|
|
|
this.$set(this,'form',{
|