Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王浩
zh-baseversion-project
Commits
acada1cf
Commit
acada1cf
authored
May 18, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调查项
parent
903dbaf4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1110 additions
and
0 deletions
+1110
-0
TInsSurListInforController.java
...eb/controller/supervision/TInsSurListInforController.java
+103
-0
TInsSurListInfor.java
.../main/java/com/zehong/system/domain/TInsSurListInfor.java
+157
-0
TInsSurListInforMapper.java
...java/com/zehong/system/mapper/TInsSurListInforMapper.java
+61
-0
ITInsSurListInforService.java
...a/com/zehong/system/service/ITInsSurListInforService.java
+61
-0
TInsSurListInforServiceImpl.java
...hong/system/service/impl/TInsSurListInforServiceImpl.java
+97
-0
TInsSurListInforMapper.xml
...c/main/resources/mapper/system/TInsSurListInforMapper.xml
+81
-0
survey.js
zh-baseversion-web/src/api/supervision/survey.js
+53
-0
DetailInfo.vue
...eb/src/views/supervision/survey/components/DetailInfo.vue
+90
-0
index.vue
zh-baseversion-web/src/views/supervision/survey/index.vue
+407
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/supervision/TInsSurListInforController.java
0 → 100644
View file @
acada1cf
package
com
.
zehong
.
web
.
controller
.
supervision
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TInsSurListInfor
;
import
com.zehong.system.service.ITInsSurListInforService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 监督检查-调查项Controller
*
* @author zehong
* @date 2024-05-18
*/
@RestController
@RequestMapping
(
"/supervision/survey"
)
public
class
TInsSurListInforController
extends
BaseController
{
@Autowired
private
ITInsSurListInforService
tInsSurListInforService
;
/**
* 查询监督检查-调查项列表
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:survey:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TInsSurListInfor
tInsSurListInfor
)
{
startPage
();
List
<
TInsSurListInfor
>
list
=
tInsSurListInforService
.
selectTInsSurListInforList
(
tInsSurListInfor
);
return
getDataTable
(
list
);
}
/**
* 导出监督检查-调查项列表
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:survey:export')"
)
@Log
(
title
=
"监督检查-调查项"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TInsSurListInfor
tInsSurListInfor
)
{
List
<
TInsSurListInfor
>
list
=
tInsSurListInforService
.
selectTInsSurListInforList
(
tInsSurListInfor
);
ExcelUtil
<
TInsSurListInfor
>
util
=
new
ExcelUtil
<
TInsSurListInfor
>(
TInsSurListInfor
.
class
);
return
util
.
exportExcel
(
list
,
"监督检查-调查项数据"
);
}
/**
* 获取监督检查-调查项详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:survey:query')"
)
@GetMapping
(
value
=
"/{fInsSurListInforId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fInsSurListInforId"
)
Long
fInsSurListInforId
)
{
return
AjaxResult
.
success
(
tInsSurListInforService
.
selectTInsSurListInforById
(
fInsSurListInforId
));
}
/**
* 新增监督检查-调查项
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:survey:add')"
)
@Log
(
title
=
"监督检查-调查项"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TInsSurListInfor
tInsSurListInfor
)
{
return
toAjax
(
tInsSurListInforService
.
insertTInsSurListInfor
(
tInsSurListInfor
));
}
/**
* 修改监督检查-调查项
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:survey:edit')"
)
@Log
(
title
=
"监督检查-调查项"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TInsSurListInfor
tInsSurListInfor
)
{
return
toAjax
(
tInsSurListInforService
.
updateTInsSurListInfor
(
tInsSurListInfor
));
}
/**
* 删除监督检查-调查项
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:survey:remove')"
)
@Log
(
title
=
"监督检查-调查项"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fInsSurListInforIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fInsSurListInforIds
)
{
return
toAjax
(
tInsSurListInforService
.
deleteTInsSurListInforByIds
(
fInsSurListInforIds
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TInsSurListInfor.java
0 → 100644
View file @
acada1cf
package
com
.
zehong
.
system
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 监督检查-调查项对象 t_ins_sur_list_infor
*
* @author zehong
* @date 2024-05-18
*/
public
class
TInsSurListInfor
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
fInsSurListInforId
;
/** 关联的检查任务编码 */
@Excel
(
name
=
"关联的检查任务编码"
)
private
String
fCheckTaskCode
;
/** 检查对象分类,按分类代码表23 分类填写
23-0100 :气代煤
23-0200-0201:传统电代煤
23-0200-0202:石墨烯
23-0200-0203:聚能
23-0200-0204:空气源热泵
23-0200-0205:地源热泵
23-9900-0301:集中供热
23-9900-0302:光伏+
23-9900-0303:光热+
23-9900-0304:醇基燃料
23-9900-0305:生物质 */
@Excel
(
name
=
"检查对象分类"
,
dictType
=
"t_type_code"
)
private
String
fTypeCode
;
/** 调查内容 */
@Excel
(
name
=
"调查内容"
)
private
String
fContents
;
/** 结果填写类型,1单选、2-多选、3 输入 */
@Excel
(
name
=
"结果填写类型"
,
dictType
=
"t_res_type"
)
private
Long
fResType
;
/** 结果填写选项,单选和多选内容的可选项,以英文逗号间隔 */
@Excel
(
name
=
"结果填写选项"
)
private
String
fResOption
;
/** 顺序号,调查项在检查对象所有调查项中的顺序号 */
@Excel
(
name
=
"顺序号"
)
private
Long
ord
;
/** 最后修改时间 yyyy-MM-dd hh:mm:ss */
@Excel
(
name
=
"最后修改时间"
)
private
String
fLastUpdateTime
;
public
void
setfInsSurListInforId
(
Long
fInsSurListInforId
)
{
this
.
fInsSurListInforId
=
fInsSurListInforId
;
}
public
Long
getfInsSurListInforId
()
{
return
fInsSurListInforId
;
}
public
void
setfCheckTaskCode
(
String
fCheckTaskCode
)
{
this
.
fCheckTaskCode
=
fCheckTaskCode
;
}
public
String
getfCheckTaskCode
()
{
return
fCheckTaskCode
;
}
public
void
setfTypeCode
(
String
fTypeCode
)
{
this
.
fTypeCode
=
fTypeCode
;
}
public
String
getfTypeCode
()
{
return
fTypeCode
;
}
public
void
setfContents
(
String
fContents
)
{
this
.
fContents
=
fContents
;
}
public
String
getfContents
()
{
return
fContents
;
}
public
void
setfResType
(
Long
fResType
)
{
this
.
fResType
=
fResType
;
}
public
Long
getfResType
()
{
return
fResType
;
}
public
void
setfResOption
(
String
fResOption
)
{
this
.
fResOption
=
fResOption
;
}
public
String
getfResOption
()
{
return
fResOption
;
}
public
void
setOrd
(
Long
ord
)
{
this
.
ord
=
ord
;
}
public
Long
getOrd
()
{
return
ord
;
}
public
void
setfLastUpdateTime
(
String
fLastUpdateTime
)
{
this
.
fLastUpdateTime
=
fLastUpdateTime
;
}
public
String
getfLastUpdateTime
()
{
return
fLastUpdateTime
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fInsSurListInforId"
,
getfInsSurListInforId
())
.
append
(
"fCheckTaskCode"
,
getfCheckTaskCode
())
.
append
(
"fTypeCode"
,
getfTypeCode
())
.
append
(
"fContents"
,
getfContents
())
.
append
(
"fResType"
,
getfResType
())
.
append
(
"fResOption"
,
getfResOption
())
.
append
(
"ord"
,
getOrd
())
.
append
(
"fLastUpdateTime"
,
getfLastUpdateTime
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TInsSurListInforMapper.java
0 → 100644
View file @
acada1cf
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TInsSurListInfor
;
/**
* 监督检查-调查项Mapper接口
*
* @author zehong
* @date 2024-05-18
*/
public
interface
TInsSurListInforMapper
{
/**
* 查询监督检查-调查项
*
* @param fInsSurListInforId 监督检查-调查项ID
* @return 监督检查-调查项
*/
public
TInsSurListInfor
selectTInsSurListInforById
(
Long
fInsSurListInforId
);
/**
* 查询监督检查-调查项列表
*
* @param tInsSurListInfor 监督检查-调查项
* @return 监督检查-调查项集合
*/
public
List
<
TInsSurListInfor
>
selectTInsSurListInforList
(
TInsSurListInfor
tInsSurListInfor
);
/**
* 新增监督检查-调查项
*
* @param tInsSurListInfor 监督检查-调查项
* @return 结果
*/
public
int
insertTInsSurListInfor
(
TInsSurListInfor
tInsSurListInfor
);
/**
* 修改监督检查-调查项
*
* @param tInsSurListInfor 监督检查-调查项
* @return 结果
*/
public
int
updateTInsSurListInfor
(
TInsSurListInfor
tInsSurListInfor
);
/**
* 删除监督检查-调查项
*
* @param fInsSurListInforId 监督检查-调查项ID
* @return 结果
*/
public
int
deleteTInsSurListInforById
(
Long
fInsSurListInforId
);
/**
* 批量删除监督检查-调查项
*
* @param fInsSurListInforIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTInsSurListInforByIds
(
Long
[]
fInsSurListInforIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITInsSurListInforService.java
0 → 100644
View file @
acada1cf
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TInsSurListInfor
;
/**
* 监督检查-调查项Service接口
*
* @author zehong
* @date 2024-05-18
*/
public
interface
ITInsSurListInforService
{
/**
* 查询监督检查-调查项
*
* @param fInsSurListInforId 监督检查-调查项ID
* @return 监督检查-调查项
*/
public
TInsSurListInfor
selectTInsSurListInforById
(
Long
fInsSurListInforId
);
/**
* 查询监督检查-调查项列表
*
* @param tInsSurListInfor 监督检查-调查项
* @return 监督检查-调查项集合
*/
public
List
<
TInsSurListInfor
>
selectTInsSurListInforList
(
TInsSurListInfor
tInsSurListInfor
);
/**
* 新增监督检查-调查项
*
* @param tInsSurListInfor 监督检查-调查项
* @return 结果
*/
public
int
insertTInsSurListInfor
(
TInsSurListInfor
tInsSurListInfor
);
/**
* 修改监督检查-调查项
*
* @param tInsSurListInfor 监督检查-调查项
* @return 结果
*/
public
int
updateTInsSurListInfor
(
TInsSurListInfor
tInsSurListInfor
);
/**
* 批量删除监督检查-调查项
*
* @param fInsSurListInforIds 需要删除的监督检查-调查项ID
* @return 结果
*/
public
int
deleteTInsSurListInforByIds
(
Long
[]
fInsSurListInforIds
);
/**
* 删除监督检查-调查项信息
*
* @param fInsSurListInforId 监督检查-调查项ID
* @return 结果
*/
public
int
deleteTInsSurListInforById
(
Long
fInsSurListInforId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TInsSurListInforServiceImpl.java
0 → 100644
View file @
acada1cf
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TInsSurListInforMapper
;
import
com.zehong.system.domain.TInsSurListInfor
;
import
com.zehong.system.service.ITInsSurListInforService
;
/**
* 监督检查-调查项Service业务层处理
*
* @author zehong
* @date 2024-05-18
*/
@Service
public
class
TInsSurListInforServiceImpl
implements
ITInsSurListInforService
{
@Autowired
private
TInsSurListInforMapper
tInsSurListInforMapper
;
/**
* 查询监督检查-调查项
*
* @param fInsSurListInforId 监督检查-调查项ID
* @return 监督检查-调查项
*/
@Override
public
TInsSurListInfor
selectTInsSurListInforById
(
Long
fInsSurListInforId
)
{
return
tInsSurListInforMapper
.
selectTInsSurListInforById
(
fInsSurListInforId
);
}
/**
* 查询监督检查-调查项列表
*
* @param tInsSurListInfor 监督检查-调查项
* @return 监督检查-调查项
*/
@Override
public
List
<
TInsSurListInfor
>
selectTInsSurListInforList
(
TInsSurListInfor
tInsSurListInfor
)
{
return
tInsSurListInforMapper
.
selectTInsSurListInforList
(
tInsSurListInfor
);
}
/**
* 新增监督检查-调查项
*
* @param tInsSurListInfor 监督检查-调查项
* @return 结果
*/
@Override
public
int
insertTInsSurListInfor
(
TInsSurListInfor
tInsSurListInfor
)
{
tInsSurListInfor
.
setfLastUpdateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
()));
return
tInsSurListInforMapper
.
insertTInsSurListInfor
(
tInsSurListInfor
);
}
/**
* 修改监督检查-调查项
*
* @param tInsSurListInfor 监督检查-调查项
* @return 结果
*/
@Override
public
int
updateTInsSurListInfor
(
TInsSurListInfor
tInsSurListInfor
)
{
tInsSurListInfor
.
setfLastUpdateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
()));
return
tInsSurListInforMapper
.
updateTInsSurListInfor
(
tInsSurListInfor
);
}
/**
* 批量删除监督检查-调查项
*
* @param fInsSurListInforIds 需要删除的监督检查-调查项ID
* @return 结果
*/
@Override
public
int
deleteTInsSurListInforByIds
(
Long
[]
fInsSurListInforIds
)
{
return
tInsSurListInforMapper
.
deleteTInsSurListInforByIds
(
fInsSurListInforIds
);
}
/**
* 删除监督检查-调查项信息
*
* @param fInsSurListInforId 监督检查-调查项ID
* @return 结果
*/
@Override
public
int
deleteTInsSurListInforById
(
Long
fInsSurListInforId
)
{
return
tInsSurListInforMapper
.
deleteTInsSurListInforById
(
fInsSurListInforId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TInsSurListInforMapper.xml
0 → 100644
View file @
acada1cf
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TInsSurListInforMapper"
>
<resultMap
type=
"TInsSurListInfor"
id=
"TInsSurListInforResult"
>
<result
property=
"fInsSurListInforId"
column=
"f_ins_sur_list_infor_id"
/>
<result
property=
"fCheckTaskCode"
column=
"f_check_task_code"
/>
<result
property=
"fTypeCode"
column=
"f_type_code"
/>
<result
property=
"fContents"
column=
"f_contents"
/>
<result
property=
"fResType"
column=
"f_res_type"
/>
<result
property=
"fResOption"
column=
"f_res_option"
/>
<result
property=
"ord"
column=
"ord"
/>
<result
property=
"fLastUpdateTime"
column=
"f_last_update_time"
/>
</resultMap>
<sql
id=
"selectTInsSurListInforVo"
>
select f_ins_sur_list_infor_id, f_check_task_code, f_type_code, f_contents, f_res_type, f_res_option, ord, f_last_update_time from t_ins_sur_list_infor
</sql>
<select
id=
"selectTInsSurListInforList"
parameterType=
"TInsSurListInfor"
resultMap=
"TInsSurListInforResult"
>
<include
refid=
"selectTInsSurListInforVo"
/>
<where>
<if
test=
"fTypeCode != null and fTypeCode != ''"
>
and f_type_code = #{fTypeCode}
</if>
<if
test=
"fResType != null "
>
and f_res_type = #{fResType}
</if>
</where>
</select>
<select
id=
"selectTInsSurListInforById"
parameterType=
"Long"
resultMap=
"TInsSurListInforResult"
>
<include
refid=
"selectTInsSurListInforVo"
/>
where f_ins_sur_list_infor_id = #{fInsSurListInforId}
</select>
<insert
id=
"insertTInsSurListInfor"
parameterType=
"TInsSurListInfor"
useGeneratedKeys=
"true"
keyProperty=
"fInsSurListInforId"
>
insert into t_ins_sur_list_infor
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fCheckTaskCode != null"
>
f_check_task_code,
</if>
<if
test=
"fTypeCode != null"
>
f_type_code,
</if>
<if
test=
"fContents != null"
>
f_contents,
</if>
<if
test=
"fResType != null"
>
f_res_type,
</if>
<if
test=
"fResOption != null"
>
f_res_option,
</if>
<if
test=
"ord != null"
>
ord,
</if>
<if
test=
"fLastUpdateTime != null"
>
f_last_update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fCheckTaskCode != null"
>
#{fCheckTaskCode},
</if>
<if
test=
"fTypeCode != null"
>
#{fTypeCode},
</if>
<if
test=
"fContents != null"
>
#{fContents},
</if>
<if
test=
"fResType != null"
>
#{fResType},
</if>
<if
test=
"fResOption != null"
>
#{fResOption},
</if>
<if
test=
"ord != null"
>
#{ord},
</if>
<if
test=
"fLastUpdateTime != null"
>
#{fLastUpdateTime},
</if>
</trim>
</insert>
<update
id=
"updateTInsSurListInfor"
parameterType=
"TInsSurListInfor"
>
update t_ins_sur_list_infor
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fCheckTaskCode != null"
>
f_check_task_code = #{fCheckTaskCode},
</if>
<if
test=
"fTypeCode != null"
>
f_type_code = #{fTypeCode},
</if>
<if
test=
"fContents != null"
>
f_contents = #{fContents},
</if>
<if
test=
"fResType != null"
>
f_res_type = #{fResType},
</if>
<if
test=
"fResOption != null"
>
f_res_option = #{fResOption},
</if>
<if
test=
"ord != null"
>
ord = #{ord},
</if>
<if
test=
"fLastUpdateTime != null"
>
f_last_update_time = #{fLastUpdateTime},
</if>
</trim>
where f_ins_sur_list_infor_id = #{fInsSurListInforId}
</update>
<delete
id=
"deleteTInsSurListInforById"
parameterType=
"Long"
>
delete from t_ins_sur_list_infor where f_ins_sur_list_infor_id = #{fInsSurListInforId}
</delete>
<delete
id=
"deleteTInsSurListInforByIds"
parameterType=
"String"
>
delete from t_ins_sur_list_infor where f_ins_sur_list_infor_id in
<foreach
item=
"fInsSurListInforId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fInsSurListInforId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/api/supervision/survey.js
0 → 100644
View file @
acada1cf
import
request
from
'@/utils/request'
// 查询监督检查-调查项列表
export
function
listInfor
(
query
)
{
return
request
({
url
:
'/supervision/survey/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询监督检查-调查项详细
export
function
getInfor
(
fInsSurListInforId
)
{
return
request
({
url
:
'/supervision/survey/'
+
fInsSurListInforId
,
method
:
'get'
})
}
// 新增监督检查-调查项
export
function
addInfor
(
data
)
{
return
request
({
url
:
'/supervision/survey'
,
method
:
'post'
,
data
:
data
})
}
// 修改监督检查-调查项
export
function
updateInfor
(
data
)
{
return
request
({
url
:
'/supervision/survey'
,
method
:
'put'
,
data
:
data
})
}
// 删除监督检查-调查项
export
function
delInfor
(
fInsSurListInforId
)
{
return
request
({
url
:
'/supervision/survey/'
+
fInsSurListInforId
,
method
:
'delete'
})
}
// 导出监督检查-调查项
export
function
exportInfor
(
query
)
{
return
request
({
url
:
'/supervision/survey/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/supervision/survey/components/DetailInfo.vue
0 → 100644
View file @
acada1cf
<
template
>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailOpen"
width=
"1000px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-form
label-width=
"120px"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查任务编码"
>
<span
v-if=
"detailInfo.fCheckTaskCode"
>
{{
detailInfo
.
fCheckTaskCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查对象分类"
>
<span
v-if=
"detailInfo.fTypeCode"
>
{{
$parent
.
fTypeCodeFormat
(
detailInfo
)
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"调查内容"
>
<span
v-if=
"detailInfo.fContents"
>
{{
detailInfo
.
fContents
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"结果填写类型"
>
<span
v-if=
"detailInfo.fResType"
>
{{
$parent
.
fResTypeFormat
(
detailInfo
)
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"结果填写选项"
>
<span
v-if=
"detailInfo.fResOption"
>
{{
detailInfo
.
fResOption
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"顺序号"
>
<span
v-if=
"detailInfo.ord"
>
{{
detailInfo
.
ord
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"最后修改时间"
>
<span
v-if=
"detailInfo.fLastUpdateTime"
>
{{
detailInfo
.
fLastUpdateTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</
template
>
<
script
>
import
{
getInfor
}
from
"@/api/supervision/survey"
;
export
default
{
name
:
"detail-info"
,
data
(){
return
{
detailInfo
:
{
fEnableState
:
0
,
fDeleteFlag
:
0
},
detailOpen
:
false
}
},
methods
:{
getDetailInfo
(
id
){
getInfor
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailOpen
=
true
;
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
zh-baseversion-web/src/views/supervision/survey/index.vue
0 → 100644
View file @
acada1cf
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment