diff --git a/project/hlj/app/AppScoringTemplate/AppScoringTemplate.vue b/project/hlj/app/AppScoringTemplate/AppScoringTemplate.vue
index 8d144f18..7a2e5771 100644
--- a/project/hlj/app/AppScoringTemplate/AppScoringTemplate.vue
+++ b/project/hlj/app/AppScoringTemplate/AppScoringTemplate.vue
@@ -9,7 +9,6 @@
-
-
diff --git a/project/hlj/app/AppScoringTemplate/components/List.vue b/project/hlj/app/AppScoringTemplate/components/List.vue
index 4a785b75..014de7b4 100644
--- a/project/hlj/app/AppScoringTemplate/components/List.vue
+++ b/project/hlj/app/AppScoringTemplate/components/List.vue
@@ -5,16 +5,16 @@
- 新建模板
+ 新建模板
@@ -31,7 +31,8 @@
- 详情
+ 编辑
+ {{ row.status === '0' ? '启用' : '停用' }}
删除
@@ -56,12 +57,12 @@
search: {
current: 1,
size: 10,
- name: ''
+ title: ''
},
colConfigs: [
- { prop: 'name', label: '模板名称' },
- { prop: 'phone', align: 'center', label: '创建人' },
- { prop: 'startTime', align: 'center', label: '更新时间' }
+ { prop: 'title', label: '模板名称' },
+ { prop: 'createUserName', align: 'center', label: '创建人' },
+ { prop: 'createTime', align: 'center', label: '更新时间' }
],
ids: [],
tableData: [],
@@ -80,7 +81,7 @@
methods: {
getList () {
- this.instance.post(`/app/appepidemicpreventionregisterinfo/list`, null, {
+ this.instance.post(`/app/appassessmentscoretemplate/list`, null, {
params: {
...this.search
}
@@ -115,9 +116,20 @@
})
},
+ changeStatus (id, status) {
+ this.$confirm(`确定${status === '0' ? '启用' : '停用'}该数据?`).then(() => {
+ this.instance.post(`/app/appassessmentscoretemplate/stopRelease?id=${id}`).then(res => {
+ if (res.code == 0) {
+ this.$message.success(`${status === '0' ? '启用' : '停用'}成功!`)
+ this.getList()
+ }
+ })
+ })
+ },
+
remove(id) {
this.$confirm('确定删除该数据?').then(() => {
- this.instance.post(`/app/appepidemicpreventionregisterinfo/delete?id=${id}`).then(res => {
+ this.instance.post(`/app/appassessmentscoretemplate/delete?id=${id}`).then(res => {
if (res.code == 0) {
this.$message.success('删除成功!')
this.getList()
diff --git a/project/hlj/app/AppScoringTemplate/components/config.js b/project/hlj/app/AppScoringTemplate/components/config.js
index 9df7bb3b..9090097e 100644
--- a/project/hlj/app/AppScoringTemplate/components/config.js
+++ b/project/hlj/app/AppScoringTemplate/components/config.js
@@ -10,6 +10,7 @@ export const components = [
fixedLabel: '单选',
value: '',
points: '',
+ describe: '',
icon: 'iconradio',
isShowPoints: false,
required: true,
@@ -46,6 +47,7 @@ export const components = [
type: 'checkbox',
label: '多选',
fixedLabel: '多选',
+ describe: '',
points: '',
icon: 'iconcheck_box',
isShowPoints: false,
@@ -90,6 +92,7 @@ export const components = [
fixedLabel: '单下拉框',
value: '',
points: '',
+ describe: '',
icon: 'iconSelect',
isShowPoints: false,
required: true,
@@ -132,6 +135,7 @@ export const components = [
{
type: 'input',
label: '单行填空',
+ describe: '',
fixedLabel: '单行填空',
value: '',
pointType: '0',
@@ -146,6 +150,7 @@ export const components = [
{
type: 'textarea',
label: '多行填空',
+ describe: '',
fixedLabel: '多行填空',
pointType: '0',
icon: 'icontext_area',
@@ -168,6 +173,7 @@ export const components = [
type: 'upload',
label: '上传图片',
fixedLabel: '上传图片',
+ describe: '',
value: '',
icon: 'iconpic',
isShowPoints: false,