|
@@ -125,7 +125,7 @@
|
|
|
<div class="mt-1 w-full flex items-center justify-between">
|
|
|
<span class="text-gray">投入比例</span>
|
|
|
<div class="ml-3 w-64">
|
|
|
- <el-input v-model="yearFuns[selectIndex].constructProportionOutflow" clearable placeholder="请输入(格式如:14:45:60)" :disabled="data?.isView" class="w-full" @input="(value) => validateInput(value, selectIndex)" />
|
|
|
+ <el-input v-model="yearFuns[selectIndex].constructProportionOutflow" clearable :placeholder="placeText" :disabled="data?.isView" class="w-full" @input="(value) => validateInput(value, selectIndex)" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -319,6 +319,7 @@ const validateInput = (value, index) => {
|
|
|
yearFuns.value[index].constructProportionOutflow = filteredValue
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
const yearFuns = ref([
|
|
|
{
|
|
|
|
|
@@ -385,11 +386,18 @@ const betweenTime = ref(null)
|
|
|
const betweenTime1 = ref(null)
|
|
|
//监听
|
|
|
const baseForm = ref(props.data)
|
|
|
+const placeText = ref('')
|
|
|
// const stageYearOptions = ref([
|
|
|
|
|
|
// ])
|
|
|
watch(() => props.data, (data) => {
|
|
|
+ if (!data.isView) {
|
|
|
+ placeText.value = '(格式如:(14:45:60), 冒号为英文格式),'
|
|
|
+ } else {
|
|
|
+ placeText.value = ''
|
|
|
+ }
|
|
|
if (!data.id) {
|
|
|
+
|
|
|
betweenTime.value = []
|
|
|
betweenTime1.value = []
|
|
|
carList.value = [{
|
|
@@ -426,6 +434,7 @@ stageYearOptions.value = [{
|
|
|
}]
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
baseForm.value = data
|
|
|
carList.value = data.list
|
|
|
yearFuns.value = data.funds
|