Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43301624
Component
提交
b497947d
C
Component
项目概览
weixin_43301624
/
Component
与 Fork 源项目一致
Fork自
inscode / VueJS
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Component
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b497947d
编写于
11月 17, 2023
作者:
水
水晶土豆
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fri Nov 17 12:13:00 CST 2023 inscode
上级
31b59479
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
47 addition
and
25 deletion
+47
-25
src/component/contractManagement/contractList/add/addContractList.vue
...t/contractManagement/contractList/add/addContractList.vue
+40
-0
src/component/contractManagement/contractList/add/addMain.vue
...component/contractManagement/contractList/add/addMain.vue
+0
-0
src/component/contractManagement/contractList/addContractList.vue
...onent/contractManagement/contractList/addContractList.vue
+0
-23
src/component/contractManagement/contractList/contractList.vue
...omponent/contractManagement/contractList/contractList.vue
+7
-2
未找到文件。
src/component/contractManagement/contractList/add/addContractList.vue
0 → 100644
浏览文件 @
b497947d
<
script
setup
>
import
{
ref
,
computed
,
watch
,
onMounted
}
from
'
vue
'
;
const
tableData
=
ref
([{
name
:
"
普通合同
"
},{
name
:
"
协同合同
"
}]);
const
props
=
defineProps
([
'
addselectContractList
'
])
const
emit
=
defineEmits
([
'
update:addselectContractList
'
])
const
currentRow
=
ref
()
const
tTable
=
ref
();
onMounted
(()
=>
{
tTable
.
value
.
setCurrentRow
(
tableData
.
value
[
0
])
})
watch
(()
=>
currentRow
.
this
,(
val
)
=>
{
emit
(
'
update:addselectContractList
'
,
val
)
})
const
handleCurrentChange
=
(
val
)
=>
{
currentRow
.
value
=
val
.
name
}
</
script
>
<
template
>
<el-radio-group
v-model=
"currentRow"
>
<el-table
ref=
'tTable'
:data=
"tableData"
border
highlight-current-row
@
current-change=
"handleCurrentChange"
>
<el-table-column
label=
"选择"
width=
"100px"
align=
"center"
>
<template
#default
="
{ row }">
<el-radio
:label=
"row.name"
>
{{
''
}}
</el-radio>
</
template
>
</el-table-column>
<el-table-column
label=
"名称"
prop=
"name"
></el-table-column>
</el-table>
</el-radio-group>
</template>
<
style
scoped
>
.el-radio-group
{
width
:
100%
;
}
::v-deep
(
.el-table__body
tr
.current-row
>
td
)
{
background
:
#bbf4e0
;
}
</
style
>
\ No newline at end of file
src/component/contractManagement/contractList/add/addMain.vue
0 → 100644
浏览文件 @
b497947d
src/component/contractManagement/contractList/addContractList.vue
已删除
100644 → 0
浏览文件 @
31b59479
<
script
setup
>
import
{
ref
,
watch
}
from
'
vue
'
;
const
tableData
=
ref
([{
name
:
1
},
{
name
:
2
},
{
name
:
3
},
{
name
:
4
},]);
const
radio1
=
ref
();
watch
(()
=>
radio1
.
value
,()
=>
{
console
.
log
(
radio1
.
value
);
})
</
script
>
<
template
>
<el-radio-group
v-model=
"radio1"
width=
"auto"
>
<el-table
:data=
"tableData"
>
<el-table-column
label=
"选择"
>
<template
#default
="
{ row }">
<el-radio
:label=
"row.name"
>
{{
''
}}
</el-radio>
</
template
>
</el-table-column>
<el-table-column
label=
"名称"
prop=
"name"
></el-table-column>
</el-table>
</el-radio-group>
</template>
<
style
scoped
></
style
>
\ No newline at end of file
src/component/contractManagement/contractList/contractList.vue
浏览文件 @
b497947d
...
...
@@ -9,7 +9,7 @@ import forms from '@/component/main/header/form.vue';
import
contractListForm
from
'
./contractListForm.vue
'
;
import
{
ref
,
provide
,
reactive
,
onMounted
}
from
'
vue
'
;
import
{
getContractList
}
from
'
@/api/api
'
import
addContractList
from
'
./addContractList.vue
'
;
import
addContractList
from
'
./add
/add
ContractList.vue
'
;
const
getData
=
()
=>
{
contractSelect
.
value
.
page
=
tablePagination
.
currentPage
;
...
...
@@ -77,6 +77,11 @@ const contractSelect = ref({
page
:
'
1
'
,
limit
:
'
10
'
});
//添加
const
addselectContractList
=
ref
();
//对话框
const
addDialog
=
ref
(
false
);
const
addSubcategoriesDialog
=
ref
(
false
);
...
...
@@ -133,7 +138,7 @@ provide("changeState",()=>{
</mains>
<ejectDialog
v-model:open-dialog=
"addDialog"
>
<
template
#header
>
选择合同性质
</
template
>
<
template
#default
><addContractList></addContractList></
template
>
<
template
#default
><addContractList
v-model:addselectContractList=
"addselectContractList"
></addContractList></
template
>
</ejectDialog>
<ejectDialog
v-model:open-dialog=
"detailsDialog"
>
<
template
#header
>
合同详情
</
template
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录