|
@@ -38,59 +38,64 @@
|
|
</div>
|
|
</div>
|
|
<div class="bottomPartRight bottomPartRightTemplate">
|
|
<div class="bottomPartRight bottomPartRightTemplate">
|
|
<p class="poolTitle">模板内容:</p>
|
|
<p class="poolTitle">模板内容:</p>
|
|
- <el-form
|
|
|
|
- class="subTemplate"
|
|
|
|
- ref="groups"
|
|
|
|
- :model="form"
|
|
|
|
- >
|
|
|
|
- <el-form-item
|
|
|
|
- label="添加子模板:"
|
|
|
|
- prop="region"
|
|
|
|
- size="mini"
|
|
|
|
- >
|
|
|
|
- <el-select
|
|
|
|
- v-model="form.region"
|
|
|
|
- placeholder="请选择模板类型"
|
|
|
|
|
|
+ <div class="arrowWrap" style="float:right;marginRight:10px" v-if="type != 1 && type != 2">
|
|
|
|
+ <i class="el-icon-arrow-left arrowWrapPub" @click="moveTag(0)"></i>
|
|
|
|
+ <i class="el-icon-arrow-right arrowWrapPub" @click="moveTag(1)"></i>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="formWrap" v-if="type == 1 || type == 2">
|
|
|
|
+ <el-form
|
|
|
|
+ class="subTemplate"
|
|
|
|
+ :model="form"
|
|
>
|
|
>
|
|
- <el-option
|
|
|
|
- v-for="item in Adscriptions"
|
|
|
|
- :label="item.name"
|
|
|
|
- :value="item.val"
|
|
|
|
- :key="item.id"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- <div style="display:inline-block">
|
|
|
|
- <el-button size="mini" @click="addDomTemplate(0)">添加</el-button>
|
|
|
|
- <el-button size="mini" @click="delSubTemplate">删除子模板</el-button>
|
|
|
|
- <el-button size="mini" @click="addDomTemplate(1)">插入输入栏</el-button>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <el-button icon="el-icon-arrow-left" class="changeOrder changeOrderPub"></el-button>
|
|
|
|
- <el-button icon="el-icon-arrow-right" class="changeOrderPub"></el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="添加子模板:"
|
|
|
|
+ prop="region"
|
|
|
|
+ size="mini"
|
|
|
|
+ >
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="form.region"
|
|
|
|
+ placeholder="请选择子模板"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in Adscriptions"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ <el-button size="mini" @click="addDomTemplate(0,'submitForm')">添加</el-button>
|
|
|
|
+ <el-button size="mini" @click="delSubTemplate">删除子模板</el-button>
|
|
|
|
+ <el-button size="mini" @click="addDomTemplate(1)">插入输入栏</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div class="arrowWrap">
|
|
|
|
+ <i class="el-icon-arrow-left arrowWrapPub" @click="moveTag(0)"></i>
|
|
|
|
+ <i class="el-icon-arrow-right arrowWrapPub" @click="moveTag(1)"></i>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<ul class="tagList operationPool templateTagLists">
|
|
<ul class="tagList operationPool templateTagLists">
|
|
<li
|
|
<li
|
|
class="tagItem operationItem"
|
|
class="tagItem operationItem"
|
|
v-for="(item,idx) in rightTagsList"
|
|
v-for="(item,idx) in rightTagsList"
|
|
- :key='item.id'
|
|
|
|
- :style="getStyle2(item)?styles:null"
|
|
|
|
|
|
+ :key='item.name'
|
|
@click='selectRightTag(item,idx)'
|
|
@click='selectRightTag(item,idx)'
|
|
|
|
+ :style="getStyle2(item)?styles:null"
|
|
>
|
|
>
|
|
<div class="inputBox" v-if="item.type === 'input'">
|
|
<div class="inputBox" v-if="item.type === 'input'">
|
|
<el-input
|
|
<el-input
|
|
placeholder=""
|
|
placeholder=""
|
|
v-model="item.text"
|
|
v-model="item.text"
|
|
|
|
+ @change="updataData"
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
</div>
|
|
</div>
|
|
<p
|
|
<p
|
|
v-if="item.type === 'sub'"
|
|
v-if="item.type === 'sub'"
|
|
class="tagName ellipsis"
|
|
class="tagName ellipsis"
|
|
- :title="'[ 添加子模块 ]'"
|
|
|
|
- >添加子模块 </p>
|
|
|
|
|
|
+ :title="'[ '+item.tagName+' ]'"
|
|
|
|
+ >{{item.tagName}}</p>
|
|
<p
|
|
<p
|
|
- v-if="item.tagName"
|
|
|
|
|
|
+ v-if="item.type !== 'input' && item.type !== 'sub'"
|
|
class="tagName ellipsis"
|
|
class="tagName ellipsis"
|
|
:title="'[ '+item.tagName+' ]'"
|
|
:title="'[ '+item.tagName+' ]'"
|
|
>{{item.tagName}} </p>
|
|
>{{item.tagName}} </p>
|
|
@@ -113,30 +118,21 @@ export default {
|
|
default: '',
|
|
default: '',
|
|
type: String
|
|
type: String
|
|
},
|
|
},
|
|
- sexType: {
|
|
|
|
- default: '',
|
|
|
|
- type: String
|
|
|
|
- },
|
|
|
|
options: {
|
|
options: {
|
|
- default: () => [],
|
|
|
|
- type: Array
|
|
|
|
|
|
+ default: () => {},
|
|
|
|
+ type: Object
|
|
},
|
|
},
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- Adscriptions: [
|
|
|
|
- { name: '添加病情变化', val: '1', id: '001' },
|
|
|
|
- { name: '病程变化', val: '2', id: '002' },
|
|
|
|
- { name: '添加其他症状', val: '3', id: '003' },
|
|
|
|
- ],
|
|
|
|
- form: {
|
|
|
|
- region: '1', //归属
|
|
|
|
- },
|
|
|
|
|
|
+ Adscriptions: [], //子模板列表
|
|
|
|
+ form: {region: ''}, //当前子模板
|
|
addTag:{
|
|
addTag:{
|
|
text:'', //输入框内容为空
|
|
text:'', //输入框内容为空
|
|
id:'', //id可以用index做id
|
|
id:'', //id可以用index做id
|
|
type:'input', //sub 子模板
|
|
type:'input', //sub 子模板
|
|
},
|
|
},
|
|
|
|
+ subTmpList:[], //子模板的id用于去重
|
|
leftTagsList: [],
|
|
leftTagsList: [],
|
|
selectLeftTagsList: [],
|
|
selectLeftTagsList: [],
|
|
rightTagsList: [],
|
|
rightTagsList: [],
|
|
@@ -148,24 +144,55 @@ export default {
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ destroyed: function () {
|
|
|
|
+ this.searchVal = ''
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
- this.rightTagsList = this.options
|
|
|
|
- let newArr = [];
|
|
|
|
- for (let i = 0; i < this.rightTagsList.length; i++) {
|
|
|
|
- if (this.rightTagsList[i].tagType == 8) {
|
|
|
|
- newArr.push({ text: this.rightTagsList[i].tagName, type: 'input', id: i })
|
|
|
|
- } else {
|
|
|
|
- newArr.push(this.rightTagsList[i])
|
|
|
|
|
|
+ if(this.type){this.searchTagList()}
|
|
|
|
+ if(this.options.id){
|
|
|
|
+ if(this.options && this.options.data && this.options.data.length>0){
|
|
|
|
+ let reviewList = this.options.data
|
|
|
|
+ let tmpSubTmpList = this.subTmpList.slice(0)
|
|
|
|
+ for(let m = 0;m < reviewList.length;m++){
|
|
|
|
+ if(reviewList[m].relationModule != null){ //这是子模板,修改有子模板需要记录去重
|
|
|
|
+ reviewList[m].id = reviewList[m].relationModule + 'sub'
|
|
|
|
+ reviewList[m].tagName = reviewList[m].relationModuleName
|
|
|
|
+ reviewList[m].type = 'sub'
|
|
|
|
+ tmpSubTmpList.push(reviewList[m].relationModule)
|
|
|
|
+ this.subTmpList = tmpSubTmpList
|
|
|
|
+ }else if(reviewList[m].tagType == 8){ //这个是输入框文字
|
|
|
|
+ reviewList[m].id = m+'1001001001'
|
|
|
|
+ reviewList[m].type = 'input'
|
|
|
|
+ reviewList[m].text = reviewList[m].tagName
|
|
|
|
+ }else{ //这个是标签
|
|
|
|
+ reviewList[m].id = reviewList[m].questionId
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.rightTagsList = reviewList
|
|
|
|
+ console.log(reviewList,'xiugai')
|
|
}
|
|
}
|
|
|
|
+ this.$emit('changeActionData', this.rightTagsList, false);
|
|
|
|
+ this.getSubTemplate()
|
|
|
|
+ }else{
|
|
|
|
+ this.getSubTemplate()
|
|
}
|
|
}
|
|
- this.rightTagsList = newArr
|
|
|
|
- this.$emit('changeActionData', this.rightTagsList, false);
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- pool(newVal, preVal) {
|
|
|
|
- this.leftTagsList = newVal
|
|
|
|
|
|
+ type(newVal, preVal) {
|
|
|
|
+ if(newVal != preVal){
|
|
|
|
+ this.form = {region: ''}
|
|
|
|
+ this.subTmpList = [] //子模板的id用于去重
|
|
|
|
+ this.leftTagsList = []
|
|
|
|
+ this.selectLeftTagsList = []
|
|
|
|
+ this.rightTagsList = []
|
|
|
|
+ this.selectRightTagsList = []
|
|
|
|
+ this.selectRightTagsListIndex = []
|
|
|
|
+ this.searchVal = ''
|
|
|
|
+ this.getSubTemplate() //重新获取子模板
|
|
|
|
+ this.searchTagList() //重新获取标签池数据
|
|
|
|
+ }
|
|
},
|
|
},
|
|
searchVal(newVal, preVal) {
|
|
searchVal(newVal, preVal) {
|
|
if (newVal.trim() == '') {
|
|
if (newVal.trim() == '') {
|
|
@@ -176,26 +203,91 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- addDomTemplate(sign){
|
|
|
|
|
|
+ updataData(){
|
|
|
|
+ this.$emit('changeActionData', this.rightTagsList, false);
|
|
|
|
+ },
|
|
|
|
+ addDomTemplate(sign,dom){
|
|
let tmpArr1 = this.rightTagsList.slice(0);
|
|
let tmpArr1 = this.rightTagsList.slice(0);
|
|
let tmpArr2 = this.selectRightTagsListIndex.slice(0);
|
|
let tmpArr2 = this.selectRightTagsListIndex.slice(0);
|
|
- if(tmpArr2.length < 1){return}
|
|
|
|
|
|
+ let tmpArr3 = this.subTmpList.slice(0),tmpRegion = this.form.region;
|
|
|
|
+ let tmpArr4 = this.Adscriptions.filter(item => item.id == tmpRegion);
|
|
|
|
+ let tmpTag = Object.assign({},this.addTag); //深度复制obj
|
|
|
|
+ if(sign == 0){ //添加子模板
|
|
|
|
+ if(tmpArr4.length == 0){
|
|
|
|
+ this.$message({
|
|
|
|
+ message:'请选择子模板',
|
|
|
|
+ type:'warning'
|
|
|
|
+ })
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ tmpTag.type = 'sub'
|
|
|
|
+ tmpArr3.push(tmpRegion)
|
|
|
|
+ tmpTag.tagName = tmpArr4[0].name
|
|
|
|
+ tmpTag.id = tmpArr4[0].id + 'sub'
|
|
|
|
+ this.subTmpList = tmpArr3 //记录子模板id
|
|
|
|
+ this.form.region = ''
|
|
|
|
+ this.getSubTemplate()
|
|
|
|
+ }else{ //添加输入框
|
|
|
|
+ tmpTag.type = 'input'
|
|
|
|
+ }
|
|
|
|
+ tmpArr1.push(tmpTag);
|
|
for(let i =0; i < tmpArr1.length; i++){ //循环右侧所有数据
|
|
for(let i =0; i < tmpArr1.length; i++){ //循环右侧所有数据
|
|
- let id1 = tmpArr1[i].id;
|
|
|
|
- for(let j = 0; j < tmpArr2.length; j++){ //循环右侧选中的数据
|
|
|
|
- let id2 = tmpArr2[j];
|
|
|
|
- if(id1 == id2){
|
|
|
|
- let tmpTag = Object.assign({},this.addTag); //防止id相同
|
|
|
|
- tmpTag.type = sign == 0?'sub':'input';
|
|
|
|
- tmpTag.id = id1 + i +55454; //id还是会重复bug
|
|
|
|
- tmpArr1.splice(i+1,0,tmpTag);
|
|
|
|
|
|
+ if(tmpArr1[i].type == 'input'){
|
|
|
|
+ tmpArr1[i].id = i + '1001001001' //给添加的子模板或者输入框加上id
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.rightTagsList = tmpArr1;
|
|
|
|
+ this.$emit('changeActionData', this.rightTagsList, false);
|
|
|
|
+ },
|
|
|
|
+ moveTag(dir){
|
|
|
|
+ let tmpArr1 = this.rightTagsList.slice(0);
|
|
|
|
+ let tmpArr2 = this.selectRightTagsListIndex.slice(0);
|
|
|
|
+ let tmpArr3 = this.selectRightTagsList.slice(0);
|
|
|
|
+ if(dir == 0){ //往左
|
|
|
|
+ for(let i = 0;i < tmpArr3.length;i++){ //删除选中的元素
|
|
|
|
+ let tmpId = tmpArr3[i].id
|
|
|
|
+ tmpArr1 = tmpArr1.filter(item => item.id !== tmpId)
|
|
|
|
+ }
|
|
|
|
+ let tmpArr = tmpArr1.slice(0)
|
|
|
|
+ for(let k = 0;k < tmpArr2.length;k++){ //选中元素的index
|
|
|
|
+ let tmpIdx = tmpArr2[k]-1
|
|
|
|
+ tmpArr.splice(tmpIdx,0,tmpArr3[k])
|
|
|
|
+ if(tmpArr2[k] == 0){
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ tmpArr2[k] = (tmpArr2[k]-1)
|
|
|
|
+ }
|
|
|
|
+ this.selectRightTagsListIndex = tmpArr2
|
|
|
|
+ this.rightTagsList = tmpArr
|
|
|
|
+ }else{ //往右
|
|
|
|
+ for(let i = 0;i < tmpArr3.length;i++){ //删除选中的元素
|
|
|
|
+ let tmpId = tmpArr3[i].id
|
|
|
|
+ tmpArr1 = tmpArr1.filter(item => item.id !== tmpId)
|
|
|
|
+ }
|
|
|
|
+ let tmpArr = tmpArr1.slice(0)
|
|
|
|
+ for(let k = 0;k < tmpArr2.length;k++){ //选中元素的index
|
|
|
|
+ let tmpIdx = tmpArr2[k]+1
|
|
|
|
+ tmpArr.splice(tmpIdx,0,tmpArr3[k])
|
|
|
|
+ if(tmpArr2[k] == tmpArr1.length){
|
|
|
|
+ return
|
|
}
|
|
}
|
|
|
|
+ tmpArr2[k] = (tmpArr2[k]+1)
|
|
}
|
|
}
|
|
|
|
+ this.selectRightTagsListIndex = tmpArr2
|
|
|
|
+ this.rightTagsList = tmpArr
|
|
}
|
|
}
|
|
- this.rightTagsList = tmpArr1
|
|
|
|
|
|
+ this.$emit('changeActionData', this.rightTagsList, false);
|
|
},
|
|
},
|
|
- delSubTemplate(){
|
|
|
|
-
|
|
|
|
|
|
+ delSubTemplate(){ //删除子模板
|
|
|
|
+ if (this.selectRightTagsList.length>0 && this.selectRightTagsList[0].type === 'sub') { //删除子模板,输入框或者标签就不变
|
|
|
|
+ this.rightTagsList = this.rightTagsList.filter(item => item.id !== this.selectRightTagsList[0].id)
|
|
|
|
+ this.subTmpList = this.subTmpList.filter(item => item.id !== this.selectRightTagsList[0].id) //选中的子模板id去掉
|
|
|
|
+ }
|
|
|
|
+ this.selectLeftTagsList = []
|
|
|
|
+ this.selectRightTagsList = []
|
|
|
|
+ this.selectRightTagsListIndex = []
|
|
|
|
+ this.$emit('changeActionData', this.rightTagsList, false);
|
|
|
|
+ this.getSubTemplate()
|
|
},
|
|
},
|
|
selectLeftTag(tag, index, e) {
|
|
selectLeftTag(tag, index, e) {
|
|
const hasTag = this.isHasTag(tag, this.selectLeftTagsList)
|
|
const hasTag = this.isHasTag(tag, this.selectLeftTagsList)
|
|
@@ -206,16 +298,18 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
selectRightTag(tag,idx) {
|
|
selectRightTag(tag,idx) {
|
|
- const hasTag = this.isHasTag(tag, this.selectRightTagsList)
|
|
|
|
|
|
+ const hasTag = this.isHasTag(tag, this.selectRightTagsList);
|
|
let tmpArr = this.selectRightTagsListIndex;
|
|
let tmpArr = this.selectRightTagsListIndex;
|
|
|
|
+ let tmpArr1 = this.selectRightTagsList.slice(0);
|
|
if (hasTag) {
|
|
if (hasTag) {
|
|
- this.selectRightTagsList = this.selectRightTagsList.filter(item => item.id !== tag.id)
|
|
|
|
- tmpArr = tmpArr.filter(item => item !== tag.id)
|
|
|
|
|
|
+ this.selectRightTagsList = this.selectRightTagsList.filter(item => item.tagName !== tag.name)
|
|
|
|
+ tmpArr = tmpArr.filter(item => item !== idx)
|
|
this.selectRightTagsListIndex = tmpArr
|
|
this.selectRightTagsListIndex = tmpArr
|
|
} else {
|
|
} else {
|
|
- this.selectRightTagsList.push(tag);
|
|
|
|
- tmpArr.push(tag.id)
|
|
|
|
- this.selectRightTagsListIndex = tmpArr
|
|
|
|
|
|
+ tmpArr1[0] = tag;
|
|
|
|
+ tmpArr[0]=idx;
|
|
|
|
+ this.selectRightTagsList = tmpArr1;
|
|
|
|
+ this.selectRightTagsListIndex = tmpArr;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
isHasTag(item, arr) {
|
|
isHasTag(item, arr) {
|
|
@@ -233,31 +327,16 @@ export default {
|
|
return this.isHasTag(item, this.selectRightTagsList)
|
|
return this.isHasTag(item, this.selectRightTagsList)
|
|
},
|
|
},
|
|
toLeftList() {
|
|
toLeftList() {
|
|
- for (let i = 0; i < this.selectRightTagsList.length; i++) {
|
|
|
|
- this.rightTagsList = this.rightTagsList.filter(item => item.id !== this.selectRightTagsList[i].id)
|
|
|
|
- }
|
|
|
|
- for (let i = 0; i < this.selectRightTagsList.length; i++) {//每次往回移时同时删掉下面输入框
|
|
|
|
- if (this.selectRightTagsList[i].type !== 'input') {
|
|
|
|
- for (let j = 0; j < this.rightTagsList.length; j++) {
|
|
|
|
- if (this.selectRightTagsList[i].id === this.rightTagsList[j].id) {
|
|
|
|
- if(j < this.rightTagsList.length-1){
|
|
|
|
- if(this.rightTagsList[i+1].type !== 'input'){
|
|
|
|
- this.rightTagsList.splice(j, 1)
|
|
|
|
- }else if(this.rightTagsList[i+1].type === 'input'){
|
|
|
|
- this.rightTagsList.splice(j, 2)
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- this.rightTagsList.splice(j, 1)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ if (this.selectRightTagsList.length>0 && this.selectRightTagsList[0].type !== 'sub' && this.selectRightTagsList[0].type !== 'input') { //往左的是子模板不变或者输入框,是输入框或者标签就删除
|
|
|
|
+ for (let i = 0; i < this.selectRightTagsList.length; i++) {
|
|
|
|
+ this.rightTagsList = this.rightTagsList.filter(item => item.id !== this.selectRightTagsList[0].id)
|
|
}
|
|
}
|
|
|
|
+ this.searchTagList()
|
|
|
|
+ this.$emit('changeActionData', this.rightTagsList, false);
|
|
}
|
|
}
|
|
this.selectLeftTagsList = []
|
|
this.selectLeftTagsList = []
|
|
this.selectRightTagsList = []
|
|
this.selectRightTagsList = []
|
|
this.selectRightTagsListIndex = []
|
|
this.selectRightTagsListIndex = []
|
|
- this.searchTagList()
|
|
|
|
- this.$emit('changeActionData', this.rightTagsList, false);
|
|
|
|
},
|
|
},
|
|
toRightList() {
|
|
toRightList() {
|
|
this.rightTagsList.push(...this.selectLeftTagsList);
|
|
this.rightTagsList.push(...this.selectLeftTagsList);
|
|
@@ -271,25 +350,33 @@ export default {
|
|
},
|
|
},
|
|
searchTagList() {
|
|
searchTagList() {
|
|
let notIds = []
|
|
let notIds = []
|
|
- for (let i = 0; i < this.selectRightTagsList.length; i++) {
|
|
|
|
- if (typeof this.rightTagsList[i].id === 'number') {
|
|
|
|
|
|
+ for (let i = 0; i < this.rightTagsList.length; i++) {
|
|
notIds.push(this.rightTagsList[i].id)
|
|
notIds.push(this.rightTagsList[i].id)
|
|
- }
|
|
|
|
}
|
|
}
|
|
let param = {
|
|
let param = {
|
|
"tagName": this.searchVal,
|
|
"tagName": this.searchVal,
|
|
- "type": this.type || '',
|
|
|
|
- "notIds": notIds,
|
|
|
|
|
|
+ "type": 1,
|
|
|
|
+ "noIds": notIds,
|
|
}
|
|
}
|
|
- api.searchTagList(param).then((res) => {
|
|
|
|
|
|
+ api.getQuestionInfos(param).then((res) => {
|
|
if (res.data.code === '0') {
|
|
if (res.data.code === '0') {
|
|
this.leftTagsList = res.data.data
|
|
this.leftTagsList = res.data.data
|
|
this.selectLeftTagsList = []
|
|
this.selectLeftTagsList = []
|
|
this.selectRightTagsList = []
|
|
this.selectRightTagsList = []
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ },
|
|
|
|
+ getSubTemplate() {
|
|
|
|
+ let param = {
|
|
|
|
+ noIds:this.subTmpList
|
|
|
|
+ }
|
|
|
|
+ api.getModuleInfoSub(param).then((res) => {
|
|
|
|
+ if (res.data.code === '0') {
|
|
|
|
+ console.log(res.data.data)
|
|
|
|
+ this.Adscriptions = res.data.data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -304,6 +391,7 @@ export default {
|
|
.poolTitle {
|
|
.poolTitle {
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
|
|
+ display: inline-block;
|
|
}
|
|
}
|
|
.inputBox {
|
|
.inputBox {
|
|
width: 100px;
|
|
width: 100px;
|
|
@@ -360,15 +448,36 @@ export default {
|
|
.bottomPartRight {
|
|
.bottomPartRight {
|
|
float: left;
|
|
float: left;
|
|
width: 60%;
|
|
width: 60%;
|
|
- .changeOrder {
|
|
|
|
- margin-left: 20px;
|
|
|
|
|
|
+ .arrowWrap {
|
|
|
|
+ float: right;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ padding-top: 1px;
|
|
|
|
+ margin-right: 10px;
|
|
|
|
+ .arrowWrapPub[data-v-2db8be7a] {
|
|
|
|
+ border: 1px solid @adminBase;
|
|
|
|
+ height: 23px;
|
|
|
|
+ width: 40px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ background: #fff;
|
|
|
|
+ line-height: 23px;
|
|
|
|
+ border-radius: 3px;
|
|
|
|
+ margin-left: 10px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .formWrap {
|
|
|
|
+ position: relative;
|
|
|
|
+ height: 30px;
|
|
|
|
+ .subTemplate {
|
|
|
|
+ width: 470px;
|
|
|
|
+ float: left;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.templateTagList {
|
|
.templateTagList {
|
|
height: 450px;
|
|
height: 450px;
|
|
}
|
|
}
|
|
.templateTagLists {
|
|
.templateTagLists {
|
|
- height: 468px;
|
|
|
|
|
|
+ height: 462px;
|
|
width: 98%;
|
|
width: 98%;
|
|
}
|
|
}
|
|
button {
|
|
button {
|
|
@@ -393,13 +502,10 @@ export default {
|
|
<style lang="less">
|
|
<style lang="less">
|
|
@import "../../less/common.less";
|
|
@import "../../less/common.less";
|
|
.bottomPartRightTemplate {
|
|
.bottomPartRightTemplate {
|
|
- .subTemplate {
|
|
|
|
- // display: inline-block;
|
|
|
|
- }
|
|
|
|
.el-form-item__content {
|
|
.el-form-item__content {
|
|
.el-input__inner {
|
|
.el-input__inner {
|
|
- height: 30px;
|
|
|
|
- line-height:30px;
|
|
|
|
|
|
+ height: 28px;
|
|
|
|
+ line-height:28px;
|
|
border-radius:5px;
|
|
border-radius:5px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
@@ -409,9 +515,6 @@ export default {
|
|
.el-button--mini[data-v-2db8be7a], .el-button--mini.is-round[data-v-2db8be7a] {
|
|
.el-button--mini[data-v-2db8be7a], .el-button--mini.is-round[data-v-2db8be7a] {
|
|
padding: 5px 8px 4px;
|
|
padding: 5px 8px 4px;
|
|
}
|
|
}
|
|
- .el-button--mini[data-v-2db8be7a].changeOrderPub, .el-button--mini.is-round[data-v-2db8be7a].changeOrderPub {
|
|
|
|
- padding: 5px 12px;
|
|
|
|
- }
|
|
|
|
.el-button:hover {
|
|
.el-button:hover {
|
|
color: @adminBase;
|
|
color: @adminBase;
|
|
border-color: @adminBase;
|
|
border-color: @adminBase;
|