Commit 0dc860cc authored by lizhichao's avatar lizhichao

预案、设备修改为政府端

parent 8bdafe49
...@@ -188,11 +188,11 @@ export default class CamerasMg extends Vue { ...@@ -188,11 +188,11 @@ export default class CamerasMg extends Vue {
} }
created() { created() {
this.enterpriseId = METHOD.enterpriseId; this.enterpriseId = METHOD.enterpriseId;
if( this.enterpriseId ){ // if( this.enterpriseId ){
this.qyvisble = true; // this.qyvisble = true;
}else{ // }else{
this.qyvisble = false; // this.qyvisble = false;
} // }
this.getTableData(); this.getTableData();
} }
} }
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<el-col :span="12" class="flcolum"> <el-col :span="12" class="flcolum">
<div> <div>
<div class="yatit">预案内容</div> <div class="yatit">预案内容</div>
<textarea id="editorA" v-model="editForm.planContents"></textarea> <textarea id="editorA" v-model="editForm.planContents" height="100%"></textarea>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -242,7 +242,7 @@ export default class PlansMgEdit extends Vue { ...@@ -242,7 +242,7 @@ export default class PlansMgEdit extends Vue {
"insertUnorderedList", "insertUnorderedList",
"indent", "indent",
]; ];
this.editorA.height = "200px"; this.editorA.height = "413px";
this.editorA.create(); this.editorA.create();
} }
deleteList() { deleteList() {
...@@ -255,15 +255,15 @@ export default class PlansMgEdit extends Vue { ...@@ -255,15 +255,15 @@ export default class PlansMgEdit extends Vue {
created() { created() {
let that = this; let that = this;
that.enterpriseId = METHOD.enterpriseId; that.enterpriseId = METHOD.enterpriseId;
if (that.enterpriseId) { // if (that.enterpriseId) {
that.qyvisble = true; // that.qyvisble = true;
that.$nextTick(() => { that.$nextTick(() => {
that.creatEditor(); that.creatEditor();
}) })
} else { // } else {
that.qyvisble = false; // that.qyvisble = false;
} // }
if (that.editForm.id && that.enterpriseId) { // if (that.editForm.id && that.enterpriseId) {
that.$nextTick(() => { that.$nextTick(() => {
//编辑 //编辑
if (that.editForm.planContents) { if (that.editForm.planContents) {
...@@ -276,7 +276,7 @@ export default class PlansMgEdit extends Vue { ...@@ -276,7 +276,7 @@ export default class PlansMgEdit extends Vue {
}); });
} }
}); });
} // }
that.actionUrl = METHOD.URL + "/file/uploadFile"; that.actionUrl = METHOD.URL + "/file/uploadFile";
} }
} }
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
</el-row> </el-row>
<el-table :data="tableData.pageData" stripe border style="width:100%;" :loading="loading"> <el-table :data="tableData.pageData" stripe border style="width:100%;" :loading="loading">
<el-table-column width="50" type="index" label="序号"></el-table-column> <el-table-column width="50" type="index" label="序号"></el-table-column>
<el-table-column prop="enterpriseName" label="企业名称"></el-table-column>
<el-table-column prop="deviceName" label="设备名称"></el-table-column> <el-table-column prop="deviceName" label="设备名称"></el-table-column>
<el-table-column prop="deviceName" label="设备类型"> <el-table-column prop="deviceName" label="设备类型">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -46,8 +47,8 @@ ...@@ -46,8 +47,8 @@
<el-table-column prop="deviceNumber" label="设备编号"></el-table-column> <el-table-column prop="deviceNumber" label="设备编号"></el-table-column>
<el-table-column prop="shortNum" label="设备短号"></el-table-column> <el-table-column prop="shortNum" label="设备短号"></el-table-column>
<el-table-column prop="goodsName" label="所在厂区位置"></el-table-column> <el-table-column prop="goodsName" label="所在厂区位置"></el-table-column>
<el-table-column prop="stockNum" label="库存数量"></el-table-column> <!-- <el-table-column prop="stockNum" label="库存数量"></el-table-column> -->
<el-table-column prop="dangerGrade" label="危险等级"></el-table-column> <!-- <el-table-column prop="dangerGrade" label="危险等级"></el-table-column> -->
<el-table-column label="操作" width="150"> <el-table-column label="操作" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="editFun(scope.row)" size="small">编辑</el-button> <el-button @click="editFun(scope.row)" size="small">编辑</el-button>
...@@ -97,12 +98,13 @@ export default class SafetyDeviceMg extends Vue { ...@@ -97,12 +98,13 @@ export default class SafetyDeviceMg extends Vue {
enterpriseId: "" enterpriseId: ""
}; };
@Provide() zjKey: any = 0; @Provide() zjKey: any = 0;
@Provide() enterpriseId: string = ""; @Provide() enterpriseId: string = "all";
@Provide() dataType: string = ""; @Provide() dataType: string = "";
getTableData() { getTableData() {
let that = this, let that = this,
param = Object.assign({}, that.PAGE, that.searchData); param = Object.assign({}, that.PAGE, that.searchData);
that.enterpriseId="all";
that.loading = true; that.loading = true;
METHOD.axiosPost( METHOD.axiosPost(
that, that,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment