|
@@ -87,27 +87,24 @@ const props = defineProps({
|
|
|
type:Array,
|
|
|
default:()=>([])
|
|
|
},
|
|
|
- isres:{
|
|
|
- type: Boolean,
|
|
|
- default: false//验证是否可以保存
|
|
|
- }
|
|
|
+
|
|
|
})
|
|
|
|
|
|
const infoData = ref(props.datas)
|
|
|
const isDisabled = ref(props.disabled)
|
|
|
const saveLoaingVal=ref(props.saveLoaing)
|
|
|
-const isresdata = ref(props.isres)
|
|
|
+
|
|
|
|
|
|
//深度监听
|
|
|
watch(() => [
|
|
|
props.datas,
|
|
|
infoData,
|
|
|
- props.isres
|
|
|
-], ([datas,infoData,isres]) => {
|
|
|
+
|
|
|
+], ([datas,infoData]) => {
|
|
|
console.log(datas,'datas');
|
|
|
infoData.value = datas
|
|
|
emit('update:datas', infoData)
|
|
|
- isresdata.value=isres
|
|
|
+
|
|
|
|
|
|
}, {deep: true})
|
|
|
|
|
@@ -151,11 +148,9 @@ const delRow=(index)=>{
|
|
|
//提交保存
|
|
|
const saveClick = () => {
|
|
|
console.log(infoData.value,'infoData');
|
|
|
- if(isresdata.value){
|
|
|
+
|
|
|
emit('saveClick')
|
|
|
- }else{
|
|
|
- window.$message.warning('请输入合同基础信息必填项')
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
|