修改bug
This commit is contained in:
@@ -166,13 +166,20 @@ export default {
|
||||
this.resetForm('form');
|
||||
},
|
||||
deleteHandle(id, name, index, data) {
|
||||
console.log(data)
|
||||
// const params = new URLSearchParams();
|
||||
// params.append('productionLineId', data.productionLineId)
|
||||
// params.append('sectionId', data.sectionId);
|
||||
this.$confirm(`确认要删除产线名为${data.productionLineName}的数据项?`, "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
})
|
||||
.then(() => {
|
||||
this.urlOptions.deleteURL(data.id).then(({ data }) => {
|
||||
this.urlOptions.deleteURL({
|
||||
'productionLineId': data.productionLineId,
|
||||
'sectionId': data.sectionId,
|
||||
}).then(({ data }) => {
|
||||
this.$message({
|
||||
message: "操作成功",
|
||||
type: "success",
|
||||
|
||||
@@ -34,6 +34,7 @@ import basicPage from './basic-page';
|
||||
import moment from 'moment';
|
||||
import addOrUpdate from './dialogForm.vue';
|
||||
import ProcessBomList from './ProcessBomList.vue';
|
||||
import row from './row.vue';
|
||||
export default {
|
||||
name: 'QualityInspectionBoxBtn',
|
||||
mixins: [basicPage],
|
||||
@@ -115,7 +116,8 @@ export default {
|
||||
},
|
||||
{
|
||||
prop: 'datas',
|
||||
label: '产线及工段',
|
||||
label: '产线及工段',
|
||||
subcomponent: row
|
||||
}
|
||||
],
|
||||
// 查询参数
|
||||
@@ -168,7 +170,7 @@ export default {
|
||||
this.urlOptions.getDataListURL(this.listQuery).then(res => {
|
||||
this.tableData = res.data.list.map((item) => {
|
||||
return {
|
||||
datas: item.strList ? item.strList.toString() : null,
|
||||
datas: item.strList || null,
|
||||
nickName: item.nickName,
|
||||
userName: item.userName,
|
||||
userId: item.userId
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
<!--
|
||||
* @Author: zhp
|
||||
* @Date: 2024-03-20 10:01:01
|
||||
* @LastEditTime: 2024-03-20 10:03:39
|
||||
* @LastEditors: zhp
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
<div class="tableInner">
|
||||
<div v-for="(item,index) in injectData.datas" :key="index">
|
||||
<span> {{ item }} </span>
|
||||
</div>
|
||||
<!-- <el-input-number v-model="list[itemProp]" @blur="changeInput" :min="0" :max="100000000" style="width: 100%" :controls='false'></el-input-number> -->
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'InputArea',
|
||||
props: {
|
||||
injectData: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
itemProp: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: this.injectData
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// changeInput() {
|
||||
// this.$emit('emitData', this.list)
|
||||
// }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
// .tableInner .el-input__inner {
|
||||
// border: none;
|
||||
// padding: 0;
|
||||
// height: 33px;
|
||||
// }
|
||||
</style>
|
||||
Reference in New Issue
Block a user