|
@@ -28,9 +28,10 @@
|
|
<i class="el-icon-edit-outline"></i>
|
|
<i class="el-icon-edit-outline"></i>
|
|
修改
|
|
修改
|
|
</div>
|
|
</div>
|
|
- <div class="listDeleteBtn" @click="deleteRow(scope.row.id)">
|
|
|
|
|
|
+ <div class="listDeleteBtn" @click="deleteRow(scope.row.id)"
|
|
|
|
+ v-if="scope.row.disable_del === 0">
|
|
<i class="el-icon-delete"></i>
|
|
<i class="el-icon-delete"></i>
|
|
- 删除
|
|
|
|
|
|
+ 删除
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -50,6 +51,7 @@
|
|
v-model="ruleForm.field_name"
|
|
v-model="ruleForm.field_name"
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
:disabled="dialogName === '修改字段'"
|
|
:disabled="dialogName === '修改字段'"
|
|
|
|
+
|
|
clearable>
|
|
clearable>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -111,7 +113,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
- <el-form-item label="校验内容:" prop="field_regular"
|
|
|
|
|
|
+ <el-form-item label="正则验证:" prop="field_regular"
|
|
:rules="[
|
|
:rules="[
|
|
{
|
|
{
|
|
required: ruleForm.field_switch === 1,
|
|
required: ruleForm.field_switch === 1,
|
|
@@ -264,14 +266,14 @@ export default {
|
|
id: this.$route.query.id,
|
|
id: this.$route.query.id,
|
|
}).then(data => {
|
|
}).then(data => {
|
|
this.tableData = data.data
|
|
this.tableData = data.data
|
|
- // console.log("自定义字段列表========", this.tableData);
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
if (this.webSiteName_name && this.tabbarName) {
|
|
if (this.webSiteName_name && this.tabbarName) {
|
|
getFooterCategory({
|
|
getFooterCategory({
|
|
name: this.tabbarName,
|
|
name: this.tabbarName,
|
|
website_name: this.webSiteName_name, //网站名称
|
|
website_name: this.webSiteName_name, //网站名称
|
|
}).then(data => {
|
|
}).then(data => {
|
|
- // console.log(data);
|
|
|
|
|
|
+
|
|
this.tableData = data.data.rows
|
|
this.tableData = data.data.rows
|
|
})
|
|
})
|
|
} else if (this.webSiteName_name && !this.tabbarName) {
|
|
} else if (this.webSiteName_name && !this.tabbarName) {
|
|
@@ -279,7 +281,7 @@ export default {
|
|
// name: this.tabbarName,
|
|
// name: this.tabbarName,
|
|
website_name: this.webSiteName_name, //网站名称
|
|
website_name: this.webSiteName_name, //网站名称
|
|
}).then(data => {
|
|
}).then(data => {
|
|
- // console.log(data);
|
|
|
|
|
|
+
|
|
this.tableData = data.data.rows
|
|
this.tableData = data.data.rows
|
|
})
|
|
})
|
|
} else if (!this.webSiteName_name && this.tabbarName) {
|
|
} else if (!this.webSiteName_name && this.tabbarName) {
|
|
@@ -311,7 +313,7 @@ export default {
|
|
font_form_del_api({
|
|
font_form_del_api({
|
|
id: id
|
|
id: id
|
|
}).then(data => {
|
|
}).then(data => {
|
|
- console.log(data);
|
|
|
|
|
|
+ // console.log(data);
|
|
if (data.code = 200) {
|
|
if (data.code = 200) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '删除成功',
|
|
message: '删除成功',
|
|
@@ -338,7 +340,7 @@ export default {
|
|
},
|
|
},
|
|
//1.9 编辑
|
|
//1.9 编辑
|
|
goEdit(id, val) {
|
|
goEdit(id, val) {
|
|
- console.log("--------------------",id, val);
|
|
|
|
|
|
+
|
|
this.dialogName = '修改字段'
|
|
this.dialogName = '修改字段'
|
|
this.activeid = id
|
|
this.activeid = id
|
|
this.dialogTableVisible = true
|
|
this.dialogTableVisible = true
|
|
@@ -361,18 +363,17 @@ export default {
|
|
},
|
|
},
|
|
//1.7 添加
|
|
//1.7 添加
|
|
addWebsite() {
|
|
addWebsite() {
|
|
- console.log("添加字段---------");
|
|
|
|
this.dialogTableVisible = true
|
|
this.dialogTableVisible = true
|
|
this.dialogName = "添加字段"
|
|
this.dialogName = "添加字段"
|
|
this.disabled = false
|
|
this.disabled = false
|
|
//添加时清空回显回来的数据
|
|
//添加时清空回显回来的数据
|
|
this.ruleForm = {
|
|
this.ruleForm = {
|
|
field_recive_id: this.$route.query.id,
|
|
field_recive_id: this.$route.query.id,
|
|
- field_name: '',
|
|
|
|
- field_name_show: '',
|
|
|
|
|
|
+ field_name: 'age',
|
|
|
|
+ field_name_show: '年龄',
|
|
field_type: "",
|
|
field_type: "",
|
|
- field_textarea: '',
|
|
|
|
- field_length: '',
|
|
|
|
|
|
+ field_textarea: '男|1\n 女|2\n保密|3',
|
|
|
|
+ field_length: '1-255',
|
|
field_switch: 0,
|
|
field_switch: 0,
|
|
field_switch_backend: 0,
|
|
field_switch_backend: 0,
|
|
field_switch_web: 0,
|
|
field_switch_web: 0,
|
|
@@ -396,7 +397,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
if (valid) {
|
|
if (valid) {
|
|
- console.log("修改字段-------", this.ruleForm);
|
|
|
|
font_form_edit_api({
|
|
font_form_edit_api({
|
|
table_id: this.$route.query.id,
|
|
table_id: this.$route.query.id,
|
|
field_name: this.ruleForm.field_name,
|
|
field_name: this.ruleForm.field_name,
|
|
@@ -489,7 +489,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
//取消添加或编辑
|
|
//取消添加或编辑
|
|
cancelForm() {
|
|
cancelForm() {
|
|
this.dialogTableVisible = false
|
|
this.dialogTableVisible = false
|
|
@@ -512,7 +512,6 @@ export default {
|
|
this.$store.dispatch('pool/uploadFile', formData).then(res => {
|
|
this.$store.dispatch('pool/uploadFile', formData).then(res => {
|
|
this.logoUrl = res.data.imgUrl;//显示缩略图
|
|
this.logoUrl = res.data.imgUrl;//显示缩略图
|
|
this.ruleForm.adPhoto = res.data.imgUrl;//提供表单地址
|
|
this.ruleForm.adPhoto = res.data.imgUrl;//提供表单地址
|
|
- console.log(res.data.imgUrl)
|
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.$message({
|
|
this.$message({
|
|
type: 'info',
|
|
type: 'info',
|
|
@@ -529,7 +528,7 @@ export default {
|
|
//添加 / 编辑弹窗中输入关键词下拉框
|
|
//添加 / 编辑弹窗中输入关键词下拉框
|
|
// 判断是否已经关联了网站
|
|
// 判断是否已经关联了网站
|
|
detectionWebSite(value) {
|
|
detectionWebSite(value) {
|
|
- console.log(value);
|
|
|
|
|
|
+ // console.log(value);
|
|
this.website_id = value
|
|
this.website_id = value
|
|
},
|
|
},
|
|
},
|
|
},
|