|
@@ -4,9 +4,11 @@
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
<el-tab-pane label="压实度评标参数" name="first">
|
|
<el-tab-pane label="压实度评标参数" name="first">
|
|
<avue-crud
|
|
<avue-crud
|
|
- :table-loading="loading"
|
|
|
|
|
|
+ :before-open="beforeOpen"
|
|
|
|
+ :table-loading="loading"
|
|
:data="tableData"
|
|
:data="tableData"
|
|
:option="option"
|
|
:option="option"
|
|
|
|
+ v-model="form"
|
|
@row-save="rowSave"
|
|
@row-save="rowSave"
|
|
@row-update="rowUpdate"
|
|
@row-update="rowUpdate"
|
|
@selection-change="selectionChange"
|
|
@selection-change="selectionChange"
|
|
@@ -42,7 +44,7 @@
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</div>
|
|
</div>
|
|
<!-- 导入参数弹窗 -->
|
|
<!-- 导入参数弹窗 -->
|
|
- <importDialog ref="importDialog" @paramLoad="onLoad" :importDialogType="importDialogType"/>
|
|
|
|
|
|
+ <importDialog ref="importDialog" @paramLoad="onLoad" :importDialogType="importDialogType" :parmpage="page" />
|
|
</basic-container>
|
|
</basic-container>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -50,7 +52,7 @@
|
|
<script>
|
|
<script>
|
|
import importDialog from './importDialog.vue';
|
|
import importDialog from './importDialog.vue';
|
|
import temperature from './temperature.vue';
|
|
import temperature from './temperature.vue';
|
|
-import {getList,add, update, remove} from "@/api/tentative/testpram";
|
|
|
|
|
|
+import {getList,add, update, remove,getDetail} from "@/api/tentative/testpram";
|
|
export default {
|
|
export default {
|
|
components:{
|
|
components:{
|
|
importDialog,
|
|
importDialog,
|
|
@@ -68,7 +70,7 @@ export default {
|
|
tableData: [],
|
|
tableData: [],
|
|
selectionList:[],
|
|
selectionList:[],
|
|
query:{},
|
|
query:{},
|
|
-
|
|
|
|
|
|
+ form:{},
|
|
option:{
|
|
option:{
|
|
height: 'auto',
|
|
height: 'auto',
|
|
calcHeight: 30,
|
|
calcHeight: 30,
|
|
@@ -153,8 +155,8 @@ export default {
|
|
loading();
|
|
loading();
|
|
window.console.log(error);
|
|
window.console.log(error);
|
|
});
|
|
});
|
|
- },
|
|
|
|
- rowUpdate(row, index, done, loading) {
|
|
|
|
|
|
+ },
|
|
|
|
+ rowUpdate(row, index, done, loading) {
|
|
update(row).then(() => {
|
|
update(row).then(() => {
|
|
this.onLoad(this.page);
|
|
this.onLoad(this.page);
|
|
this.$message({
|
|
this.$message({
|
|
@@ -167,6 +169,14 @@ export default {
|
|
console.log(error);
|
|
console.log(error);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ beforeOpen(done, type) {
|
|
|
|
+ if (["edit", "view"].includes(type)) {
|
|
|
|
+ getDetail(this.form.id).then(res => {
|
|
|
|
+ this.form = res.data.data;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ done();
|
|
|
|
+ },
|
|
|
|
|
|
handleDelete () {
|
|
handleDelete () {
|
|
if (this.selectionList.length === 0) {
|
|
if (this.selectionList.length === 0) {
|