Commit 755011fd authored by 徐来柯's avatar 徐来柯

update

parent 96cadfb9
...@@ -165,4 +165,8 @@ ...@@ -165,4 +165,8 @@
} }
textarea { textarea {
padding: 5px 15px; padding: 5px 15px;
}
.el-table--striped .el-table__body tr.el-table__row--striped.current-row td, .el-table__body tr.current-row>td {
background-color: #C1D0F3!important;
} }
\ No newline at end of file
...@@ -65,9 +65,17 @@ ...@@ -65,9 +65,17 @@
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
prop="FinishQuantity" prop="FinishQuantity"
width="180"> width="180">
</el-table-column>
<el-table-column
label="变量绑定"
:show-overflow-tooltip="true"
prop="VFinishQuantity"
width="200">
<template slot-scope="scope" > <template slot-scope="scope" >
<span>{{scope.row.FinishQuantity}}</span> <div class="slot_class" >
<span @click="openRelate('FinishQuantity',scope.row)" class="relateBtn plan_relateBtn" >选 择</span> <span>{{scope.row.VFinishQuantity}}</span>
<span @click="openRelate('VFinishQuantity',scope.row)" class="relateBtn plan_relateBtn" >选 择</span>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -218,7 +226,7 @@ export default { ...@@ -218,7 +226,7 @@ export default {
var $this = this var $this = this
this.$axios({ this.$axios({
method:"post", method:"post",
url:`/api/ProductStorage/ProductStorage_WindowAddSave?ID=${this.ID}&VFinish=${data.Name}`, url:`/api/StatisticsManage/StatisticsManage_VFinish?ID=${this.ID}&VFinish=${data.Name}`,
data:data data:data
}).then((res)=>{ }).then((res)=>{
$this.relateShow = false $this.relateShow = false
...@@ -279,6 +287,13 @@ export default { ...@@ -279,6 +287,13 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.slot_class {
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
padding: 0 5px
}
.relateBtn { .relateBtn {
width: 75px; width: 75px;
height: 35px; height: 35px;
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
highlight-current-row
:row-class-name="rowClassName" :row-class-name="rowClassName"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column <el-table-column
......
...@@ -239,7 +239,7 @@ export default { ...@@ -239,7 +239,7 @@ export default {
return return
} }
} }
if (this.relateType === 'VPlanQuantity' || this.relateType === 'FinishQuantity') { if (this.relateType === 'VPlanQuantity' || this.relateType === 'VFinishQuantity') {
if (this.currentRow.DateType.indexOf('整型') !== -1) { if (this.currentRow.DateType.indexOf('整型') !== -1) {
return this.$emit('conserve', this.currentRow, this.relateType) return this.$emit('conserve', this.currentRow, this.relateType)
} else { } else {
......
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