|
|
@ -1,5 +1,6 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
|
|
|
queryCodeItemValueDetail, |
|
|
removeCodeItemValue, removeCodeItemValueBatch, |
|
|
removeCodeItemValue, removeCodeItemValueBatch, |
|
|
saveCodeItemValue, saveCodeItemValueBatch, |
|
|
saveCodeItemValue, saveCodeItemValueBatch, |
|
|
searchCodeItemValueList, |
|
|
searchCodeItemValueList, |
|
|
@ -106,6 +107,8 @@ export default { |
|
|
saveItemValueListDialog:false, |
|
|
saveItemValueListDialog:false, |
|
|
itemValueListSelected:[], |
|
|
itemValueListSelected:[], |
|
|
itemValueAllList:[], |
|
|
itemValueAllList:[], |
|
|
|
|
|
queryCodeItemValueDialog:false, |
|
|
|
|
|
queryCodeItemValueList:[], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch:{ |
|
|
watch:{ |
|
|
@ -543,6 +546,21 @@ export default { |
|
|
}).catch((error)=> { |
|
|
}).catch((error)=> { |
|
|
this.$message.error(error) |
|
|
this.$message.error(error) |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
handleQueryCodeItemValue(row){ |
|
|
|
|
|
let params = { |
|
|
|
|
|
...row |
|
|
|
|
|
} |
|
|
|
|
|
queryCodeItemValueDetail(params).then(({data})=>{ |
|
|
|
|
|
if (data && data.code === 0){ |
|
|
|
|
|
this.queryCodeItemValueDialog = true; |
|
|
|
|
|
this.queryCodeItemValueList = data.rows; |
|
|
|
|
|
}else { |
|
|
|
|
|
this.$message.warning(data.msg) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
|
this.$message.error(error) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
@ -629,10 +647,11 @@ export default { |
|
|
<el-table :data="itemValueList" height="300" border style="width: 100%"> |
|
|
<el-table :data="itemValueList" height="300" border style="width: 100%"> |
|
|
<el-table-column prop="valueNo" header-align="center" align="left" min-width="120" width="140" label="简码"></el-table-column> |
|
|
<el-table-column prop="valueNo" header-align="center" align="left" min-width="120" width="140" label="简码"></el-table-column> |
|
|
<el-table-column prop="itemValue" header-align="center" align="left" label="值"></el-table-column> |
|
|
<el-table-column prop="itemValue" header-align="center" align="left" label="值"></el-table-column> |
|
|
<el-table-column label="操作" header-align="center" align="center" width="120"> |
|
|
|
|
|
|
|
|
<el-table-column label="操作" header-align="center" align="center" width="160"> |
|
|
<template slot-scope="{row,$index}"> |
|
|
<template slot-scope="{row,$index}"> |
|
|
<el-link style="cursor:pointer;" @click="clickSaveItemValueBtn(row)">编辑</el-link> |
|
|
<el-link style="cursor:pointer;" @click="clickSaveItemValueBtn(row)">编辑</el-link> |
|
|
<el-link style="cursor:pointer;" @click="removeCodeItemValue(row)">删除</el-link> |
|
|
<el-link style="cursor:pointer;" @click="removeCodeItemValue(row)">删除</el-link> |
|
|
|
|
|
<el-link style="cursor:pointer;" @click="handleQueryCodeItemValue(row)">被引用的条件</el-link> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -761,6 +780,18 @@ export default { |
|
|
<el-button type="primary" @click="saveItemValueListDialog = false">关闭</el-button> |
|
|
<el-button type="primary" @click="saveItemValueListDialog = false">关闭</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="被引用的条件" v-drag :close-on-click-modal="false" top="20vh" :visible.sync="queryCodeItemValueDialog" append-to-body width="520px"> |
|
|
|
|
|
<el-table :data="queryCodeItemValueList" height="300px" border> |
|
|
|
|
|
<el-table-column prop="itemNo" label="元素序号"></el-table-column> |
|
|
|
|
|
<el-table-column prop="itemDesc" label="元素描述"></el-table-column> |
|
|
|
|
|
<el-table-column prop="conditionId" label="条件序号"></el-table-column> |
|
|
|
|
|
<el-table-column prop="conditionDesc" label="条件描述"></el-table-column> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
<el-footer style="height:30px;margin-top: 10px;text-align:center"> |
|
|
|
|
|
<el-button type="primary" @click="queryCodeItemValueDialog = false">关闭</el-button> |
|
|
|
|
|
</el-footer> |
|
|
|
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
|