diff --git a/src/views/modules/shequzhili/materialcode/add.vue b/src/views/modules/shequzhili/materialcode/add.vue
index ee858128e..2cbcb9ee0 100644
--- a/src/views/modules/shequzhili/materialcode/add.vue
+++ b/src/views/modules/shequzhili/materialcode/add.vue
@@ -4,26 +4,26 @@
-
+
-
+
-
-
+
-
-
+
@@ -82,9 +82,11 @@ export default {
keyWords: '',
activityId: '',
formData: {
- title: "",//标题
- content: "",//内容
- coverPic: "",//封面图
+ name: "",//标题
+ introduce: "",//内容
+ remark: "",//内容
+ picture: "",//封面图
+ picture: "",//封面图
sendMsg: false,//是否推送
status: 0 //状态
},
@@ -116,29 +118,16 @@ export default {
handleFileRemoved(file) {
// 处理从子组件接收到的删除文件的信息
console.log('File removed:', file);
- this.formData.coverPic=""
+ this.formData.picture=""
// 例如,可以在这里更新父组件的文件列表或执行其他操作
},
- // 获取广告标签
- advertisingTag(){
- requestPost('/advertisingTag/list',{customerId:this.customerId}).then(res=>{
- console.log(res,'res');
-
- if(res.code==0){
- this.adverTagList=res.data
- }
- })
- },
- // 获取广告标签
- advertisingTag(){
- },
async initForm(typeid,row) {
this.startLoading();
if(row!=null){
this.formData = JSON.parse(JSON.stringify(row));
- this.fileList.push({fileUrl:this.formData.coverPic})
- console.log(this.formData.coverPic,'see');
+ this.fileList.push({fileUrl:this.formData.picture})
+ console.log(this.formData.picture,'see');
}
this.formType=typeid
@@ -190,9 +179,9 @@ export default {
fileUrl: item.response.data.url
};
this.fileList = [ob];
- this.formData.coverPic = ob.fileUrl;
+ this.formData.picture = ob.fileUrl;
}else {
- this.formData.coverPic = '';
+ this.formData.picture = '';
}
},
@@ -310,19 +299,13 @@ export default {
computed: {
dataRule() {
return {
- title: [
- { required: true, message: '文章标题不能为空', trigger: 'blur' }
+ name: [
+ { required: true, message: '物件名称不能为空', trigger: 'blur' }
],
- content: [
- { required: true, message: '内容不能为空', trigger: 'blur' }
- ],
- releaseTime: [
- { required: true, message: '请选择发布时间', trigger: 'blur' }
- ],
-/* tagId: [
- { required: true, message: '请选择文章标签', trigger: 'blur' }
- ],*/
+ introduce: [
+ { required: true, message: '物件介绍不能为空', trigger: 'blur' }
+ ]
}
},
diff --git a/src/views/modules/shequzhili/materialcode/icmaterialcode.vue b/src/views/modules/shequzhili/materialcode/icmaterialcode.vue
index 62fc300ed..72d664be1 100644
--- a/src/views/modules/shequzhili/materialcode/icmaterialcode.vue
+++ b/src/views/modules/shequzhili/materialcode/icmaterialcode.vue
@@ -35,7 +35,13 @@
-
+
+
+
+
+
+
+
@@ -48,6 +54,8 @@
@click="handleEdit(scope.row)">编辑
删除
+ 下载
@@ -115,16 +123,9 @@
// typeActivityadd, typeDetails
// },
async created () {
+ this.loadTable()
},
async mounted () {
- // this.getOrgTrreeList()
- //获取服务事项
- // await this.getDemandOptions()
- const { user } = this.$store.state
- // this.agencyId = user.agencyId
- //获取建联单位
- // this.advertisingTag()
- //获取网格下拉框数据
this.loadTable()
},
methods: {
@@ -199,6 +200,11 @@
this.formShow = false
this.loadTable()
},
+
+ async download(row){
+ window.open(row.code)
+ },
+
async handleDelete (row) {
this.$confirm("确认删除?", "提示", {
confirmButtonText: "确定",